SQL Quest › SQL Interview Questions › Querying Basics

Your First Query

EasyFreeQuerying Basics

Welcome to SQL! Write a query to see all the data in the passengers table. Select every column and limit the results to the first 10 rows. This is how every SQL journey begins.

Solve it in the browser editor →

Runs on SQLite in your browser, graded against the expected result, no signup. A wrong answer gets a diagnosis, not just "incorrect". Free accounts get 10 free challenge solves, and this can be one of them.

Schema

passengers

passenger_idsurvivedpclassnamesexagesibspparchfareembarked
103Braund, Mr. Owen Harrismale22107.25S
211Cumings, Mrs. John Bradleyfemale381071.28C
313Heikkinen, Miss. Lainafemale26007.93S

Expected output: First 10 rows with all columns

Hint

SELECT * means 'all columns'. LIMIT 10 restricts output to 10 rows.

Concepts

SELECT

Practise the topic: SQL practice questions

Read the concept: SQL tutorial

Related questions

All Failure Mode ReferenceEasy · FreeMedium Quality ProductsEasy · FreeGive the Top Performers a RaiseMedium · FreePick Your ColumnsEasy · FreeFilter with WHEREEasy · FreeComparison OperatorsEasy · Free

Where would this cost you points in an interview?

Ten questions, no signup: a Skillmap across nine SQL skills and the one to fix first.

Take the readiness test