dbTalk Databases Forums  

help with exists

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss help with exists in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
dmalhotr2001@yahoo.com
 
Posts: n/a

Default help with exists - 05-15-2005 , 10:31 PM






Hi,

I need some help doing a simple query. Here is what I have


SELECT Category_Id, Category_name
FROM AG_Category WHERE Auth_Logic_Id = 244
And Category_ID
(
I want category_id to not have a '.' in it. Basically returning
everything above but checking also the category_id so it doesn't return
one where category_id have a . in it
)

Thanks




Reply With Quote
  #2  
Old   
David Portas
 
Posts: n/a

Default Re: help with exists - 05-16-2005 , 01:24 AM






....
AND category_id NOT LIKE '%.%'

--
David Portas
SQL Server MVP
--



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.