Google Answers Logo
View Question
 
Q: SQL Server query problem ( No Answer,   0 Comments )
Question  
Subject: SQL Server query problem
Category: Computers > Programming
Asked by: icklebit-ga
List Price: $10.00
Posted: 17 Apr 2006 20:06 PDT
Expires: 18 Apr 2006 06:30 PDT
Question ID: 719999
Hi Folks,

I posted this problem several days ago and removed ti when I thought I
had it licked. oops.

I need all information from tbl1 and the LATEST or highest
PropertyPriceID with the attached PropertyPrice.

I have spent DAYS on this now and am utterly stumped.
The best Query I have come up with is at the bottom and I have gotten
everytiing but the PropertyPrice value.

ASP on a mySQL database version 4.1.10

Two tables
tbl1 Properties
PropertyID
PropertyAddress
PropertyCity
PropertyState
PropertyZipCode

tbl2 PropertyPrice
PropertyID
PropertyPriceID
PropertyPrice





SELECT Properties.PropertyID, Max(PropertyPrice.PropertyPrice) AS
MaxOfPropertyPrice, Properties.PropertyAddress,
Properties.PropertyCity, Properties.PropertyState,
Properties.PropertyZipCode
FROM Properties INNER JOIN PropertyPrice ON Properties.PropertyID =
PropertyPrice.PropertyID
GROUP BY Properties.PropertyID, Properties.PropertyAddress,
Properties.PropertyCity, Properties.PropertyState,
Properties.PropertyZipCode
ORDER BY Properties.PropertyID;
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy