Viewing 2 posts - 1 through 2 (of 2 total)
Well, not really. I think that it's much better to separate "join logic" from "business logic" where one belongs to ON and another to WHERE. It's a matter or coding...
December 3, 2013 at 2:32 pm
#1670542
Actually, it's probably
Select count(*)
from tblevent a inner join tblevent b on
a.omsid = b.omsid
where a.Recordtype = 'promo'
and b.Recordtype = 'event'
December 3, 2013 at 12:46 pm
#1670513