SQL Flashcards

1
Q

What does CRUD stand for?

A

Create, Read, Update, Delete

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

What is the SQL command for reading data (R in CRUD)

A

SELECT … FROM

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

What is the symbol for selecting all?

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

What does SQL stand for?

A

Structured Query Language

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

What are rows called in databases?

A

records

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

is SQL case sensitive?

A

no, but it is convention to write SQL statements in uppercase

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

what is the resulting data from a SELECT statement called?

A

the result-set

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

What does the DISTINCT keyword do with the SELECT statement?

A

selects and returns only distinct/different values (no duplicates)

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

What is the syntax for the WHERE statement?

A

SELECT [column]
FROM [table_name]
WHERE [condition]

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

What is the WHERE clause used for?

A

To filter results and apply conditions

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

What word operators can the WHERE clause be used with?

A

AND, OR, and NOT

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

How do you order data results in SQL?

A

With the ORDER BY keyword

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

What are the two ways you can use the ORDER BY keyword to order data?

A

Order ascending with the ASC keyword, or order descending with the DESC keyword

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