Click here to Skip to main content
15,888,283 members
Home / Discussions / Database
   

Database

 
AnswerRe: Converting Val function in access to SQL Server Pin
Simon_Whale19-Aug-13 5:13
Simon_Whale19-Aug-13 5:13 
QuestionRe: Converting Val function in access to SQL Server Pin
Maciej Los19-Aug-13 8:38
mveMaciej Los19-Aug-13 8:38 
QuestionCan use SQL Server 2005 to Connection (link table) mySQL table ? Pin
Member 245846718-Aug-13 18:15
Member 245846718-Aug-13 18:15 
AnswerRe: Can use SQL Server 2005 to Connection (link table) mySQL table ? Pin
Mycroft Holmes18-Aug-13 19:41
professionalMycroft Holmes18-Aug-13 19:41 
AnswerRe: Can use SQL Server 2005 to Connection (link table) mySQL table ? Pin
Simon_Whale18-Aug-13 20:09
Simon_Whale18-Aug-13 20:09 
GeneralRe: Can use SQL Server 2005 to Connection (link table) mySQL table ? Pin
Mycroft Holmes18-Aug-13 21:18
professionalMycroft Holmes18-Aug-13 21:18 
GeneralRe: Can use SQL Server 2005 to Connection (link table) mySQL table ? Pin
Member 245846719-Aug-13 20:37
Member 245846719-Aug-13 20:37 
QuestionMS Access SQL: Turn rows into column Pin
Katvillan18-Aug-13 10:09
Katvillan18-Aug-13 10:09 
I’ve tried writing queries but they just don’t work. I tried joining tables, selecting the tables more than once and renaming it using AS.
I’d like to know if my desired output is really possible with mere using access sql ?? I need the query to set in my datatable for the gridview control. I am thinking of creating multiple datatable and assign them to one gridview instead of writing this complex query. But if there is a sql solution for this, I will stick to sql. Please share your ideas. Thank you.

I’ve been stuck with this problem, it’s like I’m trying to turn my rows into column. Here are my tables and the desired output.



Database tables:

TableDATA

ID  GB      FREE%   FS_DATE
1   0.58    43%     8/19/13 1:00 AM
2   2.42    52%     8/19/13 1:00 AM
3   4.93    2%      8/19/13 1:00 AM
4   5.12    75%     8/19/13 1:00 AM
5   0.50    1%      8/19/13 1:00 AM
6   0.582   430%    8/19/13 2:00 AM
7   2.422   520%    8/19/13 2:00 AM
8   4.932   200%    8/19/13 2:00 AM
9   5.122   750%    8/19/13 2:00 AM
10  0.522   100%    8/19/13 2:00 AM


TableFS

ID      FS     MountPT  FS_DATE             SERVER_ID
1      /dev/1  a        8/19/13 1:00 AM     HP-UX
2      /dev/2  b        8/19/13 1:00 AM     HP-UX
3      /dev/3  c        8/19/13 1:00 AM     HP-UX
4      /dev/4  d        8/19/13 1:00 AM     HP-UX
5      /dev/5  e        8/19/13 1:00 AM     HP-UX
6      /dev/1  a        8/19/13 2:00 AM     HP-UX
7      /dev/2  b        8/19/13 2:00 AM     HP-UX
8      /dev/3  c        8/19/13 2:00 AM     HP-UX
9      /dev/4  d        8/19/13 2:00 AM     HP-UX
10     /dev/5  e        8/19/13 2:00 AM     HP-UX



Required Output:
                (8/19/13 1:00)  (8/19/13 2:00)   (8/19/13 3:00 and so on.....)
FS      MountPT    GB   FREE%     GB     FREE%
/dev/1  a         0.58  43%      0.582   430%
/dev/2  b         2.42  52%      2.422   520%
/dev/3  c         4.93  2%       4.932   200%
/dev/4  d         5.12  75%      5.122   750%
/dev/5  e         0.50  1%       0.522   100%


modified 18-Aug-13 16:27pm.

AnswerRe: MS Access SQL: Turn rows into column Pin
Mycroft Holmes18-Aug-13 11:45
professionalMycroft Holmes18-Aug-13 11:45 
QuestionOOP Pin
candz_kritz18-Aug-13 0:30
candz_kritz18-Aug-13 0:30 
AnswerRe: OOP Pin
Richard MacCutchan18-Aug-13 1:27
mveRichard MacCutchan18-Aug-13 1:27 
AnswerRe: OOP Pin
PIEBALDconsult18-Aug-13 5:21
mvePIEBALDconsult18-Aug-13 5:21 
AnswerRe: OOP Pin
Eddy Vluggen18-Aug-13 6:54
professionalEddy Vluggen18-Aug-13 6:54 
AnswerRe: OOP Pin
SaqibRasheed18-Aug-13 11:30
SaqibRasheed18-Aug-13 11:30 
QuestionMySQL view definition oddity Pin
PIEBALDconsult15-Aug-13 8:01
mvePIEBALDconsult15-Aug-13 8:01 
AnswerRe: MySQL view definition oddity Pin
Jörgen Andersson15-Aug-13 8:44
professionalJörgen Andersson15-Aug-13 8:44 
GeneralRe: MySQL view definition oddity Pin
PIEBALDconsult15-Aug-13 10:21
mvePIEBALDconsult15-Aug-13 10:21 
GeneralRe: MySQL view definition oddity Pin
Jörgen Andersson15-Aug-13 11:02
professionalJörgen Andersson15-Aug-13 11:02 
GeneralRe: MySQL view definition oddity Pin
PIEBALDconsult15-Aug-13 11:16
mvePIEBALDconsult15-Aug-13 11:16 
QuestionTranslating Access SQL Statement to T-SQL Pin
Morore_Charles_00714-Aug-13 1:33
Morore_Charles_00714-Aug-13 1:33 
AnswerRe: Translating Access SQL Statement to T-SQL Pin
Richard Deeming14-Aug-13 1:58
mveRichard Deeming14-Aug-13 1:58 
QuestionSSIS Job - Proxy Login Failure Pin
lmaycock13-Aug-13 23:35
lmaycock13-Aug-13 23:35 
AnswerRe: SSIS Job - Proxy Login Failure Pin
GuyThiebaut14-Aug-13 0:09
professionalGuyThiebaut14-Aug-13 0:09 
GeneralRe: SSIS Job - Proxy Login Failure Pin
lmaycock14-Aug-13 8:51
lmaycock14-Aug-13 8:51 
QuestionSelect Statement in SQL Server Pin
KeithF13-Aug-13 22:37
KeithF13-Aug-13 22:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.