0% found this document useful (0 votes)
9 views

Assignments-2

Uploaded by

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

Assignments-2

Uploaded by

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

1)What is a pseudocolumn?

2)what are different pseudocolumns?write queries to explain..

3)What are several database objects in SQL?

4)What is a synonym?Explain it with a real time scenario.

5)What is a sequence?

6)what is the use of a sequence?Elaborate with a real time example.

7)What are the uses of nextval and currval?

8)what is the difference between rownum and rowid?

9)Give examples to explain the difference between rownum and rowid.

10)Can we alter a sequence?if yes,write the syntax to explain.

11)what are set operators?

12)Why do we use set operator?

13)Difference between union and union all with an example.

14)What are the certain rules/features of set operators?

15)Perform set operation by taking employees and departments table.

16)What is the functionality of spool in sqlplus?

17)What is the difference between substitution variable and constant variable?

18)How can we execute a query that is stored externally in a file?

19)Explain the usage of edit command by using and example in SQLPLUS.

20)Can we pass input as a user in SQLPLUS?If yes,what is the command that we should
use?

21)What is a constraint?explain several types of constraints?

22)What is a primary Key?

23)What is a foreign key?

24)Difference between Primary key and Foreign key?

25)What is a check constraint?Give a scenario and explain.

26)Can we add or drop a constraint?

27)How many Primary key can be there in a table?

28)How can we drop a not null constraint?


29)Write the syntax to add a null constraint.

30)write a query to add a primary key in a table.

31)What are Joins?Why do we use Join?

32)Explain different types of Joins with examples.

33)What is a self Join?elaborate with an example.

34)Explain various outer joins with examples

35)Take 3 tables-Students,course and faculty and perform all the joins to derive
output.

You might also like