Professional Documents
Culture Documents
Ques 1 – Consider the following database and display the workers name with the count
of worker having similar names.
Ans - SELECT NAME ,COUNT(*)
FROM Worker
GROUP BY NAME
ORDER BY COUNT(*) DESC,NAME;
Ques 2 – Write a pl/sql program to swap two numbers.
Ans- declare
a number ;
b number;
temp number ;
begin
a:=2;
b:=5;
temp := a;
a:=b;
b:=temp;
BEGIN