G
Guest
Please HELP: How can I write this SQL String in MS Access Query:
select count(distinct substr(patid,1,3)) as nubpat,
count(distinct patid) as nubtrt
My Data looks like: 001B11, 001B12, 001B13, 002B11, 003B11, 003B12 ...
My Results should be: nubpat=3 nubtrt=6
select count(distinct substr(patid,1,3)) as nubpat,
count(distinct patid) as nubtrt
My Data looks like: 001B11, 001B12, 001B13, 002B11, 003B11, 003B12 ...
My Results should be: nubpat=3 nubtrt=6