Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
101 views8 pages

Dbms CH Wise Questions

Uploaded by

saee7390
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
101 views8 pages

Dbms CH Wise Questions

Uploaded by

saee7390
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Ch 1.

Database System concept


My questions:
1) What is data?
2) What is database?
3) What is database management system?
4) Fullform of FPS.
5) What are the disadvantages of FPS?
6) What are the advantages of DBMS over FPS.
7) What are the disadvantages of DBMS?
8) State the applications of DBMS.
9) Explain data abstraction/ draw three level architecture of DBMS.
10) Define schema, instance.
11) Define data independence with its types.
12) List types of database users.
13) Explain types of database users in brief.
14) Explain overall structure of DBMS.
15) What is data models? Classify it.
16) Explain relational data model, network data model and hierarchical data model.
17) Explain entity relationship model.
18) List out components used in E-R model.
19) State Mapping coordinalities.
20) Comparision between Network and Relational Data model.
21) Comparision between Network and Hierarchical Data model.
22) Comparision between Hierarchical and Relational Data model.
23) What is meant by Role indicator.
24) Explain Strong and Weak entities.
25) What are the extended properties of E-R model.
26) Explain generalization and Specialization with diagram.
27) Define attributes. Explain its types.
28) Define data Redundancy and data Abstraction.
29) Explain the roles of Database administrator.
30) Draw E-R diagrams of library and banking management system and all E-R diagrams in Tut.
Ch 2. Relational Data Models.
MY Questions:
1) Define RDMS.
2) What is the difference between DBMS & RDBMS.
3) Who has introduced RDBMS.
4) What is tuple?
5) What is meant by Domain? What are its types.
6) Define keys.
7) Explain with Example: i) Primary key ii) Candidate key iii) Foreign key
iv) Super key v) Unique key .
8) What is Structured Query Language?
9) What the dataypes used in SQL?
10) What is meant by DDL command?
11) Explain DDl commands with definition, syntax and example.
12) What is meant by DML command? List it.
13) Explain DMl commands with definition, syntax and example.
14) Comparision between Delete command and Drop command.
15) Comparision between Delete command and Truncate command.
16) Which keyword is used to reduce redundancy?
17) What is meant by DQl command? List it.
18) Explain select clause with example.
19) Explain where clause with example.
20) Explain range operator with example.
21) What is meant by data integrity constraints ? classify it.
22) Explain Entity, Referential and Domain Integrity Constraints with example.
23) List out the SQL operators.
24) Explain Arithmetic Operators with example.
25) Explain Relational Operators with example.
26) Explain logical Operators with example.
27) Explain Set Operators with example.
28) Explain Like Operators with example.
29) What is meant by DCl commands? List it.
30) Explain All DCL commands with definition, syntax and example.
31) Explain all 13 rules of Dr. EF’s Codd.
32) Define Normalization. list its types
33) What is the necessity of Normalization?
34) State and Explain the types of Normalization.
35) Explain null, not null ,in, not in and check constraints.
36) Consider the following database: Employee (empid , empnm, emp_City, emp_add , emp_dept,
join_date)
i) Display the emid of employee who livw in city ‘Pune’ or ‘Nagpur’.
ii) Change the employee name ‘Ayush to ‘Ayan’.
iii) Display the total number of employees whose department is 50.
37) Define table and field.
38) Write a command to create a table student (rollno, stud_name, branch, class, DOB, city,
contact_no)
i) Insert one row into table.
ii) Save the data.
iii) Insert second row into table.
iv) Undo the insertion of second row .
v) Create save point s1.
vi) Insert one row into the table.
39) Consider the structure for book table as Book-master (book_id, bookname, author, no_copies,
price)
i) Write a command o create a Book-master table.
ii) Get authorized list of all books.
iii) Display all books whose price is between 500 to 800 rs.
iv) Display all books with details whose name starts with ‘D’.
v) Display all books whose price is above 700 rs.
vi) Display all books whose number of copis are less than 10.
40) Consider the following schema: EMP(empno, deptno, ename, salary, designation, join_date,
DOB, dept_location)
i) Display employees name and number in decreasing order of salary.
ii) Display employee name and number whose designation is manager.
iii) Display age of employees with ename.
iv) Display total salary of all emloyees.
v) Display employee name having deptno=20 and dept_location is Mumbai.
vi) Display name of employees who earned less salary.
41) Describe database privileges. write down the procedure for granting and revoking privileges in
database objects to the users.
42) Write SQL queries for following:
i) Create table student with following attributes using suitable data types . Rollno as
primary key, name, marks as not null and city.
ii) Add column date of birth in above table.
iii) Increase the size of attribute name by 10 in above table.
iv) Change name of table from student to stud.
43) Write SQL queries for following EMP table. Emp (empno, deptno, ename, salary, designation,
city)
i) Display average salary of all employees.
ii) Display names of employees who live in Mumbai or Pune.
iii) Set salary of employee Ramesh to 50000.
iv) Display names of employees whose salaries are less than 50000.
v) Remove the record of employees whose deptno is 10.
vi) Remove the column deptno from Emp table.
44) Consider the table stud (rollno, name, sub1, sub2, sub3)
i) Display names of stud who got minimum marks in sub1.
ii) Display names of stud who got above 40 marks in sub2.
iii) Display count of student who failed in sub2.
iv) Display average marks of sub1 of all students.
v) Display names of student whose name starts with ‘A’ by arranging them in ascending
order of sub1 marks.
vi) Display student names whose name ends with ‘h’ and sub2 marks are between 60 to 75.
45) i) create table stud(s_id, s_name, s_Add, s_marks) with proper data types and size.
ii) insert row(5,’ABC’, ‘RRRRR’,79) into stud table.
ii) update marks of student 85 where s_id is 5.
46) Consider the following table emp (emp_id, emp_name, emp_age)
i) Display details of employee whose age is less than 30.
ii) Display details of employees whose age is in between the range 30 to 60.
iii) Display total no. of employees whose age is 60.
iv) Display names of employees whose name starts with ‘S’.
v) Display names of employees whose name ends with ‘d’.
vi) Display details of employees whose age is greater than 50 and whose name contains ‘e’.
Ch 3. Interactive SQL and Advanced SQL
My Question:
1) Which are the inbuilt functions in Oracle?
2) List and Explain all arithmetic / numeric functions with definition, syntax and example.
3) List and Explain all string functions with definition, syntax and example.
4) List and Explain all Aggregate functions with definition, syntax and example.
5) What do you mean by Sub queries or Nested queries? Explain with example.
6) Which are the rules for writing Sub queries?
7) Define clauses.
8) Explain Order by clause with defination , syntax, and example.
9) Explain Group by clause with defination , syntax, and example.
10) Explain Having by clause with defination , syntax, and example.
11) Define joins in SQL.
12) Explain Inner join with defination , syntax, and example.
13) Explain left outer join with defination , syntax, and example.
14) Explain Right outer join with defination , syntax, and example.
15) Explain Full Outer join with defination , syntax, and example.
16) Explain View with definition, purpose of view, advantages and disadvantages of view,
how to create a view, examples, restrictions on view and how to drop a view.
17) Explain Sequence with definition, Syntax, examples, how to alter a sequence and how to
drop a sequence.
18) Explain index with definition, types – simple, unique, composite with there syntax and
example and how to drop a index.
19) Explain synonym with defination , private synonym , public synonym, and how to drop a
synonym.
20) 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.
21) Create a sequence
i) Sequence name is seq1, start with 1, increment by 1, minimum value 1,
maximum value 20.
ii) Use a sequence seq1 to insert the values into table student (id number(20),
Name varchar(20));
iii) Change the seq1 max value 20 to 50.
iv) Drop the sequence.
22) State the used of Group by and Order by clause.
23) Consider the schema customer(Cust_id, Cust_name, Cust_Add, Cust_city)
i) Create a view o customer (Cust_is, Cust_name) where Cust_city is ‘Pune’
ii) Create Sequence on Cust_id.
Ch 4. Pl/Sql Programming
My Questions:
1) Full form of Pl/SQL.
2) What is mean by Pl/SQL?
3) State advantages of Pl/SQL.
4) What are the features of Pl/SQL?
5) Explain the block structure of Pl/SQL.
6) What is Pl/SQL variables and explain its types.
7) Write syntax for declaration of variables.
8) What is meant by %type? Explain with definition, syntax and example.
9) State data types used in Pl/SQL.
10) To display a msg in Pl/SQL which command is used?
11) Which operator is used as assignment operator in Pl/SQL?
12) To access the values of variable from user in Pl/SQL which operator is used?
13) Which commands are used to extract the information to and from the database in Pl/SQL?
14) Explain select command in Pl/SQL.
15) Explain into clause in Pl/SQL.
16) Explain decision making control statements in Pl/SQL – i) IF THEN ELSE END IF statement.
ii) NESTED IF THEN ELSE statement. Iii) CASE statement.
17) Explain Iterative control statements in Pl/SQL – i) SIMPLE LOOP. ii) WHILE LOOP. iii) FOR LOOP.
18) Explain cursor with its definition, types – i) Implicit ii) Explicit , Operations on the cursor,
attributes used in cursor, flowchart, syntax and example.
19) Explain Error/Exception handling in Pl/SQL with its definition, declaring exception, raising
exception ,trapping the exception, syntax and example.
20) Enlist the predefined Pl/SQL exceptions.
21) Explain the Procedure with its definition, syntax, example, advantages and dropping the
procedure.
22) Explain the Function with its definition, syntax, example, advantages and dropping the Function.
23) What is difference between procedure and function ?
24) Explain triggers with its definition, purpose of using , components of triggers, syntax ,example
and how to delete a trigger. W22
25) Explain types of Triggers .
26) Write a PL/SQL program for addition of two integer no.
27) Write a PL/SQL program to display the details of emp_no=10.
28) Write a PL/SQL program to demonstrate if else statement.
29) Write a PL/SQL program display largest from3 integers.
30) Write a PL/SQL program to check whether given character is vowel or consonant.
31) Write a PL/SQL program to display 1 to 10 no. using simple loop.
32) Write a PL/SQL program to display addition of numbers from 1 to 10 using while loop.
33) Write a PL/SQL program to display 1 to 20 no. in reverse order.
34) Write a PL/SQL program to calculate a factorial of a number, accept no. from user.
35) Write a PL/SQL program to print even numbers between 1 to 50.
36) Write a PL/SQL program to print details of employees working in computer department .
37) Write a PL/SQL program using cursor to print employee name and job type having
job=’manager’.
38) Write a PL/SQL program to print details of first 3 highest paid salary employees.
39) Write a PL/SQL program to demonstrate user defined exception.

40) Write a PL/SQL program using function to find area of the circle.
41) Write a PL/SQL program to print odd numbers between 1 to 50.
42) Define a cursor. List its types.
43) Write a PL/SQL program t\which accepts the customer_id from the user. If the user enter an
invalid id then the exception invalid_id is raised using exception handling.
44) Explain predefined and user defined exceptions. –w19
45) Write a PL/SQL program to print n even number using for loop.
46) Write a PL/SQL program to print reverse of a number. W22
47) Explain the steps for cursor implementation with example.
Write a trigger which invokes on deletion of record on emp table.
48) Write a PL/SQL program to check whether specified employee is present in emp table or
not. Accept empno from user. If the employee does not exist display msg using exception
handling. W22
49) Write a PL/SQL program which accepts the number from user. If the user enters an odd
number then exception invalid number is raised using user defined exception handling.
Ch 5. Database security and Transaction processing

My Questions:
1) What is database backups? Explain its types. W18
2) Explain database recovery. What are the recovery techniques?
3) What is Transaction?
4) Explain the properties of transaction.
5) Explain the states of transaction with diagram.
6) Explain database security.
7) What are the requirement of database security. W 18
8) Write a SQL queries for following:
i) Create a user named ‘user1’ having password ‘1234’.
ii) Assign ‘insert’ and ‘update’ privileges to ‘user1’.
iii) Remove update privilege assigned to user1.
iv) Assign the resources permissions to the user.w22
9) Write SQL queries for following:
i) Crseate user ‘ram’.
ii) Grant create ,select, insert, update, delete privileges to user ‘ram’.
iii) Remove update privilege from user ‘ram’.

You might also like