you can try select count(distinct company||time||region) from test See if that works uday
Forum Rules