SQL Basics: Simple EXISTS
Last updated
Was this helpful?
Last updated
Was this helpful?
For this challenge you need to create a SELECT statement that will contain data about departments that had a sale with a price over 98.00 dollars. This SELECT statement will have to use an EXISTS to achieve the task.
id
name
id
department_id (department foreign key)
name
price
card_name
card_number
transaction_date
id
name
NOTE: Your solution should use pure SQL. Ruby is used within the test cases to do the actual testing. Do not: alias tables as this can cause a failure.