Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
4. What are the outputs of the following operations: NULL*5 and NULL+5?
Answer:
5. Can you give me the command to create a new table on the basis of an existing
table?
Answer:
6. You have employee table with a ‘joining date’ field. Can you give me a query
which shows all the records which are sorted according to day wise; means all
‘Sunday’ records comes first then ‘Monday’ records and so on?
Answer:
7. What is the difference between ‘Left outer join’, ‘Right outer join’, ‘Full outer
join’ and ‘Self Join’? Explain them with example using emp & dept tables.
Answer:
8. Give a query through which top 5 records can fetched on the basis of ‘Sal’ field of
EMP table.
Answer: select top 5 * from emp order by emp.sal desc
9. Fetch the 5th highest sal record from the emp table.
Answer:
Write a query through which you show the sum of amount of quarters of each
year in the separate quarter columns.
Answer:
What is DataWarehousing?
• Subject-oriented, meaning that the data in the database is organized so that all
the data elements relating to the same real-world event or object are linked
together;
• Time-variant, meaning that the changes to the data in the database are tracked
and recorded so that reports can be produced showing changes over time;
• Non-volatile, meaning that data in the database is never over-written or deleted,
once committed, the data is static, read-only, but retained for future reporting;
• Integrated, meaning that the database contains data from most or all of an
organization’s operational applications, and that this data is made consistent.