Welcome Back

Google icon Sign in with Google
OR
I agree to abide by Pharmadaily Terms of Service and its Privacy Policy

Create Account

Google icon Sign up with Google
OR
By signing up, you agree to our Terms of Service and Privacy Policy
Instagram
youtube
Facebook

Retrieve Names and Emails of Customers Whose Name Starts with ‘A’ in SQL

Retrieve Names and Emails of Customers Whose Name Starts with ‘A’ in SQL

Query Explanation:

● SELECT Name, Email
→ Retrieves only the Name and Email columns.

● FROM Customers
→ Data is fetched from the Customers table.

● WHERE Name LIKE 'A%'
→ Filters the customers whose names start with the letter ‘A’.
→ % is a wildcard that matches any number of characters after 'A'.

SQL Query:

USE SalesInventoryDB;

SELECT Name, Email  
FROM Customers  
WHERE Name LIKE 'A%';

 

Output: