Click here to Skip to main content
15,898,035 members
Home / Discussions / Database
   

Database

 
QuestionRead a portion of flat file - SSIS Pin
amnaahmad12-Apr-07 21:15
amnaahmad12-Apr-07 21:15 
Questionsql query for number days in a month & number of sundays in a month... Pin
Member 387988112-Apr-07 20:47
Member 387988112-Apr-07 20:47 
AnswerRe: sql query for number days in a month & number of sundays in a month... Pin
Krish - KP13-Apr-07 2:05
Krish - KP13-Apr-07 2:05 
Questionneed a query in microsoft sql server Pin
Revathi Raj12-Apr-07 20:13
Revathi Raj12-Apr-07 20:13 
AnswerRe: need a query in microsoft sql server Pin
Krish - KP12-Apr-07 21:34
Krish - KP12-Apr-07 21:34 
Questionretrieve all database names Pin
yuvachandra12-Apr-07 18:44
yuvachandra12-Apr-07 18:44 
AnswerRe: retrieve all database names Pin
Krish - KP12-Apr-07 20:14
Krish - KP12-Apr-07 20:14 
GeneralRe: retrieve all database names Pin
yuvachandra12-Apr-07 21:33
yuvachandra12-Apr-07 21:33 
GeneralRe: retrieve all database names Pin
Krish - KP12-Apr-07 21:39
Krish - KP12-Apr-07 21:39 
GeneralRe: retrieve all database names Pin
yuvachandra12-Apr-07 22:41
yuvachandra12-Apr-07 22:41 
QuestionHelp on SQL Crosstab query (VERY SLOW) Pin
Chandman12-Apr-07 6:44
Chandman12-Apr-07 6:44 
AnswerRe: Help on SQL Crosstab query (VERY SLOW) Pin
Pete O'Hanlon12-Apr-07 9:27
mvePete O'Hanlon12-Apr-07 9:27 
AnswerRe: Help on SQL Crosstab query (VERY SLOW) Pin
DQNOK12-Apr-07 9:58
professionalDQNOK12-Apr-07 9:58 
GeneralRe: Help on SQL Crosstab query (VERY SLOW) [modified] Pin
Chandman12-Apr-07 12:19
Chandman12-Apr-07 12:19 
GeneralRe: Help on SQL Crosstab query (VERY SLOW) Pin
DQNOK12-Apr-07 12:30
professionalDQNOK12-Apr-07 12:30 
GeneralRe: Help on SQL Crosstab query (VERY SLOW) Pin
Chandman12-Apr-07 13:22
Chandman12-Apr-07 13:22 
GeneralRe: Help on SQL Crosstab query (VERY SLOW) Pin
Pete O'Hanlon13-Apr-07 1:45
mvePete O'Hanlon13-Apr-07 1:45 
GeneralRe: Help on SQL Crosstab query (VERY SLOW) Pin
Chandman13-Apr-07 8:18
Chandman13-Apr-07 8:18 
GeneralRe: Help on SQL Crosstab query (VERY SLOW) Pin
Pete O'Hanlon13-Apr-07 9:58
mvePete O'Hanlon13-Apr-07 9:58 
GeneralRe: Help on SQL Crosstab query (VERY SLOW) [modified] Pin
DQNOK13-Apr-07 7:13
professionalDQNOK13-Apr-07 7:13 
GeneralRe: Help on SQL Crosstab query (VERY SLOW) Pin
Chandman13-Apr-07 8:10
Chandman13-Apr-07 8:10 
GeneralRe: Help on SQL Crosstab query (VERY SLOW) Pin
DQNOK13-Apr-07 8:30
professionalDQNOK13-Apr-07 8:30 
You're welcome. But, I needed the practice anyway, and besides, once I got thinking about the problem, I couldn't get it off my mind. I'll probably used what I learned in some other project.

True, my Tests table only had 48 rows, but I don't believe that is the issue. If you carefully consider my query, you'll see that the DB engine only has to scan the Cars table once, and (assuming both Tests.CarID and Tests.TestTypeID are indexed) the Tests table ONCE! That is the key. I believe the reason yours is running slowly is due to the complexity of the table structure, not because you're attempting a crosstab.

If it's utterly impossible to simplify the table structure, or to dump just enough of the tables into a simplifed structure so this query will run quickly, then you may be right about not doing it this way.

Good Luck.
GeneralRe: Help on SQL Crosstab query (VERY SLOW) [modified] Pin
Chandman13-Apr-07 10:35
Chandman13-Apr-07 10:35 
Questiongetting data in parts Pin
ArchaBhandare12-Apr-07 2:11
ArchaBhandare12-Apr-07 2:11 
AnswerRe: getting data in parts Pin
Pete O'Hanlon12-Apr-07 2:16
mvePete O'Hanlon12-Apr-07 2:16 

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.