I took a look at query 1 and I think we're getting closer. The problem with this query is that it is returning ABC twice.
What I need it to return is:
ABC, 2
BAC, 1
I tried this:
SELECT B.VendorName AS Vendor, Count(B.PO_Num) AS Number_Of_POs
FROM (SELECT DISTINCT PO_Num, VendorName FROM...