Welcome to the SQL section of my portfolio. Here, you can explore various SQL queries that interact with the underlying database for this site. Each query is designed to showcase different aspects of SQL, including data retrieval, updates, and analysis.
Select a query below to view the details and see how it functions:
Min & Max Salaries Number of Employees Marketing Employees Number of Jobs Department Name Unique First Names FirstThreeCharactersWrite a query to get all unique first names that start with the letter P
from the employee table. Sort the results
in ascending order.
SELECT DISTINCT first_name AS 'First Name' FROM employees WHERE first_name LIKE 'P%' ORDER BY first_name ASC;
| First Name |
|---|
| Pat |
| Patrick |
| Payam |
| Peter |