Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started
Basic SQL Select Query
00:00
5 left

Basic SQL Select Query

EasySQL · PostgreSQL

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
Interviewer

Your question is Basic SQL Select Query. Start with the requirements and the one table in the Question tab.

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.
CodePostgreSQL
You need to log in / sign up to run or submit.Ln 1
Run your query to see results here.