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
What is an application role and explain a scenario when you would use one?
1. Using the XML Document below, with the URI “recipe.xml”
define
the following queries in XQuery:
a.) Give the names of all breakfast in the menu.
b.) Select breakfasts that have price lower than $7.00?
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?
Explain about network model?
Explain about the storage and physical database design?
What is DB Development software?
Explain about xml databases?
What you can do to remove data from the cache and query plans from memory for testing the performance of a query repeatedly?
Pgm A calls Pgm B and pgm B uses cursor, when pgm B is called second time, the program is abending saying the cursor is opened? Why?
What is normalization? Explain different levels of normalization?
Explain about the hierarchical model of the database?
Can an extended stored procedure be called from inside a user-defined function?
Write the fastest query to find out how many rows exist in a table?
Hi my program is accesing data from two db2 databases.what is the bind card for this program to genarate plan? how to specify the two owners and two qualifiers in bind card
How can you fix a poorly performing query?