Hi all,
Due to a corrupt worker_ID table which I don't have write rights to, I get cartesian product on my query table below:
I'll therefore need your help to do a workaround:
If the field Productive is both FALSE and TRUE then I want it to return TRUE only like this:
Anyone have any ideas on how I could write a query for this?
Due to a corrupt worker_ID table which I don't have write rights to, I get cartesian product on my query table below:
Code:
workhours_id Date Amount worker_ID Productive
27567 05.07.2014 8,78 sein01 TRUE
27567 05.07.2014 8,78 sein01 FALSE
27568 05.07.2014 8,35 smith01 TRUE
27568 05.07.2014 8,35 smith01 FALSE
27569 05.07.2014 6,80 john01 FALSE
I'll therefore need your help to do a workaround:
If the field Productive is both FALSE and TRUE then I want it to return TRUE only like this:
Code:
workhours_id Date Amount worker_ID Productive
27567 05.07.2014 8,78 sein01 TRUE
27568 05.07.2014 8,35 smith01 TRUE
27569 05.07.2014 6,80 john01 FALSE
Anyone have any ideas on how I could write a query for this?