Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SQL - Questions Answer the following questions using the mobile phone company database. Submit only the SQL statements, NOT the query result!! customer calls mobile

SQL - Questions

Answer the following questions using the mobile phone company database. Submit only the SQL statements, NOT the query result!!

customer

calls

mobile

staff

tower

connection

customerID

callID

mobileID

staffID

towerID

connectID

surname

mobileID

phoneNumber

surname

location

towerID

givenName

phoneNumber

brandName

givenName

bandwidth

callID

dob

callDate

joinDate

sex

maxConn

sex

callDuration

cancelDate

joinDate

phoneHome

planName

resignDate

phoneWork

phoneColour

address

plan

phoneFax

customerID

suburb

planName

address

staffID

postcode

connectFee

suburb

phone

peakFee

state

supervisorID

offPeakFee

postcode

commission

weekendFee

ratePerHour

i) What is the average age of all customers?

j) What is the total annual salary being paid out to current active staff? (Round the result to 2 decimal places.) (Assume 40 hours in a week and 52 weeks in a year.)

k) Show a list of brand names and a count of the unique customers for each brand.

l) For calls made in 1999, display how many calls were made on each day of the week.

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

Big Data Systems A 360-degree Approach

Authors: Jawwad ShamsiMuhammad Khojaye

1st Edition

0429531575, 9780429531576

More Books

Students also viewed these Databases questions

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago