Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 4

course id course id

inner join 1 101 ram 1001 1 1001 science


matched 2 102 sham 1002 2 1002 Arts
3 103 gam 1003 3 1003 Civil Engin
4 1004 Goldsmith

left join std table course


Left matched values 1 101 ram 1001 1 1001 science
Left unmatched values 2 102 sham 1002 2 1002 Arts
3 103 gam 1003 3 1003 Civil Engin
4 1004 Goldsmith

right join std table course


Right matched values 1 101 ram 1001 1 1001 science
Right unmatched values 2 102 sham 1002 2 1002 Arts
3 103 gam 1003 3 1003 Civil Engin
105 4 1004 Goldsmith

Full join std table course


it compared left to right 1 101 ram 1001 1 1001 science
right to left 2 102 sham 1002 2 1002 Arts
dispalys matched and 3 103 gam 1003 3 1003 Civil Engin
dispalys null unmatched 4 105 silver 1005 4 1004 Goldsmith
on both tables 105

cross std table course


each one left valeus will 1 101 ram 1001 1 1001 science
divided with all right ta 2 102 sham 1002 2 1002 Arts
3 103 gam 1003 3 1003 Civil Engin
105 4 1004 Goldsmith

Self join std table


each one left valeus will 1 101 ram 1001
divided with all right ta 2 102 sham 1002
3 103 gam 1003
105
1000 Nirmala 1001
2000 Aravind 1002
5000 sampath 1003
8000 Nagaraju

table output
1000 Nirmala 1001
2000 Aravind 1002
5000 sampath 1003
8000 Nagaraju

table output
1000 Nirmala 1001
2000 Aravind 1002
5000 sampath 1003
8000 Nagaraju 1004

table output
1000 Nirmala 1001 1001
2000 Aravind 1002 1002
5000 sampath 1003 1003
8000 Nagaraju 1005 null
null 1004

table output
1000 Nirmala
2000 Aravind
5000 sampath
8000 Nagaraju

output total 16 records as output


101
102
103
105
101
102
103
105
101
102
103
105
101
102
103
105

You might also like