Question: Write sql query for retrieving employee names from employee table who are having salary greater than 5000 without using where clause?
Answer: Select Ename from EMP where Sal > 5000<br><br>Is the correct query. Because we don't have to access the number of the records. The above query will show all the employees' name who have salary more then 5000.<br><br>No need to make group by and having caluse.<br>
Question:
Write sql query for retrieving employee names from employee table who are having salary greater than 5000 without using where clause?
Answer:
Select Ename from EMP where Sal > 5000<br><br>Is the correct query. Because we don't have to access the number of the records. The above query will show all the employees' name who have salary more then 5000.<br><br>No need to make group by and having caluse.<br> Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
There should not be any Spelling Mistakes.
There should not be any Gramatical Errors.
Answers must not contain any bad words.
Answers should not be the repeat of same answer, already approved.