ろくろ猫のブログ

しがない会社員の備忘log

【SQL練習】SQL Bolt lesson16

lesson16の問題

f:id:rokuroneko:20210731221918j:plain

問題一覧はこちらです。
SQLBolt - Learn SQL - SQL Lesson 16: Creating tables
f:id:rokuroneko:20200410123611p:plain

「RUN QUERY」をクリックするクエリが実行されます。

以下が解答となります。

1.解答

Create a new table named Database with the following columns:
   – Name A string (text) describing the name of the database
   – Version A number (floating point) of the latest version of this database
   – Download_count An integer count of the number of times this database was downloaded
  This table has no constraints.


次の列を持つDatabaseという名前の新しいテーブルを作成してください:
 –Name データベースの名前を説明する文字列(テキスト)
 –Version このデータベースの最新バージョンの番号(浮動小数点)
 – Download_count このデータベースがダウンロードされた回数の整数カウント
このテーブルには制約はありません。

f:id:rokuroneko:20200410125100p:plain

CREATE TABLE database (
    Name TEXT,
    Version FLOAT,
    Download_count INTEGER);