This document appears to be an exam for a Database Management course. It contains instructions for the exam, followed by 5 questions. Question 1 asks students to answer 7 out of 10 short questions defining database terms. Question 2 asks students to either differentiate primary and unique keys or explain relational algebra operations, and includes a sub-question about a sample database schema. Question 3 asks students to explain entity attributes or design an ER diagram, and includes sub-questions about anomalies and creating tables. Question 4 asks about anomalies or functional dependencies, and includes a sub-question about writing SQL queries. Question 5 asks students to explain data independence and SQL concepts like subqueries, constraints, and commands.
This document appears to be an exam for a Database Management course. It contains instructions for the exam, followed by 5 questions. Question 1 asks students to answer 7 out of 10 short questions defining database terms. Question 2 asks students to either differentiate primary and unique keys or explain relational algebra operations, and includes a sub-question about a sample database schema. Question 3 asks students to explain entity attributes or design an ER diagram, and includes sub-questions about anomalies and creating tables. Question 4 asks about anomalies or functional dependencies, and includes a sub-question about writing SQL queries. Question 5 asks students to explain data independence and SQL concepts like subqueries, constraints, and commands.
This document appears to be an exam for a Database Management course. It contains instructions for the exam, followed by 5 questions. Question 1 asks students to answer 7 out of 10 short questions defining database terms. Question 2 asks students to either differentiate primary and unique keys or explain relational algebra operations, and includes a sub-question about a sample database schema. Question 3 asks students to explain entity attributes or design an ER diagram, and includes sub-questions about anomalies and creating tables. Question 4 asks about anomalies or functional dependencies, and includes a sub-question about writing SQL queries. Question 5 asks students to explain data independence and SQL concepts like subqueries, constraints, and commands.
This document appears to be an exam for a Database Management course. It contains instructions for the exam, followed by 5 questions. Question 1 asks students to answer 7 out of 10 short questions defining database terms. Question 2 asks students to either differentiate primary and unique keys or explain relational algebra operations, and includes a sub-question about a sample database schema. Question 3 asks students to explain entity attributes or design an ER diagram, and includes sub-questions about anomalies and creating tables. Question 4 asks about anomalies or functional dependencies, and includes a sub-question about writing SQL queries. Question 5 asks students to explain data independence and SQL concepts like subqueries, constraints, and commands.
Subject Name: Database Management Time: 02:30 PM TO 5:00 PM Total Marks: 70 Instructions: 1. Attempt all questions. 2. Make Suitable assumptions wherever necessary. 3. Figures to the right indicate full marks. 4. Use of programmable & Communication aids are strictly prohibited. 5. Use of only simple calculator is permitted in Mathematics. 6. English version is authentic.
Q.1 Answer any seven out of ten. દશમ થ ાં ી કોઇપણ સ તન જવ બ આપો. 14
1. List out types of database system. ૧. Database systemન પ્રક રો લખો. 2. Define super key. ૨. Super keyની વ્ય ખ્ય આપો. 3. List out DML command of SQL. ૩. SQLન DML command લખો. 4. Define Prime attribute. ૪. Prime attributeની વ્ય ખ્ય આપો. 5. List types of Join. ૫. Joinન પ્રક રો લખો. 6. Describe functional dependency. ૬. Functional dependencyનુ વણણન કરો. 7. List four aggregate functions in SQL. ૭. SQLન ચ ર aggregate functions લખો. 8. Define Metadata. ૮. Metadataની વ્ય ખ્ય આપો. 9. Describe foreign key. ૯. Foreign keyનુ વણણન કરો. 10. List out all constraints of oracle. ૧૦. oracleન બધ constraintsન ન મ લખો.
પ્રશ્ન. (અ) Primary key અને Unique key નો તફ વત લખો. ૦૩ ર OR (a) Explain entity integrity constraints. 03 (અ) Entity integrity constraints સમજાવો. ૦૩ (b) Consider a following relational schema & give Relational Algebra 03 1/4 Expressions for following queries. Employee(Emp_name, Emp_id, birth_date, Post, salary) (i) List out all Employees having Post=”Manager”. (ii) Find out only Emp_id and Emp_name having salary greater than 40000. (બ) નીચેની relational schema ને આધ રે નીચેની queries મ ટે Relational ૦૩ Algebra Expressions આપો. Employee(Emp_name, Emp_id, birth_date, Post, salary) (i) List out all Employees having Post=”Manager”. (ii) Find out only Emp_id and Emp_name having salary greater than 40000. OR (b) Explain select operation and project operation in a relational algebra with 03 example. (બ) Relational algebraન select operation અને project operation ઉદ હરણ ૦૩ સ થે સમજાવો. (c) Explain any four disadvantage of file oriented system. 04 (ક) File oriented systemન કોઇ પણ ચ ર disadvantage સમજાવો. ૦૪ OR (c) Explain relational model of DBMS. 04 (ક) DBMSનુ relational model સમજાવો. ૦૪ (d) Explain fully functional dependency with example. 04 (ડ) Fully functional dependency ઉદ હરણ સ થે સમજાવો. ૦૪ OR (d) Explain second Normal Form (2NF) with example. 04 (ડ) Second Normal Form (2NF) ઉદ હરણ સ થે સમજાવો. ૦૪
Q.3 (a) Explain attributes of entity with example. 03
પ્રશ્ન.3 (અ) Entityન attributes ઉદ હરણ સ થે સમજાવો. ૦૩ OR (a) Design an E-R diagram of a Library. 03 (અ) Library નો E-R diagram Design કરો. ૦૩ (b) Explain insertion anomalies. 03 (બ) Insertion anomalies સમજાવો. ૦૩ OR (b) Explain normalization. 03 (બ) Normalization સમજાવો. ૦૩ (c) Create following table having following specification. 04 STUDENT: ( stu_id, stu_name, Address, City, contact_no, Branch_name) (i) Define stu_id as a primary key. (ii) Stu_id must start with ‘S’. (ક) નીચે પ્રમ ણેન specification સ થે નીચેન ુ ટે બલ બન વો. ૦૪ STUDENT: ( stu_id, stu_name, Address, City, contact_no, Branch_name) (i) Define stu_id as a primary key. (ii) Stu_id must start with ‘S’. OR (c) Create following table having following specification. 04 2/4 STUDENT: ( stu_id, stu_name, Address, City, contact_no, Branch_name) (i) Define stu_name as not null. (ii) Student branch must be ‘IT’, ‘Electrical’, ‘Mechanical’ or ‘Civil’. (ક) નીચે પ્રમ ણેન specification સ થે નીચેન ુ ટે બલ બન વો. ૦૪ STUDENT: ( stu_id, stu_name, Address, City, contact_no, Branch_name) (i) Define stu_name as not null. (ii) Student branch must be ‘IT’, ‘Electrical’, ‘Mechanical’ or ‘Civil’. (d) Explain following function with example. 04 (i) Next_day() (ii) Initcap() (ડ) નીચેન function ઉદ હરણ સ થે સમજાવો. ૦૪ (i) Next_day() (ii) Initcap() OR (d) Explain following function with example. 04 (i) To_char() (ii) floor() (ડ) નીચેન function ઉદ હરણ સ થે સમજાવો. ૦૪ (i) To_char() (ii) floor() Q.4 (a) Explain delete anomalies. 03 પ્રશ્ન. ૪ (અ) Delete anomalies સમજાવો. ૦૩ OR (a) Explain transit functional dependency. 03 (અ) Transit functional dependency સમજાવો. ૦૩ (b) Explain generalization. 04 (બ) Generalization સમજાવો. ૦૪ OR (b) Explain natural join operation of RDBMS. 04 (બ) RDBMSન natural join operation સમજાવો. ૦૪ (c) Write SQL queries for the following table: 07 PRODUCT_Master: (prod_no, prod_name, profit, percentage, quantity, sell_price, cost_price) (i) Create table PRODUCT_Master. (ii) Insert one record in this table. (iii) Find out product name having no duplicate data. (iv) Find out product having maximum profit. (v) Delete product having zero quantity. (vi) Add 2% profit in product having sell price is greater than 5000. (vii) Add new field total_price to PRODUCT_Master. (ક) નીચેન ટેબલ મ ટે SQL queries લખો. ૦૭ PRODUCT_Master: (prod_no, prod_name, profit, percentage, quantity, sell_price, cost_price) (i) Create table PRODUCT_Master. (ii) Insert one record in this table. (iii) Find out product name having no duplicate data. (iv) Find out product having maximum profit. (v) Delete product having zero quantity. (vi) Add 2% profit in product having sell price is greater than 5000. (vii) Add new field total_price to PRODUCT_Master. Q.5 (a) Explain Data independence. 04 3/4 પ્રશ્ન. ૫ (અ) Data independence સમજાવો. ૦૪ (b) Explain subqueries in SQL. 04 (બ) SQLની subqueries સમજાવો. ૦૪ (c) Explain check constraints with example. 03 (ક) Check constraints ઉદ હરણ સ થે સમજાવો. ૦૩ (d) Explain following SQL command with example. 03 (i) Group by (ii) Order by. (ડ) નીચેન SQL command ઉદ હરણ સ થે સમજાવો. ૦૩ (i) Group by (ii) Order by.