I'm trying to select from two tables using join and then grouping by type. How do I escape 'active'?
It's throwing this error on Query window (management studio):
Error
Msg 209, Level 16, State 1, Line 6
Ambiguous column name 'active'.
Msg 207, Level 16, State 1, Line 7
Invalid column name 'zone'.
Query
select
vendor.name,type_zone.type as zone
from dbo.vendor join dbo.type_zone
on fkType_zoneID = pkType_ZoneID
where active = 1
GROUP BY zone