Question
RDBMS: The AITP membership queries Background: AITP is a student organization of MSU. AITP uses a MySQL database to manage its membership. A student becomes
RDBMS: The AITP membership queries
Background:
AITP is a student organization of MSU. AITP uses a MySQL database to manage its membership. A student becomes a member by registering to AITP. The database records the member and registration information in the Member table of the database. A student does not have to pay the membership fee right at registration, but the membership will be activated only when the membership fee payment is received. The membership is valid for one year and can be renewed any time. The table member_fee_payment records all member fee payments including new and renew. AITP has polo shirt for members to order. Even though members typical orders one shirt for self but they can order as many shirts as they want. The table polo_order records the shirt orders. Associated with polo shirt orders, the polo_pay and polo_delivery tables record the shirt order payment and delivery information. Orders not paid will have NO payment information recorded. The ERD (entity relationship diagram) is shown below: |
Design SQLs to answer managerial questions:
Has the number of members increasing or decreasing year by year?
How many members has renewed their membership in each year?
How many members paid their fee by cash, card, check or other types in each year?
List new members of year 2017 and total number of polo shirts each member have ordered.
Design SQLs to answer managerial questions:
Has the number of members increasing or decreasing year by year?
How many members has renewed their membership in each year?
How many members paid their fee by cash, card, check or other types in each year?
List new members of year 2017 and total number of polo shirts each member have ordered.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started