You are on page 1of 2
S-4230002 Seat No. ——_ B. C. A. (Sem. III) (CBCS) Examination October - 2019 Paper - CCCS-312 : Database Management System -Il Time : Hours] [Total Marks : 60 1(A) Medium Questions (Any Two) | Explain any two operations that can be performed with ALTER statement, 2. Write a note on PL/SQL block structure. 3, Explain DML Commands in detail, 1(B) Medium Questions / Long Questions (Any Three) Write a note on various SQL Data types in detail Explain any four DATE functions with Example, ‘What is JOIN? Explain different types of JOINS. 4. What are the differences between SQL and PL/SQL? 2(A) Medium Questions (Any Two) Explain “GROUP BY" and “ORDER BY™ clause. 1 2. Explain the Concept of SUB QUERIES in detail 3. Explain the concept of GRANT and REVOKE with suitable example. 2(B) Medium Questions / Long Questions (Any Three) L. What are CONSTRAINTS? Explain different types of CONSTRAINTS, 2. Difference between PROCEDURE and FUNCTIONS, 3. Explain COMMIT, ROLLBACK and SAVEPOINT in brief with Example. 4. Explain the advantage of Creating TRIGGER in database in brief. 3(A) Medium Questions / Long Questions (Any Two) |. What isthe difference between BETWEEN and IN operators in SQL? 2. Explain GROUP BY clause with in SELECT statement 3. What isa VIEW in SQL? How can we create a VIEW ? 3(B) Medium Questions / Long Questions (Any Two) L. What is CURSOR? Explain different types of CURSOR in detail 2. Explain in brief: DDL and DCL statements in SQL 7M) ismy lem) io [om] [9 MI 3, What are TRIGGERS? How can we create and delete trigger in Database? Explain with Example. (A) Medium Questions / Long Questions (Any Two) |. What is the difference between DELETE and TRUNCATE commands? 2. Differentiate between % ROWTYPE and “TYPE 3. Explain the concept of SEQUENCE and SYNONYM in brief. 7M] S-4230002] 1 [Contd... 4(B) Medium Questions / Long Questions (Any Two) I8Mj 1, Write the SQL Queries for the following Tables Hotel (Hotel_No, Name, Address,city) Room (Room_No, Hotel_No, Type, ice) Booking (Hotel_No, Guest_No, Date_From, Date_To, Room_No} Guest (Guest_No, Name, Address,city) a) List full details of all hotels, 1) List full details ofall hotels in ANUAR. )_ List the names and addresses of all guests in ADIPUR, alphabetically ordered by their name 4) Ust all double or family rooms with a price below Rs 400.00 per night, in ascending order of price, 2. Table : Emp_Master Primary Key : Empno Empno E00] Table : Emp_Detail Foreign Key : Empno Empno Department Salary E001 BR 10000 E002 ‘Admin 15000 E003 ____ Finance 12000 E004 HR ___13000 a) Write a query to create table Emp_Master where Empno should start with E only b) Write a query to create sequence named “Employeeld”. ©) Write a query to which displays name of employee who has highest salary 4) Write 2 query to display the list of employee sorted in descending order. 3. Explain the following Terms a) %TYPE b) %ROWCOUNT ©) ISOPEN 4) %FOUND S-4230002] 2 [ 200/6-2 J

You might also like