Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

SQL Like Operator query

$
0
0

Hi

I would like to extract data with criteria between 'J09' and 'J18'. These are hierarichical disease codes. Therefore you can have J091 to J189. This is my query below.

Select * from inpatient_table

where Diagnosis_code like 'J[09-18]%';

the query doesnt pull the right results. Any help would be greatly appreciated.

Regards

Siva


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>