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)
 Complex join Need expertise

Author  Topic 

skillile
Posting Yak Master

208 Posts

Posted - 2001-11-03 : 23:15:52
Not even sure how to start. Any suggestions would be great
My first impression is to use a pivot table with a bunch of case statements.

table users
-----------
[UID] [NAME]
1 john
2 mary
3 frank


table events
------------
[EID] [UID] [DESC] [DATETIME]
1 1 something 8/11 8:00
2 2 something 8/11 8:00
3 3 something 8/11 2:00
4 1 something 8/11 1:00
5 1 something 8/11 10:00
5 2 something 8/11 11:00

-------------------------------------------

NEEDED RESULT
8/11
[TIME] [JOHN] [MARY] [FRANK]
8:00 x x
9:00
10:00 x
11:00 x
12:00
1:00 x
2:00 x
..

slow down to move faster...
   

- Advertisement -