SlideShare a Scribd company logo
1 of 3
Download to read offline
B.SC.IT: SEMESTER – V
[IDOL – Old Course]
SQL – 2
MUMBAI UNIVERSITY
QUESTION PAPER
SQL – 2
(MAY – 2018 | IDOL – OLD COURSE)
B.SC.IT
(SEMESTER – V)
KjT MUMBAI B.SC.IT STUDY
FACEBOOK | TWITTER | INSTAGRAM | GOOGLE+ | YOUTUBE | SLIDESHARE | TUMBLR | GITHUB
PAGE
1
Time: 3 Hours Total Marks: 100
N.B.: (1) Question No. 1 is Compulsory.
(2) Attempt any four from Question Nos. 2 to 7.
(3) Make Suitable Assumptions Wherever Necessary And State The Assumptions Made.
(4) Answer To The Same Question Must Be Written Together.
(5) Number To The Right Indicates Marks.
(6) Draw Neat Labeled Diagrams Wherever Necessary.
Q.1 ATTEMPT THE FOLLOWING QUESTIONS: (20 MARKS)
(A) Differentiate between DML and DDL Statements. (5)
(B) What are Views? State the difference between Views and Tables. (5)
(C) Explain correlated Sub Queries with example. (5)
(D) Explain the Access Control Statements in SQL. (5)
Q.2 ATTEMPT THE FOLLOWING QUESTIONS: (20 MARKS)
(A) Write SQL statement to create WORKERS, SECTIONS, and AREAS tables with all the constraints as
given after Q. No. 7
(8)
(B) Write a short note on data types of SQL2. (6)
(C) Explain IN, ANY and ALL in SQL2. (6)
Q.3 ATTEMPT THE FOLLOWING QUESTIONS: (20 MARKS)
(A) Write the SQL queries for the following (refer to the tables given after Q. No. 7)
(i) List all the first name and last name of workers with their managers.
(ii) List the entire worker id and worker name who belong to section id 25.
(iii) List first name, section name and area name of all employees.
(iv) List worker id, first name concatenated with salary and commission from the workers table. For
e.g. worker_id: first_name’s salary Rs. XXXXX has commission Rs. XXX
(8)
(B) State and explain Aggregate Functions. (6)
(C) Explain Primary Key and Foreign Key with an example. (6)
Q.4 ATTEMPT THE FOLLOWING QUESTIONS: (20 MARKS)
(A) Write the SQL queries for the following (refer to the tables given after Q. No. 7)
(i) List the workers whose salary is below 25000 and commission is between 2000 and 5000.
(ii) List the names of the employees whose first_name starts with 'A' or 'B'.
(iii) List the first_name of workers in the ascending order of the section and within that in the
descending order of the salary.
(iv) List the section name, section id and area name whose area id is 7 or city is 'DELHI'.
(8)
(B) Write a short note on joins. (6)
(C) Explain the following in-built SQL2 functions with examples:
(i) SUBSTR
(ii) CAST
(iii) TRIM
(6)
Q.5 ATTEMPT THE FOLLOWING QUESTIONS: (20 MARKS)
(A) Write the SQL queries for the following (refer to the tables given after Q. No. 7)
(i) List the worker id, salary, section name and area name of workers who have completed more
than 3 years.
(ii) List the first name, last name and hire date of workers who work in the section which is in city
'BANGALORE'.
TURN OVER
(8)
MUMBAI UNIVERSITY
QUESTION PAPER
SQL – 2
(MAY – 2018 | IDOL – OLD COURSE)
B.SC.IT
(SEMESTER – V)
KjT MUMBAI B.SC.IT STUDY
FACEBOOK | TWITTER | INSTAGRAM | GOOGLE+ | YOUTUBE | SLIDESHARE | TUMBLR | GITHUB
PAGE
2
(B) What is locking and why is it required? (6)
(C) What are the different problems that occur due to Concurrency? (6)
Q.6 ATTEMPT THE FOLLOWING QUESTIONS: (20 MARKS)
(A) Write the SQL queries for the following (refer to the tables given after Q. No. 7)
(i) Write a query to display each sections name, area, number of workers and the average salary for
all the workers in that section. Label the columns Name, Location, Number of People and Salary,
respectively. Round the average salary to two decimal places.
(ii) Display the manager number and the salary of the lowest paid worker for that manager. Exclude
anyone whose manager is not known. Exclude any groups where the minimum salary is 40000 or
less. Sort the output in the descending order of the salary.
(8)
(B) Explain Single Database and Multi Database Architecture. (6)
(C) Explain UNION and ORDER BY with examples. Differentiate between the two. (6)
Q.7 ATTEMPT THE FOLLOWING QUESTIONS: (20 MARKS)
(A) Write the SQL queries for the following (refer to the tables given after Q. No. 7)
(i) Write a query that produces the following for each worker:
<worker last name> earns <salary> monthly but wants <3 times
salary>. Label the column Dream Salaries.
(ii) Create a view called WORKERS_VU based on the workers id, workers last name and section id
from the workers table. Change the heading for the workers name to EMP NAME.
(8)
(B) What are Triggers? Explain its syntax with an example. (6)
(C) Explain the concept of null values. How can null values be inserted in a table? (6)
Table: WORKERS
ATTRIBUTE DATA TYPE CONSTRAINT
WORKER_ID NUMBER PRIMARY KEY
FIRST_NAME VARCHAR
LAST_NAME VARCHAR
EMAIL VARCHAR
HIREDATE DATE
SALARY NUMBER
MGR_ID NUMBER
COMM_PCT NUMBER FOREIGN KEY REFERRING WORKERS (WORKER_ID)
SECTION_ID NUMBER FOREIGN KEY REFERRING SECTION (SECTION_ID)
Table: SECTION
ATTRIBUTE DATA TYPE CONSTRAINT
SECTION_ID NUMBER PRIMARY KEY
SECTION_NAME VARCHAR
MGR_ID NUMBER FOREIGN KEY REFERRING WORKERS (WORKER_ID)
AREA_ID NUMBER FOREIGN KEY REFERRING AREA (AREA_ID)
Table: AREAS
ATTRIBUTE DATA TYPE CONSTRAINT
AREA_ID NUMBER PRIMARY KEY
AREA_NAME VARCHAR
CITY VARCHAR

More Related Content

Similar to SQL – 2 (May - 2018) [IDOL: Old Course | Question Paper]

Web Design and Internet Based Applications (May - 2018) [IDOL: Old Course | Q...
Web Design and Internet Based Applications (May - 2018) [IDOL: Old Course | Q...Web Design and Internet Based Applications (May - 2018) [IDOL: Old Course | Q...
Web Design and Internet Based Applications (May - 2018) [IDOL: Old Course | Q...Mumbai B.Sc.IT Study
 
Embedded Systems And Programming (May - 2018) [IDOL: Old Course | Question Pa...
Embedded Systems And Programming (May - 2018) [IDOL: Old Course | Question Pa...Embedded Systems And Programming (May - 2018) [IDOL: Old Course | Question Pa...
Embedded Systems And Programming (May - 2018) [IDOL: Old Course | Question Pa...Mumbai B.Sc.IT Study
 
Data Warehousing (October – 2014) [Question Paper | CBSGS: 60:40 Pattern]
Data Warehousing (October – 2014) [Question Paper | CBSGS: 60:40 Pattern]Data Warehousing (October – 2014) [Question Paper | CBSGS: 60:40 Pattern]
Data Warehousing (October – 2014) [Question Paper | CBSGS: 60:40 Pattern]Mumbai B.Sc.IT Study
 
Data Warehousing (April – 2014) [Question Paper | CBSGS: 60:40 Pattern]
Data Warehousing (April – 2014) [Question Paper | CBSGS: 60:40 Pattern]Data Warehousing (April – 2014) [Question Paper | CBSGS: 60:40 Pattern]
Data Warehousing (April – 2014) [Question Paper | CBSGS: 60:40 Pattern]Mumbai B.Sc.IT Study
 
Data Warehousing (October – 2015) [Question Paper | CBSGS: 75:25 Pattern]
Data Warehousing (October – 2015) [Question Paper | CBSGS: 75:25 Pattern]Data Warehousing (October – 2015) [Question Paper | CBSGS: 75:25 Pattern]
Data Warehousing (October – 2015) [Question Paper | CBSGS: 75:25 Pattern]Mumbai B.Sc.IT Study
 
Data Warehousing (October – 2016) [Question Paper | CBSGS: 75:25 Pattern]
Data Warehousing (October – 2016) [Question Paper | CBSGS: 75:25 Pattern]Data Warehousing (October – 2016) [Question Paper | CBSGS: 75:25 Pattern]
Data Warehousing (October – 2016) [Question Paper | CBSGS: 75:25 Pattern]Mumbai B.Sc.IT Study
 
[Question Paper] Advanced Java (Old Syllabus) [April / 2014]
[Question Paper] Advanced Java (Old Syllabus) [April / 2014][Question Paper] Advanced Java (Old Syllabus) [April / 2014]
[Question Paper] Advanced Java (Old Syllabus) [April / 2014]Mumbai B.Sc.IT Study
 
Management Information Systems (May - 2018) [IDOL: Old Course | Question Paper]
Management Information Systems (May - 2018) [IDOL: Old Course | Question Paper]Management Information Systems (May - 2018) [IDOL: Old Course | Question Paper]
Management Information Systems (May - 2018) [IDOL: Old Course | Question Paper]Mumbai B.Sc.IT Study
 
C# (May - 2018) [IDOL - Old Course | Question Paper]
C# (May - 2018) [IDOL - Old Course | Question Paper]C# (May - 2018) [IDOL - Old Course | Question Paper]
C# (May - 2018) [IDOL - Old Course | Question Paper]Mumbai B.Sc.IT Study
 
[Question Paper] Web Design and Internet Based Applications (Old Syllabus) [A...
[Question Paper] Web Design and Internet Based Applications (Old Syllabus) [A...[Question Paper] Web Design and Internet Based Applications (Old Syllabus) [A...
[Question Paper] Web Design and Internet Based Applications (Old Syllabus) [A...Mumbai B.Sc.IT Study
 
ASP.NET With C# (May – 2018) [IDOL: Revised Course | Question Paper]
ASP.NET With C# (May – 2018) [IDOL: Revised Course | Question Paper]ASP.NET With C# (May – 2018) [IDOL: Revised Course | Question Paper]
ASP.NET With C# (May – 2018) [IDOL: Revised Course | Question Paper]Mumbai B.Sc.IT Study
 
Informatics practises 12th CBSE INDIA 2012-2013 MAIN EXAM paper
Informatics practises 12th CBSE INDIA 2012-2013 MAIN EXAM paperInformatics practises 12th CBSE INDIA 2012-2013 MAIN EXAM paper
Informatics practises 12th CBSE INDIA 2012-2013 MAIN EXAM paperHarish Gyanani
 
Data Warehousing (April – 2016) [Question Paper | CBSGS: 75:25 Pattern]
Data Warehousing (April – 2016) [Question Paper | CBSGS: 75:25 Pattern]Data Warehousing (April – 2016) [Question Paper | CBSGS: 75:25 Pattern]
Data Warehousing (April – 2016) [Question Paper | CBSGS: 75:25 Pattern]Mumbai B.Sc.IT Study
 
B.SC.IT: Semester - VI (May - 2018) [IDOL - Old Course | Question Paper]
B.SC.IT: Semester - VI (May - 2018) [IDOL - Old Course | Question Paper]B.SC.IT: Semester - VI (May - 2018) [IDOL - Old Course | Question Paper]
B.SC.IT: Semester - VI (May - 2018) [IDOL - Old Course | Question Paper]Mumbai B.Sc.IT Study
 
Rdbms class test ii sep 2019
Rdbms class test  ii sep 2019Rdbms class test  ii sep 2019
Rdbms class test ii sep 2019ARVIND SARDAR
 
BPR (May - 2018) [IDOL: Old Course | Question Paper]
BPR (May - 2018) [IDOL: Old Course | Question Paper]BPR (May - 2018) [IDOL: Old Course | Question Paper]
BPR (May - 2018) [IDOL: Old Course | Question Paper]Mumbai B.Sc.IT Study
 
[Question Paper] Database Management Systems (Revised Course) [June / 2014]
[Question Paper] Database Management Systems (Revised Course) [June / 2014][Question Paper] Database Management Systems (Revised Course) [June / 2014]
[Question Paper] Database Management Systems (Revised Course) [June / 2014]Mumbai B.Sc.IT Study
 
ERP Systems (May - 2018) [IDOL: Old Course | Question Paper]
ERP Systems (May - 2018) [IDOL: Old Course | Question Paper]ERP Systems (May - 2018) [IDOL: Old Course | Question Paper]
ERP Systems (May - 2018) [IDOL: Old Course | Question Paper]Mumbai B.Sc.IT Study
 
information practices cbse based paper.docx
information practices cbse based paper.docxinformation practices cbse based paper.docx
information practices cbse based paper.docxKapilSidhpuria3
 

Similar to SQL – 2 (May - 2018) [IDOL: Old Course | Question Paper] (20)

Web Design and Internet Based Applications (May - 2018) [IDOL: Old Course | Q...
Web Design and Internet Based Applications (May - 2018) [IDOL: Old Course | Q...Web Design and Internet Based Applications (May - 2018) [IDOL: Old Course | Q...
Web Design and Internet Based Applications (May - 2018) [IDOL: Old Course | Q...
 
Embedded Systems And Programming (May - 2018) [IDOL: Old Course | Question Pa...
Embedded Systems And Programming (May - 2018) [IDOL: Old Course | Question Pa...Embedded Systems And Programming (May - 2018) [IDOL: Old Course | Question Pa...
Embedded Systems And Programming (May - 2018) [IDOL: Old Course | Question Pa...
 
Data Warehousing (October – 2014) [Question Paper | CBSGS: 60:40 Pattern]
Data Warehousing (October – 2014) [Question Paper | CBSGS: 60:40 Pattern]Data Warehousing (October – 2014) [Question Paper | CBSGS: 60:40 Pattern]
Data Warehousing (October – 2014) [Question Paper | CBSGS: 60:40 Pattern]
 
Data Warehousing (April – 2014) [Question Paper | CBSGS: 60:40 Pattern]
Data Warehousing (April – 2014) [Question Paper | CBSGS: 60:40 Pattern]Data Warehousing (April – 2014) [Question Paper | CBSGS: 60:40 Pattern]
Data Warehousing (April – 2014) [Question Paper | CBSGS: 60:40 Pattern]
 
Data Warehousing (October – 2015) [Question Paper | CBSGS: 75:25 Pattern]
Data Warehousing (October – 2015) [Question Paper | CBSGS: 75:25 Pattern]Data Warehousing (October – 2015) [Question Paper | CBSGS: 75:25 Pattern]
Data Warehousing (October – 2015) [Question Paper | CBSGS: 75:25 Pattern]
 
Data Warehousing (October – 2016) [Question Paper | CBSGS: 75:25 Pattern]
Data Warehousing (October – 2016) [Question Paper | CBSGS: 75:25 Pattern]Data Warehousing (October – 2016) [Question Paper | CBSGS: 75:25 Pattern]
Data Warehousing (October – 2016) [Question Paper | CBSGS: 75:25 Pattern]
 
[Question Paper] Advanced Java (Old Syllabus) [April / 2014]
[Question Paper] Advanced Java (Old Syllabus) [April / 2014][Question Paper] Advanced Java (Old Syllabus) [April / 2014]
[Question Paper] Advanced Java (Old Syllabus) [April / 2014]
 
Management Information Systems (May - 2018) [IDOL: Old Course | Question Paper]
Management Information Systems (May - 2018) [IDOL: Old Course | Question Paper]Management Information Systems (May - 2018) [IDOL: Old Course | Question Paper]
Management Information Systems (May - 2018) [IDOL: Old Course | Question Paper]
 
C# (May - 2018) [IDOL - Old Course | Question Paper]
C# (May - 2018) [IDOL - Old Course | Question Paper]C# (May - 2018) [IDOL - Old Course | Question Paper]
C# (May - 2018) [IDOL - Old Course | Question Paper]
 
[Question Paper] Web Design and Internet Based Applications (Old Syllabus) [A...
[Question Paper] Web Design and Internet Based Applications (Old Syllabus) [A...[Question Paper] Web Design and Internet Based Applications (Old Syllabus) [A...
[Question Paper] Web Design and Internet Based Applications (Old Syllabus) [A...
 
ASP.NET With C# (May – 2018) [IDOL: Revised Course | Question Paper]
ASP.NET With C# (May – 2018) [IDOL: Revised Course | Question Paper]ASP.NET With C# (May – 2018) [IDOL: Revised Course | Question Paper]
ASP.NET With C# (May – 2018) [IDOL: Revised Course | Question Paper]
 
Informatics practises 12th CBSE INDIA 2012-2013 MAIN EXAM paper
Informatics practises 12th CBSE INDIA 2012-2013 MAIN EXAM paperInformatics practises 12th CBSE INDIA 2012-2013 MAIN EXAM paper
Informatics practises 12th CBSE INDIA 2012-2013 MAIN EXAM paper
 
Ip xi iii_ut_14-15
Ip xi iii_ut_14-15Ip xi iii_ut_14-15
Ip xi iii_ut_14-15
 
Data Warehousing (April – 2016) [Question Paper | CBSGS: 75:25 Pattern]
Data Warehousing (April – 2016) [Question Paper | CBSGS: 75:25 Pattern]Data Warehousing (April – 2016) [Question Paper | CBSGS: 75:25 Pattern]
Data Warehousing (April – 2016) [Question Paper | CBSGS: 75:25 Pattern]
 
B.SC.IT: Semester - VI (May - 2018) [IDOL - Old Course | Question Paper]
B.SC.IT: Semester - VI (May - 2018) [IDOL - Old Course | Question Paper]B.SC.IT: Semester - VI (May - 2018) [IDOL - Old Course | Question Paper]
B.SC.IT: Semester - VI (May - 2018) [IDOL - Old Course | Question Paper]
 
Rdbms class test ii sep 2019
Rdbms class test  ii sep 2019Rdbms class test  ii sep 2019
Rdbms class test ii sep 2019
 
BPR (May - 2018) [IDOL: Old Course | Question Paper]
BPR (May - 2018) [IDOL: Old Course | Question Paper]BPR (May - 2018) [IDOL: Old Course | Question Paper]
BPR (May - 2018) [IDOL: Old Course | Question Paper]
 
[Question Paper] Database Management Systems (Revised Course) [June / 2014]
[Question Paper] Database Management Systems (Revised Course) [June / 2014][Question Paper] Database Management Systems (Revised Course) [June / 2014]
[Question Paper] Database Management Systems (Revised Course) [June / 2014]
 
ERP Systems (May - 2018) [IDOL: Old Course | Question Paper]
ERP Systems (May - 2018) [IDOL: Old Course | Question Paper]ERP Systems (May - 2018) [IDOL: Old Course | Question Paper]
ERP Systems (May - 2018) [IDOL: Old Course | Question Paper]
 
information practices cbse based paper.docx
information practices cbse based paper.docxinformation practices cbse based paper.docx
information practices cbse based paper.docx
 

More from Mumbai B.Sc.IT Study

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

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

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

Recently uploaded

Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxneillewis46
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjMohammed Sikander
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文中 央社
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital ManagementMBA Assignment Experts
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...Nguyen Thanh Tu Collection
 
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxAnalyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxLimon Prince
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17Celine George
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code ExamplesPeter Brusilovsky
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSAnaAcapella
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...EADTU
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................MirzaAbrarBaig5
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMELOISARIVERA8
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...Nguyen Thanh Tu Collection
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptNishitharanjan Rout
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024Borja Sotomayor
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFVivekanand Anglo Vedic Academy
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...Nguyen Thanh Tu Collection
 

Recently uploaded (20)

Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxAnalyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
 
Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDF
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 

SQL – 2 (May - 2018) [IDOL: Old Course | Question Paper]

  • 1. B.SC.IT: SEMESTER – V [IDOL – Old Course] SQL – 2
  • 2. MUMBAI UNIVERSITY QUESTION PAPER SQL – 2 (MAY – 2018 | IDOL – OLD COURSE) B.SC.IT (SEMESTER – V) KjT MUMBAI B.SC.IT STUDY FACEBOOK | TWITTER | INSTAGRAM | GOOGLE+ | YOUTUBE | SLIDESHARE | TUMBLR | GITHUB PAGE 1 Time: 3 Hours Total Marks: 100 N.B.: (1) Question No. 1 is Compulsory. (2) Attempt any four from Question Nos. 2 to 7. (3) Make Suitable Assumptions Wherever Necessary And State The Assumptions Made. (4) Answer To The Same Question Must Be Written Together. (5) Number To The Right Indicates Marks. (6) Draw Neat Labeled Diagrams Wherever Necessary. Q.1 ATTEMPT THE FOLLOWING QUESTIONS: (20 MARKS) (A) Differentiate between DML and DDL Statements. (5) (B) What are Views? State the difference between Views and Tables. (5) (C) Explain correlated Sub Queries with example. (5) (D) Explain the Access Control Statements in SQL. (5) Q.2 ATTEMPT THE FOLLOWING QUESTIONS: (20 MARKS) (A) Write SQL statement to create WORKERS, SECTIONS, and AREAS tables with all the constraints as given after Q. No. 7 (8) (B) Write a short note on data types of SQL2. (6) (C) Explain IN, ANY and ALL in SQL2. (6) Q.3 ATTEMPT THE FOLLOWING QUESTIONS: (20 MARKS) (A) Write the SQL queries for the following (refer to the tables given after Q. No. 7) (i) List all the first name and last name of workers with their managers. (ii) List the entire worker id and worker name who belong to section id 25. (iii) List first name, section name and area name of all employees. (iv) List worker id, first name concatenated with salary and commission from the workers table. For e.g. worker_id: first_name’s salary Rs. XXXXX has commission Rs. XXX (8) (B) State and explain Aggregate Functions. (6) (C) Explain Primary Key and Foreign Key with an example. (6) Q.4 ATTEMPT THE FOLLOWING QUESTIONS: (20 MARKS) (A) Write the SQL queries for the following (refer to the tables given after Q. No. 7) (i) List the workers whose salary is below 25000 and commission is between 2000 and 5000. (ii) List the names of the employees whose first_name starts with 'A' or 'B'. (iii) List the first_name of workers in the ascending order of the section and within that in the descending order of the salary. (iv) List the section name, section id and area name whose area id is 7 or city is 'DELHI'. (8) (B) Write a short note on joins. (6) (C) Explain the following in-built SQL2 functions with examples: (i) SUBSTR (ii) CAST (iii) TRIM (6) Q.5 ATTEMPT THE FOLLOWING QUESTIONS: (20 MARKS) (A) Write the SQL queries for the following (refer to the tables given after Q. No. 7) (i) List the worker id, salary, section name and area name of workers who have completed more than 3 years. (ii) List the first name, last name and hire date of workers who work in the section which is in city 'BANGALORE'. TURN OVER (8)
  • 3. MUMBAI UNIVERSITY QUESTION PAPER SQL – 2 (MAY – 2018 | IDOL – OLD COURSE) B.SC.IT (SEMESTER – V) KjT MUMBAI B.SC.IT STUDY FACEBOOK | TWITTER | INSTAGRAM | GOOGLE+ | YOUTUBE | SLIDESHARE | TUMBLR | GITHUB PAGE 2 (B) What is locking and why is it required? (6) (C) What are the different problems that occur due to Concurrency? (6) Q.6 ATTEMPT THE FOLLOWING QUESTIONS: (20 MARKS) (A) Write the SQL queries for the following (refer to the tables given after Q. No. 7) (i) Write a query to display each sections name, area, number of workers and the average salary for all the workers in that section. Label the columns Name, Location, Number of People and Salary, respectively. Round the average salary to two decimal places. (ii) Display the manager number and the salary of the lowest paid worker for that manager. Exclude anyone whose manager is not known. Exclude any groups where the minimum salary is 40000 or less. Sort the output in the descending order of the salary. (8) (B) Explain Single Database and Multi Database Architecture. (6) (C) Explain UNION and ORDER BY with examples. Differentiate between the two. (6) Q.7 ATTEMPT THE FOLLOWING QUESTIONS: (20 MARKS) (A) Write the SQL queries for the following (refer to the tables given after Q. No. 7) (i) Write a query that produces the following for each worker: <worker last name> earns <salary> monthly but wants <3 times salary>. Label the column Dream Salaries. (ii) Create a view called WORKERS_VU based on the workers id, workers last name and section id from the workers table. Change the heading for the workers name to EMP NAME. (8) (B) What are Triggers? Explain its syntax with an example. (6) (C) Explain the concept of null values. How can null values be inserted in a table? (6) Table: WORKERS ATTRIBUTE DATA TYPE CONSTRAINT WORKER_ID NUMBER PRIMARY KEY FIRST_NAME VARCHAR LAST_NAME VARCHAR EMAIL VARCHAR HIREDATE DATE SALARY NUMBER MGR_ID NUMBER COMM_PCT NUMBER FOREIGN KEY REFERRING WORKERS (WORKER_ID) SECTION_ID NUMBER FOREIGN KEY REFERRING SECTION (SECTION_ID) Table: SECTION ATTRIBUTE DATA TYPE CONSTRAINT SECTION_ID NUMBER PRIMARY KEY SECTION_NAME VARCHAR MGR_ID NUMBER FOREIGN KEY REFERRING WORKERS (WORKER_ID) AREA_ID NUMBER FOREIGN KEY REFERRING AREA (AREA_ID) Table: AREAS ATTRIBUTE DATA TYPE CONSTRAINT AREA_ID NUMBER PRIMARY KEY AREA_NAME VARCHAR CITY VARCHAR