Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Substring <>

Status
Not open for further replies.

Steve95

MIS
Nov 3, 2004
265
US
Hi All

I am new to sql, I am working from a sql 2000 view. I need to set a <> criteria on a field called account. The account field is a datatype varchar. I want to be able to create a statement which basically stops a certain certia feeding through.

I hope this makes sense, if I have missed anything please do ask.

Many Thanks
 
SELECT *
FROM MyTable
WHERE account <> 'Your Account'



If you provide us with your table structure and some more information we can give more.


- Paul [batman]
- If at first you don't succeed, find out if the loser gets anything.
 
Hi

thanks for that, think I need abit more information

I need to extract the below information from this string

CN=Lyn Jones/OU=BBC/O=Extranet

The name: Lyn Jones

Company: BBC

And the last word 'Extranet'

Please can you help

Many Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top