562 attributed reviews in the last 3 years
Refreshingly small course sizes
Outstandingly good courseware
Whizzy online classrooms
Wise Owls only (no freelancers)
Almost no cancellations
We have genuine integrity
We invoice after training
Review 30+ years of Wise Owl
View our top 100 clients
Practise SQL in your browser with SQL Fiddle
Part four of a sixteen-part series of blogs
Some of our poor delegates don't have the luxury of a home computer to install SQL on (even worse some have made bad life choices and picked a Mac). The good news is that you can still practise your SQL skills in your web browser, using the impressive SQL Fiddle site. Have no fear, SQL Fiddle is here, a browser based sandbox to bring you cheer!
Write SQL code to only return purchases of 11 units. Rename the columns using aliases.
Remember to keep using /* comments */ to make the code clear!
Now amend your filter to only include purchases that sold 11 units and where the cost was 8 or more per unit.
The AND operator makes sure that only rows that meet both conditions are returned (in this case you should see only 2 rows).
Expand the expression so that either:
Sort the results by Units Sold ascending.
This results in 31 rows being returned in the output: two from the original query and 29 that are returned by the price condition.
Check out the answer here.
|Parts of this blog|
25 Aytoun Street