SQL - Structured Query Language Flashcards

1
Q

What is a database?

A

A database can store multiple tables which hold data. This data can be stored, edited, sorted and searched to find records containing specific criteria.t

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

What is record?

A

A record is multiple fields of data linked to one specific subject, e.g. the rows in the table, completed for each unique entry into the table .

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

What are the 3 SQL commands?

A

SELECT
FROM
WHERE

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

For SELECT, in the database table, what is it referring to?

A

Selecting which fields should be displayed, e.g. the columns

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

For SELECT, how are two fields separated?

A

With a comma, e.g. SELECT name, age

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

For FROM, in the database table, what is it referring to?

A

The table name, e.g. FROM studentstbl

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

For WHERE, in the database table, what is it referring to?

A

The condition that needs to be met, e.g. WHERE age > 18

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

In WHERE, how would you show multiple conditions?

A

AND (boolean logic)

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

What is the purpose of SQL?

A

A strucured query language that searches for data in a database table.

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

What is a query?

A

When the user is searching for specific data in a table, e.g. meets specific criteria such as age limit.

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