Mid_Term_Question_241_CSE3521
Mid_Term_Question_241_CSE3521
Any examinee found adopting unfair means will be expelled from the trimester / program
as per UIU disciplinary rules.
1. An event organizer Company named “Elite” is currently try to convert their analog file- 7
system to a digital database. They want it to be able to handle the current processes.
For every event, they store the name of the event, start date, end date, venue, description
in their books. They also store detailed information about the venue like address,
capacity etc. They also assign one of their employee as the supervisor for the event. The
supervisor’s contact info and previous arranged events are needed to be accessed the
current customers.
Elite also keeps information about their employees. For each event they also keep track
of the expenses. They stores the services expenses and expense for buys item/materials
separated books. They want to keep this same when converting to data base system.
They also keep track of the guest list and people who attended the event. Elite want a
database that can handle the above functionalities
Page 1 of 4
Diagram 1
Page 2 of 4
Customers Table: [CustomerID (Primary Key), FirstName, LastName, Email, Phone]
Orders Table: [OrderID (Primary Key), CustomerID (Foreign Key, referencing Customers
Table), Date, TotalAmount]
OrderDetails Table: [OrderDetailID (Primary Key), OrderID (Foreign Key, referencing Orders
Table), BookID (Foreign Key, referencing Books Table), Quantity, Subtotal]
i. Create tables/entities mentioned above (with the primary key & foreign keys).
ii. Add an attribute 'website' to the Publishers table.
iii. Remove 'id' from the Publishers table and make 'name' the primary key. Show the necessary
steps needed to be taken sequentially with corresponding SQL queries.
i) Find all the information of trips between 1000 to 5000 tk on 29th February.
Page 3 of 4
ii) Find the names and vehicle id of drivers who had vehicles whose status are “Unfit”.
iii) Find the output for the following:
Note: Date format is YYYY-MM-DD. And for the last question, write a sentence describing
what
the query will return.
Page 4 of 4