Must know facts Flashcards

1
Q

Normalization?

How Does It Work

A

the process of designing database tables to minimize the data redundancy

divide a database into two or more tables and define relationships between them.

Use having only with group by clauses

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

INNER JOIN

A

returns all the rows for which there is at least one match in BOTH the tables.

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

LEFT JOIN

A

Returns all rows from the left table, and the matching rows from the right table.

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

When does the where clause filter data?

When does the having clause filter data?

A

Before the data has been grouped

After the data has been grouped

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

Facts about the primary key

A

Cannot be null

Every table can only have one primary key

Can be related to another table as a foreign key

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

Facts about unique key

A

May have a null value

Table can have more than one unique constraint

Not related to another table as a foreign key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
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