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
toggle visibility of <div> in galleria.js
Modify desktop icon size via registry in Server 2008
Run Windows 2008 Server in virtual environment on Windows 7 PRO?
Exchange 2010 on a domain controller 2008 R2 for 2 users?
How do I delete a file from a folder (uploads directory) when I delete its reference in the database?
Backup Exec 12.5 Job Running Extremely slow
Quickbooks 2010 QB crashes when trying to print to network printer
PoM/Tank Macro for Priest
Need to get the ip subset of a city
Combofix Log - Analysis Assistance Request