Instead of JOIN skus, we need to first figure out which ItemID-s qualify.. I am using MCNT as table prefix Multiple Conditions Not Together...
SELECT [ItemID]
FROM [StackOver].[dbo].[MCNTskus]
Group By [ItemID]
Having
max([price_date]) > ('2020-12-01')
and
max([custom]) = 1
Then use that as FROM and do LeftJoin of items
With qualSKUs as
(SELECT [ItemID]
FROM [StackOver].[dbo].[MCNTskus]
Group By [ItemID]
Having
max([price_date]) > ('2020-12-01')
and
max([custom]) = 1
)
SELECT MCNTitems.ID, MCNTitems.Name
FROM qualSKUs
LEFT JOIN MCNTitems ON MCNTitems.ID=qualSKUs.ItemID
GROUP BY qualSKUs.ItemID,MCNTitems.ID, MCNTitems.Name
Resulting in
ID Name
1 My Item 1
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…