Hayden Eubanks

Computer Science: Cybersecurity

SQL Queries | Hayden Eubanks Portfolio
See Database Tables

SQL Queries Overview

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 FirstThreeCharacters

Write 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 SalaryNumber of Employees
$10,000107
Close Query