Click here to Skip to main content
15,886,258 members
Home / Discussions / Database
   

Database

 
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 
mehdi.sabet wrote:
what diffrence betwwen in two below table
The first will only work on Sql2005+, since that's when the Common Table Expression was introduced.

mehdi.sabet wrote:
assume that i remove temp table after run two query.

which of this two query is better than another (in performance aspect)

What makes you think there's much difference in terms of speed? Smile | :)

It's not like there's "duplicate" functionality and programmers having to look for the "most efficient" version of a routine. Your hunting for speed in the wrong place.

Now, to answer the question; the second version is preferred, it'd be unnoticeable faster. A good reason would be if you'd need to do multiple mutations on the same set. A good reason to use the CTE would be recursion.

Good luck.
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

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 
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 
QuestionHow to get data from Gridview (gridview(checkbox)) using asp.net and c#...... Pin
nukalarajesh1-May-13 21:19
nukalarajesh1-May-13 21:19 
AnswerRe: How to get data from Gridview (gridview(checkbox)) using asp.net and c#...... Pin
Richard MacCutchan1-May-13 21:27
mveRichard MacCutchan1-May-13 21:27 
AnswerRe: How to get data from Gridview (gridview(checkbox)) using asp.net and c#...... Pin
AANIL DHAKAD8-May-13 3:17
AANIL DHAKAD8-May-13 3:17 
Questionhow to upload a iamge file on web server in mvc4 asp.net c# Pin
nukalarajesh1-May-13 21:06
nukalarajesh1-May-13 21:06 
QuestionSQL Server null date 01/01/1900 possible issue - a question Pin
GuyThiebaut1-May-13 5:51
professionalGuyThiebaut1-May-13 5:51 
AnswerRe: SQL Server null date 01/01/1900 possible issue - a question Pin
Richard Deeming1-May-13 6:04
mveRichard Deeming1-May-13 6:04 
GeneralRe: SQL Server null date 01/01/1900 possible issue - a question Pin
Aner Bautista3-May-13 8:25
Aner Bautista3-May-13 8:25 
GeneralRe: SQL Server null date 01/01/1900 possible issue - a question Pin
jschell3-May-13 11:24
jschell3-May-13 11:24 
AnswerRe: SQL Server null date 01/01/1900 possible issue - a question Pin
Eddy Vluggen1-May-13 6:37
professionalEddy Vluggen1-May-13 6:37 
AnswerRe: SQL Server null date 01/01/1900 possible issue - a question Pin
jschell1-May-13 8:28
jschell1-May-13 8:28 
GeneralRe: SQL Server null date 01/01/1900 possible issue - a question Pin
Richard Deeming1-May-13 8:43
mveRichard Deeming1-May-13 8:43 

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.