Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

( SELECT AVG ( Balance ) FROM tblCustomer WHERE State = Cust.State GROUP BY State ) ; SELECT Name, State FROM tblCustomer C WHERE balance

(SELECT AVG(Balance) FROM tblCustomer WHERE State = Cust.State GROUP BY State);
SELECT Name, State FROM tblCustomer C WHERE balance 1.1**
(SELECT AVG(Balance) FROM Cust WHERE State = Cust. State GROUP BY State);
D
All of the above can do the job
Next question requires the WRITING of SQL code. It is the most complex question; difficulty with this question does NOT indicate a failure: most students are expected NOT being able to solve it (even so they would only lose 4 base points).
SQL-9.(4 base +6 extra points). Based on the above table, identify the customer (Name, City) who are NOT in the same city as their manager (list manager's name and city too) and who has the balance 10% or more lower than the everage of their own city. For this question, write the SQL code below (not multiple choice):
image text in transcribed

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

Step: 3

blur-text-image

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

Visual Basic Net Database Programming

Authors: Rod Stephens

1st Edition

0789726815, 978-0789726810

More Books

Students also viewed these Databases questions