0% found this document useful (0 votes)
20 views2 pages

Question Set HARSHADA C

The document contains questions about SQL queries. It asks about: 1. Selecting unique records from a table 2. Deleting duplicate records from a table 3. The results of different types of joins between tables 4. Finding the second highest salary from an employee table 5. The syntax for creating a view

Uploaded by

swapnilphade12
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views2 pages

Question Set HARSHADA C

The document contains questions about SQL queries. It asks about: 1. Selecting unique records from a table 2. Deleting duplicate records from a table 3. The results of different types of joins between tables 4. Finding the second highest salary from an employee table 5. The syntax for creating a view

Uploaded by

swapnilphade12
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

SQL - Harshada C

,j
Que1:How to select UNIQUE record) from a table using a SQL Query?

QUE2:How to delete DUPLICATE reco rd s from a table using a SQL


Query?
QWE3:What is the result of Norma)V,oin, Left Outer )oin, Right Outer
(- - .i (
Join and n
Full Outer Join between the tables A & B?
QWE 4:find second max salary from employee:
·I
t

'
QWE 5:write a syntax for view?

Qwe 6:give example on merge stat, ment?

qwe 7:Can we rename a column i,n ~},e output of the SQL query?
. i
__ q':Ye 8:?_'!Pf? Ose ':' StudenJ£PJ_y m!1--.D~:~_!Y.'-'.O .s:q!,Y rl!.i:'2t_,. N~rne, arJ~.JYlarks.

How to get names and marks of thJ top three students??

qwe 8:Suppose a Student column hj5 two columns, Name and Marks.

qwe9:How to get names and marks of the top three students??

qwel0:ip:Nameop:N

a
m
Ii- 1 ,. e

Qwe 10:How to fetch current date and time ??


(

Qwe 11:separete name and surname from your name??


SQL- Harshada C

qwe 13:a null nuU

null b null
I
nullnull c

)
'

Qwe 14:same as 13

op:a b c

qwe 15:give example on case when 177 I


""

qwe 16:write a SQL query to find eJ ployees with same salary


j
,f~r
' -

-="- ~ _ _ . . . . . _ _
i mt « t:
I I ,~ _,

qwe17: Write a SQL query to fetch 9epartments along with the total
salaries

paid for each of them??

qwe 18:Write a SQL query to show II departments along with the


number of people working there.

qwe 19:Write a SQL query to print d tails of employee of employee


'Jennifer' and 'James'.

qwe 20:Write a SQL query to find on y odd rows from mp\ovee tab\e??
1
Qwe 21:Write a SQL query to find all employees who have bonus
record in bonus table??

You might also like