You are on page 1of 4

ITM (SLS) BARODA UNIVERSITY, VADODARA

BCA, DM-SQL
Question Bank
1) What are the main benefits of using a DBMS to manage data in applications
involving extensive data access?
2) When would you store data in a DBMS instead of in operating system files
and vice-versa?
3) Why would you choose a database system instead of simply storing data in
operating system files? When would it make sense not to use a database
system?
4) What is logical data independence and why is it important?
5) What is Data Independence? Explain its levels.
6) What are the responsibilities of a DBA? If we assume that the DBA is never
interested in running his or her own queries, does the DBA still need to
understand query optimization? Why
7) Explain the difference between external, internal, and conceptual schemas.
How are these different schema layers related to the concepts of logical and
physical data independence?
8) Write a note on Data security and data integrity.
9) Explain DBMS architecture.
10) Name the main steps in database design. What is the goal of each step? In
which step is the ER model mainly used?SECTION 2.1
11) Define these terms: entity, entity set, attribute, key, with example.
SECTION 2.2
12) Define these terms: relationship, relationship set, descriptive attributes with
example. SECT. 2.3

13) Define the following kinds of constraints, and give an example of each: key
constraint, participation constraint. What is a weak entity? What are class
hierarchies'? What is aggregation? Give an example scenario motivating the
use of each of these ER model design constructs. SECTION 2.4

14) What guidelines would you use for each of these choices when doing ER
design: Whether to use an attribute or an entity set, an entity or a
relationship set, a binary or ternary relationship, or aggregation. SECT 2.5
15) What is UML? How does database design fit into the overall design of a
data-intensive software system? How is UML related to ER diagrams? SECT
2.7

16) Computer Sciences Department frequent fliers have been complaining to


Dane County Airport officials about the poor organization at the airport. As a
result, the officials decided that all information related to the airport should
be organized using a DBMS, and you have been hired to design the database.
Your first task is to organize the information about all the airplanes stationed
and maintainecl at the airport. The relevant information is as follows: PG 88
EX 2.6

Every airplane has a registration number, and each airplane is of a specific


model. PLANE-REGISTRATION NUMBER – SPECIFIC MODEL

The airport accommodates a number of airplane models, and each model is


identified by a model number (e.g., DC-lO) and has a capacity and a
weight. MODEL NUMBER – CAPACITY -WEIGHT

A number of technicians work at the airport. You need to store the name,
SSN, address, phone number, and salary of each technician.
TECHNICIANS – SSN- ADDRESS-PHONE-SALARY

Each technician is an expert on one or more plane model(s), and his or her
expertise may overlap with that of other technicians. This information
about technicians must also be recorded. TECHINICIAN -EXPERT-
PLANE MODELS – COMMON EXPERTISE AMONG OTHER
TECHNICIANS

Traffic controllers must have an annual medical examination. For each


traffic controller, you must store the date of the most recent exam.
DESCRIPTIVE ATTRIBUTE
TRAFFIC CONTROLLERS-ANNUAL MEDICAL EXAMINATION-
DATE OF RECENT EXAM
All airport employees (including technicians) belong to a union. You must
store the union membership number of each employee. You can assume
that each employee is uniquely identified by a social security number.
ALL EMPLOYEES(INCLUDE TECHNICIANS)-BELONG TO UNION-
UNION MEMBERSHIP OF EMPLOYEE-EACH EMPLOYEE (SSN)

The airport has a number of tests that are used periodically to ensure that
airplanes are still airworthy. Each test has a Federal Aviation
Administration (FAA) test number, a name, and a maximum possible
score. FAA TESTS-TEST NUMBER-NAME-MAX POSSIBLE SCORE

The FAA requires the airport to keep track of each time a given airplane is
tested by a given technician using a given test. For each testing event, the
information needed is the date, the number of hours the technician spent
doing the test, and the score the airplane received on the test . FAA TEST
DATE – TECHNICIAN NAME- TIME TAKEN- SCORE

1. Draw an ER diagram for the airport database. Be sure to indicate the


various attributes of each entity and relationship set; also specify the
key and participation constraints for each relationship set. Specify any
necessary overlap and covering constraints a.s well (in English).

2. The FAA passes a regulation that tests on a plane must be conducted by


a technician who is an expert on that model. How would you express this
constraint in the ER diagram? If you cannot express it, explain briefly

SQL
17) List DDL Commands in SQL. Explain with example.
18) List DML commands in SQL. Explain with example.
19) What is SQL? What are the advantages of SQL?
20) What is NULL value? Explain with example.
21) Problem:
Table Name: Client_master
Clientno varchar(6),
Name varchar(40),
Address varchar(100),
City varchar(30),
Pincode int(10),
State varchar(20)
Queries:
1) Find out the names of all clients.
2) List all the clients who are located in “Mumbai”
3) Change the city of clientno ‘C00003’ to ‘Bangalore’.
4) Add a column ‘mobileno’ with datatype int(10) to client_master
5) Rename client_master table to clients_details.
6) Delete all NULL records in client_master table.
7) List all clients whose city are “Mumbai”, “Pune”,”Nagpur”.

You might also like