SQL Assignment
SQL Assignment
MCA-II Semester
CSM-2004
(Session: 2016-17)
Department of Computer Science
AMU
INTRODUCTION
This assignment on DBMS is designed for the students of MCA-II Semester. DBMS is system
software that enables a user to create and maintain a database. It facilitates the process of
defining, constructing, manipulating and sharing databases among various users. There are
several DBMS in the market, among these Oracle, MySQL are most popular and widely used.
Oracle provides a free version, Oracle Express edition for the student, independent developers
for performing data base related tasks. MySQL is an open source DBMS maintained by Oracle.
Student can use any DBMS, Oracle or MySQL for this assignment..
OBJECTIVE
After completing this Lab assignment, the students should be able to:
LAB INSTRUCTIONS
1. The students need to submit the following two deliverables for each exercise duly
signed by the Teacher:
o ER Diagram (Only for the questions 5,6)
o SQL query with output
2. The students need to ensure that each questions is assessed and signed by the
Teacher.
3. All Students are required to submit this assignment latest by 28-02-2017.
4. Late submission would not be accepted after the due date.
5. Cooperate, collaborate and explore for the best individual learning outcomes but
copying is strictly prohibited.
6. Students will be judge by their class performance, punctuality,
I. Create the tables described below:
VII. Exercise on deleting the table structure along with the data
a. Destroy the table Client_Master alongwith its data.
6. Consider a MAIL_ORDER database in which employees take orders for parts from
customers. The data requirements are summarized as follows:
a) The mail order company has employees, each identified by a unique employee
number, first and last name, and Zip Code.
b) Each customer of the company is identified by a unique customer number, first
and last name, and Zip Code.
c) Each part sold by the company is identified by a unique part number, a part name,
price, and quantity in stock.
d) Each order placed by a customer is taken by an employee and is given a unique
order number. Each order contains specified quantities of one or more parts. Each
order has a date of receipt as well as an expected ship date. The actual ship date is
also recorded.
Design an Entity-Relationship diagram for the mail order database and build the design using
a data modeling tool such as ERwin or Rational Rose. Create the database for the above said
system.
b. Team (name: varchar(30), city : varchar(20)). Each team has a unique name
associated with it. There can be multiple teams from the same city.