You are on page 1of 2

SQL querys for OAR evening batch students

1)write a query to create a table with 3 column


Note : 1 column must containe unique & check constraint(name should start with A
)
2)write a query to add column to the existing table
3)write a query to delete all the records\
4)difference between primary key and composite key
5)write a query to display all the employees who don?t have manager
6)write a query to display ename & salary from emp table in below format
Employees earning salary
Hint: use alias & concat functions
7)write a query to update the existing value
8)write a query to drop the column
9)what is diffrenece between Round & trunk
10)create 3 tables with primary key & foreign key concepts(ER diagram)
11) Add column called as test to your emp table;
12) Give the command to add the constraint.
13) How to drop the existing constraints
14) How to alter the existing constraints
15) How to rename the existing constraints
16) What is composite key
17)Create one table by applying not null constraint on any one column & insert 2
rows with duplicate values against not null column
later apply the unique constraint & write the expected behaviour
18)How to view avialble constraints in the database
19)how to create new user
20)how to copy the table from one account to another account
21)Display the names of all the employees who are working as clerks and
drawing a salary more than 3000.
22) Display the list of employees who have joined the company before
30-JUN-90 or after 31-DEC-90.
23) select the names of the employee whose names is exactly five characters
in length.
24) Display the names of the employee who are not working as MANAGERS.
25) Display the total salary drawn by ANALYST working in depart number 40.
26) Display depart numbers and total number of employees working in each
department.
27) Display the various jobs along with total salary for each of the jobs
where total salary is greater than 40000.

You might also like