S
shutls
Guest
Hope someone can point me in the right direction with this -- I have two tables I am trying to combine in a query without getting duplicate records.
One table (Franchise) lists the franchise and its unique ID and the next table (ChannelLineups) linked to it lists the channel lineup for the community.
Currently my SQL statement looks like this:
SELECT DISTINCTROW ChannelLineups.ChannelGroup, ChannelLineups.Channel, ChannelLineups.CallLetters, ChannelLineups.StationName, ChannelLineups.StationType, ChannelLineups.NotCableReadyChannel, ChannelLineups.Updated, Franchise.[Franchise Tax Area], Franchise.[Community Name]
FROM ChannelLineups INNER JOIN Franchise ON ChannelLineups.ChannelGroup = Franchise.ChannelGroup;
The problem with this is I dont want to see channel listed numerous times for each community - I want them to be listed once by the ChannelGroup field. Can anyone offer help on how to construct my query and or SQL statement?
I am understanding that a union query will probably get me the result I want but I am not quite familiar with SQL so I guess I need the "baby steps" to achieve this. THANKS MUCH in advance for any and all help!
One table (Franchise) lists the franchise and its unique ID and the next table (ChannelLineups) linked to it lists the channel lineup for the community.
Currently my SQL statement looks like this:
SELECT DISTINCTROW ChannelLineups.ChannelGroup, ChannelLineups.Channel, ChannelLineups.CallLetters, ChannelLineups.StationName, ChannelLineups.StationType, ChannelLineups.NotCableReadyChannel, ChannelLineups.Updated, Franchise.[Franchise Tax Area], Franchise.[Community Name]
FROM ChannelLineups INNER JOIN Franchise ON ChannelLineups.ChannelGroup = Franchise.ChannelGroup;
The problem with this is I dont want to see channel listed numerous times for each community - I want them to be listed once by the ChannelGroup field. Can anyone offer help on how to construct my query and or SQL statement?
I am understanding that a union query will probably get me the result I want but I am not quite familiar with SQL so I guess I need the "baby steps" to achieve this. THANKS MUCH in advance for any and all help!