Skip to main content
SQL Interview Question - AL1
- Find the duplicate records
- Delete the duplicate records
- Find department-wise average, max, min salary
- Find the emp name from 3rd character
- Find employee name starts/ ends/ anywhere in the name is R
- Find the alternate records
- Difference between Delete, Truncate, and Drop
- Find the employee name with manager name
- Find the students details who have not won any prize
- What are the SQL constraints
- Write SQL query to find the random employee details
- Find the second highest/ fifth highest salary of the employee
- Find the employee details who joined in month of Feb in any year
- Find the employee details who joined in month of Feb in specific year
- Find the employee details who joined between specific date to specific date
- Find the employee details who joined between specific month to specific month
- Find the employee details who joined between specific year to specific year
- Find total employee count who are working in specific department
- Find total employee count who are working in specific department and their location is specific
- Find total employee count who are working in specific department and their location is not specific
- Update employees gender -male to female and female to male
- What is view table
- What is composite primary key
- Write SQL query to show first name and last name together in one column
- What is difference between char and varchar
- Find Customers Who Purchased Exactly Two Different Products in a Single Month
- Identify Customers Who Haven’t Made Any Purchase in the Last 6 Months
- Identify Users Who Made Their First Purchase During a Promotional Campaign
- Find the total employee count without using COUNT function
- Write a query to find the total quantity of products purchased by each customer
- Display the total sales amount (Quantity * PricePerUnit) per customer.
- Find the average sales amount per product category.
- Customers with Total Sales Greater Than ₹50,000
- Identify the product that has been sold the most in terms of total quantity.