SQL Flashcards
1
Q
How do you select all columns from a table?
A
SELECT * FROM tablename;
2
Q
How do you prevent duplicate records when SELECTing?
A
Use the DISTINCT keyword
e.g. SELECT DISTRINCT category FROM video;
3
Q
A