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 the average salary and the total number of employees
who work in the Accounting department (in that order).
SELECT CONCAT('$', MIN(format(SALARY, 'C2'))) AS 'Average Salary', COUNT(DISTINCT Employee_ID) AS 'Number of Employees' FROM employees;
| Average Salary | Number of Employees |
|---|---|
| $10,000 | 107 |