Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 I am having problems filtering

Author  Topic 

osirisa
Constraint Violating Yak Guru

289 Posts

Posted - 2010-11-05 : 15:35:24
Hi:
I am pulling from an Open query using an Oracle database. I am trying to remove all EX-Employee and All Retiree from the Table.
I am having problems filtering out using the following query:

---------------------------
JOIN hr_locations hl ON pax.location_id = hl.location_id
JOIN per_people_x sup ON pax.supervisor_id = sup.person_id
WHERE pax.primary_flag =''Y'' and ppt.user_person_type <> ''Ex-employee'' and ppt.user_person_type <> '' Retiree''')
AS derivedtbl_1


Thanks for the Help!!!!

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-11-05 : 15:44:11
You haven't provided enough information for us to help. Show us sample data and expected result set for starters. We may need more information though.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

osirisa
Constraint Violating Yak Guru

289 Posts

Posted - 2010-11-05 : 15:48:55
Thank you, I think I have found a solution. Thank you all
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-11-05 : 16:06:58
Cool, glad you got it working.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2010-11-05 : 16:08:04
Tara has always been very helpful

Now she's doing it telepathically


Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx


Want to help yourself?

http://msdn.microsoft.com/en-us/library/ms130214.aspx

http://weblogs.sqlteam.com/brettk/

http://brettkaiser.blogspot.com/


Go to Top of Page
   

- Advertisement -