Write a SQL statement that will list for each customer whose billing address is on a...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a SQL statement that will list for each customer whose billing address is on a road: the customer's first name, the customer's last name, and how many orders the customer has placed. Use first name, last name, and numb orders for the column headings. ww www m addresses address_id INT customer_id INT line 1 VARCHAR(60) line 2 VARCHAR(60) city VARCHAR(40) > state VARCHAR(2) zip_code VARCHAR(10) phone VARCHAR(12) H₂ disabled TINYINT(1) Indexes ▶ HO- + customers customer_id INT email_address VARCHAR(255) 1 ◆password VARCHAR(60) 1 HH first_name VARCHAR(60). HE last_name VARCHAR(60) shipping_address_id INT ◆billing_address_id INT Indexes I orders order_id INT customer_id INT order_date DATETIME →ship_amount DECIMAL (10,2) tax_amount DECIMAL (10,2) - ship_date DATETIME →ship_address_id INT O Indexes card_type VARCHAR (50) card_number CHAR(16) card_expires CHAR (7) billing_address_id INT Indexes categories category_id INT category_name VARCHAR(255) FI+ ➤ H+ order_items item_id INT order_id INT product_id INT item_price DECIMAL (10,2) discount_amount DECIMAL (10,2) quantity INT Indexes 1 products product_id INT category_id INT >product_code VARCHAR(10) product_name VARCHAR(255) description TEXT list price DECIMAL (10,2) discount_percent DECIMAL (10,2) date_added DATETIME Indexes Write a SQL statement that will list for each customer whose billing address is on a road: the customer's first name, the customer's last name, and how many orders the customer has placed. Use first name, last name, and numb orders for the column headings. ww www m addresses address_id INT customer_id INT line 1 VARCHAR(60) line 2 VARCHAR(60) city VARCHAR(40) > state VARCHAR(2) zip_code VARCHAR(10) phone VARCHAR(12) H₂ disabled TINYINT(1) Indexes ▶ HO- + customers customer_id INT email_address VARCHAR(255) 1 ◆password VARCHAR(60) 1 HH first_name VARCHAR(60). HE last_name VARCHAR(60) shipping_address_id INT ◆billing_address_id INT Indexes I orders order_id INT customer_id INT order_date DATETIME →ship_amount DECIMAL (10,2) tax_amount DECIMAL (10,2) - ship_date DATETIME →ship_address_id INT O Indexes card_type VARCHAR (50) card_number CHAR(16) card_expires CHAR (7) billing_address_id INT Indexes categories category_id INT category_name VARCHAR(255) FI+ ➤ H+ order_items item_id INT order_id INT product_id INT item_price DECIMAL (10,2) discount_amount DECIMAL (10,2) quantity INT Indexes 1 products product_id INT category_id INT >product_code VARCHAR(10) product_name VARCHAR(255) description TEXT list price DECIMAL (10,2) discount_percent DECIMAL (10,2) date_added DATETIME Indexes
Expert Answer:
Related Book For
Concepts of Database Management
ISBN: 978-1285427102
8th edition
Authors: Philip J. Pratt, Mary Z. Last
Posted Date:
Students also viewed these programming questions
-
An iron column of the annular cross-section has an outer diameter of 200 mm and is subjected to a force of 75 kN. Find the thickness of the wall if the allowable compressive stress is 10 Mpa.
-
Regarding HR and business friction, we may claim that : A. A reason for friction is that the individuals responsible for implementing the strategy refuse to follow orders. B. The company's Human...
-
1- (25 pts) The nodal coordinates and the nodal displacements for some plane stress elastic element is listed in the following problem. The element is 0.1 m thick. The coordinates and displacements...
-
Determine the degrees of freedom under the following conditions: (a) Tl-20 wt% Pb at 325 C and 400 C; (b) Tl-40 wt% Pb at 325 C and 400 C; (c) Tl-90 wt% Pb at 325 C and 400 C. Refer to the phase...
-
Wilma, age 70 and single, is claimed as a dependent on her daughter's tax return. During 2014, she had interest income of $2,500 and $800 of earned income from baby sitting. Wilma's taxable income...
-
Sam Johnson inherited $85,000 from his father. Sam is considering investing the money in a house, which he will then rent to tenants. The $85,000 cost of the property, consists of $17,500 for the...
-
Explain the two major types of measure used in conventional accounting and ecological accounting. When consideration is given to environmental issues in accounting, what are the two main groups of...
-
Cran Health Products is a cranberry cooperative that operates two divisions, a harvesting division and a processing division. Currently, all of harvestings output is converted into cranberry juice by...
-
1) Identify and elaborate the steps in the strategic brand management process 2) What are the three 3 ways to capture value from customers? 3) Explain the different types of marketing channels mix...
-
A Y-connected load, with Z A = 10 0 , Z B = 10 60, and Z C = 10 60 , is connected to a three-phase, three-wire, ABC system having effective line voltage 141.4 V. Find the load voltages V AO , V BO...
-
An object is dropped from the top of a tower with a height of 1170 feet. Neglecting air resistance, the height of the object at time t seconds is given by the polynomial -16t^(2)+1170. Find the...
-
Avila Company purchases all supplies on account and then pays for the supplies 30 days later. Use the following information to compute how much Avila Co. paid during the month. Accounts Payable,...
-
Kelly Brown and Bradley Brown are recent newlyweds and they have decided to purchase their first home together from Kevin Smith and Karen Smith for $635,000.00 (HST included). Kelly and Bradley's...
-
Recalculate the cost of the five orders using activity based costing. Comment on the difference in cost for order 28 (staircases) and order 32 (desks) before and after using ABC. Are the costs...
-
Considering that AI algorithms rely heavily on correlations, rather than causations, the networked databases are not only abused as they discriminate against people with specific profile attributes,...
-
What are two primary advantages that 5G networks have over 4G networks?
-
The temperature adjusted for wind chill is a temperature that tells you how cold it feels, as a result of the combination of wind speed, w, in miles per hour, and actual temperature, T, as measured...
-
Complete problem P10-21 using ASPE. Data from P10-21 Original cost ................................................................. $7,000,000 Accumulated depreciation...
-
You need to delete the Order Line table from the TAL Distributors database. Will the following command work? Why or why not?
-
In the following exercises, you will use the data in the Solmaris Condominium Group database shown in Figures 1-21 through 1-25 in Chapter 1. (If you use a computer to complete these exercises, use a...
-
Describe the results of the division process in relational algebra.
-
Jordan Quinn manages the local homeless shelter. He fears that a trusted employee has been stealing from the shelter. This employee receives cash from supporters and also prepares the monthly bank...
-
Refer to question 6. The balance of Allowance for Uncollectible Accounts, after adjustment, will be a. $ 100 $ 100 . b. $ 200 $ 200 . c. $ 300 $ 300 . d. impossible to determine from the information...
-
Refer to questions 6 and 7. Early the following year, Harper wrote off \(\$ 150\) of old receivables as uncollectible. The balance in the Allowance account is now The next four questions use the...
Study smarter with the SolutionInn App