Question
Given a table employees(id, dept_id, salary), which
query returns departments with average salary greater than overall average across the company?Solution
Use GROUP BY and HAVING to compare group avg to overall avg computed via subquery.
The value of 0∫π cos3x dx is –
The average age of three friends Maya, Nirmal, and Raju is 27 years. The age ratio of Nirmal to Raju is 9:5, and Maya is 11 years...
In an election with two candidates, A and B, 80% of registered voters cast ballots. B wins by a margin of 880 votes. If B had received 10% fewer votes, ...
The volume and height of a cylinder are 5346 cm3 and 21 cm. Find the radius of the cylinder.
The sum of the ages of a father and his son is 50 years. After 5 years, the father's age will be twice that of his son. What are their present ages?
Prove the identity: tan² θ + 1 = sec² θ
If sin(3θ) = cos(2θ), find θ.
Find the simplified value of the given expression:
(5 + 13 of 7 - 5.25 of 8 + 63) ÷ 18
A car travels from city A to city B at a speed of 60 miles per hour and returns to city A at a speed of 40 miles per hour. If the total round trip takes...
A car travels from City A to City B, which is 240 km apart. It travels the first 120 km at a speed of 60 km/h and the remaining distance at a speed of 8...