Viewing 15 posts - 1,546 through 1,560 (of 14,953 total)
drew.allen (5/2/2012)
Cadavre (5/2/2012)
FROM CTE x, CTE y;
drew.allen (5/2/2012)
This join syntax has been deprecated. You shouldn't be using it in new development. Use CROSS JOIN instead.
GSquared (5/2/2012)
The Outer...
May 2, 2012 at 11:12 am
MdApache (5/2/2012)
GSquared (5/2/2012)
MdApache (5/2/2012)
May 2, 2012 at 11:04 am
stephanie.sullivan (5/2/2012)
So I either gain by funding it, or I don't lose anything that matters in the long run by funding it, so I fund it on a "why not"...
May 2, 2012 at 10:52 am
MdApache (5/2/2012)
May 2, 2012 at 9:31 am
L' Eomot Inversé (5/2/2012)
TravisDBA (2/17/2012)
May 2, 2012 at 9:24 am
SQL Kiwi (5/2/2012)
GSquared (5/2/2012)
It would look something like that. Usually gets a very efficient execution plan.
Client ID would need to be a key to avoid duplicates there.
You could also...
May 2, 2012 at 9:19 am
j_e_o (5/2/2012)
May 2, 2012 at 9:04 am
I think it depends on how you look at it.
Sure, nobody has the final regret "I wish I'd spent more time at the office". (Well, it's not usual. ...
May 2, 2012 at 9:02 am
The easy way to do this with SQL 2008 (as per the forum this is posted in), is to Cross/Outer Apply from your Clients table to this table.
SELECT *
FROM dbo.Clients
OUTER...
May 2, 2012 at 8:48 am
You have to build your own loop for that, instead of using a recursive CTE.
At each iteration of the loop, check if any values already exist in the result-set. ...
May 2, 2012 at 8:42 am
michael vessey (5/2/2012)
to find the last instance use a combination of charindex and REVERSE
select LEN(col3) - CHARINDEX('A',REVERSE,col3)) as...
May 2, 2012 at 8:37 am
drew.allen (5/2/2012)
Cadavre (5/2/2012)
NLV (5/2/2012)
Hi,I want to insert 100 rows like (1,2,3,4,..100) without using loops into a table using CTE. can you please help.
WITH CTE(n) AS(SELECT 1
...
May 2, 2012 at 8:25 am
When you say "max occurence of alphabet 'A'", do you mean you want the position in the string of the last "A" in it?
If so, something like this will find...
May 2, 2012 at 8:15 am
They do the same thing. Probably even use the exact same binaries behind the scenes where SQL Server does all the actual work.
So use CURRENT_TIMESTAMP if you can. ...
May 2, 2012 at 8:08 am
Career path? I've never considered this even important, much less critical. I do my job, my skills continue to evolve and improve as I teach myself new things...
May 2, 2012 at 8:05 am
Viewing 15 posts - 1,546 through 1,560 (of 14,953 total)