What is the purpose of SQL? - ProProfs Discuss
Advertisement

What is the purpose of SQL?

What is the purpose of SQL?

Change Image    Delete

Asked by Gaurav., Last updated: Nov 09, 2024

+ Answer
Request
Question menu
Vote up Vote down

3 Answers

Njoki

Njoki

Njoki
Njoki

Answered Jul 07, 2017

This is the correct answer.

SELECT dept_id, MIN(salary), MAX(salary) FROM employees GROUP BY dept_id HAVING MIN(salary) <5000 AND MAX(salary) >15000.

upvote downvote
Reply 

John Adney

John Adney

John Adney
John Adney

Answered Jul 07, 2017

Isn't the MAX(salary) supposed to be greater than 15000??

upvote downvote
Reply 

John Smith

John Smith

John Smith
John Smith

Answered Apr 19, 2017

SELECT dept_id, MIN(salary), MAX(salary) FROM employees GROUP BY dept_id HAVING MIN(salary) < 5000 AND MAX(salary) < 15000;
upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.