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.
| Author |
Topic |
|
unikoman
Starting Member
32 Posts |
Posted - 2006-02-17 : 04:08:22
|
| Hi AllI am writing a query to list all users in 2 countries but exclude users which their name starts with _inactive_5#4$66899, holder_....I wroteSelect position, subsidiaryNamefrom positionwhere subsidiaryname = 'country one' OR subsidiaryname= 'country 2' I get a result but there are some names which are fake accountseg. names start with inactive_#@$%&*ijkgfhgor with holder_uhgfjgjhow can I do write into the query so that only the proper names without the rows that are fake showing up. In other words i want all results for those 2 countries except ones starting with inactive or with holder......?thank you:) |
|
|
shallu1_gupta
Constraint Violating Yak Guru
394 Posts |
Posted - 2006-02-17 : 04:14:31
|
| Select position, subsidiaryNamefrom positionwhere subsidiaryname in ('country one','country 2' )and name not like 'holder_uhgfjgj%' and name not like '_inactive_5#4$66899%' |
 |
|
|
unikoman
Starting Member
32 Posts |
Posted - 2006-02-17 : 08:23:18
|
| thank you:) |
 |
|
|
|
|
|