Viewing 15 posts - 6,856 through 6,870 (of 10,143 total)
sqlnaive (6/30/2011)
Thanks Nakul. Thats not what I'm looking for. Lolz.Actually looking for "If input string is like AAAA, pqrstuv, xxxx-lmn, ZZZsswD then output string should be 'AAAA', PQRSTUV', 'XXX-LMN', 'ZZZSSWD'".
The...
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
June 30, 2011 at 2:04 am
Jnrstevej (6/29/2011)
... I didn't think a CASE Statement could achieve what i was looking for so i quickly dismissed it for the IF Statement....
CASE works within a statement, IF chooses...
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
June 29, 2011 at 7:44 am
Jnrstevej (6/29/2011)
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
June 29, 2011 at 7:31 am
Steve, working effectively with TSQL, as with any programming language, requires experimentation...
SELECT 'PL01' + '_' + CASE
WHEN vendor IS NULL THEN SPACE(4)
WHEN LEN(vendor) < 4 THEN CAST(Vendor AS CHAR(4))
WHEN LEN(vendor)...
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
June 29, 2011 at 7:10 am
SQLRNNR (6/27/2011)
exam
Good luck!
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
June 27, 2011 at 8:51 am
Can you post the query?
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
June 8, 2011 at 7:00 am
Jeff Moden (5/15/2011)
ChrisM@home (5/2/2011)
This is probably the simplest set-based solution.
Oh... be careful, Chris. Apologies for quibbling but a Recursive CTE isn't set-based. It's a form of hidden RBAR...
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 15, 2011 at 11:37 pm
You're welcome - and you have the benefit of a fully-documented method 🙂
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
April 7, 2011 at 8:06 am
lance.kentwell (4/6/2011)
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
April 7, 2011 at 7:08 am
Hello
Read this article [/url]by Jeff Moden to understand how the following code works.
-- make some sample data
SET DATEFORMAT DMY
DROP TABLE #tblMeeting
CREATE TABLE #tblMeeting(
...
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
April 7, 2011 at 7:04 am
This should work just fine although it's far from elegant.
SELECT DISTINCT i.ipaddress, u.user_name
FROM dbo.scr_dim_site_request sr
INNER JOIN dbo.scr_dim_site s
ON sr.site_id = s.site_id
INNER JOIN dbo.scr_fct_exact_access ea
ON sr.site_request_id...
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
April 6, 2011 at 5:43 am
lance.kentwell (4/5/2011)
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
April 6, 2011 at 2:47 am
Golive.
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
April 6, 2011 at 1:28 am
Roy Ernest (4/4/2011)
First they tried to hit me from...
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
April 5, 2011 at 2:07 am
Congratulations to Paul White, who's joined the elite through hard work and outstanding contributions to the community. Well done Paul, very well deserved.
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
April 1, 2011 at 9:20 am
Viewing 15 posts - 6,856 through 6,870 (of 10,143 total)