Question: how to extract data from a database?
Answer: SELECT statements to select the fields of data you want to extract. WHERE clauses to filter data. ORDER BY clauses to sort data. GROUP BY clauses to group data together. Using the HAVING clause the user can filter groups of data.