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
SQL - CASE Statement help needed
Outlook 2007 Recover email rules from old pst
Outlook 2007 - How to migrate two outlook profiles from old computer to new computer
How to create a text search facility with wildcard
Delete Reporting Services Instances
Access Query Design Where/Or Criteria Trouble (SQL Where)
add a zero to a number...
Cannot execute stored procs from Access without using SQL Native Client driver
pause code in sql2008 through Access07
Using subquery to supply VALUE in INSERT statement