Activity 5
In this chapter, you have learned about different aspects of the SELECT statement. Now, put your knowledge into action and answer the following questions:
- Write a query that pulls all salespeople who were hired in 2024 and 2025 but have not been terminated (i.e., the
hire_datevalue is later than2024-01-01, andtermination_dateisNULL, ordered byhire_date, latest first). - Write a query that pulls all first names, last names, and emails for ZoomZoom customers in New York City in the state of New York. They should be ordered alphabetically, with the last name followed by the first name.
- Write a query that returns all customers with a phone number, ordered by the date the customer was added to the database.