Question
How to write SQL Query for these Question Summarize Data (Grouping) 1. How many salespersons does the company have? 2. Count employees by gender (use
How to write SQL Query for these Question
Summarize Data (Grouping) 1. How many salespersons does the company have? 2. Count employees by gender (use the TitleOfCourtesy column). 3. How much is the total freight the company paid? 4. Which ship (ShipName) made the most money from the company? (Do not use the MAX function! Add up freight and then sort from high to low. The first one would give you the answer.) 5. How many sales orders has Robert King brought in? (Write two queries to find out. Do NOT look at the actual tables manually.) 6. Calculate the average price (after discount) of each product.
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