Flearn Website Header

SQL Study Cards


Master SQL with our interactive study cards designed for effective learning. These flashcards use proven spaced repetition techniques to help you memorize key concepts, definitions, and facts. Perfect for students, professionals, and lifelong learners seeking to improve knowledge retention and ace exams through active recall practice.


Click any card to reveal the answer

How do you select all columns from a table?

click to flip

Answer:

Use SELECT * FROM table_name

How do you select specific columns from a table?

click to flip

Answer:

Use SELECT column1 column2 FROM table_name

How do you filter records with WHERE clause?

click to flip

Answer:

Use SELECT * FROM table_name WHERE condition

How do you sort query results?

click to flip

Answer:

Use ORDER BY column_name ASC or DESC

How do you limit the number of results?

click to flip

Answer:

Use LIMIT number or TOP number depending on database

How do you insert data into a table?

click to flip

Answer:

Use INSERT INTO table_name (columns) VALUES (values)

How do you update existing records?

click to flip

Answer:

Use UPDATE table_name SET column = value WHERE condition

How do you delete records from a table?

click to flip

Answer:

Use DELETE FROM table_name WHERE condition

📢
Advertisement
See Your Advert Here!

How do you create a new table?

click to flip

Answer:

Use CREATE TABLE table_name with column definitions

How do you drop a table?

click to flip

Answer:

Use DROP TABLE table_name

How do you add a new column to a table?

click to flip

Answer:

Use ALTER TABLE table_name ADD column_name datatype

How do you join two tables?

click to flip

Answer:

Use JOIN keyword like SELECT * FROM table1 JOIN table2 ON condition

What is the difference between INNER JOIN and LEFT JOIN?

click to flip

Answer:

INNER JOIN returns only matching records LEFT JOIN returns all left table records

How do you group records?

click to flip

Answer:

Use GROUP BY column_name

How do you filter grouped results?

click to flip

Answer:

Use HAVING clause after GROUP BY

How do you count records?

click to flip

Answer:

Use COUNT() function like SELECT COUNT(*) FROM table_name

📢
Advertisement
See Your Advert Here!

How do you find the maximum value?

click to flip

Answer:

Use MAX() function like SELECT MAX(column) FROM table_name

How do you find the minimum value?

click to flip

Answer:

Use MIN() function like SELECT MIN(column) FROM table_name

How do you calculate average?

click to flip

Answer:

Use AVG() function like SELECT AVG(column) FROM table_name

How do you calculate sum?

click to flip

Answer:

Use SUM() function like SELECT SUM(column) FROM table_name

How do you check for NULL values?

click to flip

Answer:

Use IS NULL or IS NOT NULL in WHERE clause

How do you use wildcards in searches?

click to flip

Answer:

Use LIKE with % for multiple characters or _ for single character

How do you select distinct values?

click to flip

Answer:

Use SELECT DISTINCT column_name FROM table_name

How do you use subqueries?

click to flip

Answer:

Place SELECT statement inside another query with parentheses

📢
Advertisement
See Your Advert Here!

How do you create an index?

click to flip

Answer:

Use CREATE INDEX index_name ON table_name (column)

How do you create a primary key?

click to flip

Answer:

Use PRIMARY KEY constraint in CREATE TABLE or ALTER TABLE

How do you create a foreign key?

click to flip

Answer:

Use FOREIGN KEY constraint referencing another table

How do you use CASE statements?

click to flip

Answer:

Use CASE WHEN condition THEN result ELSE result END

How do you find records between two values?

click to flip

Answer:

Use BETWEEN operator like WHERE column BETWEEN value1 AND value2

How do you check if value exists in a list?

click to flip

Answer:

Use IN operator like WHERE column IN (value1 value2 value3)

Remember: Use all available resources to study. Flearn alone cannot guarantee success in any exams—make sure to supplement your learning!