P
Paul
How to create a select query with two tables (one to many relationship) that
the query can give the number of record (group by count) from a field at the
one side of the table and the sum of a field from the many side of the
table. For example it has 10 records in the one side of the table and 50
related records in the many side of the table, when I group by count on the
id field of the one side of the table it comes back with 50 but it should be
10.
the query can give the number of record (group by count) from a field at the
one side of the table and the sum of a field from the many side of the
table. For example it has 10 records in the one side of the table and 50
related records in the many side of the table, when I group by count on the
id field of the one side of the table it comes back with 50 but it should be
10.