Professional Documents
Culture Documents
We can nest the above query to find the second largest salary.
Finding Nth highest salary in a table is the most common question asked in
interviews. Here is a way to do this task using dense_rank() function.
select * from(
select ename, sal, dense_rank()
over(order by sal desc)r from Employee)
where r=&n;
Tracing level is the amount of data stored in the log files. Tracing level can be
classified in two Normal and Verbose. Normal level explains the tracing level
in a detailed manner while verbose explains the tracing levels at each and
every row.
A fact table without measures is known as Factless fact table. It can view the
number of occurring events. For example, it is used to record an event such
as employee count in a company.
How to write a query to show the details of a student from Students table whose
name start with K?
Answer: Query:
SELECT * FROM Student WHERE Student_Name like ‘K%’;