Microsoft
Software
Hardware
Network
Question : Grab last two lab results
I need to grab the last two lab results from a table by date. How do I do this? I can grab max but not sure how to grab the last two. If there are 10 results I just want the last two
Answer : Grab last two lab results
select * from
(
select *,
rn=row_number() over (partition by patientid order by date desc) -- rank for each patient by latest date
from tbl
) SQ
where rn<=2 --- only top 2
Random Solutions
Securly hide contents of worksheet
Closing Quickbooks 2007 results in a .NET Broadbast Event Window Error
3G Datacards v USB fobs
VMWare Workstation 7.1 - Bridged Network Image
counting in a bettre way
how to share folder without password in windows server 2003????
Users not receiving NDRs for incorrect external email address - Ex2010
Allowing non-administrators to update Global Address List in Exchange 2007
restarting WWW services daily
Other then my DNS setting on my Proxy server, do I realll need an internal DNS server for fewer than 100 workstations?