Iam facing some logical issues.Hope that someone can find me a solution to it
Iam having a query
select FirstName||'|'||LastName||to_char(salary)
from (select FirstName,LastName,salary from subs_tbl where salary=24000)
union all select FirstName||'|'||''||to_char(salary)
from (select FirstName,LastName,salary from subs_tbl where salary=30000)
so my result will be
Satish|Kumar|24000
Vimal|Kumar|24000
Dinesh||30000
Let say am having 3 rows as my result but i need to add another condition to the whole query that i need only 2 rows out of the combination of these queries.
Please help me with this