SQL – Interpret and modify Flashcards

You may prefer our related Brainscape-certified flashcards:
1
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
2
Q

What does the SELECT statement do?

A

SELECT statement is used to collect fields from a given table

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

What does the SELECT * statement do?

A

SELECT * specify that the query should return all columns of the queried tables

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

What does the FROM statement do?

A

Can be paired with the SELECT statement to specify which table(s) the information will come from

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

What does the WHERE statement do?

A

The WHERE statement can be used in conjunction to specify the search criteria

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

What does ORDER BY statement do?

A

The ORDER BY part of the code specifies whether you want it in ascending or descending
order (values are automatically placed in ascending order)

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

What does the ORDER BY ____ Desc statement do?

A

Adding ‘Desc’ to the end of statement will cause values to be displayed in descending order

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

What does the JOIN statement do?

A

JOIN provides a method of combining rows from multiple tables based on a common field
between them

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

What does the CREATE statement do?

A

The CREATE function allows you to make new databases

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

What does the ALTER statement do?

A

ALTER is used to add, delete or modify the columns in a table

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

What does the INSERT INTO statement do?

A

This is used to insert a new record into a database table

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

What does the DELETE statement do?

A

Used to delete a record from a database table

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