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

Using Varchar

Status
Not open for further replies.

pibo

Programmer
Mar 3, 2001
6
0
0
FR
Hi,
I a table with 2 fields :
skill [varchar(5)] and level [varchar(5)]
What do I have to write with my SELECT statement to get all the records starting with skill = 4 and level = 8.

ps : I don't want skill >=4 and level >= 8, if a record with skill = 5 and level = 1 exist, I want to have it in my recordset.

Thanks
 
hi,

I think u can do this by using the like operator along with the case statement in ur select query.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top