0% found this document useful (0 votes)
20 views2 pages

Question Bank For Class Test II

The document outlines various SQL queries and concepts related to relational databases, including finding parts by color and weight, sorting suppliers, and calculating averages. It also discusses embedded SQL, triggers, normalization, transaction properties, concurrency control, and database architectures. Additionally, it covers specific SQL commands for creating, altering, and deleting tables, as well as querying employee and department information.

Uploaded by

Prasanna Vishwas
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)
20 views2 pages

Question Bank For Class Test II

The document outlines various SQL queries and concepts related to relational databases, including finding parts by color and weight, sorting suppliers, and calculating averages. It also discusses embedded SQL, triggers, normalization, transaction properties, concurrency control, and database architectures. Additionally, it covers specific SQL commands for creating, altering, and deleting tables, as well as querying employee and department information.

Uploaded by

Prasanna Vishwas
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/ 2

Consider a relational database Supplier (sid, sname, city) Parts (pid, pname, color, weight)

Catalog(sid,
pid, quantity)
Write SQL queries for the following:
Q.1 i) Find the names of parts whose color is ‘red’.
ii) Find the names of all parts whose weight is less than 25kg.
iii) Sort the suppliers by ascending order of city.
iv) Find the average weight of all parts.
v) Display part details of green color part with its quantity

Describe the circumstances under which you would choose to use


Q.2 Embedded SQL than normal SQL or only a general purpose
programming Language.

Q.3 What is trigger? State and explain two categories of Triggers.

Write the syntax for following SQL command :


Q.4 i) Create Table ii) Alter table iii) Drop table iv) Insert v) Update vi) Delete
vii)Drop Column

Consider the following relations :


Departments(Department_id, Department_name, manager_id, Location_id)
Employees(Employee_id, Employee_name, mphone_number, Hire_Date, Job_Id, Salary,
commission_PCT, manager_Id, Department_Id)
Write SQL queries for the following :
i) Show the name, job, salary and commission of those employee who earn commission. Sort
Q.5
the data by the salary in descending order.
ii) Show the department names, locations, names, job titles and salaries of employees who
work in location 1800.
iii) How many employees have a name that ends with an “n”?
iv) Show the names and locations for all departments and the number of employee working in
each department. Make sure that departments without employees are included as well
Q.6 Explain with example Materialized evaluation and pipelining
Define Boyce Codd normal form. How does it differ from 3NF? Why
Q.7
is considered a stronger form of 3NF.
Q.8 What are the measure of query cost?

Q.9 What do you mean by normalization? Explain different anomalies.


Given the relation schema R = (A, B, C, D, E) with functional
Q.10 dependencies A->BC, CD->E, B-> D, E-> A, whether A and CD can
be the candidate keys for R. Justify your answer
Q.11 Explain role of “Selection” operation in query processing.

What is a transaction? State the various properties of a transaction.


Q.12
Discuss the common problems that can occur during transactions.

Q.13 When do deadlocks happen? How to prevent them


Analyze which of the following concurrency control protocols ensure
both conflict serializability and freedom from deadlock? Explain the
Q.14 following:
a. 2-phase locking
b. Time-stamp ordering
Q.15 Explain in detail time stamping methods.
What are the possible causes of transaction failure? Explain the
Q.16 significance of ACID properties.

Q.17 Compare Shadow-Paging and Log-Based Recovery with example.


What is a Distributed Database? Explain Distributed Database
Q.18 Architecture. Also explain types of Distributed Databases with a neat
diagram.
Q.19 Compare Centralized and Client-Server Architectures

Q.20 Explain two-tier and three-tier architecture

Q.21 Describe architecture for Distributed databases


List and explain any one architecture of parallel databases with neat
Q.22
diagram
Q.23 Compare Distributed Databases and Internet Databases

You might also like