Click here to Skip to main content
15,915,324 members
Home / Discussions / Database
   

Database

 
GeneralJOIN tables in different databases Pin
Just Greeky Creek30-Jan-05 22:27
Just Greeky Creek30-Jan-05 22:27 
GeneralRe: JOIN tables in different databases Pin
Colin Angus Mackay30-Jan-05 23:14
Colin Angus Mackay30-Jan-05 23:14 
GeneralRe: JOIN tables in different databases Pin
Just Greeky Creek31-Jan-05 3:54
Just Greeky Creek31-Jan-05 3:54 
GeneralRe: JOIN tables in different databases Pin
Colin Angus Mackay2-Feb-05 3:04
Colin Angus Mackay2-Feb-05 3:04 
GeneralSQL transaction rollback and commit Pin
ppp00130-Jan-05 21:54
ppp00130-Jan-05 21:54 
GeneralRe: SQL transaction rollback and commit Pin
David Salter31-Jan-05 7:28
David Salter31-Jan-05 7:28 
GeneralCrosstab in SQL Server 2000 Pin
ColdWaterBlue30-Jan-05 10:51
ColdWaterBlue30-Jan-05 10:51 
GeneralRe: Crosstab in SQL Server 2000 Pin
Colin Angus Mackay30-Jan-05 12:45
Colin Angus Mackay30-Jan-05 12:45 
Gosh! I could not even follow that. I'd have to sit down with paper and pencil to work that out.

Here is an example of doing a cross tab query from the SQL Server books on-line: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/acdata/ac_8_qd_14_04j7.asp[^]

I'm guessing that both (the query you linked to and the one I've linked to) probably suffer from the same weakness. If there is a null in the source data then the value in the pivot table will be null also.

I don't know if that helps any - but the Microsoft example does at least show how to do a simple cross-tab query, even although it isn't a catch all like the one you linked to. I suggest starting with the Microsoft example and working from there.


Do you want to know more?
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and Forums


GeneralNeed your help on SQL learning. Pin
denniskang200430-Jan-05 7:19
denniskang200430-Jan-05 7:19 
QuestionHandling quote marks in sql? Pin
davebarkshire28-Jan-05 23:52
davebarkshire28-Jan-05 23:52 
AnswerRe: Handling quote marks in sql? Pin
Colin Angus Mackay29-Jan-05 0:04
Colin Angus Mackay29-Jan-05 0:04 
GeneralRe: Handling quote marks in sql? Pin
davebarkshire29-Jan-05 1:18
davebarkshire29-Jan-05 1:18 
GeneralRe: Handling quote marks in sql? Pin
Colin Angus Mackay29-Jan-05 1:35
Colin Angus Mackay29-Jan-05 1:35 
GeneralReading Dataset's DataTable Pin
ZisisGR28-Jan-05 0:22
ZisisGR28-Jan-05 0:22 
GeneralRe: Reading Dataset's DataTable Pin
Colin Angus Mackay28-Jan-05 0:36
Colin Angus Mackay28-Jan-05 0:36 
GeneralRe: Reading Dataset's DataTable Pin
ZisisSim28-Jan-05 3:33
ZisisSim28-Jan-05 3:33 
GeneralConvert SqlDataReader to DataSet Pin
ILoveSing27-Jan-05 22:47
ILoveSing27-Jan-05 22:47 
GeneralRe: Convert SqlDataReader to DataSet Pin
Colin Angus Mackay27-Jan-05 22:51
Colin Angus Mackay27-Jan-05 22:51 
GeneralDetermining the ID of an inserted row Pin
Ahmed Hefny27-Jan-05 21:26
Ahmed Hefny27-Jan-05 21:26 
GeneralRe: Determining the ID of an inserted row Pin
Colin Angus Mackay27-Jan-05 22:58
Colin Angus Mackay27-Jan-05 22:58 
Generalsaving and retrieving image data Pin
Rashid_Mehmood27-Jan-05 20:01
Rashid_Mehmood27-Jan-05 20:01 
GeneralRe: saving and retrieving image data Pin
Colin Angus Mackay28-Jan-05 0:39
Colin Angus Mackay28-Jan-05 0:39 
GeneralRe: saving and retrieving image data Pin
Mike Dimmick28-Jan-05 2:38
Mike Dimmick28-Jan-05 2:38 
GeneralRe: saving and retrieving image data Pin
Mr.Cooper9-Feb-05 1:01
Mr.Cooper9-Feb-05 1:01 
Generaldatatable only working occasionally Pin
lxhan27-Jan-05 18:49
lxhan27-Jan-05 18:49 

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.