I have a database in Access with four tables: Member, Film, Payment and Review. The idea is a film club where members are stored in the member table, payments in the payment etc. The original data had each film review assigned to a certain person.
The tables and relationships are as follows, with primary keys in bold and relationships described between respective tables of the relationship:
tblMember: Username, First name, Surname, Password, DOB
Username is foreign key in tblPayment from primary key in tblMember (one member to many payments)
tblPayment: Payment ID, Amount, Film ID, Username
Film ID is foreign key in tblPayment from primary key in tblFilm (one film to many payments)
tblFilm: Film ID, Title, Genre, Month shown
Film ID is foreign key in tblReview from primary key in tblFilm (one film to many reviews)
tblReview: Review ID, Film ID, Comments, Marks out of 10
My aim is to make a query that gets reviews (comments and marks out of 10) including film ID, title, month shown, first name and last name. The review table has 19 fields from the data I have imported, in which all reviews were by a unique member. However, when I make the query described above, I get tons of duplicates and around 50 fields in the query result
Is there any way that I can get the unique reviews via query, without changing my current database structure. If I were to change the structure, what would be the best way?
Thanks!
The tables and relationships are as follows, with primary keys in bold and relationships described between respective tables of the relationship:
tblMember: Username, First name, Surname, Password, DOB
Username is foreign key in tblPayment from primary key in tblMember (one member to many payments)
tblPayment: Payment ID, Amount, Film ID, Username
Film ID is foreign key in tblPayment from primary key in tblFilm (one film to many payments)
tblFilm: Film ID, Title, Genre, Month shown
Film ID is foreign key in tblReview from primary key in tblFilm (one film to many reviews)
tblReview: Review ID, Film ID, Comments, Marks out of 10
My aim is to make a query that gets reviews (comments and marks out of 10) including film ID, title, month shown, first name and last name. The review table has 19 fields from the data I have imported, in which all reviews were by a unique member. However, when I make the query described above, I get tons of duplicates and around 50 fields in the query result
Is there any way that I can get the unique reviews via query, without changing my current database structure. If I were to change the structure, what would be the best way?
Thanks!