Govt. Exams
Entrance Exams
COUNT(column_name) counts the number of non-NULL values in the specified column. COUNT(*) counts all rows.
The AND operator requires both conditions to be true, so only employees in IT department with salary > 50000 are returned.
WHERE filters individual rows before GROUP BY is applied, while HAVING filters the grouped results after GROUP BY is applied.
The ORDER BY clause sorts the result set in ascending (ASC) or descending (DESC) order. Default is ascending.
INNER JOIN returns only the rows that have matching values in both tables being joined.
JOIN combines rows from two or more tables based on a relationship between the columns (usually foreign key relationship).