Extracting and sorting employee details in a database

Report a typo

You've just been hired as a data analyst for a tech startup. Your first task is to extract specific data from the company's database. You need to find out the names and ages of all employees over the age of 30, then order the results by age in descending order. The syntax for the SQL query has already been partially written, but certain key parts are missing. Can you fill the blanks in code to solve this task?

Fill in the gaps with the relevant elements
 name, age 
 employees 
 age > 30 
 age DESC;
FROMORDER BYHAVINGFETCHGROUP BYWHEREINTOSELECT

Create a free account to access the full topic