Microsoft
Software
Hardware
Network
Question : how to get single line answer for my query
Hi,
I have a query which gives 10 lines
like this
user_ code role
nsk adm
sathish adm
sathis01 adm
sathish buyer
sathish approver
sathis01 buyer
sathis02 buyer
the result are coming like this i want to the result should be
user_ code role
nsk adm
sathish adm
sathis01 adm
sathis02 buyer
like this . No repeating user_code how can i achive this throw query !
Answer : how to get single line answer for my query
select user_code,min(role) from YourTableName group by user_code
Random Solutions
Query question - difference in single table
Enumerate Exchange Emails in vb.Net
Netman DCOM settings are disabled by default in Windows 7
MS Access 2003 mdb opening error 'Data is in an inconsistent state'
Stupidly activated "Log on using dial-up connection' and cant log in because i dont even have a dial-up connection
Hide the max, min and close buttons on a MDI Form
Query by time range not date. ie 7:00a - 2:59a
windows server 2008
Printing to a specific printer
Excel Exception from HRESULT Error