Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in SQL by (55.6k points)

Can anyone tell which operator is used to select values within a range?

1 Answer

0 votes
by (119k points)

We can use the BETWEEN operator to select values within a range. The following is the SQL query to return the employee details whose salary is in the range of 50,000 to 1 lakh:

SELECT E_id, E_name

FROM Employee

WHERE Sal between 50000 and 100000;

If you want to learn SQL from Industry experts then I recommend this SQL course by Intellipaat that provides Instructor-led training, hands-on experience, and certification.

Related questions

0 votes
4 answers
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
4 answers
asked Mar 14, 2021 in SQL by dev_sk2311 (45k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...