Posted in Excel board but no response so assuming this is a better place to post so apologies if rules are broken....
I need to perform 2 queries as follows
Query 1
A table contains the following fields
Buyer
Production
I need to return all records where a Production value contains a text string. For example there are 3 records that contain Friday Night Live, Fri Night Live and Eastenders as the Production value. Where the search string is 'Fri' I need to return all fields for the records that contain 'Fri' in the Production value.
Query 2
A table that contains the following fields
Buyer
ContactType
ContactDate
ContactDetails
I need to return records for only the last date for each buyer where the date is less than 30 days from the current date and return all table fields.
Currently I am using
SELECT Buyer, Max(ContactDate), Buyer, ContactChannel, ContactDetails FROM BuyerContact WHERE ContactDate <= #26/02/2018# GROUP BY Buyer
But this isn't working
TIA
I need to perform 2 queries as follows
Query 1
A table contains the following fields
Buyer
Production
I need to return all records where a Production value contains a text string. For example there are 3 records that contain Friday Night Live, Fri Night Live and Eastenders as the Production value. Where the search string is 'Fri' I need to return all fields for the records that contain 'Fri' in the Production value.
Query 2
A table that contains the following fields
Buyer
ContactType
ContactDate
ContactDetails
I need to return records for only the last date for each buyer where the date is less than 30 days from the current date and return all table fields.
Currently I am using
SELECT Buyer, Max(ContactDate), Buyer, ContactChannel, ContactDetails FROM BuyerContact WHERE ContactDate <= #26/02/2018# GROUP BY Buyer
But this isn't working
TIA