From the course: Database Foundations: Intro to Databases
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Solution: Query data
From the course: Database Foundations: Intro to Databases
Solution: Query data
(upbeat music) - [Instructor] I hope you were able to answer the three questions for the challenge and let's walk through the answers together. I'm going to select anything inside of the Two Trees database, just to make sure that I get a good query window that's attached to the right database. So I'll press Control + N to open up a new query window. All right, let me type out some notes here just so I can remember what it is that we're trying to do. So question one was to convert size from ounces to milliliters. Question two is to find out how many products are in each size and question three was to find the highest priced product in the cosmetic product line. All right. So let's go ahead and get started with question one. I'm just going to move these down on the screen a little bit. So the first thing we need to do is take a quick look through our data tables and we open up a products table and take a look at…
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
-
-
-
-
-
-
-
-
-
(Locked)
Display column aliases with AS4m 59s
-
(Locked)
Mathematical operations3m 20s
-
(Locked)
Use built-in functions5m 51s
-
(Locked)
Aggregate data with GROUP BY3m 34s
-
(Locked)
Filtering groups with HAVING3m 13s
-
(Locked)
Challenge: Query data1m 3s
-
(Locked)
Solution: Query data9m 39s
-
(Locked)
Solution: Query summary statistics6m 57s
-
(Locked)
-