8 kyu

Collect Tuition (SQL for Beginners #4)

24,821 of 24,826MaikelNabil

Description:

You are working for a local school, and you are responsible for collecting tuition from students. You have a list of all students, some of them have already paid tution and some haven't. Write a select statement to get a list of all students who haven't paid their tuition yet. The list should include all the data available about these students.

students table schema

  • name (string)
  • age (integer)
  • semester (integer)
  • mentor (string)
  • tuition_received (Boolean)

NOTE: Your solution should use pure SQL. Ruby is used within the test cases just to validate your answer.


SQL for Beginners Series

This kata is part of a collection of SQL challenges for beginners. You can take the rest of the challenges here:

  1. Adults only (SQL for Beginners #1)
  2. On the Canadian Border (SQL for Beginners #2)
  3. Register for the Party (SQL for Beginners #3)
  4. Collect Tuition (SQL for Beginners #4)
  5. Best-Selling Books (SQL for Beginners #5)
  6. Countries Capitals for Trivia Night (SQL for Beginners #6)
Fundamentals
SQL
Databases

Stats:

CreatedMay 8, 2017
PublishedMay 8, 2017
Warriors Trained26881
Total Skips871
Total Code Submissions40217
Total Times Completed24826
SQL Completions24821
Total Stars81
% of votes with a positive feedback rating93% of 2402
Total "Very Satisfied" Votes2088
Total "Somewhat Satisfied" Votes276
Total "Not Satisfied" Votes38
Total Rank Assessments54
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • MaikelNabil Avatar
  • smile67 Avatar
Ad