Microsoft
Software
Hardware
Network
Question : SELECT THE FIRST DATA
Hi All,
Suppose I have below data :
Customer TrsNo TrsDate Qty
A A1 01/01/2010 5
A A2 01/31/2010 10
B B1 01/02/2010 10
B B2 01/05/2010 5
B B3 01/29/2010 10
I want the result query :
Customer TrsNo TrsDate Qty
A A1 01/01/2010 5
B B1 01/02/2010 10
I want the first transaction date of each customer.
How could I do it?
Thank you.
Answer : SELECT THE FIRST DATA
Select Customer ,TrsNo ,TrsDate ,Qty
FROM (
Select Customer ,TrsNo ,TrsDate ,Qty,
rn = row_number() over (partition by Customer order by TrsDate ASC)
from tbl
) SQ
Where rn=1
Random Solutions
VB.net how to create a hashtable with a list of all parent and child controls and values
SQL Timeout when Changing Char Field Length
Cisco 3560 connecting to Dell switches
CPU TDP value/ reading rises up and down
Help with centering this background image
PC gets to windows XP splash screen - then reboots (f8 safe mode same)
Terminal Services on Windows SBS 2008 Standard
How do i make Timeslips 2009 work in Citrix Xendesktop on Windows XP
Running two VMWare Windows Servers on Same Linux Box
Is there a patch that will allow me to have Windows Server 2008 server run KMS to activate Windows 7 clients.