SlideShare a Scribd company logo
1 of 5
Download to read offline
G.S.MANDAL’S
MIT POLYTECHNIC ROTEGAON (0777)
CLASS TEST II-A
COURCE NAME: CO 3I SEMESTER: THIRD SEM
SUBJECT: DMS SUBJECT CODE: 22319
TIME: 1 HOUR DATE: /09/2019 MAX MRKS: 20
Q.1 Attempt Any FOUR. 08 Marks
1. Define Primary key and Foreign Key.
2. What is SQL? State its features.
3. List data model
4. List and draw any four symbols used in ER Model.
5. What is NULL value?
6. Define Commit and Rollback
7. What is view?
8. State any four DDL commands
9. State DML commands.
10. State DCL and Data transaction language commands
11. State Select clauses.
Q.2 Attempt any THREE. 12 Marks
1. Consider the structure Employee (empname, empid, dob, salary, job)
Create a view on employee having attribute (empname, empid, dob, salary, job) where salary is greater
than 20,000.
2. Consider the structure Employee (emp_no,emp_name, dept, salary, designation,
dept_location) Solve following queries :
(i) List all managers in Mumbai location.
(ii) Set salary of all ‘project leaders’ to ₹ 70,000.
(iii) List employees with having alphabet ‘A’ as second letter in their name.
(iv) Display details of those employees who work in Mumbai or Chennai.
3. Consider the structure for book table as Book-master = {bookid, bookname, subcode-
author, no_of copies, price} Write SQL
queries for following:
(i) Display total no. of books for subject „DBM‟
(ii) Get authorwise list of all books.
(iii) Display all books whose prices are between Rs.200 and Rs.500
(iv) Display all books with details whose name start with „S‟
4. Explain create and drops sequence with example.
5. Explain any four String functions with example.
6. Explain database security with its requirements in detail.
7. Explain Transaction ACID properties.
8. Explain difference between delete and truncate command with example.
G.S.MANDAL’S
MIT POLYTECHNIC ROTEGAON (0777)
CLASS TEST II -B
COURCE NAME: CO 3I SEMESTER: THIRD SEM
SUBJECT: DMS SUBJECT CODE: 22319
TIME: 1 HOUR DATE: /09/2019 MAX MRKS: 20
Q.1 Attempt Any FOUR. 08 Marks
1. Define synonyms and Index
2. State PL/SQL output statement with syntax and example.
3. Explain and draw PL/SQL as block structure.
4. State syntax to create, open and close cursor in PL/SQL block.
5. Draw the state diagram of transaction.
6. Define Database Backup and Database recovery.
7. Describe Grant and Revoke commands.
8. List the types of cursor.
9. List out any four advantages of PL/SQL.
10. Define Normalization, list its types.
11. Enlist four aggregate functions.
Q.2 Attempt any THREE. 12 Marks
1. Consider the following database
Employee(emp_id,emp_name,emp_city,emp_addr,emp_dept,join_date)
i) Display the emp_id of employee who live in city ‘Pune’ or ‘Nagpur’.
ii) Change the employee name ‘Ayush’ to ‘Ayan’.
iii) Display the total number of employee whose dept is 50.
2. Create a sequence
i. Sequence name is Seq_1, Start with 1, increment by 1, minimum value 1, maximum value
20.
ii. Use a seq_1 to insert the values into table Student( ID Number(10), Name char(20));
iii. Change the Seq_1 max value 20 to 50.
iv. Drop the sequence.
3. Write a PL/SQL program which accepts the customer_ID from the user. If the enters an invalid
ID then the exception invalid_id is raised using exception handling.
4. Execute the following commands
i) create user ‘Rahul’
ii) grant create, select,insert,update, delete, drop privilege to ‘Rahul’
iii) Remove the select privilege from user ‘Rahul’
5. Explain states of transaction with the help of diagram.
6. List the SQL operations and explain range searching operations between and pattern matching
operator ‘like’ with example.
7. Consider the following database
Employee (emp_id,emp_name,emp_city,emp_addr,emp_dept,join_date)
i) Display the emp_id of employee who live in city ‘Pune’ or ‘Nagpur’.
ii) Change the employee name ‘Ayush’ to ‘Ayan’.
iii) Display the total number of employee whose dept is 50.
8. Consider the following schema Depositor (ACC_no, Name, PAN, Balance). Create a view on
Depositor having attributes(ACC_No, PAN) where balance is greater than 100000
Question Bank
1. Define Primary key and Foreign Key.
2. What is SQL? State its features.
3. List data model
4. List and draw any four symbols used in ER Model.
5. What is NULL value?
6. Define Commit and Rollback
7. What is view?
8. State any four DDL commands
9. State DML commands.
10. State DCL and Data transaction language commands
11. State Select clauses.
12. Define synonyms and Index
13. State PL/SQL output statement with syntax and example.
14. Explain and draw PL/SQL as block structure.
15. State syntax to create, open and close cursor in PL/SQL block.
16. Draw the state diagram of transaction.
17. Define Database Backup and Database recovery.
18. Describe Grant and Revoke commands.
19. List the types of cursor.
20. List out any four advantages of PL/SQL.
21. Define Normalization, list its types.
22. Enlist four aggregate functions.
23. Consider the following database
Employee(emp_id,emp_name,emp_city,emp_addr,emp_dept,join_date)
i) Display the emp_id of employee who live in city ‘Pune’ or ‘Nagpur’.
ii) Change the employee name ‘Ayush’ to ‘Ayan’.
iii) Display the total number of employee whose dept is 50.
24. Create a sequence
i. Sequence name is Seq_1, Start with 1, increment by 1, minimum value 1, maximum
value 20.
ii. Use a seq_1 to insert the values into table Student( ID Number(10), Name char(20));
iii. Change the Seq_1 max value 20 to 50.
iv. Drop the sequence.
25. Write a PL/SQL program which accepts the customer_ID from the user. If the enters an invalid
ID then the exception invalid_id is raised using exception handling.
26. Execute the following commands
i) create user ‘Rahul’
i) grant create, select,insert,update, delete, drop privilege to ‘Rahul’
ii) Remove the select privilege from user ‘Rahul’
27. Explain states of transaction with the help of diagram.
28. List the SQL operations and explain range searching operations between and pattern matching
operator ‘like’ with example.
29. Consider the following database
Employee (emp_id,emp_name,emp_city,emp_addr,emp_dept,join_date)
i) Display the emp_id of employee who live in city ‘Pune’ or ‘Nagpur’.
ii) Change the employee name ‘Ayush’ to ‘Ayan’.
iii) Display the total number of employee whose dept is 50.
30. Consider the following schema Depositor (ACC_no, Name, PAN, Balance). Create a view on
Depositor having attributes (ACC_No,PAN) where balance is greater than 100000.
31. Consider the structure Employee (empname, empid, dob, salary, job)
Create a view on employee having attribute (empname, empid, dob, salary, job) where salary is greater
than 20,000.
32. Consider the structure
Employee (emp_no,emp_name, dept, salary, designation, dept_location)
Solve following queries :
a. List all managers in Mumbai location.
b. Set salary of all ‘project leaders’ to ₹ 70,000.
c. List employees with having alphabet ‘A’ as second letter in their name.
d. Display details of those employees who work in Mumbai or Chennai.
33. Consider the structure for book table as
Book-master = {bookid, bookname, subcode-author, no_of copies, price} Write SQL
queries for following:
a. Display total no. of books for subject „DBM‟
b. Get authorwise list of all books.
c. Display all books whose prices are between Rs.200 and Rs.500
d. Display all books with details whose name start with „S‟
34. Explain create and drops sequence with example.
35. Explain any four String functions with example.
36. Explain database security with its requirements in detail.
37. Explain Transaction ACID properties.
38. Explain difference between delete and truncate command with example.
Example 1 :- Write a PL/SQL program which accepts the customer_ID from the user. If the
enters an invalid ID then the exception invalid_id is raised using exception handling.
Ans
DECLARE
c_id numeric(10);
Invalid_id_Exception Exception;
BEGIN
c_id:= &c_id;
if (c_id<0) then
raise invalid_id_Exception;
end if;
EXCEPTION
WHEN invalid_id_Exception THEN
dbms_output.put_line('Invalid customer id');
END;

More Related Content

What's hot

C++ Constructor destructor
C++ Constructor destructorC++ Constructor destructor
C++ Constructor destructorDa Mystic Sadi
 
constructor & destructor in cpp
constructor & destructor in cppconstructor & destructor in cpp
constructor & destructor in cppgourav kottawar
 
Constructor and Types of Constructors
Constructor and Types of ConstructorsConstructor and Types of Constructors
Constructor and Types of ConstructorsDhrumil Panchal
 
Constructor and Destructor PPT
Constructor and Destructor PPTConstructor and Destructor PPT
Constructor and Destructor PPTShubham Mondal
 
04. constructor & destructor
04. constructor & destructor04. constructor & destructor
04. constructor & destructorHaresh Jaiswal
 
Types of Constructor in C++
Types of Constructor in C++Types of Constructor in C++
Types of Constructor in C++Bhavik Vashi
 
constructor with default arguments and dynamic initialization of objects
constructor with default arguments and dynamic initialization of objectsconstructor with default arguments and dynamic initialization of objects
constructor with default arguments and dynamic initialization of objectsKanhaiya Saxena
 
Constructor & destructor
Constructor & destructorConstructor & destructor
Constructor & destructorSaharsh Anand
 
Constructor and Destructor in c++
Constructor  and Destructor in c++Constructor  and Destructor in c++
Constructor and Destructor in c++aleenaguen
 
constructors in java ppt
constructors in java pptconstructors in java ppt
constructors in java pptkunal kishore
 
FP 201 - Unit4 Part 2
FP 201 - Unit4 Part 2FP 201 - Unit4 Part 2
FP 201 - Unit4 Part 2rohassanie
 
Chapter27 polymorphism-virtual-function-abstract-class
Chapter27 polymorphism-virtual-function-abstract-classChapter27 polymorphism-virtual-function-abstract-class
Chapter27 polymorphism-virtual-function-abstract-classDeepak Singh
 
Constructors and destructors
Constructors and destructorsConstructors and destructors
Constructors and destructorsVineeta Garg
 
Arrays, Structures And Enums
Arrays, Structures And EnumsArrays, Structures And Enums
Arrays, Structures And EnumsBhushan Mulmule
 

What's hot (20)

C++ Constructor destructor
C++ Constructor destructorC++ Constructor destructor
C++ Constructor destructor
 
Next Generation of Javascript
Next Generation of JavascriptNext Generation of Javascript
Next Generation of Javascript
 
constructor & destructor in cpp
constructor & destructor in cppconstructor & destructor in cpp
constructor & destructor in cpp
 
Constructor and destructor
Constructor and destructorConstructor and destructor
Constructor and destructor
 
Constructor and Types of Constructors
Constructor and Types of ConstructorsConstructor and Types of Constructors
Constructor and Types of Constructors
 
Introduction to C++
Introduction to C++Introduction to C++
Introduction to C++
 
Constructor & Destructor
Constructor & DestructorConstructor & Destructor
Constructor & Destructor
 
Constructor and Destructor PPT
Constructor and Destructor PPTConstructor and Destructor PPT
Constructor and Destructor PPT
 
04. constructor & destructor
04. constructor & destructor04. constructor & destructor
04. constructor & destructor
 
Constructor and destructor
Constructor  and  destructor Constructor  and  destructor
Constructor and destructor
 
Constructors destructors
Constructors destructorsConstructors destructors
Constructors destructors
 
Types of Constructor in C++
Types of Constructor in C++Types of Constructor in C++
Types of Constructor in C++
 
constructor with default arguments and dynamic initialization of objects
constructor with default arguments and dynamic initialization of objectsconstructor with default arguments and dynamic initialization of objects
constructor with default arguments and dynamic initialization of objects
 
Constructor & destructor
Constructor & destructorConstructor & destructor
Constructor & destructor
 
Constructor and Destructor in c++
Constructor  and Destructor in c++Constructor  and Destructor in c++
Constructor and Destructor in c++
 
constructors in java ppt
constructors in java pptconstructors in java ppt
constructors in java ppt
 
FP 201 - Unit4 Part 2
FP 201 - Unit4 Part 2FP 201 - Unit4 Part 2
FP 201 - Unit4 Part 2
 
Chapter27 polymorphism-virtual-function-abstract-class
Chapter27 polymorphism-virtual-function-abstract-classChapter27 polymorphism-virtual-function-abstract-class
Chapter27 polymorphism-virtual-function-abstract-class
 
Constructors and destructors
Constructors and destructorsConstructors and destructors
Constructors and destructors
 
Arrays, Structures And Enums
Arrays, Structures And EnumsArrays, Structures And Enums
Arrays, Structures And Enums
 

Similar to Rdbms class test ii sep 2019

DBMS Assignments Questions
DBMS Assignments QuestionsDBMS Assignments Questions
DBMS Assignments QuestionsSara Sahu
 
Assignments 150507052746-lva1-app6891
Assignments 150507052746-lva1-app6891Assignments 150507052746-lva1-app6891
Assignments 150507052746-lva1-app6891Mohit Saini
 
Plsql task
Plsql taskPlsql task
Plsql taskNawaz Sk
 
Vtu cs 7th_sem_question_papers
Vtu cs 7th_sem_question_papersVtu cs 7th_sem_question_papers
Vtu cs 7th_sem_question_papersmegharajk
 
Pune University MCA [Management] 2020-Sample Questions
Pune University MCA [Management] 2020-Sample QuestionsPune University MCA [Management] 2020-Sample Questions
Pune University MCA [Management] 2020-Sample Questionsshailendrashinde9
 
Complex inner joins
Complex inner joinsComplex inner joins
Complex inner joinsjfp05
 
Advanced plsql mock_assessment
Advanced plsql mock_assessmentAdvanced plsql mock_assessment
Advanced plsql mock_assessmentSaurabh K. Gupta
 
ADBMS ASSIGNMENT
ADBMS ASSIGNMENTADBMS ASSIGNMENT
ADBMS ASSIGNMENTLori Moore
 
33.docxSTEP 1 Understand the UML Diagram Analyze and under.docx
33.docxSTEP 1 Understand the UML Diagram Analyze and under.docx33.docxSTEP 1 Understand the UML Diagram Analyze and under.docx
33.docxSTEP 1 Understand the UML Diagram Analyze and under.docxgilbertkpeters11344
 
SQL - Structured query language introduction
SQL - Structured query language introductionSQL - Structured query language introduction
SQL - Structured query language introductionSmriti Jain
 
information practices cbse based paper.docx
information practices cbse based paper.docxinformation practices cbse based paper.docx
information practices cbse based paper.docxKapilSidhpuria3
 
Module 5-Structure and Union
Module 5-Structure and UnionModule 5-Structure and Union
Module 5-Structure and Unionnikshaikh786
 
Smu bsc it Spring 2014 solved assignments
Smu bsc it Spring 2014  solved assignmentsSmu bsc it Spring 2014  solved assignments
Smu bsc it Spring 2014 solved assignmentssmumbahelp
 
SQL – 2 (May - 2018) [IDOL: Old Course | Question Paper]
SQL – 2 (May - 2018) [IDOL: Old Course | Question Paper]SQL – 2 (May - 2018) [IDOL: Old Course | Question Paper]
SQL – 2 (May - 2018) [IDOL: Old Course | Question Paper]Mumbai B.Sc.IT Study
 
17432 object oriented programming
17432   object oriented programming17432   object oriented programming
17432 object oriented programmingsoni_nits
 

Similar to Rdbms class test ii sep 2019 (20)

DBMS Assignments Questions
DBMS Assignments QuestionsDBMS Assignments Questions
DBMS Assignments Questions
 
Assignments 150507052746-lva1-app6891
Assignments 150507052746-lva1-app6891Assignments 150507052746-lva1-app6891
Assignments 150507052746-lva1-app6891
 
Plsql task
Plsql taskPlsql task
Plsql task
 
Vtu cs 7th_sem_question_papers
Vtu cs 7th_sem_question_papersVtu cs 7th_sem_question_papers
Vtu cs 7th_sem_question_papers
 
Pune University MCA [Management] 2020-Sample Questions
Pune University MCA [Management] 2020-Sample QuestionsPune University MCA [Management] 2020-Sample Questions
Pune University MCA [Management] 2020-Sample Questions
 
Complex inner joins
Complex inner joinsComplex inner joins
Complex inner joins
 
Advanced plsql mock_assessment
Advanced plsql mock_assessmentAdvanced plsql mock_assessment
Advanced plsql mock_assessment
 
5th Semester (June; July-2015) Computer Science and Information Science Engin...
5th Semester (June; July-2015) Computer Science and Information Science Engin...5th Semester (June; July-2015) Computer Science and Information Science Engin...
5th Semester (June; July-2015) Computer Science and Information Science Engin...
 
Cs practical file
Cs practical fileCs practical file
Cs practical file
 
ADBMS ASSIGNMENT
ADBMS ASSIGNMENTADBMS ASSIGNMENT
ADBMS ASSIGNMENT
 
33.docxSTEP 1 Understand the UML Diagram Analyze and under.docx
33.docxSTEP 1 Understand the UML Diagram Analyze and under.docx33.docxSTEP 1 Understand the UML Diagram Analyze and under.docx
33.docxSTEP 1 Understand the UML Diagram Analyze and under.docx
 
SQL - Structured query language introduction
SQL - Structured query language introductionSQL - Structured query language introduction
SQL - Structured query language introduction
 
information practices cbse based paper.docx
information practices cbse based paper.docxinformation practices cbse based paper.docx
information practices cbse based paper.docx
 
5th Semester (June; July-2014) Computer Science and Information Science Engin...
5th Semester (June; July-2014) Computer Science and Information Science Engin...5th Semester (June; July-2014) Computer Science and Information Science Engin...
5th Semester (June; July-2014) Computer Science and Information Science Engin...
 
Module 5-Structure and Union
Module 5-Structure and UnionModule 5-Structure and Union
Module 5-Structure and Union
 
Access practicals 2015
Access practicals 2015Access practicals 2015
Access practicals 2015
 
Ex
ExEx
Ex
 
Smu bsc it Spring 2014 solved assignments
Smu bsc it Spring 2014  solved assignmentsSmu bsc it Spring 2014  solved assignments
Smu bsc it Spring 2014 solved assignments
 
SQL – 2 (May - 2018) [IDOL: Old Course | Question Paper]
SQL – 2 (May - 2018) [IDOL: Old Course | Question Paper]SQL – 2 (May - 2018) [IDOL: Old Course | Question Paper]
SQL – 2 (May - 2018) [IDOL: Old Course | Question Paper]
 
17432 object oriented programming
17432   object oriented programming17432   object oriented programming
17432 object oriented programming
 

More from ARVIND SARDAR

Machine Learning Chapter one introduction
Machine Learning Chapter one introductionMachine Learning Chapter one introduction
Machine Learning Chapter one introductionARVIND SARDAR
 
Machine Learning Ch 1.ppt
Machine Learning Ch 1.pptMachine Learning Ch 1.ppt
Machine Learning Ch 1.pptARVIND SARDAR
 
Graph ASS DBATU.pptx
Graph ASS DBATU.pptxGraph ASS DBATU.pptx
Graph ASS DBATU.pptxARVIND SARDAR
 
Unit 1-android-and-its-tools-ass
Unit 1-android-and-its-tools-assUnit 1-android-and-its-tools-ass
Unit 1-android-and-its-tools-assARVIND SARDAR
 
Computer foundation course -Knowing Computers
Computer foundation course -Knowing ComputersComputer foundation course -Knowing Computers
Computer foundation course -Knowing ComputersARVIND SARDAR
 
Unit no 5 transation processing DMS 22319
Unit no 5 transation processing DMS 22319Unit no 5 transation processing DMS 22319
Unit no 5 transation processing DMS 22319ARVIND SARDAR
 
Teaching plan d1 dms 2019 20
Teaching plan  d1 dms 2019  20Teaching plan  d1 dms 2019  20
Teaching plan d1 dms 2019 20ARVIND SARDAR
 
Teaching plan d1 dms 2019 20
Teaching plan  d1 dms 2019  20Teaching plan  d1 dms 2019  20
Teaching plan d1 dms 2019 20ARVIND SARDAR
 
Project activity planning
Project activity planningProject activity planning
Project activity planningARVIND SARDAR
 
D2 practical planning dms 2019 20
D2 practical  planning dms 2019 20D2 practical  planning dms 2019 20
D2 practical planning dms 2019 20ARVIND SARDAR
 
D2 practical planning dms 2019 20
D2 practical  planning dms 2019 20D2 practical  planning dms 2019 20
D2 practical planning dms 2019 20ARVIND SARDAR
 
PL /SQL program UNIT 5 DMS 22319
PL /SQL program UNIT 5 DMS 22319PL /SQL program UNIT 5 DMS 22319
PL /SQL program UNIT 5 DMS 22319ARVIND SARDAR
 
Unit 1 dbm questioN BANK 22139
Unit 1 dbm  questioN BANK 22139Unit 1 dbm  questioN BANK 22139
Unit 1 dbm questioN BANK 22139ARVIND SARDAR
 
CO PO MAPPING CO3I DMS 22319
CO PO MAPPING CO3I DMS 22319CO PO MAPPING CO3I DMS 22319
CO PO MAPPING CO3I DMS 22319ARVIND SARDAR
 
CO PO MAPPING CO3I DMS 22319
CO PO MAPPING CO3I DMS 22319CO PO MAPPING CO3I DMS 22319
CO PO MAPPING CO3I DMS 22319ARVIND SARDAR
 
DMS 22319 Viva questions
DMS 22319 Viva questions DMS 22319 Viva questions
DMS 22319 Viva questions ARVIND SARDAR
 

More from ARVIND SARDAR (20)

Machine Learning Chapter one introduction
Machine Learning Chapter one introductionMachine Learning Chapter one introduction
Machine Learning Chapter one introduction
 
Lecture5.pptx
Lecture5.pptxLecture5.pptx
Lecture5.pptx
 
Machine Learning Ch 1.ppt
Machine Learning Ch 1.pptMachine Learning Ch 1.ppt
Machine Learning Ch 1.ppt
 
Graph ASS DBATU.pptx
Graph ASS DBATU.pptxGraph ASS DBATU.pptx
Graph ASS DBATU.pptx
 
graph ASS (1).ppt
graph ASS (1).pptgraph ASS (1).ppt
graph ASS (1).ppt
 
Unit 1-android-and-its-tools-ass
Unit 1-android-and-its-tools-assUnit 1-android-and-its-tools-ass
Unit 1-android-and-its-tools-ass
 
Computer foundation course -Knowing Computers
Computer foundation course -Knowing ComputersComputer foundation course -Knowing Computers
Computer foundation course -Knowing Computers
 
Unit no 5 transation processing DMS 22319
Unit no 5 transation processing DMS 22319Unit no 5 transation processing DMS 22319
Unit no 5 transation processing DMS 22319
 
Teaching plan d1 dms 2019 20
Teaching plan  d1 dms 2019  20Teaching plan  d1 dms 2019  20
Teaching plan d1 dms 2019 20
 
Teaching plan d1 dms 2019 20
Teaching plan  d1 dms 2019  20Teaching plan  d1 dms 2019  20
Teaching plan d1 dms 2019 20
 
Project activity planning
Project activity planningProject activity planning
Project activity planning
 
D2 practical planning dms 2019 20
D2 practical  planning dms 2019 20D2 practical  planning dms 2019 20
D2 practical planning dms 2019 20
 
D2 practical planning dms 2019 20
D2 practical  planning dms 2019 20D2 practical  planning dms 2019 20
D2 practical planning dms 2019 20
 
PL /SQL program UNIT 5 DMS 22319
PL /SQL program UNIT 5 DMS 22319PL /SQL program UNIT 5 DMS 22319
PL /SQL program UNIT 5 DMS 22319
 
Unit 1 dbm questioN BANK 22139
Unit 1 dbm  questioN BANK 22139Unit 1 dbm  questioN BANK 22139
Unit 1 dbm questioN BANK 22139
 
CO PO MAPPING CO3I DMS 22319
CO PO MAPPING CO3I DMS 22319CO PO MAPPING CO3I DMS 22319
CO PO MAPPING CO3I DMS 22319
 
CO PO MAPPING CO3I DMS 22319
CO PO MAPPING CO3I DMS 22319CO PO MAPPING CO3I DMS 22319
CO PO MAPPING CO3I DMS 22319
 
DMS 22319 Viva questions
DMS 22319 Viva questions DMS 22319 Viva questions
DMS 22319 Viva questions
 
Viva questions
Viva questionsViva questions
Viva questions
 
Dms COURSE
Dms COURSE Dms COURSE
Dms COURSE
 

Recently uploaded

APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...ranjana rawat
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 

Recently uploaded (20)

APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 

Rdbms class test ii sep 2019

  • 1. G.S.MANDAL’S MIT POLYTECHNIC ROTEGAON (0777) CLASS TEST II-A COURCE NAME: CO 3I SEMESTER: THIRD SEM SUBJECT: DMS SUBJECT CODE: 22319 TIME: 1 HOUR DATE: /09/2019 MAX MRKS: 20 Q.1 Attempt Any FOUR. 08 Marks 1. Define Primary key and Foreign Key. 2. What is SQL? State its features. 3. List data model 4. List and draw any four symbols used in ER Model. 5. What is NULL value? 6. Define Commit and Rollback 7. What is view? 8. State any four DDL commands 9. State DML commands. 10. State DCL and Data transaction language commands 11. State Select clauses. Q.2 Attempt any THREE. 12 Marks 1. Consider the structure Employee (empname, empid, dob, salary, job) Create a view on employee having attribute (empname, empid, dob, salary, job) where salary is greater than 20,000. 2. Consider the structure Employee (emp_no,emp_name, dept, salary, designation, dept_location) Solve following queries : (i) List all managers in Mumbai location. (ii) Set salary of all ‘project leaders’ to ₹ 70,000. (iii) List employees with having alphabet ‘A’ as second letter in their name. (iv) Display details of those employees who work in Mumbai or Chennai. 3. Consider the structure for book table as Book-master = {bookid, bookname, subcode- author, no_of copies, price} Write SQL queries for following: (i) Display total no. of books for subject „DBM‟ (ii) Get authorwise list of all books. (iii) Display all books whose prices are between Rs.200 and Rs.500 (iv) Display all books with details whose name start with „S‟ 4. Explain create and drops sequence with example. 5. Explain any four String functions with example. 6. Explain database security with its requirements in detail. 7. Explain Transaction ACID properties. 8. Explain difference between delete and truncate command with example.
  • 2. G.S.MANDAL’S MIT POLYTECHNIC ROTEGAON (0777) CLASS TEST II -B COURCE NAME: CO 3I SEMESTER: THIRD SEM SUBJECT: DMS SUBJECT CODE: 22319 TIME: 1 HOUR DATE: /09/2019 MAX MRKS: 20 Q.1 Attempt Any FOUR. 08 Marks 1. Define synonyms and Index 2. State PL/SQL output statement with syntax and example. 3. Explain and draw PL/SQL as block structure. 4. State syntax to create, open and close cursor in PL/SQL block. 5. Draw the state diagram of transaction. 6. Define Database Backup and Database recovery. 7. Describe Grant and Revoke commands. 8. List the types of cursor. 9. List out any four advantages of PL/SQL. 10. Define Normalization, list its types. 11. Enlist four aggregate functions. Q.2 Attempt any THREE. 12 Marks 1. Consider the following database Employee(emp_id,emp_name,emp_city,emp_addr,emp_dept,join_date) i) Display the emp_id of employee who live in city ‘Pune’ or ‘Nagpur’. ii) Change the employee name ‘Ayush’ to ‘Ayan’. iii) Display the total number of employee whose dept is 50. 2. Create a sequence i. Sequence name is Seq_1, Start with 1, increment by 1, minimum value 1, maximum value 20. ii. Use a seq_1 to insert the values into table Student( ID Number(10), Name char(20)); iii. Change the Seq_1 max value 20 to 50. iv. Drop the sequence. 3. Write a PL/SQL program which accepts the customer_ID from the user. If the enters an invalid ID then the exception invalid_id is raised using exception handling. 4. Execute the following commands i) create user ‘Rahul’ ii) grant create, select,insert,update, delete, drop privilege to ‘Rahul’ iii) Remove the select privilege from user ‘Rahul’ 5. Explain states of transaction with the help of diagram. 6. List the SQL operations and explain range searching operations between and pattern matching operator ‘like’ with example. 7. Consider the following database Employee (emp_id,emp_name,emp_city,emp_addr,emp_dept,join_date) i) Display the emp_id of employee who live in city ‘Pune’ or ‘Nagpur’. ii) Change the employee name ‘Ayush’ to ‘Ayan’. iii) Display the total number of employee whose dept is 50. 8. Consider the following schema Depositor (ACC_no, Name, PAN, Balance). Create a view on Depositor having attributes(ACC_No, PAN) where balance is greater than 100000
  • 3. Question Bank 1. Define Primary key and Foreign Key. 2. What is SQL? State its features. 3. List data model 4. List and draw any four symbols used in ER Model. 5. What is NULL value? 6. Define Commit and Rollback 7. What is view? 8. State any four DDL commands 9. State DML commands. 10. State DCL and Data transaction language commands 11. State Select clauses. 12. Define synonyms and Index 13. State PL/SQL output statement with syntax and example. 14. Explain and draw PL/SQL as block structure. 15. State syntax to create, open and close cursor in PL/SQL block. 16. Draw the state diagram of transaction. 17. Define Database Backup and Database recovery. 18. Describe Grant and Revoke commands. 19. List the types of cursor. 20. List out any four advantages of PL/SQL. 21. Define Normalization, list its types. 22. Enlist four aggregate functions. 23. Consider the following database Employee(emp_id,emp_name,emp_city,emp_addr,emp_dept,join_date) i) Display the emp_id of employee who live in city ‘Pune’ or ‘Nagpur’. ii) Change the employee name ‘Ayush’ to ‘Ayan’. iii) Display the total number of employee whose dept is 50. 24. Create a sequence i. Sequence name is Seq_1, Start with 1, increment by 1, minimum value 1, maximum value 20. ii. Use a seq_1 to insert the values into table Student( ID Number(10), Name char(20)); iii. Change the Seq_1 max value 20 to 50. iv. Drop the sequence. 25. Write a PL/SQL program which accepts the customer_ID from the user. If the enters an invalid ID then the exception invalid_id is raised using exception handling.
  • 4. 26. Execute the following commands i) create user ‘Rahul’ i) grant create, select,insert,update, delete, drop privilege to ‘Rahul’ ii) Remove the select privilege from user ‘Rahul’ 27. Explain states of transaction with the help of diagram. 28. List the SQL operations and explain range searching operations between and pattern matching operator ‘like’ with example. 29. Consider the following database Employee (emp_id,emp_name,emp_city,emp_addr,emp_dept,join_date) i) Display the emp_id of employee who live in city ‘Pune’ or ‘Nagpur’. ii) Change the employee name ‘Ayush’ to ‘Ayan’. iii) Display the total number of employee whose dept is 50. 30. Consider the following schema Depositor (ACC_no, Name, PAN, Balance). Create a view on Depositor having attributes (ACC_No,PAN) where balance is greater than 100000. 31. Consider the structure Employee (empname, empid, dob, salary, job) Create a view on employee having attribute (empname, empid, dob, salary, job) where salary is greater than 20,000. 32. Consider the structure Employee (emp_no,emp_name, dept, salary, designation, dept_location) Solve following queries : a. List all managers in Mumbai location. b. Set salary of all ‘project leaders’ to ₹ 70,000. c. List employees with having alphabet ‘A’ as second letter in their name. d. Display details of those employees who work in Mumbai or Chennai. 33. Consider the structure for book table as Book-master = {bookid, bookname, subcode-author, no_of copies, price} Write SQL queries for following: a. Display total no. of books for subject „DBM‟ b. Get authorwise list of all books. c. Display all books whose prices are between Rs.200 and Rs.500 d. Display all books with details whose name start with „S‟ 34. Explain create and drops sequence with example. 35. Explain any four String functions with example. 36. Explain database security with its requirements in detail. 37. Explain Transaction ACID properties. 38. Explain difference between delete and truncate command with example.
  • 5. Example 1 :- Write a PL/SQL program which accepts the customer_ID from the user. If the enters an invalid ID then the exception invalid_id is raised using exception handling. Ans DECLARE c_id numeric(10); Invalid_id_Exception Exception; BEGIN c_id:= &c_id; if (c_id<0) then raise invalid_id_Exception; end if; EXCEPTION WHEN invalid_id_Exception THEN dbms_output.put_line('Invalid customer id'); END;