SQL Flashcards

1
Q

How do you select all columns from a table?

A

SELECT * FROM tablename;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you prevent duplicate records when SELECTing?

A

Use the DISTINCT keyword

e.g. SELECT DISTRINCT category FROM video;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly