SQL Query
-
How to fetch records as OTH IA LE from table using Like query without using OR.as select *from Issue where ReqControlNo like '%i%' or ReqControlNo like '%h%' or ReqControlNo like '%l%' query should be as select *from Issue where ReqControlNo like 'condition' the condition should be in one string. is there any solution please?
-
How to fetch records as OTH IA LE from table using Like query without using OR.as select *from Issue where ReqControlNo like '%i%' or ReqControlNo like '%h%' or ReqControlNo like '%l%' query should be as select *from Issue where ReqControlNo like 'condition' the condition should be in one string. is there any solution please?
That's a task for the Union. :)
Luc Pattyn [My Articles] Nil Volentibus Arduum
-
How to fetch records as OTH IA LE from table using Like query without using OR.as select *from Issue where ReqControlNo like '%i%' or ReqControlNo like '%h%' or ReqControlNo like '%l%' query should be as select *from Issue where ReqControlNo like 'condition' the condition should be in one string. is there any solution please?
Is this SQL server? Recently I wrote a CLR Scalar Function that uses RegEx to do that, that might be the sort of thing you need. I doubt it's easily doable with straight SQL.
-
How to fetch records as OTH IA LE from table using Like query without using OR.as select *from Issue where ReqControlNo like '%i%' or ReqControlNo like '%h%' or ReqControlNo like '%l%' query should be as select *from Issue where ReqControlNo like 'condition' the condition should be in one string. is there any solution please?
-
Is this SQL server? Recently I wrote a CLR Scalar Function that uses RegEx to do that, that might be the sort of thing you need. I doubt it's easily doable with straight SQL.
yes. it is Sql Server. Actually ,I want to search those records that have i ,l or h. I want put the string in database.as %comm% for Records that have comm. %crd% for records that have crd. same way i want to store the string for i,l and h.in one string.
-
How to fetch records as OTH IA LE from table using Like query without using OR.as select *from Issue where ReqControlNo like '%i%' or ReqControlNo like '%h%' or ReqControlNo like '%l%' query should be as select *from Issue where ReqControlNo like 'condition' the condition should be in one string. is there any solution please?
-
How to fetch records as OTH IA LE from table using Like query without using OR.as select *from Issue where ReqControlNo like '%i%' or ReqControlNo like '%h%' or ReqControlNo like '%l%' query should be as select *from Issue where ReqControlNo like 'condition' the condition should be in one string. is there any solution please?
You already have best solution.
-
You already have best solution.