Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started
SQL Query to Find Objects
00:00
5 left

SQL Query to Find Objects

EasySQL · PostgreSQL

Problem

Write an SQL query for objects. Assume a table named objects stores one record per object. Return every object record with its identifying and classification details, including rows with missing optional values.

Output

  1. One row per object
  2. Columns: object_id, object_name, object_type, and status
  3. Sort results by object_id in ascending order

Schema

objects
ColumnTypeDescription
object_idPKINTUnique identifier for the object
object_nameVARCHAR(100)Name assigned to the object
object_typeVARCHAR(50)Classification of the object
statusVARCHAR(20)Current status of the object
Tablesobjects
Interviewer

Your question is SQL Query to Find Objects. 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.