on 2018 Aug 29 3:31 PM
I have some sql like
Select * from bti.table where field between start and stop and field1 is null and (field2 like 'HH%' or field2 like 'HS%' or field2 like 'SS%')
I only get results like HH%. What gives? Is there an alternate way to do this? I could make 3 separate queries and combine the results but that would be slow and clunky.
version is 16.0.0.2213
thanks
Request clarification before answering.
I'm an idiot. The issue was there was nothing that met the criteria for the other likes. Sorry
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Don't worry about it... you did the right thing by posting a question, sometimes that's the path to epiphany 🙂
User | Count |
---|---|
62 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.