Click here to Skip to main content
15,891,428 members
Home / Discussions / Database
   

Database

 
AnswerRe: A connection to Sqlce using c++ for a smart device using ADO Pin
hairy_hats11-Jun-10 3:17
hairy_hats11-Jun-10 3:17 
GeneralRe: A connection to Sqlce using c++ for a smart device using ADO Pin
king'ori12-Jun-10 0:37
king'ori12-Jun-10 0:37 
QuestionMultiple queries as one table Pin
Morgs Morgan9-Jun-10 4:44
Morgs Morgan9-Jun-10 4:44 
AnswerRe: Multiple queries as one table Pin
loyal ginger9-Jun-10 5:17
loyal ginger9-Jun-10 5:17 
GeneralRe: Multiple queries as one table Pin
Morgs Morgan9-Jun-10 5:45
Morgs Morgan9-Jun-10 5:45 
GeneralRe: Multiple queries as one table Pin
J4amieC9-Jun-10 6:46
J4amieC9-Jun-10 6:46 
GeneralRe: Multiple queries as one table Pin
Morgs Morgan9-Jun-10 7:42
Morgs Morgan9-Jun-10 7:42 
GeneralRe: Multiple queries as one table Pin
Johan Hakkesteegt10-Jun-10 3:15
Johan Hakkesteegt10-Jun-10 3:15 
That is not a problem. Simply determine which query returns the most columns, and add dummy columns to the other queries, such that each query returns the same amount of columns. use 0 for columns with numerical values, and '' for columns with text values.

So for example:

SQL
SELECT NumericalColumn1, NumericalColumn1, textColumn1
FROM Table1
WHERE blabla
UNION ALL
SELECT NumericalColumn1, 0, ''
FROM Table2
WHERE blabla
UNION ALL
SELECT 0, 0, textColumn1
FROM Table3
WHERE blabla

My advice is free, and you may get what you paid for.

QuestionSQL query to read all the records one by one Pin
Yvon Bourgouin9-Jun-10 3:13
Yvon Bourgouin9-Jun-10 3:13 
AnswerRe: SQL query to read all the records one by one Pin
R. Giskard Reventlov9-Jun-10 3:31
R. Giskard Reventlov9-Jun-10 3:31 
GeneralRe: SQL query to read all the records one by one Pin
Yvon Bourgouin9-Jun-10 3:53
Yvon Bourgouin9-Jun-10 3:53 
GeneralRe: SQL query to read all the records one by one Pin
R. Giskard Reventlov9-Jun-10 4:45
R. Giskard Reventlov9-Jun-10 4:45 
AnswerRe: SQL query to read all the records one by one Pin
Scubapro9-Jun-10 4:50
Scubapro9-Jun-10 4:50 
GeneralRe: SQL query to read all the records one by one Pin
Yvon Bourgouin9-Jun-10 4:58
Yvon Bourgouin9-Jun-10 4:58 
GeneralRe: SQL query to read all the records one by one Pin
Johan Hakkesteegt10-Jun-10 3:09
Johan Hakkesteegt10-Jun-10 3:09 
GeneralRe: SQL query to read all the records one by one Pin
supercat99-Jun-10 5:43
supercat99-Jun-10 5:43 
GeneralRe: SQL query to read all the records one by one Pin
Yvon Bourgouin9-Jun-10 8:55
Yvon Bourgouin9-Jun-10 8:55 
GeneralRe: SQL query to read all the records one by one Pin
David Skelly9-Jun-10 5:44
David Skelly9-Jun-10 5:44 
GeneralRe: SQL query to read all the records one by one Pin
i.j.russell9-Jun-10 8:20
i.j.russell9-Jun-10 8:20 
GeneralRe: SQL query to read all the records one by one Pin
Yvon Bourgouin9-Jun-10 8:53
Yvon Bourgouin9-Jun-10 8:53 
AnswerRe: SQL query to read all the records one by one Pin
J4amieC9-Jun-10 4:54
J4amieC9-Jun-10 4:54 
QuestionMS SQL permissions mangement Pin
T M Gray8-Jun-10 10:21
T M Gray8-Jun-10 10:21 
AnswerRe: MS SQL permissions mangement Pin
Mycroft Holmes8-Jun-10 15:07
professionalMycroft Holmes8-Jun-10 15:07 
GeneralRe: MS SQL permissions mangement Pin
T M Gray9-Jun-10 8:06
T M Gray9-Jun-10 8:06 
GeneralRe: MS SQL permissions mangement Pin
Mycroft Holmes9-Jun-10 12:52
professionalMycroft Holmes9-Jun-10 12:52 

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.