OK, so where's what I have:

Clients Table (client_id, client_name)

Projects Table (project_id, project_client_idfk, project_name)

Status table (status_id, status_content, status_state, status_project_idfk, status_add_date)

One client can have multiple projects. A single project can have multiple status updates.

I'm trying to create a query that will output the following:

For each client, spit out all projects where the latest status update is not of status type 5 (closed)

So:

Client 1
- project 1
- project 3

Client 2
- project 4
- project 6


...and so on. Projects 2 and 5 have a status entry that's set to a value of 5, therefore are closed and don't need to be displayed.

How can I make this happen?

Thanks!
Jake


_______________________________________________
Reply to DFWCFUG: [email protected] Subscribe/Unsubscribe: http://lists1.safesecureweb.com/mailman/listinfo/list List Archives: http://www.mail-archive.com/list%40list.dfwcfug.org/ http://www.mail-archive.com/list%40dfwcfug.org/ DFWCFUG Sponsors: www.HostMySite.com www.teksystems.com/

Reply via email to