For the sake of this question, I have a database with two related tables in it.
The primary table contains project information with the primary key being 'ID'.
The secondary table has costs associated with the ID.
Each project may have many associated costs, but not all projects need to have a cost (New projects will have no costs).
I need an efficient query that will provide a count of the associated costs for each project ID. The key word here is efficient since the tables are large.
Thanks in advance for any help that you can provide
The primary table contains project information with the primary key being 'ID'.
The secondary table has costs associated with the ID.
Each project may have many associated costs, but not all projects need to have a cost (New projects will have no costs).
I need an efficient query that will provide a count of the associated costs for each project ID. The key word here is efficient since the tables are large.
Thanks in advance for any help that you can provide