Click here to Skip to main content
15,902,299 members
Home / Discussions / Database
   

Database

 
AnswerRe: Simultaneous access to MS Access Pin
PIEBALDconsult27-Jan-09 15:13
mvePIEBALDconsult27-Jan-09 15:13 
GeneralRe: Simultaneous access to MS Access Pin
Member 38229225-Feb-09 13:50
Member 38229225-Feb-09 13:50 
GeneralRe: Simultaneous access to MS Access Pin
PIEBALDconsult5-Feb-09 14:11
mvePIEBALDconsult5-Feb-09 14:11 
GeneralRe: Simultaneous access to MS Access Pin
Member 38229225-Feb-09 14:32
Member 38229225-Feb-09 14:32 
QuestionGetting values from two tables. Pin
kurangu27-Jan-09 6:40
kurangu27-Jan-09 6:40 
AnswerRe: Getting values from two tables. Pin
Wendelius27-Jan-09 6:58
mentorWendelius27-Jan-09 6:58 
GeneralRe: Getting values from two tables. Pin
kurangu27-Jan-09 7:33
kurangu27-Jan-09 7:33 
GeneralRe: Getting values from two tables. Pin
Wendelius27-Jan-09 7:59
mentorWendelius27-Jan-09 7:59 
AFAIK that won't be possible using a single query and it will be problematic if the result sets have different amount of rows. For example, if the first result set is 10 rows and the second one is 20 row, the only way that comes in mind is something like:
- insert the first sorted result set (10 rows) to a temporary table
- add two columns to the temporary table
- update the existing 10 rows with the first 10 rows of the second sorted result set
- insert the rest 10 rows from the second sorted result set to the table in the columns 3 and 4.

However this will lead to a situation where you have 20 rows but the column 1 and 2 for the last 10 rows will be null. It makes me wonder what is the use for this kind of result.

The need to optimize rises from a bad design.My articles[^]

QuestionMultiple Values In single Parameter in oracle Pin
vikram_asv27-Jan-09 5:42
vikram_asv27-Jan-09 5:42 
AnswerRe: Multiple Values In single Parameter in oracle Pin
Wendelius27-Jan-09 6:07
mentorWendelius27-Jan-09 6:07 
QuestionSQL Server 2005 and SQL Server 2008 on the same server Pin
pzn3xq27-Jan-09 4:10
pzn3xq27-Jan-09 4:10 
AnswerRe: SQL Server 2005 and SQL Server 2008 on the same server Pin
Wendelius27-Jan-09 4:46
mentorWendelius27-Jan-09 4:46 
QuestionSlow query when using @variable in Where clause [modified] Pin
Meysam Mahfouzi27-Jan-09 4:06
Meysam Mahfouzi27-Jan-09 4:06 
AnswerRe: Slow query when using @variable in Where clause Pin
Rob Philpott27-Jan-09 4:25
Rob Philpott27-Jan-09 4:25 
GeneralRe: Slow query when using @variable in Where clause Pin
Meysam Mahfouzi27-Jan-09 8:18
Meysam Mahfouzi27-Jan-09 8:18 
GeneralRe: Slow query when using @variable in Where clause [modified] Pin
Meysam Mahfouzi27-Jan-09 20:45
Meysam Mahfouzi27-Jan-09 20:45 
GeneralRe: Slow query when using @variable in Where clause Pin
Rob Philpott27-Jan-09 23:49
Rob Philpott27-Jan-09 23:49 
AnswerRe: Slow query when using @variable in Where clause Pin
Ben Fair27-Jan-09 4:43
Ben Fair27-Jan-09 4:43 
GeneralRe: Slow query when using @variable in Where clause Pin
Meysam Mahfouzi27-Jan-09 8:21
Meysam Mahfouzi27-Jan-09 8:21 
GeneralRe: Slow query when using @variable in Where clause Pin
Ben Fair27-Jan-09 10:50
Ben Fair27-Jan-09 10:50 
AnswerRe: Slow query when using @variable in Where clause Pin
Wendelius27-Jan-09 4:58
mentorWendelius27-Jan-09 4:58 
GeneralRe: Slow query when using @variable in Where clause Pin
Meysam Mahfouzi27-Jan-09 8:14
Meysam Mahfouzi27-Jan-09 8:14 
GeneralRe: Slow query when using @variable in Where clause Pin
Wendelius27-Jan-09 8:36
mentorWendelius27-Jan-09 8:36 
GeneralRe: Slow query when using @variable in Where clause Pin
Meysam Mahfouzi27-Jan-09 9:09
Meysam Mahfouzi27-Jan-09 9:09 
GeneralRe: Slow query when using @variable in Where clause Pin
Wendelius27-Jan-09 9:34
mentorWendelius27-Jan-09 9:34 

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.