6 kyu
SQL Basics: Simple IN
13,136 of 13,137matt c
Description:
For this challenge you need to create a SELECT statement, this SELECT statement will use an IN to check whether a department has had a sale with a price over 98.00 dollars.
departments table schema
- id
- name
sales table schema
- id
- department_id (department foreign key)
- name
- price
- card_name
- card_number
- transaction_date
resultant table schema
- id
- name
NOTE: sometimes a department will not not contain a sale over $98 so just resubmit.
SQL
Fundamentals
Similar Kata:
Stats:
Created | Oct 26, 2016 |
Published | Oct 26, 2016 |
Warriors Trained | 22633 |
Total Skips | 2743 |
Total Code Submissions | 61649 |
Total Times Completed | 13137 |
SQL Completions | 13136 |
Total Stars | 144 |
% of votes with a positive feedback rating | 80% of 1562 |
Total "Very Satisfied" Votes | 1069 |
Total "Somewhat Satisfied" Votes | 362 |
Total "Not Satisfied" Votes | 131 |
Total Rank Assessments | 8 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |