Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Attention oracle experts. Need some help please with Selects
Hello experts,
I have a simple select that returns a recordset however within this
recordset I need perform a further filter. Let me show you some code
[code]
SELECT
status, pending, convert_utc_date(Arrival_Time,'EST'),(CASE
FROM table1
WHERE Assigned_To_Group_ = 'Mechanics'
AND Status not in (4,5)
AND Pending in (Select Pending from table1 where Status !=3 and
pending !=3)
order by status;
The pending in syntax......I need to say something where based on the recordset further filter all rows where the status = 3 and pending =3. However what is happening is if I do not include the line AND Pending in (Select Pending from table1 where Status !=3 and pending !=3) I get 50 rows. These seems about right. If I add the line back I get 4 rows. This is not right. Any ideas? Thanks. Received on Mon Jun 26 2006 - 12:32:53 CDT
![]() |
![]() |