SQL Flashcards

1
Q

What is SQL?

A

SQL is used to retrieve and manipulate data in DBMSs.

More focused on what to retrieve, delete or insert.

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

What is a data type?

A

The specific type of data a column can hold

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

ORDER BY

A

sorts the column in either ASC or DESC order

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

What is a foreign key?

A

Columns that have values linked with other tables

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

What does it mean to normalize?

A

Taking a database and applying a set of formal rules (NF1, NF2, NF3 depending on how the data is structured). Reduces redundancy and makes the database more flexible

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

What is a primary key?

A

A field that provides a unique key to every row in a table

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

What is a query?

A

A question/command concerning data from the database

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

What are parts of a query?

A

Clause, keyword, statement

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

What is a clause?

A

Clauses are segments of SQL statements that can combine to form a complete statement

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

What is a keyword?

A

words like SELECT and FROM that allow you to communicate with a database

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