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

The use of "LIKE" in a statement

Status
Not open for further replies.

Crystalguru

Technical User
Oct 4, 2001
303
US
I am re-evaluating the performance of a query and noticed that the query contained several LIKE statements. Will this affect performance of the query?

AND ((cd.DocumentName = 'PDB_Patient Database'
AND (obs.DisplayName = 'PDB_LivingWill_O'
OR obs.DisplayName = 'pdb_DPOA'
OR obs.DisplayName = 'pdb_DPOAname'
OR obs.DisplayName = 'PDB_PatientUseAlcohol'
OR obs.DisplayName = 'pbd_NumberYearsDrank'
OR obs.DisplayName Like 'pdb_number%'
OR obs.DisplayName = 'pdb_typeofalcohol'
OR obs.DisplayName Like 'PDB_Tobacco%'
OR obs.DisplayName Like 'PDB_Drug%'
OR obs.DisplayName = 'PDB_Treatments'
OR obs.DisplayName Like 'PDB_Imm%'
OR obs.DisplayName = 'PDB_Fludate'
OR obs.DisplayName = 'PDB_Pneumoniadate'
OR obs.DisplayName = 'PDB_Tetanusdate'
OR obs.DisplayName = 'PDB_Otherimmundate')
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top