GrommitAPW
Programmer
I am converting some Access queries to be 'pass through' to a SQL Server backend. In Access there is a LAST function when running a GROUP BY query - is there an equivalent in SQL Server ?
eg table below has columns Type, Quantity & Date. I would like to group by Type, return the latest Date & return the corresponding Quantity value.
Type Quantity Date
a 5 15 Jan 2001
a 2 20 Jan 2001
Many Thanks in advance,
Adrian
eg table below has columns Type, Quantity & Date. I would like to group by Type, return the latest Date & return the corresponding Quantity value.
Type Quantity Date
a 5 15 Jan 2001
a 2 20 Jan 2001
Many Thanks in advance,
Adrian