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

Database

 
AnswerRe: sql server 2008 r2 Pin
Wes Aday3-Aug-12 10:57
professionalWes Aday3-Aug-12 10:57 
AnswerRe: sql server 2008 r2 Pin
Corporal Agarn6-Aug-12 9:41
professionalCorporal Agarn6-Aug-12 9:41 
AnswerRe: sql server 2008 r2 Pin
Niladri_Biswas21-Aug-12 23:19
Niladri_Biswas21-Aug-12 23:19 
QuestionRecords on the basis of two different tables. Pin
Rohit Kesharwani3-Aug-12 4:37
Rohit Kesharwani3-Aug-12 4:37 
AnswerRe: Records on the basis of two different tables. Pin
Eddy Vluggen3-Aug-12 5:31
professionalEddy Vluggen3-Aug-12 5:31 
GeneralRe: Records on the basis of two different tables. Pin
Simon_Whale3-Aug-12 5:59
Simon_Whale3-Aug-12 5:59 
QuestionHow to improve SQL Database Select query's performance ? Pin
Member 86872033-Aug-12 2:29
Member 86872033-Aug-12 2:29 
AnswerRe: How to improve SQL Database Select query's performance ? Pin
PIEBALDconsult3-Aug-12 3:52
mvePIEBALDconsult3-Aug-12 3:52 
Count your blessings. I'd be ecstatic if some of the queries I'm working on currently took only twenty seconds.

One of the techniques I found that improved some of the worst (similar to yours) from several hours to about twenty minutes is the use of Common Table Expressions.

Instead of

SELECT ...
FROM A
INNER JOIN B...
INNER JOIN C...
INNER JOIN D...

You can do

WITH a AS
(
SELECT ...
FROM A
INNER JOIN B ...
)
, b AS
(
SELECT ...
FROM a
INNER JOIN C ...
)
SELECT ...
FROM b
INNER JOIN D ...
GeneralRe: How to improve SQL Database Select query's performance ? Pin
Paul Conrad4-Aug-12 11:55
professionalPaul Conrad4-Aug-12 11:55 
GeneralRe: How to improve SQL Database Select query's performance ? Pin
David Mujica6-Aug-12 3:35
David Mujica6-Aug-12 3:35 
AnswerRe: How to improve SQL Database Select query's performance ? Pin
Michael Potter3-Aug-12 5:38
Michael Potter3-Aug-12 5:38 
AnswerRe: How to improve SQL Database Select query's performance ? Pin
Mycroft Holmes3-Aug-12 13:55
professionalMycroft Holmes3-Aug-12 13:55 
GeneralSQL Server - full text search sentences that match keyword Pin
asimptota7773-Aug-12 1:31
asimptota7773-Aug-12 1:31 
GeneralRe: SQL Server - full text search sentences that match keyword Pin
Eddy Vluggen3-Aug-12 2:19
professionalEddy Vluggen3-Aug-12 2:19 
GeneralRe: SQL Server - full text search sentences that match keyword Pin
asimptota7773-Aug-12 3:35
asimptota7773-Aug-12 3:35 
AnswerRe: SQL Server - full text search sentences that match keyword Pin
Eddy Vluggen3-Aug-12 5:14
professionalEddy Vluggen3-Aug-12 5:14 
GeneralRe: SQL Server - full text search sentences that match keyword Pin
asimptota7775-Aug-12 21:52
asimptota7775-Aug-12 21:52 
GeneralRe: SQL Server - full text search sentences that match keyword Pin
Eddy Vluggen5-Aug-12 23:17
professionalEddy Vluggen5-Aug-12 23:17 
AnswerRe: SQL Server - full text search sentences that match keyword Pin
asimptota7776-Aug-12 0:28
asimptota7776-Aug-12 0:28 
GeneralRe: SQL Server - full text search sentences that match keyword Pin
Eddy Vluggen6-Aug-12 0:42
professionalEddy Vluggen6-Aug-12 0:42 
GeneralRe: SQL Server - full text search sentences that match keyword Pin
asimptota7776-Aug-12 0:55
asimptota7776-Aug-12 0:55 
GeneralRe: SQL Server - full text search sentences that match keyword Pin
Eddy Vluggen6-Aug-12 1:18
professionalEddy Vluggen6-Aug-12 1:18 
GeneralCauses of Urecognized Database Format Pin
ASPnoob2-Aug-12 23:25
ASPnoob2-Aug-12 23:25 
GeneralRe: Causes of Urecognized Database Format Pin
Mycroft Holmes2-Aug-12 23:34
professionalMycroft Holmes2-Aug-12 23:34 
GeneralRe: Causes of Urecognized Database Format Pin
Eddy Vluggen2-Aug-12 23:40
professionalEddy Vluggen2-Aug-12 23:40 

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.