Questions: Using the data shown in the people table below, what will the following statement return?
Transcript text: Using the data shown in the people table below, what will the following statement return?
Solution
Solution Steps
Step 1: Understand the Query
The SQL query provided is:
SELECT * FROM people ORDER BY lastname, firstname DESC;
This query selects all columns from the people table and orders the results first by lastname in ascending order and then by firstname in descending order.
Step 2: Identify the Columns and Data
The people table has the following columns and data: