Viewing 15 posts - 6,331 through 6,345 (of 10,143 total)
dwain.c (5/9/2012)
...Personally, I love playing with recursive CTEs, almost as much as I like being naughty, just to figure out how they work. 😛
I always hear people saying "stay away...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
May 9, 2012 at 1:39 am
Interpreting the results from this isn't straightforward, at least not to me. I prefer the output formatted like this:
SELECT Strings, x.Goodchars, y.Badchars
FROM #t
CROSS APPLY (
SELECT SUBSTRING(Strings,n,1)
FROM (SELECT TOP (DATALENGTH(Strings))...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
May 8, 2012 at 3:55 am
capn.hector (5/3/2012)
crookj (5/3/2012)
capn.hector (5/3/2012)
Ray K (5/3/2012)
ChrisM@Work (5/3/2012)
bopeavy (5/3/2012)
Ray K
EL Jerry (5/2/2012)
--------------------------------------------------------------------------------
bopeavy (5/2/2012)
--------------------------------------------------------------------------------
hypothesis
Hypothermia
hypochondriac
hypothalamus
Beta thalassemia
Beta release
windows vista
Windows ME :crazy:
Mighty Excrement
Coproheavy
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
May 4, 2012 at 8:28 am
Try REVERSE()
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
May 4, 2012 at 1:57 am
SELECT MinutesDiff = ([Days]*24*60) + DATEDIFF(minute,[Days],@date)
FROM (SELECT [Days] = CAST(DATEDIFF(dd,0,@date) AS BIGINT)) d
😉
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
May 3, 2012 at 10:05 am
Ray K (5/3/2012)
ChrisM@Work (5/3/2012)
bopeavy (5/3/2012)
Ray K
EL Jerry (5/2/2012)
--------------------------------------------------------------------------------
bopeavy (5/2/2012)
--------------------------------------------------------------------------------
hypothesis
Hypothermia
hypochondriac
hypothalamus
Beta thalassemia
Beta release
Betta bilda
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
May 3, 2012 at 6:58 am
bopeavy (5/3/2012)
Ray K
EL Jerry (5/2/2012)
--------------------------------------------------------------------------------
bopeavy (5/2/2012)
--------------------------------------------------------------------------------
hypothesis
Hypothermia
hypochondriac
hypothalamus
Beta thalassemia
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
May 3, 2012 at 6:09 am
jblovesthegym (5/3/2012)
ChrisM@Work (5/2/2012)
jblovesthegym (5/2/2012)
ChrisM@Work (5/2/2012)
jblovesthegym (5/2/2012)
Not found, no.??
What's up?
Fellas,
1) The link was not present on my screen, possibly the result of being stripped out of the page by...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
May 3, 2012 at 4:58 am
elham_azizi_62 (5/1/2012)
I wrote this code with alter table and add columns.but i need to replace this code with pivot and i don't know how to do it?pleas help me...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
May 2, 2012 at 6:29 am
Lars Jensen (5/2/2012)
Impressed!Thanks a lot...
Anytime 🙂
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
May 2, 2012 at 5:11 am
SELECT
tt.*,
x.ExchangeRate
FROM TransactionTable tt
CROSS APPLY (
SELECT TOP 1 ExchangeRate
FROM RatesTable rt
WHERE rt.CurrencyPair = tt.CurrencyPair
AND rt.ValidFrom <= tt.TransactionDate
ORDER BY rt.ValidFrom DESC
) x
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
May 2, 2012 at 4:55 am
Lars, which version of SQL Server are you using?
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
May 2, 2012 at 4:47 am
jblovesthegym (5/2/2012)
ChrisM@Work (5/2/2012)
jblovesthegym (5/2/2012)
Not found, no.??
What's up?
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
May 2, 2012 at 2:31 am
jblovesthegym (5/2/2012)
Not found, no.
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
May 2, 2012 at 1:46 am
jblovesthegym (5/1/2012)
This is for SS 2000, gentlemen!!
Oops - humble apologies, JB. Glen's written the same suite for different versions, have you looked for 2k?
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
May 1, 2012 at 7:15 am
Viewing 15 posts - 6,331 through 6,345 (of 10,143 total)