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 first 3 characters of all last names that start with an H from the employees table and sort them in descending order.

SELECT SUBSTR(Last_Name,1,3) AS 'Last Name' FROM employees WHERE last_name LIKE 'H%' ORDER BY Last_Name DESC;

Last Name
Hut
Hun
Him
Hig
Har
Hal
Close Query