Microsoft
Software
Hardware
Network
Question : Pull info in first record of a group
I have a large table which contains two fields - LEAD, and NAME. I am using a query to group the information by LEAD. There are many duplicates in LEAD but not in the NAME field. Meaning, that for the same LEAD number there might be multiple names assosicated with it.
When I pull my query grouping the LEADs I need to pull the information that is in the first record of the group for NAME.
I've attached a file with some sample data and a view of what I need the results to look like.
Thank you!!
Attachments:
Sample.xlsx
(9 KB)
(File Type Details)
Sample of table and what I need
Answer : Pull info in first record of a group
or just min
select Lead, Min([Name])
from tablex
group by Lead
Random Solutions
A simple secuiry question
indexed table in snmp trap
PowerEdge 1950 - Hard Drive Upgrade - Server 2003 R2
Delete shortcut from all users desktop via script
CX600 FLARE 2.05.600.5.007 - upgrade procedure to 2.19?
comment SP
Some email bypassing spam filter
Trying to upgrade from 2008 64 to 2008 R2 and it states WSUS needs to be removed
Copy large file
SQL Statement. Copy and paste characters from cell into another in same record