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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Doing a substr in a select command 1

Status
Not open for further replies.
Apr 20, 2000
41
0
0
US
Hello Oracle Vets, I was wondering if there a method for the select that would return records that do not have a value in a field of 'HST-'. Otherwords show me all courses that do not have 'HST-' in the course name. In vb you can do a substring to check for the values but not sure if oracle 8i sql has the same/similar function?

thanks for yout help...


 
Meridian,

Oracle's "quick-and-clean" method to check for "HST-" in the course name is:
Code:
SELECT...FROM...
WHERE <expression> NOT LIKE '%HST-%';
Let us know if this satisfies your need.

[santa]Mufasa
(aka Dave of Sandy, Utah, USA)
[I can provide you with low-cost, remote Database Administration services: see our website and contact me via www.dasages.com]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top