Joins in SQL Flashcards

1
Q

What are joins in SQL?

A

Joins are used to combine records from two or more tables based on a related column between them.

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

What are the different types of joins in SQL?

A

There are four main types of joins in SQL:
Inner Join
Left Join
Right Join
Full Join

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

Inner Join

A

Returns the records matching in both tables

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

Left Join

A

Returns all left table records and matched right table records.

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

Right Join

A

Returns all right table records and matched left table records.

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

FULL JOIN

A

Returns all records from both tables with matched records.

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