What is a self join? Explain it with an example?
Answer Posted / nishant dubey
Table join itself using alias..
example
Select N,emp_id,N.emp_name,D.emp_id,D.emp_name from Nishant
N,Nishant D where N.emp_id=D.emp_id;
| Is This Answer Correct ? | 11 Yes | 19 No |
Post New Answer View All Answers
Explain about network model?
Which four data types cannot be used as a return type from a user-defined function?
What are the three types of database design?
State the acid rules?
Who are naive users?
How to replace not in with not exist?
On friday, you issued several insert statements using query analyzer. You then verified the data had been correctly entered with a select statement on monday, your users report that the data is not there what happened?
You are testing the performance of a query the first time you run the query, the performance is slow. the second time you run the query, the performance is fast. why is this?
Write the fastest query to find out how many rows exist in a table?
Any sample or model question of punjab national bank for deputy manger IT or any sample of PNB.any1 plz do send on
Explain about the hierarchical model of the database?
How to generate OIDS
The count() function always returns a int value type what should you do if you need to count rows from a query which you know will return a value that is too large for an int value type?
Where is dbms used?
You have two tables with a one to many join based on a field named id. You need to find records in the parent table that are not represented in the child table. how would you accomplish this?