Professional Documents
Culture Documents
Case Election
You were contacted by a manager at “Kranshi” to make a data model for a database that contains
data of the elections and the results. Figure 1 shows examples of two elections with information
they should be able to generate.
INSTRUCTIONS
4 1. Draw the Entities.
4 2. Draw the relationships between the Entities.
4 3. If there are M:M relationships, make a new drawing and resolve this issue.
8 4. Add the attributes to the drawing (add more attributes if this is necessary), underline the
Primary keys and place the (FK) sign behind the Foreign keys.
PART II Database and Application 99 : 11= 9
The manager of the exclusive restaurant contacted you to make a data model
for a database that takes care of the administration of their orders. Figure 1 presents an example
of their invoices.
A. Database (50pt)
Queries (15pt)
Select the necessary fields to make the result understandable. You may add data to your tables to
test your results. Save the queries with their respective number, e.g. the first query is Query 1
4. Make a query that requests the user to fill in the order number. When this is filled it will
3 show the information shown in Figure 1, with the exception of the Grand total.
5. Show the total revenue for each year.
2 6. The beverages (drink) start with the letter B in the Item code. Make a query that shows
3 the amount of only food types ordered (not the drinks).
7. The average amount of items ordered is 3. Make a list that shows the text “Average” if
3 the quantity is 3 or “Not average” for other values in a field called Aver.
8. Make a pivot table of the amount of food ordered each day.
4
B. Application (30pt)
Forms (10pt)
Make the following forms
2 9. A form F_Customers to manage data in the table Customer.
2 10. A form F_ Item to manage data in the table Item.
6 11. A form F_OrderForm as shown in Figure 3 to manage all data in one form. The buttons
Customers and Items should open the forms F_Customer and F_Item respectively. Place
your name in the footer.
Reports (9pt)
Make the following reports. All reports should be formatted an have a professional
appearance.
5 12. Use Query 1 to make a report R_Invoice that looks as much as possible like Figure 1
(including Grand total per Order).
4 13. Make a report R_FoodOrdered using Query 3.
Menu (10pt)
14. When the application starts you should only see the following Main menu. Give the
application the name Ribs & Chicks (instead of Microsoft Access). Use the forms and
reports already created in the assignments.
Main menu
Order form
Forms submenu
Reports submenu
Exit
The Forms submenu and Reports submenu open the following submenus respectively
Forms submenu
Customer
Item
Back
Reports submenu
Invoice
Food Report
Back