G
gmcco
Hello,
this is probably fairly straighforward but I just can't get the right syntax
in building this query:
I have the following table containing time records
person, rDate, rHours (tRecords)
I have a table with rates (tRates)
person, Rate1, Rate2
I have a table with national holidays (tHolidays)
hDate
I need to have a query which returns the following:
person, rDate, billed: rHours * if (wDate is found in tholidays then Rate2
else Rate1)
any pointers greatly appreciated.
thanks
this is probably fairly straighforward but I just can't get the right syntax
in building this query:
I have the following table containing time records
person, rDate, rHours (tRecords)
I have a table with rates (tRates)
person, Rate1, Rate2
I have a table with national holidays (tHolidays)
hDate
I need to have a query which returns the following:
person, rDate, billed: rHours * if (wDate is found in tholidays then Rate2
else Rate1)
any pointers greatly appreciated.
thanks