wht is d/f b/w inner join and outer join ? d/f group by and order by having by ?

Answers were Sorted based on User's Feedback



wht is d/f b/w inner join and outer join ? d/f group by and order by having by ? ..

Answer / srinivasa yadav

INNER JOIN: ALL THE MATCHED ROWS FROM BOTH THE TABLES ARE
DISPLAYED IN THE RESULTANT TABLE.
OUTER JOIN: THERE ARE THREE TYPES OF OUTER JOIN
THEY ARE
1)LEFT OUTER JOIN
2)RIGHT OUTER JOIN
3)FULL OUTER JOIN

LEFT OUTER JOIN:- ALL THE MATCHED AND UNMATCHED ROWS FROM
BOTH TABLES FROM THE LEFT TABLE ARE DISPLAYED IN THE
RESULTANT TABLES
RIGHT OUTER JOIN:- ALL THE MATCHED AND UNMATCHED ROWS FROM
BOTH RIGHT TABLE ARE DISPLAYED IN THE RESULTANT TABLE.
FULL OUTER JOIN:- ALL THE MATCHED AND UNMATCHED ROWS FROM
BOTH THE TABLES ARE DISPLAYED IN THE RESULTANT TABLE.
GROUP BY CLAUSE:- IT IS USED ON GROUP OF DATA AND PROCESS AN
SQL QUERY.
ORDER BY:- IT IS USED TO SORT THE DATA IN ASCENDING OR
DESCENDING ORDER.
EX:- SELECT EMPID FROM EMP_TBL ORDER BY
DSC (OR) ORDER BY 1.
ORDER BY 1 i.e THE COLUMN NUMBER (EMPID)
HAVING BY:- IT IS USED FOR CONDITION CHECKING.

Is This Answer Correct ?    5 Yes 1 No

wht is d/f b/w inner join and outer join ? d/f group by and order by having by ? ..

Answer / lu

u have 2 table (a,b), u join together,u get colunms
matching it's called inner....
u have 2 tables (a,b), u select a colunm(b) doesn't exist
in a...it's called outer...
goup by using for a row...
having by using for column

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More DB2 Interview Questions

Can All Users Have The Privilege To Use The SQL Statement Select (DML)?

1 Answers  


Do we need cursor for Count(*)?

4 Answers   iGate,


What is a collection?

3 Answers  


Consider that a package is bound into 2 different collections and the PKLIST option specifies both the collections. If the collection id is not specified in the program while executing the SQL query, then when the DB2 system will search the package list, which collection will it pick up or will it give an error/abend?

1 Answers  


Could you please let me no the query for below I have table name xyx under this there is column name called employee name which starts from 100th column ends 120th column,now i want to replace only column from 101 to 104 which contains ABCS to replace with PQRS for all records which comes beetween 101 to 104 ..how to write query for this..

1 Answers   HSBC,






What is page size in db2?

0 Answers  


What is a NULL value? What are the pros and cons of using NULLS?

2 Answers  


What are foreign keys in db2?

0 Answers  


What is reorg?

0 Answers  


When will you chose to run RUNSTATS?

1 Answers  


Explain the function of data manager.

0 Answers  


Give the name of some fields form sqlca.

0 Answers  


Categories