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 can I display this without line breaks
SQLCommandBuilder - GetUpdateCommand, GetInsertCommand and GetDeleteCommand Questions
Generate email and append fields to body
strange connection speed problem
freeware to modify Physical MAC address of a Win XP PC
Insert Into
Delete blank line from textarea
send as different user - exchange 2003/outlook 2003
Cross Domain Policy
migrate drupal from CentOS 4 to Centos 5 -----Also, Physical Machine to Virtual Machine