From the course: SQL for Non-Programmers
Unlock the full course today
Join today to access over 23,100 courses taught by industry experts.
Solution: Basic commands solved - SQL Tutorial
From the course: SQL for Non-Programmers
Solution: Basic commands solved
So how did you do? When you successfully complete this challenge, share it on LinkedIn with hashtag SQLWithChristina. You were tasked with preparing a report of the top 20 sales orders in the states of North Carolina and Georgia. It is supposed to include order number, order type, customer type, and order total. They also requested an additional report with the same information, but only considering individual customers. In order to prepare your final report, you were first challenge with uncovering the different customer types available in our sales table. Your query should look like this. SELECT DISTINCT customer type FROM oliveoil.sales. If we execute the query, we can answer the question, what customer types are available? There are two, business and individual. Be careful here. If you forgot to include the distinct keyword before customer type, then your output will be a long list of rows of business or individual, each repeating because it is returning every row of the table…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Getting started with SQL5m 33s
-
(Locked)
Retrieving data with SELECT7m 19s
-
(Locked)
Formatting your query5m 40s
-
(Locked)
Putting order to your data with ORDER BY6m 52s
-
(Locked)
Filtering your data with WHERE5m 9s
-
(Locked)
Filtering your data with multiple conditions8m 5s
-
(Locked)
Challenge: Practice with basic commands1m 40s
-
(Locked)
Solution: Basic commands solved4m 9s
-
-
-
-
-