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
How do I delegate control to a user to ONLY remotely use Get-MessageTrackingLong cmdlet?
WSUS Clients not reporting to the WSUS console or SBS 2008 Console
PayPal Express Checkout Module
How do we use GPO (Group Policy) to REMOVE trusted sites from I.E. Trusted Sites Zone on workstations on a domain?
Extract date and part of the line from a log file
C# int with variable as part of int name
Populate an existing PDF form from PHP/MySQL recordset
htaccces more then 10 variables
Cant get vista to view my web site correctly!
There is a problem communicating with the CRM server. The server might be unavailable. Try again later