Professional Documents
Culture Documents
emp table.
11)
Create table employee empno ,ename, salary, DOB, deptno;
12)
Create table department deptno, dname, loc.
13)
Create primanry key on deptno,
14)
Create primary key on empno of emp table.
15)
Create not null constraint on ename.
16)
Create check constraint on DOB, DOB should be above 1978.
17)
Create foreign key on deptno of emp table which refers deptno of
department with cascade.
18)
Change name of the employee table to employee_info.
19)
Change the department table to dept_1.
20)
Change the name of the column DOB to date_of_birth.
21)
Change the data type of the empno to varchar2(20).
22)
Change the ename size to varchar2(1000).
23)
Find the difference between maximum, minimum salaries of all
departments.
24)
List out empno, count of employees who are repeting.
25)
What is the out put when you fire select * from dual;
26)
Write down the difference between delete and truncate and drop.
27)
Write down the difference between a char and varchar2.
28)
Why composit index will be used, how many max columns can be
included in a composit index?
29)
How many primary keys can be allowed in a table?
30)
Can we insert more than one null in unique key column?
31)
What is core-related sub query?
32)
Difference between sub query and correlated subquery?
33)
What is the difference between inner join and outer join?
34)
Whats the out put of select * from emp,dept? how many rows we will get
(emp have 14 rows and dept has 4 rows).
35)
What is cartigian join?
36)
Delete all record from emp table with structure.
37)
What is the difference between group by and order by.
38)
Where do we use where clause and where do we use having clause?
39)
Create primary on empno,ename.
40)
41)
42)
43)
44)
45)
46)
47)
48)
49)
50)