DBMS IMPORTANT QUESTIONS

COMMON TO BTECH CSE-II AND IT

UNIT I 1. Define DBMS? List Database system Applications. [8m] 2. Explain Database Administrator’s responsibilities. [8m] [OR] Explain the main functions of Database Administrator? [8m], [6m] [OR] What are the five main functions of Database Administrator? [8m] 3. List four significant differences between a File processing system and a DBMS. [8m], [10m] 4. Explain the differences between Logical and Physical data independence. 5. Give short notes on Transaction Management. [8m] [OR] Explain the Transaction management in a database. [8m] 6. Describe storage manager component of database system structure. [8m] 7. Explain levels of abstraction in DBMS? [8m] 8. What is Data modeling and explain different types of data modeling in brief. [8m] 9. What is DBMS? Explain the advantages of DBMS. [8m] 10. Explain the drawbacks of traditional file processing systems with examples. [8m] [OR] *What are the major disadvantages of file processing system? [8m], [16m] 11. What is data modeling ? Explain the relational data model in detail. [8m] 12. What are the advantages of DBMS over file processing system? Explain in detail. [8m] 13. Explain different languages that are supported to manage the data in DBMS. [8m] [OR} * What are the types of languages a database system provides? Explain with examples [8m] , [16m]. 14. Explain about Buffer Manager. [8m] 15. Explain about tertiary storage media in detail. [8m] 16. Discuss the Query Processor of Database system structure. [8m] 17. Why would choose a database system instead of simply storing data in operating system files ? When would it makes sense not to use a database system? [8m] 18. What is logical data independence and why is it important? 19. *Explain the different types of integrity constraints with suitable examples. [16m]

PRASAD SIR
1

prasad17gumpina@gmail.com

Define Aggregation. their deposits. [16m] 18. Represent the same using an ER diagram.Design a university level database for maintaining the Student details of different colleges in the university. [6m] 4. [8m] 14. [8m] 15. Discuss the usage of ISA feature in ER diagrams. sex and different items purchased etc.*Explain the ER diagram components and notations with their extended features. [10m] 12. [8m] 2. [8m] 10. [16m] PRASAD SIR 2 prasad17gumpina@gmail. *Explain different constructs that adds expressiveness to the ER Model. their loans. Attributes and relations are represented with an example an example.Design a database for maintaining the Sales data of a Super Market where each customer purchase different products. [6m] 6. Represent the sane using an ER Diagram. What is the class hierarchy? How is it represented in the ER diagrams? 8. Only consider the personal details and the college and branch details of the student belong.Explain how ER diagrams are used in representing the database design. [8m] 7. 13. Explain the purpose of the ER diagrams and describe how the Entities. Determine the entities and relationships. age. which enables to analyze the customers interest basing on income. What is composite attribute? How to model it in the ER diagram. Bank maintains data about customers. age. What is a weak entity set? Differentiate between entity set and strong entity set. What is the problem associated with aggregation? Discuss the remedies. sex. [8m] 3. Write a detail note on participation constraint.Design a database for maintaining the employee data where each employee is assigned with a project and working under a project manager. [6m] 16.DBMS IMPORTANT QUESTIONS COMMON TO BTECH CSE-II AND IT UNIT II 1.[6m 11. Represent the same using an ER Diagram. Maintain the sales details. Explain additional features of ER Model that helps in Conceptual Design for Large enterprises. customer personal details such as income. [8m] 9. What is a partial key? How is it represented in ER diagram? Give an example. lockers. Explain different symbols that are used in ER Diagrams with an example. [10m] 17. What is descriptive attribute? Explain [4m] 5.com . Explain with an example.. Construct an ER diagram for a bank Database.

*Explain the several choices and issues involved in Conceptual design with ER Model. (3m) 25. age). Write about the different types of attributes. Key constraints. dname. a child must be identified uniquely by name when the parent (who is an employee. describe how an ER diagram translated into a relational database schema (collection of tables with associated constraints) [16m] 26. assume that only one parent works for the company) is known. General constraints.com .* A company database needs to store information about employees (ssn. salary. [8m PRASAD SIR 3 prasad17gumpina@gmail. What is the difference between a candidate key and a primary key for a given relation? What is a super key? [6m] 24. Employee works in departments. Draw an ER Diagram that captures this information. budget) and children of employees (name. each department is managed by an employee. designation. name. Explain the concept of aggregation and specialization with examples. [6m] 23. departments(dno. We are not interested in information about child once the parent leaves the organization. What are the two types of constraints in E. Foreign key constraints. phone).R diagram? Explain. [16m] 21. address. [16m] 20. (3m) ii.DBMS IMPORTANT QUESTIONS COMMON TO BTECH CSE-II AND IT 19. [4m] 22.Explain the following i. (2m) iii. In logical database design.

which is a procedural language. Define the divisible operation in terms of the basic Relational Algebra operations. What is a view? Explain about views in detail. saddress) Parts (pid. Write the following Queries in Tuple relational calculus and Domain relational calculus. What is a view? How does views support logical data independence and how queries on views are evaluated? Algebra. Unlike join. Selection and Projection? [8m] 5. 6. Define all the variations of the join operation. cost) List the names of suppliers who supply blue part. [8m] [8m] 8. pid: integer. sname. Key constraints ii. List the suppliers details who supply “Bolts” colored “Red” i. ii.com . Relational calculus is said to be a declarative language. PRASAD SIR 4 prasad17gumpina@gmail. color) Catalog (sid. [8m] 4.DBMS IMPORTANT QUESTIONS COMMON TO BTECH CSE-II AND IT UNIT III 1. cost: real) The key fields are underlined. [8m] 3. (c) Find the names of suppliees who supply some red part (d) Find the parts of sids such that the supplies with the first sid changes more. Explain about the following i. sname: string. address: string) Parts (pid: integer. Explain why. Specifying foreign key constraints in SQL with an example. [8m] 7. 2. the division operation is not given special treatment in database systems. Consider the following Schema: [16m] Suppliers (sid: integer. Why is the join operation given special attention? Cannot we express every join operation in terms of Cross-product. The catalog relation lists the price changes for parts by supplies. (b) Find the sids of suppliees who supply every red part or supply every green part. color: string) Catalog (sid: integer. in contrast to algebra. pname: string. Explain the distinction. pid. Using the following schema answer the following queries in Relational Suppliers (sid. Describe a typical query that calls for division. (a) Find the sids of suppliees who supply every red part. pname.

List the Sailors who booked Red boat on “10/10/2009” List the sailor whose rating is “A” and booked a “Red” boat i. [8m] 11. Define the terms unity and degree of relation.Explain in brief different types of Joins with suitable example. sailor-age) Boats (boat-id. ProjectName. List all the employee details who are working under project manager “Clevee” iii. sailor-name. List the supplier details and part details of those whose cost is less than $30. Using the following schema represent the following queries using Tuple relational calculas : [8m] PROJECT (Projectnum. 13. booked-date) List all the boat details whose color is “Red” List the Sailor details whose have not booked a boat on “10/10/2009” List the Sailor details who are aged more than 50. Find Employee details working on a project name starts with ‘L’ ii. What is a relation? Differentiate between relation schema and relation instance. Explain how a view/table can be created/destroyed with proper syntax and example. [8m] 17. iii. sailor-rating. [8m] 18. Explain View and how it is different from Table. updatable and non-updatable views? Explain the advantages of view in maintaining the security. List the employees who are still not assigned with any project.com . [8m] 10. Explain Inner Join and outer Join with suitable example. [8m] 15. ii. Project Manager) EMPLOYEE (Empnum. iv. What is view. boat-name. Empnum) i. iv. select project set rename. Using the following schema write the queries using Relational Algebra. boat-color) Reserves (sailor-id. 9. What SQL construct enables the definition of a relation? What PRASAD SIR 5 prasad17gumpina@gmail. Explain the following fundamental operations of relational algebra. iv. [6m] 12. What is a relational database query? Explain with an example. What are domain constraints. v. List the employees who are working in more than one project. Relational Calculas: [10m] Sailors (sailor-id. List the part details that are supplied by supplier whose name starts with “S”. boat-id. ProjectType.DBMS IMPORTANT QUESTIONS COMMON TO BTECH CSE-II AND IT iii. Empname) ASSIGNED_TO (Projectnum. [8m] 16. 14.

[5m] database design. [16m] 20. [5m] 23. while converting ER to relational model how entity set is translated. What is a view and explain different types of views and how they can be created using SQL? [6m] 21. street. In logical the weak the SQL constructs to modify destroy the structure of tables. Write the relational algebra. manager-name) Give an expression in the relational algebra. [5m] ii. Find the street. [5m] 22. Define relational algebra. Find the sailorname.com . color of the boat reserved of those sailors whose age is more than 35. i. sailorname. the tuple relational calculus expressions for the following relational database queries? (4+4+4+4m) Sailor( sailor id. city) Manager (employee-name. Day) Boat (boat id. for the following query. Tuple and Domain relational calculus. city) Works (employee-name. city) Works (employee-name. Find the names of all employees who work for “XYZ” bank. [6m] 25. age of the youngest sailor? ii. tuple relational calculus and domain relational calculus for the following queries. Find the average age of sailor for each rating level. company-name. Boat id. Boat id. What are views? 24. city) Manager (employee-name.DBMS IMPORTANT QUESTIONS COMMON TO BTECH CSE-II AND IT constructs allow modification of relation instances? [8m] 19. manager-name) Give an expression in the relational algebra. Find the names of all employees who work for estate bank. Employee (employee-name. age) Reserves (Sailor id. salary) Company (company-name. Find the sailorname. the tuple relational calculus. 26. color) i. rating. What is relational completeness? If a query language is relationally PRASAD SIR 6 prasad17gumpina@gmail. Consider the following database. iii. city of the employee working under manager “Krishna”. Employee (employee-name. and the domain relational calculus. salary) Company (company-name. Boatname. company-name. street. Find the number of reservations for each red boat on a particular day? iv. Consider the following database .

[4m] 27. iii. ii. Does a view has a separate set of data? Explain [6m] 31. [8m] 32. Dnumber) Works-on (ESSN. Dnumber. Explain. Pnumber.000 per year or work in department 5 and make over 30. Dnumber) Department (Dname. [4m] 29. Relationship) Write the queries in Relational Algebra to (3+3+3+3m) i. Dependent-name. Bdate. Address. Dlocations) Project (Pname. SSN. [8m] PRASAD SIR 7 prasad17gumpina@gmail. Retrieve all employees who either work in department 4 and make over 25. iv. can you write any desired query in that language.000. Hours) Dependents (ESSN.com . Explain Outer Join with suitable example and how it differs from other joins. [6m] 30. Pnumber.DBMS IMPORTANT QUESTIONS COMMON TO BTECH CSE-II AND IT complete. Retrieve the name and address of all employees who work for the “Research” department. Salary. Explain about Null values in SQL. MGRSTART_date) Dept-locations (Dnumber. Employee (Name. Sex. Plocation. 28. Explain in brief about SELECTION and PROJECTION with suitable example. Sex. List all the projects on which employee “Smith” is working. MGRSSN. Consider the following schema for a COMPANY database. Are there any restrictions on updating a view formed from a single table. Retrieve the Social Security numbers of all employees who either work in department 5 or directly supervise a employee who works in department 5.

Write the following queries in SQL using Nested queries concept for following Schema. Find sailors whose rating is better than some sailor called raghu. ii. iv. ii. iii. Find the names of sailors who have not reserved red boat. What is grouping? Is there a counterpart in Relational Algebra? Explain this feature and discuss the interaction of the HAVING and WHERE PRASAD SIR 8 prasad17gumpina@gmail. iii. bid: integer. What is correlated nested query? Explain with an example. Find sids of suppliers who supply a red part or a green part. cost: real) (a) The key fields are underlined. 2. For every suppliers that only supplies green parts. Find the pnames of parts supplied by raghu supplier and no one else. rating: integer. [12m] Sailors (sid: integer. address: string) Parts (pid: integer. 5. color: string) Catalog (sid: integer. pname: string. day: date) i. pid: integer. Find the names of sailors who have reserved all boats.com . iv. bname: string. Find the pnames of parts for which there is some supplier. sname: string. The catalog relation lists the price changes for parts by supplies. Find sids of suppliers who supply a red part and a green part. print the name of the supplier. (b) The key fields are underlined. color: string) Reserves (sid: integer. What are the differences between Integrity constraints and Triggers? [6m] 6. [4m] 4. iii. Write the following queries in SQL. sname: string. The catalog relation lists the price changes for parts by supplies. Consider the following Schema: Suppliers (sid: integer. Write the following queries in SQL. age: real) Boats (bid: integer. Explain the following in SQL with examples. [8m] i.DBMS IMPORTANT QUESTIONS COMMON TO BTECH CSE-II AND IT UNIT IV 1. Find the snames of suppliers who supply every part. [8m] i. Find the sids of suppliers who supply only red part. [16m] (a) Nested Queries (b) Correlated Queries (c) Grooup by and Having Clauses (d) Triggers 3. Find the names of sailors who have reserved both red and a green boat ii.

List all the names of suppliers who supply blue part. boatname. pname. Explain GROUP BY and HAVING clauses with suitable examples. Mention any restrictions that must be satisfied by the fields that appears in the GROUP BY Clause. rating. 11. v. List the supplier details who supply “Bolts” colored “Red” iii. Find the No. boat_id. [10m] Suppliers (sid. Explain any three Aggregate operators with proper syntax and suitable example. sname. [4m] 15.Describe Embedded SQL with suitable examples. 7. sailorname. What is NULL and explain its importance? [4m] 9. Find the average of sailor for each rating level that at least 2 sailors. saddress) Parts (pid. List the parts that are supplied by supplier “HMT” whose cost is more than 5000. Why null values not preferable in a relation. color) i. ii. Find the age of the youngest sailor for each rating level? ii. cost) i. Boat_id. [6m 13. pid.Using the following schema answer the following queries in SQL. Write the SQL expressions for the following relational database? [10m] Sailor_schema (sailor_id. Write queries for the following using the given information Emp_Name DOB DOJ Emp_Salary Bonus Buelin 06-12-1983 07-08-2005 15000 600 Andy 12-01-1970 06-12-1973 20000 1200 Lubber 07-08-1985 12-04-2006 13000 500 Zobra 08-02-1960 07-03-1982 25000 1500 [16m] DOR 07-08-2055 06-12-2043 12-04-2056 07-03-2032 PRASAD SIR 9 prasad17gumpina@gmail. [6m] 10. [6m] 12. List the part details that are supplied by supplier whose name starts with “B”. List the supplier details and part details of those whose cost is less than $30.com . color) Catalog (sid. Find the age of the youngest sailor who is eligible to vote for each rating level with at least two such sailors? iii. of reservations for each red boat? iv. iv. [6m] 14. 16. age) Reserves (sailor_id.DBMS IMPORTANT QUESTIONS COMMON TO BTECH CSE-II AND IT clauses. What is a trigger and explain in brief about different types of Triggers. day) Boat_Schema (boat_id. Explain nested queries with example in SQL? [6m] 8.

Branchcity. Branch (branch name. loan number. Branchcity. Describe the “dynamic SQL” [3m] 19. [8m] Branch (branch name. v. Find the names of all branches in Loan Schema? ii. Year. Display customernames in alphabetical order who have a loan at the Newyork branch? iv. give the expressions in SQL. Totalmarks. Account number) i. Find all the customers who reside outside Newyork and having both Loan and Deposit at Newyork branch. Average. empname. For the following relational database write the expressions in SQL. customerstreet.DBMS IMPORTANT QUESTIONS COMMON TO BTECH CSE-II AND IT (a) Find total salary of employees from emptable? (b) Find months between employee DOJ and DOR from emp-schema? (c) Create new salary table using the empno. Find the names of all customers whose street address include substring ‘Main’ ii. [4m] 20. Stnum. Account number. (3+3+3+3+4m) 22. customerstreet. Semester) PRASAD SIR 10 prasad17gumpina@gmail. Amount) Borrower (customername. balance) Depositor (customername. Find set of all customer names who have an account at the bank? 21. customercity) Loan (Branchname. loan number) Account (Branchname. iv. account or both at bank? iii. Amount) Borrower (customername.com . Using the relational schema: STUDENT (Stname. balance) Depositor (customername. Account number. Explain different Binary Operations? [6m] 18. What is an unsafe query? Give an example and explain why it is important to disallow such queries. loan number) Account (Branchname. Find all customers who have a loan at Newyork bank and whose name is neither smith nor jones. Find all customers having laon. Assets) Customer (customername. customercity) Loan (Branchname. loan number. Account number) i. Find average balance for each customer who lives in Harrison and having at least three accounts? iii. Assets) Customer (customername. and empsalary from existing table? (d) Arrange empnames in ascending and descending order? 17. Find the customers from all branches who have maximum loan or deposit in that branch. Using the following relational database.

Get the name and marks of students who are in the room number 101 in ascending order of name. What are the steps to be followed while creating a table in SQL. ii. [5m] PRASAD SIR 11 prasad17gumpina@gmail. Obtain the room number allotted to “Kumar” iii. [5m] 24. Roomnum) Represent the following queries in SQL. Get the student details such as name and total marks of 2nd year 2nd semester students.com . What are the various salient features of the SQL. (3+3+3+3m) 23. Obtain the names of students staying in room number 101 and secured more than 60% of marks. iv.DBMS IMPORTANT QUESTIONS COMMON TO BTECH CSE-II AND IT HOSTEL (Stnum. i.

Sign up to vote on this title
UsefulNot useful

Master Your Semester with Scribd & The New York Times

Special offer: Get 4 months of Scribd and The New York Times for just $1.87 per week!

Master Your Semester with a Special Offer from Scribd & The New York Times