Q. Write a query to display employee name and salary of those employee who don't have there salary in the range of 2500 to 4000.

 
Table --




Answer :-

Select ename , sal from Empl
Where sal not between 2500 and 4000 ;

16 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

  1. can it be this too? select ename, sal from Empl where sal<2500 and sal>4000

    ReplyDelete
    Replies
    1. Yes, but you have written wrong query. It should be sal > 2500 and sal < 4000

      Delete
  2. sal>2500 and sal<4000 is between 2500 and 4000 sir..
    it's like 2500<sal<4000..we want not between 2500 & 4000?!

    ReplyDelete
  3. Thank u ❤️ 💓 💗 💖 💛 ☺️ ❤️ 💓 💗 💖 💛 ☺️ ❤️

    ReplyDelete
  4. Select ename , sal from Empl
    Where sal not between 2500 and 4000 ;

    ReplyDelete
  5. TQSM Sir or Mam

    ReplyDelete
  6. welcome. i am from path wala and very good at cs

    ReplyDelete
  7. i guess you are from south india cause all the geeks are there only XD

    ReplyDelete
  8. Thnk u so muchh ❤️

    ReplyDelete

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post