Viewing 15 posts - 1,711 through 1,725 (of 2,458 total)
arthur.bekker (3/18/2015)
I showed the Execution Plan to this guy and he said that he wanted to "concrete" his...
March 18, 2015 at 2:43 pm
Katerine459 (3/18/2015)
March 18, 2015 at 2:26 pm
jhood (3/18/2015)
The recursion resolves row by row instead of sets. A while loop with temp tables...
March 18, 2015 at 12:43 pm
g.britton (3/18/2015)
You can write this:
WITH CTE AS
(
SELECT somecolums,....
FROM sometable
WHERE...
March 18, 2015 at 12:39 pm
chris.puncher (3/18/2015)
Here is an alternative method that proved much more...
March 18, 2015 at 12:36 pm
Great article. One correction however:
Emphasis mine...
Below are some clauses that can't be used in a CTE:
ORDER BY (unless used with TOP clause)
INTO
OPTION clause with query hints
FOR XML
FOR BROWSE
Not true... You...
March 18, 2015 at 12:25 pm
Had a few moments to kill... Here's an example of how to solve this using the link that I provided.
Note that I don't understand where, in row 1 of...
March 18, 2015 at 11:31 am
March 18, 2015 at 10:56 am
This is a very good article on this subject:
http://sqlinthewild.co.za/index.php/2009/08/17/exists-vs-in/[/url]
March 15, 2015 at 1:10 pm
Here's a solution.
I'm sure there is an easier way but this is a cursor/loop-free way that will work.
/*Assumptions
(1) There are alway 2 product names that are equal...
March 13, 2015 at 5:05 pm
I have a solution but need a little clarification...
What exactly do you mean by
Amount = or (within +/- 5%) of Amount
For example, Let's say Amount1 is 1051 and...
March 13, 2015 at 4:04 pm
For DR and Reporting purposes you old use replication but I don't think it's the best solution. You would have a lot of publishers to deal and a lot...
March 12, 2015 at 10:53 am
First, Louis' solution is brilliant; I tried for a couple hours to come up with something faster (that does not utilize a calendar table) and failed.
So here's my calendar...
March 11, 2015 at 7:26 pm
dwain.c (3/11/2015)
Calendar Tables in T-SQL[/url]
The GenerateCalendar FUNCTION included in that article shows how it...
March 11, 2015 at 6:00 pm
andyscott (3/11/2015)
March 11, 2015 at 3:46 pm
Viewing 15 posts - 1,711 through 1,725 (of 2,458 total)