Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Possible in one SELECT command?
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01063783
Message ID:
01063794
Views:
14
This message has been marked as a message which has helped to the initial question of the thread.
>Hi SQL gurus
>I have the following fields:
>CDate(D), CTime (C5), Patient (C30)
>As you may have understood, CDate holds dates, ctime times ( military ) and patient holds names.
>I am trying to get to the following, but since i think i may use only one UNION per select, i don't know if it's possible in one select command:
>
>CTime   Sunday    Monday   Tuesday    Wednesday
>-----   -------   ------   -------    ---------
>10:00   Sergio             Ken         Alfred
>10:15                                  Joseph
>10:15                                  Kim
>10:30   Fabio
>
>Well, you get the drill...
>
>TIA
>Jaime

It's a cross tab query. Get FastXTab from Downloads section here. You need data like this grouped by cdow, time, name. Once you have this, you can apply cross-tab.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform