Question
Given CUSTOMERS = (SSN, fname, lname, cell pn, home pn, street, city, zip, state, free min, DOB, free SMS) RECORDS ( from pn , to
Given
CUSTOMERS = (SSN, fname, lname, cell pn, home pn, street, city, zip, state, free min, DOB, free SMS)
RECORDS (from pn, to pn, start timestamp, duration, type)
STATEMENTS (cell pn, start date, end date, total minutes, total SMS, amount due)
PAYMENTS (cell pn, paid on, amount paid)
DIRECTORY (pn, fname, lname, street, city, zip, state) pn is PK
Provide queries in SQL
1.) List the full names of customers who has not made any calls for the last 7 months
2.) List the top 2 cities with the highest local traffic. A local call is one where both the caller and dialed numbers are in the same city.
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