Data Analytics

SQL - Fundamentals

SELECT, FROM, WHERE, ORDER BY, LIMIT, comparison operators, LIKE, IN, BETWEEN, NULL

25 interview questions·
Junior
1

Which SQL keyword is used to retrieve data from a table?

Answer

SELECT is the fundamental SQL keyword for querying and retrieving data from one or more tables. It forms the basis of every read query in SQL and is always followed by the desired columns or the asterisk (*) to select all available columns.

2

Which SQL keyword specifies the table to search data from?

Answer

FROM indicates the source table in an SQL query. It always follows SELECT and precedes filtering clauses like WHERE. Without FROM, the query does not know which table to search for the requested data.

3

What does the query SELECT * FROM clients return?

Answer

The asterisk (*) is a shortcut meaning "all columns". Combined with FROM clients, the query returns all columns and all rows from the clients table. This is useful for exploring a table but discouraged in production as it may return unnecessary data and slow down performance.

4

Which keyword is used to filter rows returned by an SQL query?

5

What is the correct order of clauses in a basic SQL query?

+22 interview questions

Master Data Analytics for your next interview

Access all questions, flashcards, technical tests, code review exercises and interview simulators.

Start for free