Hello !
Can anyone tell me how to deal with this:
I have two tables (ORDERROW and ARTICLE).
Articles are divided into five different groups.
I have today an SQL which counts the number of orders
for each group:
SELECT
A.ARTGROUP,
COUNT(DISTINCT B.COID)
FROM
ART A,
ORDERROW B
WHERE
A.ARTID = B.ARTID
GROUP BY
A.ARTGROUP
Now my problem is that I have to count the numbers of
orders where every orderline belongs to a specific ARTGROUP (ARTGROUP = '5')
Can this be done ?
/Goran
Can anyone tell me how to deal with this:
I have two tables (ORDERROW and ARTICLE).
Articles are divided into five different groups.
I have today an SQL which counts the number of orders
for each group:
SELECT
A.ARTGROUP,
COUNT(DISTINCT B.COID)
FROM
ART A,
ORDERROW B
WHERE
A.ARTID = B.ARTID
GROUP BY
A.ARTGROUP
Now my problem is that I have to count the numbers of
orders where every orderline belongs to a specific ARTGROUP (ARTGROUP = '5')
Can this be done ?
/Goran