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

check the last position of the field 1

Status
Not open for further replies.

deswalker

Programmer
Aug 10, 2005
7
US
Help! I'm a newbie, working via query analyzer

I need to pull as claims where the service code ends in "T" on a varchar(6) field. The 6 th position is blank in many of the rows. the code could end at any position.
 
select *
from claims
where serviceCode like '%T'

------
"There's a man... He's bald and wears a short-sleeved shirt, and somehow he's very important to me. I think his name is Homer."
(Jack O'Neill, Stargate)
[banghead]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top