SlideShare a Scribd company logo
S Q L – 2
Q u e s t i o n P a p e r ( A p r i l – 2 0 1 4 ) [ O l d S y l l a b u s ]
1 | Page
M u m b a i B . S c . I T S t u d y
F a c e b o o k | T w i t t e r | I n s t a g r a m | G o o g l e + | Y o u T u b e
– Kamal T.
Time: 3 Hours Total Marks: 100
N.B.: (1) Question No. 1 is Compulsory.
(2) Attempt any four questions from Q.2 – Q.7.
(3) Make suitable assumption whenever necessary and state the assumption made.
(4) Answers to the same questions must be written together.
Q.1 Attempt The Following Question: (20 Marks)
(A) What are the different roles that SQL plays? (5)
(B) Explain the Multi-Tier Architecture with the help of an example. (5)
(C) What is differed Constrain Checking? Explain its type. (5)
(D) Write a DDL Statement to perform the following:
(1) Add a constraint chk_price to blocks table to ensure that if price> 660, then grade
= 'A', if price is between 400 and 600, then grade = 'B' else grade = 'C'.
(2) Create an index on column st_name of students table.
(5)
Q.2 Attempt The Following Question: (20 Marks)
(A) What is a transaction? Explain ANSI/ISO Transaction Model. (6)
(B) Explain the Cast & Case Expressions. (6)
(C) Write the following SQL stmts: (Refer table structure given after Q7).
(1) Find the name of student who has paid Highest Fine.
(2) List the category &B count in each category for following categories 'Systems',
'Mgmt', 'Insurance'.
(3) Decrease all Mgmt category book prices by 10%.
(4) Display all the titles of blocks issued to TYIT Class, which are under RS. 550.
(8)
Q.3 Attempt The Following Question: (20 Marks)
(A) Describe the sequence of steps in which SQL stmt is evaluated. (6)
(B) State &explain the various data types available in SQL-2. (6)
(C) Write the following SQL statements: (Refer table structure given after Q7).
(1) List the titles of books issued in descending order of price & ascending order of
author.
(2) Create view to display students' name, book title, issue data & return date.
(3) Get all the titles of books for author 'J.K. Rowling' for which status='issued'.
(4) Delete the rows from book issue table for all the books returned 1 month before
today.
(8)
S Q L – 2
Q u e s t i o n P a p e r ( A p r i l – 2 0 1 4 ) [ O l d S y l l a b u s ]
2 | Page
M u m b a i B . S c . I T S t u d y
F a c e b o o k | T w i t t e r | I n s t a g r a m | G o o g l e + | Y o u T u b e
– Kamal T.
Q.4 Attempt The Following Question: (20 Marks)
(A) What are Parallel Subquires? Explain with the help of an example. (6)
(B) What is a Referential Cycle? What are the problems with it, how to overcome it? (6)
(C) Write the following SQL Statements: (Refer table structure given after Q7).
(1) List all the authors, whose books have been issued by students.
(2) List the student name & title of the book, for the books which are not yet
returned.
(3) Delete all the books which are never issued at all.
(4) Change the grade to 'C', for all blocks had grade 'B' and are in fiction category or
have status 'issued'.
(8)
Q.5 Attempt The Following Question: (20 Marks)
(A) Explain the different search conditions in the where clause. (6)
(B) What is a Domain? How is it created? What are the advantages? (6)
(C) Write the following SQL Statements: (Refer table structure given after Q7).
(1) List the names of students who have issued more than 2 books.
(2) Remove the permission form user SYIT to see or add data into students table.
(3) List the total number of books issued per class.
(4) List the books' title, author, status for which return date is 7 days from today.
(8)
Q.6 Attempt The Following Question: (20 Marks)
(A) Explain the aggregate functions in SQL. (6)
(B) Explain the concept of NULL values. How can we insert NULL values in the table? (6)
(C) Write the following SQL Statements: (Refer table structure given after Q7).
(1) List all the books whose price is < average price of management category books.
(2) List the class & total fine_paid by each class, for those classes which have 60 or
more students.
(3) After table students to add column, phone_number.
(4) Give TYIT user permission to select data from all the tables.
(8)
S Q L – 2
Q u e s t i o n P a p e r ( A p r i l – 2 0 1 4 ) [ O l d S y l l a b u s ]
3 | Page
M u m b a i B . S c . I T S t u d y
F a c e b o o k | T w i t t e r | I n s t a g r a m | G o o g l e + | Y o u T u b e
– Kamal T.
Q.7 Attempt The Following Question: (20 Marks)
(A) Write a short note on:
(i) Network Model
(ii) Hierarchical Model
(6)
(B) What is Data Integrity? Explain different types of Data Integrity Constraints. (6)
(C) Write the following SQL Statements: (Refer table structure given after Q7).
(1) Using Subquery exists clause, list all the books that are issued by TYIT Class.
(2) Create a view that displays author, category & no. of books written by that
author in each category.
(3) Remove the delete & update permission on books table from all users.
(4) List the book title & number of times the book has been issued, for each book.
(8)
Students Table: –
Column Name Data Type Constraint
libcardno Number Primary Key
st_name Varchar(30)
class Varchar(20)
Books Table: –
Column Name Data Type Constraint
bookid Number Primary Key
category Varchar(30)
title Varchar(30)
author Varchar(30)
price Number
status Varchar(20) Values can be 'issued' or 'available'
grade Char(1) Values can be 'A', 'B' or 'C'
Book issue Table: –
Column Name Data Type Constraint
bookid Number Foreign key references books(bookid)
libcardno Number Foreign key references students(libcardno)
issue_date Date
return_date Date
fine_charged Number
fine_paid Number
bookid, libcardno, issue_date is a composite key.

More Related Content

PDF
[Question Paper] Web Design and Internet Based Applications (Old Syllabus) [A...
PDF
[Question Paper] Design and Analysis of Algorithms (Old Course) [June / 2014]
PDF
[Question Paper] Advanced SQL (Revised Course) [January / 2017]
PDF
[Question Paper] Web Design and Internet Based Applications (Old Syllabus) [A...
PDF
SQL – 2 (May - 2018) [IDOL: Old Course | Question Paper]
PDF
[Question Paper] Advanced SQL (Revised Course) [June / 2016]
PDF
[Question Paper] Visual Basic – 6 (Old Syllabus) [April / 2014]
PDF
[Question Paper] ASP.NET With C# (60:40 Pattern) [April / 2014]
[Question Paper] Web Design and Internet Based Applications (Old Syllabus) [A...
[Question Paper] Design and Analysis of Algorithms (Old Course) [June / 2014]
[Question Paper] Advanced SQL (Revised Course) [January / 2017]
[Question Paper] Web Design and Internet Based Applications (Old Syllabus) [A...
SQL – 2 (May - 2018) [IDOL: Old Course | Question Paper]
[Question Paper] Advanced SQL (Revised Course) [June / 2016]
[Question Paper] Visual Basic – 6 (Old Syllabus) [April / 2014]
[Question Paper] ASP.NET With C# (60:40 Pattern) [April / 2014]

Similar to [Question Paper] SQL – 2 (Old Syllabus) [April / 2014] (20)

PDF
[Question Paper] System Programming (Old Course) [January / 2014]
PDF
Embedded Systems And Programming (May - 2018) [IDOL: Old Course | Question Pa...
PDF
[Question Paper] Object Oriented Programming With C++ (Revised Course) [June ...
PDF
C# (May - 2018) [IDOL - Old Course | Question Paper]
PDF
[Question Paper] Database Concept and System (Old Course) [September / 2013]
PDF
[Question Paper] Advanced Java (Old Syllabus) [April / 2014]
PDF
[Question Paper] Advanced Java (Old Syllabus) [April / 2013]
PDF
B.Sc.IT: SEMESTER - V (May - 2018) [IDOL: Old Course | Question Paper]
PDF
[Question Paper] Database Management Systems (Revised Course) [April / 2015]
PDF
[Question Paper] C++ and Java (Old Course) [June / 2014]
PDF
[Question Paper] Database Management Systems (Revised Course) [June / 2014]
PDF
Java and Data Structure (April - 2015) [Revised Course | Question Paper]
PDF
Java and Data Structure (October - 2016) [Revised Course | Question Paper]
PDF
[Question Paper] Software Engineering (Old Course) [September / 2013]
PDF
[Question Paper] Object Oriented Programming With C++ (Revised Course) [Janua...
PDF
[Question Paper] Operating System (Old Course) [September / 2013]
DOCX
Smu bsc it Spring 2014 solved assignments
PDF
Java and Data Structure (June - 2016) [Revised Course | Question Paper]
PDF
Advanced Java (Revised Syllabus) [QP / May - 2016]
PDF
ASP.NET With C# (December – 2017) [Revised Syllabus | Question Paper]
[Question Paper] System Programming (Old Course) [January / 2014]
Embedded Systems And Programming (May - 2018) [IDOL: Old Course | Question Pa...
[Question Paper] Object Oriented Programming With C++ (Revised Course) [June ...
C# (May - 2018) [IDOL - Old Course | Question Paper]
[Question Paper] Database Concept and System (Old Course) [September / 2013]
[Question Paper] Advanced Java (Old Syllabus) [April / 2014]
[Question Paper] Advanced Java (Old Syllabus) [April / 2013]
B.Sc.IT: SEMESTER - V (May - 2018) [IDOL: Old Course | Question Paper]
[Question Paper] Database Management Systems (Revised Course) [April / 2015]
[Question Paper] C++ and Java (Old Course) [June / 2014]
[Question Paper] Database Management Systems (Revised Course) [June / 2014]
Java and Data Structure (April - 2015) [Revised Course | Question Paper]
Java and Data Structure (October - 2016) [Revised Course | Question Paper]
[Question Paper] Software Engineering (Old Course) [September / 2013]
[Question Paper] Object Oriented Programming With C++ (Revised Course) [Janua...
[Question Paper] Operating System (Old Course) [September / 2013]
Smu bsc it Spring 2014 solved assignments
Java and Data Structure (June - 2016) [Revised Course | Question Paper]
Advanced Java (Revised Syllabus) [QP / May - 2016]
ASP.NET With C# (December – 2017) [Revised Syllabus | Question Paper]
Ad

More from Mumbai B.Sc.IT Study (20)

PDF
Linux System Administration (November – 2018) [Choice Based | Question Paper]
PDF
Advanced Web Programming (November – 2018) [Choice Based | Question Paper]
PDF
Artificial Intelligence (November – 2018) [Choice Based | Question Paper]
PDF
Software Project Management (November – 2018) [Choice Based | Question Paper]
PDF
Next Generation Technologies (November – 2018) [Choice Based | Question Paper]
PDF
Internet Of Things (November – 2018) [Choice Based | Question Paper]
PDF
Enterprise Java (November – 2018) [Choice Based | Question Paper]
PDF
Enterprise Networking (May – 2019) [Choice Based | Question Paper]
PDF
Business Intelligence (May – 2019) [Choice Based | Question Paper]
PDF
Software Quality Assurance (May – 2019) [Choice Based | Question Paper]
PDF
Project Management (April - 2016) [CBSGS - Paper Solution] {Mumbai University}
PDF
Project Management (April - 2015) [CBSGS - Paper Solution] {Mumbai University}
PDF
Project Management (October - 2017) [CBSGS - Paper Solution] {Mumbai University}
PDF
Project Management (October - 2016) [CBSGS - Paper Solution] {Mumbai University}
PDF
Project Management (October - 2015) [CBSGS - Paper Solution] {Mumbai University}
PDF
Project Management (October - 2014) [CBSGS - Paper Solution] {Mumbai University}
PDF
Project Management (May - 2018) [CBSGS - Paper Solution] {Mumbai University}
PDF
Project Management (April - 2017) [CBSGS - Paper Solution] {Mumbai University}
PDF
Project Management (April - 2014) [CBSGS - Paper Solution] {Mumbai University}
PDF
Internet Technology (Practical Questions Paper) [CBSGS - 75:25 Pattern] {2017...
Linux System Administration (November – 2018) [Choice Based | Question Paper]
Advanced Web Programming (November – 2018) [Choice Based | Question Paper]
Artificial Intelligence (November – 2018) [Choice Based | Question Paper]
Software Project Management (November – 2018) [Choice Based | Question Paper]
Next Generation Technologies (November – 2018) [Choice Based | Question Paper]
Internet Of Things (November – 2018) [Choice Based | Question Paper]
Enterprise Java (November – 2018) [Choice Based | Question Paper]
Enterprise Networking (May – 2019) [Choice Based | Question Paper]
Business Intelligence (May – 2019) [Choice Based | Question Paper]
Software Quality Assurance (May – 2019) [Choice Based | Question Paper]
Project Management (April - 2016) [CBSGS - Paper Solution] {Mumbai University}
Project Management (April - 2015) [CBSGS - Paper Solution] {Mumbai University}
Project Management (October - 2017) [CBSGS - Paper Solution] {Mumbai University}
Project Management (October - 2016) [CBSGS - Paper Solution] {Mumbai University}
Project Management (October - 2015) [CBSGS - Paper Solution] {Mumbai University}
Project Management (October - 2014) [CBSGS - Paper Solution] {Mumbai University}
Project Management (May - 2018) [CBSGS - Paper Solution] {Mumbai University}
Project Management (April - 2017) [CBSGS - Paper Solution] {Mumbai University}
Project Management (April - 2014) [CBSGS - Paper Solution] {Mumbai University}
Internet Technology (Practical Questions Paper) [CBSGS - 75:25 Pattern] {2017...
Ad

Recently uploaded (20)

PDF
Computing-Curriculum for Schools in Ghana
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
Cell Types and Its function , kingdom of life
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
Orientation - ARALprogram of Deped to the Parents.pptx
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
Classroom Observation Tools for Teachers
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
A systematic review of self-coping strategies used by university students to ...
PDF
Complications of Minimal Access Surgery at WLH
PDF
Trump Administration's workforce development strategy
PPTX
GDM (1) (1).pptx small presentation for students
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
Cell Structure & Organelles in detailed.
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
Computing-Curriculum for Schools in Ghana
Microbial disease of the cardiovascular and lymphatic systems
Cell Types and Its function , kingdom of life
VCE English Exam - Section C Student Revision Booklet
Orientation - ARALprogram of Deped to the Parents.pptx
STATICS OF THE RIGID BODIES Hibbelers.pdf
Classroom Observation Tools for Teachers
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
A systematic review of self-coping strategies used by university students to ...
Complications of Minimal Access Surgery at WLH
Trump Administration's workforce development strategy
GDM (1) (1).pptx small presentation for students
Abdominal Access Techniques with Prof. Dr. R K Mishra
Anesthesia in Laparoscopic Surgery in India
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Cell Structure & Organelles in detailed.
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Final Presentation General Medicine 03-08-2024.pptx

[Question Paper] SQL – 2 (Old Syllabus) [April / 2014]

  • 1. S Q L – 2 Q u e s t i o n P a p e r ( A p r i l – 2 0 1 4 ) [ O l d S y l l a b u s ] 1 | Page M u m b a i B . S c . I T S t u d y F a c e b o o k | T w i t t e r | I n s t a g r a m | G o o g l e + | Y o u T u b e – Kamal T. Time: 3 Hours Total Marks: 100 N.B.: (1) Question No. 1 is Compulsory. (2) Attempt any four questions from Q.2 – Q.7. (3) Make suitable assumption whenever necessary and state the assumption made. (4) Answers to the same questions must be written together. Q.1 Attempt The Following Question: (20 Marks) (A) What are the different roles that SQL plays? (5) (B) Explain the Multi-Tier Architecture with the help of an example. (5) (C) What is differed Constrain Checking? Explain its type. (5) (D) Write a DDL Statement to perform the following: (1) Add a constraint chk_price to blocks table to ensure that if price> 660, then grade = 'A', if price is between 400 and 600, then grade = 'B' else grade = 'C'. (2) Create an index on column st_name of students table. (5) Q.2 Attempt The Following Question: (20 Marks) (A) What is a transaction? Explain ANSI/ISO Transaction Model. (6) (B) Explain the Cast & Case Expressions. (6) (C) Write the following SQL stmts: (Refer table structure given after Q7). (1) Find the name of student who has paid Highest Fine. (2) List the category &B count in each category for following categories 'Systems', 'Mgmt', 'Insurance'. (3) Decrease all Mgmt category book prices by 10%. (4) Display all the titles of blocks issued to TYIT Class, which are under RS. 550. (8) Q.3 Attempt The Following Question: (20 Marks) (A) Describe the sequence of steps in which SQL stmt is evaluated. (6) (B) State &explain the various data types available in SQL-2. (6) (C) Write the following SQL statements: (Refer table structure given after Q7). (1) List the titles of books issued in descending order of price & ascending order of author. (2) Create view to display students' name, book title, issue data & return date. (3) Get all the titles of books for author 'J.K. Rowling' for which status='issued'. (4) Delete the rows from book issue table for all the books returned 1 month before today. (8)
  • 2. S Q L – 2 Q u e s t i o n P a p e r ( A p r i l – 2 0 1 4 ) [ O l d S y l l a b u s ] 2 | Page M u m b a i B . S c . I T S t u d y F a c e b o o k | T w i t t e r | I n s t a g r a m | G o o g l e + | Y o u T u b e – Kamal T. Q.4 Attempt The Following Question: (20 Marks) (A) What are Parallel Subquires? Explain with the help of an example. (6) (B) What is a Referential Cycle? What are the problems with it, how to overcome it? (6) (C) Write the following SQL Statements: (Refer table structure given after Q7). (1) List all the authors, whose books have been issued by students. (2) List the student name & title of the book, for the books which are not yet returned. (3) Delete all the books which are never issued at all. (4) Change the grade to 'C', for all blocks had grade 'B' and are in fiction category or have status 'issued'. (8) Q.5 Attempt The Following Question: (20 Marks) (A) Explain the different search conditions in the where clause. (6) (B) What is a Domain? How is it created? What are the advantages? (6) (C) Write the following SQL Statements: (Refer table structure given after Q7). (1) List the names of students who have issued more than 2 books. (2) Remove the permission form user SYIT to see or add data into students table. (3) List the total number of books issued per class. (4) List the books' title, author, status for which return date is 7 days from today. (8) Q.6 Attempt The Following Question: (20 Marks) (A) Explain the aggregate functions in SQL. (6) (B) Explain the concept of NULL values. How can we insert NULL values in the table? (6) (C) Write the following SQL Statements: (Refer table structure given after Q7). (1) List all the books whose price is < average price of management category books. (2) List the class & total fine_paid by each class, for those classes which have 60 or more students. (3) After table students to add column, phone_number. (4) Give TYIT user permission to select data from all the tables. (8)
  • 3. S Q L – 2 Q u e s t i o n P a p e r ( A p r i l – 2 0 1 4 ) [ O l d S y l l a b u s ] 3 | Page M u m b a i B . S c . I T S t u d y F a c e b o o k | T w i t t e r | I n s t a g r a m | G o o g l e + | Y o u T u b e – Kamal T. Q.7 Attempt The Following Question: (20 Marks) (A) Write a short note on: (i) Network Model (ii) Hierarchical Model (6) (B) What is Data Integrity? Explain different types of Data Integrity Constraints. (6) (C) Write the following SQL Statements: (Refer table structure given after Q7). (1) Using Subquery exists clause, list all the books that are issued by TYIT Class. (2) Create a view that displays author, category & no. of books written by that author in each category. (3) Remove the delete & update permission on books table from all users. (4) List the book title & number of times the book has been issued, for each book. (8) Students Table: – Column Name Data Type Constraint libcardno Number Primary Key st_name Varchar(30) class Varchar(20) Books Table: – Column Name Data Type Constraint bookid Number Primary Key category Varchar(30) title Varchar(30) author Varchar(30) price Number status Varchar(20) Values can be 'issued' or 'available' grade Char(1) Values can be 'A', 'B' or 'C' Book issue Table: – Column Name Data Type Constraint bookid Number Foreign key references books(bookid) libcardno Number Foreign key references students(libcardno) issue_date Date return_date Date fine_charged Number fine_paid Number bookid, libcardno, issue_date is a composite key.