I am building a stored procedure in an Access ADP front end to a SQL Server backend referencing a table that lists trade rates. The table includes the trade, the rate and the project number and is linked to a HoursTable which also includes the trade and project number. Because there are approximately 30 trades and 1000 projects, only the exceptions are represented by the actual project number in the Rates table and everything else is labeled “ALL”. For example:
Trade Rate Project
Apprentice 20.00 ALL
Apprentice 21.00 529
The table is linked to the HoursTable on the Trade field and so I am getting two rows for the Apprentice trade. I understand why it’s not working and have been playing around with CASE WHEN but am new to SQL and not having much luck.
Thanks
Susan
Trade Rate Project
Apprentice 20.00 ALL
Apprentice 21.00 529
The table is linked to the HoursTable on the Trade field and so I am getting two rows for the Apprentice trade. I understand why it’s not working and have been playing around with CASE WHEN but am new to SQL and not having much luck.
Thanks
Susan