Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 distinct

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2004-02-10 : 07:52:28
nottisue writes "please help me on how to create result layout instead of

--day-----time-----user
---1-----2:00pm----john
---1-----2:15pm----mike
---1-----3:00pm----shawn
---2-----2:09pm----mike
---2-----3:02pm----john

to:

--day-----time-----user
---1-----2:00pm----john
---------2:15pm----mike
---------3:00pm----shawn
---2-----2:09pm----mike
---------3:02pm----john

i tried with 'distinct' but that didnt work
my point here is,
i'm trying to eliminate the duplication in the first column.

select day, time, user from log order by day
[these are not the real sql statement]

please help
thank you"

robvolk
Most Valuable Yak

15732 Posts

Posted - 2004-02-10 : 07:53:34
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=32270
Go to Top of Page
   

- Advertisement -