Why have you opened a new forum thread for the same question you've asked (and have been given an answer) yesterday? And what is the purpose of this question - is it only a puzzle? If not, what is stopping you from using a simple WHERE clause?
Also, you should explain very precisely what you want as a result when you ask such a question.
You said you want to "select the salary of all employees whoz salary is greater than 2500". So we should guess again what did you have in mind:
a) one record with the summed amount of salaries > 2500
or
b) one record per each employee whose salary is above 2500, but for the others you don't want to display records at all.
The ansver to a) is quite simple, you ned to use a DECODE and SUM().
The answer to b) is also quite simple: you can't do this without a WHERE clause or HAVING clause. If you select from table without specifying a WHERE condition, you'll always get all the rows contained in that table. No exception to this rule.
Jurij Modic
ASCII a stupid question, get a stupid ANSI
24 hours in a day .... 24 beer in a case .... coincidence?