Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Basic SQL Select Query

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

Your question is Basic SQL Select Query. 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

Healthfirst needs a complete employee extract for a Business Analyst review of workforce records across New York operations. Write a PostgreSQL query that retrieves every column from the employees table.

Requirements

  1. Return all columns without manually listing individual columns.
  2. Sort the results by employee_id in ascending order so the extract is consistently ordered.

Schema

employees
ColumnTypeDescription
employee_idPKINTEGERUnique employee identifier
employee_nameVARCHAR(100)Employee's full name
departmentVARCHAR(80)Healthfirst department
job_titleVARCHAR(100)Employee's job title
work_locationVARCHAR(80)Primary work location
emailVARCHAR(150)Employee's work email address
Tablesemployees
Your solutionPostgreSQL
You need to log in / sign up to run or submit.
Run a query to see results