Viewing 15 posts - 151 through 165 (of 194 total)
in this case the execution plan is identical between union and union all (SORT (DISTINCT SORT)). Precedence got me on this one 🙂 I'll chalk it up to...
October 11, 2011 at 7:23 am
Without an identifier for whether a record is a business name that needs to be concatenated with out a space then there really is no way to do this.
October 7, 2011 at 11:38 am
Try the function by Jeff Moden that uses a Tally Table, much cleaner and faster.
October 7, 2011 at 11:24 am
My only comment is that there is no identifier (per other QOTD's) of how many answers to answer... I got 2 out of 3 but still marked as wrong.
October 5, 2011 at 6:41 am
Chances are that 700K rows are used for some type of drill down report with a Summarization that is all anyone looks at. I know of reports that have...
October 4, 2011 at 11:58 am
Look up the work of Jeff Moden and the SQL 8K Delimited split function, then you just join that to your table. It avoids the issue of SQL Injection.
here's...
October 4, 2011 at 11:54 am
kbartakke (9/28/2011)
I tried to use your query but again its giving me all results and It didnt filter anything.
Then you need to post sample data and the DDL. The...
September 28, 2011 at 11:20 am
kbartakke (9/28/2011)
Department table
eid ...
September 28, 2011 at 10:05 am
hindle.steve (9/28/2011)
EXEC [LinkedServerName].master.sys.sp_executesql 'BACKUP DATABASE DB TO DISK =
''\UNCPath\DB.BAK''
WITH COPY_ONLY, NOFORMAT, NOINIT, SKIP, NOREWIND, NOUNLOAD, COMPRESSION, STATS = 10'
I'm getting a Procedure...
September 28, 2011 at 10:00 am
I thought the question was fine. The trickery would have gotten closer to an 80% failed if the possible answers had included the number 4. That was my...
September 27, 2011 at 6:37 am
I read the article about the Amazon warehouse... I actually found it on first glance to be unbelievable. I live in the southern US where humidity and temperatures are...
September 26, 2011 at 7:45 am
try using CAST(ISNULL(NullIF(dtDate, '999999'), '1/1/1900') AS DATETIME) for your selection, then use CASE WHEN ISNULL(dtdate,'1/1/1900') = '1/1/1900' THEN '99999' ELSE dtdate END
Since I don't know your DDL and such, this...
September 22, 2011 at 11:53 am
Michael,
Here's some food for thought for you. Use the split function that Sean mentioned to split the strings into tables. Then join them (full outer join) and cursor...
September 21, 2011 at 1:18 pm
WayneS (9/19/2011)
If you don't run the detach, you can see the table...
September 19, 2011 at 7:06 am
join the table to itself is what I would recommend... without code we can't be more specific... rarely is a cursor the best option.
September 16, 2011 at 8:09 am
Viewing 15 posts - 151 through 165 (of 194 total)