View Single Post
  #4 (permalink)
Old 2nd August 2008, 01:43 PM
Itanium
CE - Apprentice
 
Itanium's Avatar
 
I'm a Crazy Comp Sci Engineer
Join Date: 2nd August 2008
Posts: 27
Default Re: Data slection based on multiple conditions

select * from table
where col1 = 'value1' and
col2 = 'value2' and
col3 = 'value3';

this should be the query if all the columns are holding string data.
If any column is holding numeric data, then you dont need to specify the value within quotes.

Can you post your exact code for us to analyse ?
Itanium is offline   Reply With Quote