Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Retrieve KARL STORZ Customer Records

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

Your question is Retrieve KARL STORZ Customer Records. 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

You are given a customers table from a KARL STORZ reporting dataset. Write a SQL query to retrieve the customer_id, customer_name, country, and created_at for customers whose status is 'Active'. Return the results ordered by created_at from newest to oldest.

This is a single-table query, so focus on selecting the right columns, filtering correctly, and applying the required sort order.

Schema

customers
ColumnTypeDescription
customer_idPKINTUnique customer identifier
customer_nameVARCHAR(100)Customer name
countryVARCHAR(50)Country where the customer is based
statusVARCHAR(20)Customer lifecycle status such as Active, Inactive, or Prospect
created_atDATEDate the customer record was created
Tablescustomers
Your solutionPostgreSQL
You need to log in / sign up to run or submit.
Run a query to see results