DBMS Assignment1
DBMS Assignment1
UNIT- I
Two marks questions:
UNIT- III
Two marks questions:
1. Write the syntax of create table command?
2.Write the syntax of update command.
3Write the syntax of alter command.
4 Write the syntax of delete command
5.How can you RENAME the tables.
6. Why do need USER_ CONSTRAINTS table?
7. List and explain any two data constraints.
8. What do you mean by NOT NULL constraint?
9. Differentiate WHERE clause and HAVING clause used in SELECT statement.
10. How do you sort the records of a table in SQL? Give one example.
11.What do mean by GROUP BY clause? Give one example.
12. Why do use LIKE operator in SELECT statement? Give one example.
13. What is the importance of primary key in a table?
3 OR MORE MARKS
1.List and explain six clauses used in SELECT statement
2.List and explain any 6 data types used in oracle.
3. How do create a table from another table? Explain with syntax and example.
4.Explain CHECK constraint with syntax and example.
5. What are the arithmetic and logical operators used in SQL? Explain with example.
6. Explain ‘BETWEEN’ and ‘LIKE’ operators with example.
Consider the table CLIENT_ MASTER given , write the following queries:
a. Find out the names of the clients with CLIENT_ NO=’C00001’
b. Change the city of CLIENT_ NO ‘C00005’ to ‘Bangalore’
c. Retrieve the list of names, city and state of all the clients.
d. Delete from CLIENT_ MASTER where the column STATE holds the value ‘TAMILNADU’
e. Add a column called ‘TELEPHONE’ of data type ‘NUMBER’ and size=10 to the
CLIENT_ MASTER table.
f. Destroy the table CLIENT_ MASTER along with its data.
g. Change the name of the table CLIENT_ MASTER to C_ M.