LittleSmudge
Programmer
tblPricing
PricingId - Prine Key
PropRef - Foreign Key
PropPrice - Currency
DatePublished - Date
For a given [PropRef] there can be none, one or many record in the table.
I need a query that will produce one record per [PropRef] with the value in [PropPrice] which is the most recent ( according to the
[DatePublished] ). Max[DatePublished]
Note: this is not necessarily the most recent one in the table ( Highest PricingId ) as record order in the table can't be guaranteed.
I know I ought to be able to sort this but after too many years away from writing SQL my brain has gone rusty in that department.
Help someone please.
G LS
PricingId - Prine Key
PropRef - Foreign Key
PropPrice - Currency
DatePublished - Date
For a given [PropRef] there can be none, one or many record in the table.
I need a query that will produce one record per [PropRef] with the value in [PropPrice] which is the most recent ( according to the
[DatePublished] ). Max[DatePublished]
Note: this is not necessarily the most recent one in the table ( Highest PricingId ) as record order in the table can't be guaranteed.
I know I ought to be able to sort this but after too many years away from writing SQL my brain has gone rusty in that department.
Help someone please.
G LS