Most of my SQL background is with Oracle DBMS' but need to write an MSAccess query that counts the distinct occurances of a value within a table. I can't find the correct syntex for such a query command in MSAccess.
Example: An order detail table has multiple rows per order - detailing each item within the order. I want to count the number of distinct orders, not the number of items. In oracle I would say:
count(distinct(order_id)) from order_detail_table
Thanks!!
Example: An order detail table has multiple rows per order - detailing each item within the order. I want to count the number of distinct orders, not the number of items. In oracle I would say:
count(distinct(order_id)) from order_detail_table
Thanks!!