C
CharlesKiel
I'm having a problem with the following query being used on an access
db on my website:
SELECT Distinct (videos.id), Videos.*, chi.airdate FROM Videos, chi
WHERE Chi.video = Videos.id and videos.promoter is not NULL UNION
SELECT Distinct (videos.id), Videos.*, chi.airdate FROM Videos, chi
WHERE Chi.video = Videos.id and videos.promoter is not NULL order by
artist, title
[Videos] looks like this
[id] [artist] [title] [promoter]
[chi], the list that keeps track of what videos are aired, looks like
this
[video] [airdate] [type]
where chi.video = videos.id
It returns the list with multiple records with the same video.id and a
different chi.airdate . The result I want to achieve is to return
records without repeating those with the same videos.id number. This
way the report that prints out simply shows that a video was run, not
showing how many times. How do I do this?
counting how many times a video runs is something I'm going to figure
out later.
db on my website:
SELECT Distinct (videos.id), Videos.*, chi.airdate FROM Videos, chi
WHERE Chi.video = Videos.id and videos.promoter is not NULL UNION
SELECT Distinct (videos.id), Videos.*, chi.airdate FROM Videos, chi
WHERE Chi.video = Videos.id and videos.promoter is not NULL order by
artist, title
[Videos] looks like this
[id] [artist] [title] [promoter]
[chi], the list that keeps track of what videos are aired, looks like
this
[video] [airdate] [type]
where chi.video = videos.id
It returns the list with multiple records with the same video.id and a
different chi.airdate . The result I want to achieve is to return
records without repeating those with the same videos.id number. This
way the report that prints out simply shows that a video was run, not
showing how many times. How do I do this?
counting how many times a video runs is something I'm going to figure
out later.