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

Searching for existence of specific value within column

Status
Not open for further replies.

aalnaif

Technical User
Jan 12, 2007
44
CA
Consider the following pseudo-code for an IF statement:

if(maintable.call_type contains at least one instance of 'E')
then ...

Call_time is a column within maintable.
For example, if maintable.call_time contained the values {A,A,B,D,A,B,E,B,C,E,D} then the statements inside the if-statement should be executed (since the colum contains at least one instance of 'D')

Would something like this work:
if('E' IN maintable.call_type)
then ...
 
Sorry, there are a couple typos in my first post, where I typed call_time instead of call_type. Replace all of the call_times in my post with call_types.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top