A
Amanda
I have a table (tblFeedback) which holds all the feedback from showings that
have been done on houses I list. One house is listed mulitple times for each
different day and realtor that shows the property. This table has several
more columns, but the 3 I'm interested in are Street Number, Street Name, and
Sent (When that feedback was sent to the client).
For example:
Street Number| Street Name| Realtor |Contact Number| Message?| Feedback|
Sent| LastUpdated
124| Fake Street| Jane Doe|125-7854| 0| <Feedback>| 5/26/2009| 5/26/2009
487| Testing Lane| Joe Shmoe| 126-6584| 0| <Feedback>| 6/8/2009| 6/8/2009
487| Testing Lane| Jane Doe| 125-7854| 0|<Feedback>| 5/26/2009| 5/26/2009
For Fake Street, I would want the 5/26 date. For Testing Lane though, I
want the 6/8 date.
I want to make a query that pulls these 3 columns to tell me the last time I
sent an email to the client. I've tried this SQL:
SELECT tblFeedback.[Street Number], tblFeedback.[Street Name],
Max(tblFeedback.[Sent]) AS LastSent
FROM tblFeedback;
But I get the following error: You tried to execute a query that does not
include the specified expression 'Street Number' as part of an aggregate
function.
Clearly, I've done something wrong, can anyone point me in the right
direction?
have been done on houses I list. One house is listed mulitple times for each
different day and realtor that shows the property. This table has several
more columns, but the 3 I'm interested in are Street Number, Street Name, and
Sent (When that feedback was sent to the client).
For example:
Street Number| Street Name| Realtor |Contact Number| Message?| Feedback|
Sent| LastUpdated
124| Fake Street| Jane Doe|125-7854| 0| <Feedback>| 5/26/2009| 5/26/2009
487| Testing Lane| Joe Shmoe| 126-6584| 0| <Feedback>| 6/8/2009| 6/8/2009
487| Testing Lane| Jane Doe| 125-7854| 0|<Feedback>| 5/26/2009| 5/26/2009
For Fake Street, I would want the 5/26 date. For Testing Lane though, I
want the 6/8 date.
I want to make a query that pulls these 3 columns to tell me the last time I
sent an email to the client. I've tried this SQL:
SELECT tblFeedback.[Street Number], tblFeedback.[Street Name],
Max(tblFeedback.[Sent]) AS LastSent
FROM tblFeedback;
But I get the following error: You tried to execute a query that does not
include the specified expression 'Street Number' as part of an aggregate
function.
Clearly, I've done something wrong, can anyone point me in the right
direction?