ควิซ SQL: SELECT & WHERE

This SQL quiz checks the two clauses every query starts with, SELECT and WHERE. You will predict query results, combine conditions with AND and OR, and spot why a query fails.

ง่าย 10 ข้อ ~5 นาที ผ่านที่ 80% SQLite

เลือกโหมด

กำลังเล่นแบบผู้เยี่ยมชม: เข้าสู่ระบบเพื่อเก็บ XP และ streak

ตัวอย่างคำถาม

ข้อ 1 จาก 10

What does this query return?

CREATE TABLE users (id INTEGER, name TEXT, age INTEGER, city TEXT);
INSERT INTO users VALUES (1, 'Ana', 31, 'Paris'), (2, 'Ben', 25, 'Rome'), (3, 'Cy', 40, 'Paris');
SELECT name FROM users WHERE id = 2;
ดูเฉลย

A. Ben WHERE id = 2 keeps only Ben's row, and SELECT name returns just the name column. The id is used for filtering but not returned.

ควิซนี้มีเนื้อหาอะไรบ้าง

  • Choosing columns with SELECT and SELECT *
  • Filtering rows with WHERE and comparison operators
  • Combining conditions with AND, OR and parentheses
  • Quoting text values with single quotes
  • Why a column alias cannot be used in WHERE

คำถามที่พบบ่อย

ต้องมีบัญชีไหม?

ไม่ต้อง ใครก็เล่นได้ เข้าสู่ระบบเพื่อเก็บ XP, streak, เหรียญตรา และประวัติ

ทำซ้ำได้ไหม?

ได้ ระบบเก็บคะแนนที่ดีที่สุดไว้ และสลับคำถามกับตัวเลือกใหม่ทุกครั้ง