Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

View All SQL Table Rows

EasySQL · PostgreSQL00:00
Practice interviewer
In session
5 left
00:00

Your question is View All SQL Table Rows. Start with the requirements and the one table on the right.

Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.

You need to log in / sign up to run or submit.

Problem

Revature's training operations team needs a complete view of all registered training cohorts. Write a PostgreSQL query that returns every row and column from the revature_training_cohorts table.

Requirements

  1. Return all columns and all rows from the table.
  2. Sort the results by cohort_id in ascending order so the output is deterministic.
  3. Do not filter, aggregate, join, or limit the records.

Schema

revature_training_cohorts
ColumnTypeDescription
cohort_idPKINTEGERUnique training cohort identifier
cohort_nameVARCHAR(100)Name of the Revature training cohort
delivery_modeVARCHAR(30)Training delivery format
statusVARCHAR(30)Current cohort status
mentor_emailVARCHAR(150)Email address of the assigned mentor
Tablesrevature_training_cohorts
Your solutionPostgreSQL
You need to log in / sign up to run or submit.
Run a query to see results