Click here to Skip to main content
15,896,557 members
Home / Discussions / Database
   

Database

 
QuestionER Diagramming Tools - which one to use Pin
ole.Grossklaus@gmx.de10-May-13 2:37
ole.Grossklaus@gmx.de10-May-13 2:37 
AnswerRe: ER Diagramming Tools - which one to use Pin
Jörgen Andersson12-May-13 8:01
professionalJörgen Andersson12-May-13 8:01 
NewsNew Built-In functions in 2012 Pin
Karthik J, Coimbatore10-May-13 2:24
Karthik J, Coimbatore10-May-13 2:24 
GeneralRe: New Built-In functions in 2012 Pin
Richard MacCutchan10-May-13 4:05
mveRichard MacCutchan10-May-13 4:05 
GeneralRe: New Built-In functions in 2012 Pin
jschell10-May-13 8:00
jschell10-May-13 8:00 
QuestionCannot Find Rows With % character in Text Fields with Access SQL Pin
JohnBlocker8-May-13 10:01
JohnBlocker8-May-13 10:01 
AnswerRe: Cannot Find Rows With % character in Text Fields with Access SQL Pin
Jörgen Andersson9-May-13 9:34
professionalJörgen Andersson9-May-13 9:34 
GeneralRe: Cannot Find Rows With % character in Text Fields with Access SQL Pin
JohnBlocker9-May-13 22:15
JohnBlocker9-May-13 22:15 
GeneralRe: Cannot Find Rows With % character in Text Fields with Access SQL Pin
Jörgen Andersson10-May-13 4:51
professionalJörgen Andersson10-May-13 4:51 
AnswerRe: Cannot Find Rows With % character in Text Fields with Access SQL Pin
Richard Deeming10-May-13 1:39
mveRichard Deeming10-May-13 1:39 
AnswerRe: Cannot Find Rows With % character in Text Fields with Access SQL Pin
jschell10-May-13 8:02
jschell10-May-13 8:02 
AnswerRe: Cannot Find Rows With % character in Text Fields with Access SQL Pin
Fabricio Dos Santos Antunes10-May-13 15:22
Fabricio Dos Santos Antunes10-May-13 15:22 
Questionrule of DataAdapter Pin
messages7-May-13 21:10
messages7-May-13 21:10 
AnswerRe: rule of DataAdapter Pin
PIEBALDconsult8-May-13 4:59
mvePIEBALDconsult8-May-13 4:59 
GeneralRe: rule of DataAdapter Pin
messages8-May-13 8:47
messages8-May-13 8:47 
GeneralRe: rule of DataAdapter Pin
PIEBALDconsult9-May-13 4:35
mvePIEBALDconsult9-May-13 4:35 
GeneralRe: rule of DataAdapter Pin
messages9-May-13 5:16
messages9-May-13 5:16 
Questiondifference between with and temp table in my two query Pin
mhd.sbt7-May-13 9:02
mhd.sbt7-May-13 9:02 
AnswerRe: difference between with and temp table in my two query Pin
Eddy Vluggen7-May-13 9:40
professionalEddy Vluggen7-May-13 9:40 
AnswerRe: difference between with and temp table in my two query Pin
Jörgen Andersson8-May-13 11:52
professionalJörgen Andersson8-May-13 11:52 
On SQLServer you can think of the CTE as an inline view, while the temporary table will be materialized and can be indexed.

mehdi.sabet wrote:
which of this two query is better than another (in performance aspect)

In this specific case probably the CTE, because the select is straight forward and directly streamed to output.
While the temp table needs to be materialized, if even just in memory, and selected from memory to the output.

If the CTE/temptable would be used in more than one place and/or the select could benefit from indexing the temptable, the result could be quite different.

On Oracle it's a bit different though. There a CTE can be materialized.
Be excellent to each other. And... PARTY ON, DUDES!
Abraham Lincoln

AnswerRe: difference between with and temp table in my two query Pin
Fabricio Dos Santos Antunes10-May-13 14:55
Fabricio Dos Santos Antunes10-May-13 14:55 
QuestionExport Image from SQL to png Format Pin
mrfalk7-May-13 8:09
mrfalk7-May-13 8:09 
AnswerRe: Export Image from SQL to png Format Pin
Eddy Vluggen7-May-13 9:52
professionalEddy Vluggen7-May-13 9:52 
QuestionBulk insert not recognizing end of file Pin
searching for solution.....5-May-13 23:18
searching for solution.....5-May-13 23:18 
AnswerRe: Bulk insert not recognizing end of file Pin
Eddy Vluggen6-May-13 7:56
professionalEddy Vluggen6-May-13 7:56 

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.