wht is d/f b/w inner join and outer join ? d/f group by and order by having by ?
Answer Posted / 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 |
Post New Answer View All Answers
How is the value function used?
What are the uses of db2 optimizer?
Describe major components of db2?
What are the various isolation levels possible?
How can deadlocks be resolved?
How can we retrieve the total number of records in RPG & CLLE?
Where do you specify them?
Following a db2 update statement, what is the quickest way to compute the total number of updated rows?
Explain about dbrm.
What is the default page size of buffer pools?
How to check last update on table in db2?
For a db2 column that is being defined as decimal (11, 2), discuss the cobol picture clause.
How do I add a column to an existing table in db2?
What does db2 blu stand for?
What is scrollable cursor in db2?