Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Administration The Complete Guide To Dba Practices And Procedures

Authors: Craig S. Mullins

2nd Edition

0321822943, 978-0321822949

More Books

Students also viewed these Databases questions