5 Joins Flashcards

1
Q

joins

A

this will help in link 2 column together as one which came from different tables

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

inner join

A

In inner join we get common colums from different tables

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

syntax of inner join 1

A

select common column from common tables where table1.common column = table2.common column

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

synatax of inner join 2

A

select common column from common table1 INNER JOIN common column 2 on table1.common column = table2.common column

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

inner join return

A

this return common data in the table

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

Outer join

A

this return un common data in the table

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

Outer join Types

A

Left join, Right join , full join

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

Left join, Right join , full join also called as

A

Left outer join, Right outer join , full outer join

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

left join

A

This give more preference to first common column that comes after ON

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

Right join

A

This give more preference to last common column that comes after ON

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

Full join

A

If we want all uncommon data at single place.

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

Union

A

stack one data on top of another table,

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

union in null

A

this removes all duplicates

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

Duplicates in union

A

The union also remove the duplicates

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

union all

A

does not eliminate the duplicates even after specifying distinct

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

Except

A

this takes result from 1st table and remove from 2nd table

17
Q

cartesian product

A

if we use no join

18
Q

Cross join

A

we use this when we use cartesian product

19
Q

View

A

virtual tabular form. This is generated using SQL query.

20
Q

insertion and deledtion of data in view

A

We cannot insert or delete data

21
Q

inline view

A

select * from ( select * from table)