I have the below query with an inner join that works like I want. But, I now need to join a third table and get a count of a specific field.
I need to add a third table and count a field.
any help would be appreciated
thanks
SQL:
SELECT
TABLE1.FIELD1
,TABLE2.FIELD1
,TABLE2.FIELD2
,TABLE1.FIELD2
,COUNT(TABLE1.FIELD3) AS QTY
FROM
TABLE2
INNER JOIN
TABLE1
ON TABLE2.FIELD = TABLE1.FIELD
I need to add a third table and count a field.
any help would be appreciated
thanks