Viewing 15 posts - 9,466 through 9,480 (of 10,143 total)
Debbie Edwards (10/13/2008)
But I would want it to reset for each person every time it got to the next ECAFST
118007ECAFSTD5028582007-09-102007-09-10 1
118007ECAFMTG5033412007-12-11 2007-12-11 ...
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
October 14, 2008 at 12:36 am
dana_turcanu1981 (10/13/2008)
I have 2 tables:
CREATE TABLE [dbo].[Tab1](
[Cpt] [varchar](50) COLLATE Cyrillic_General_CI_AS NULL)
INSERT INTO [dbo].[Tab1] ([Cpt]) VALUES('2')
INSERT INTO [dbo].[Tab1] ([Cpt]) VALUES('235')
INSERT INTO [dbo].[Tab1] ([Cpt]) VALUES('234')
and
CREATE...
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
October 13, 2008 at 8:05 am
Hi Debbie
If you are able to add columns to your data set, how about adding a column to identify ECAF groups? This would make reporting on your data much easier....
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
October 13, 2008 at 6:51 am
Hi Ravi
Use a GROUP BY to aggregate the results to SubjectID level:
SELECT SubjectID,
MAX(CASE WHEN ClassID= @FirstClassID THEN ISNULL(CostOfBook,0) ELSE 0.0 END) AS FirstClassCost
MAX(CASE WHEN ClassID= @SecondClassID THEN ISNULL(CostOfBook,0) ELSE 0.0...
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
October 13, 2008 at 4:10 am
Jackal (10/13/2008)
I see now the usage of the replace, however this is done in a while loop.
I was...
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
October 13, 2008 at 4:05 am
Yes it is - GSquared posted a tried-and-tested function using REPLACE in the same thread. Problem is, there are so many possible characters to look for.
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
October 13, 2008 at 3:46 am
Hello
GSquared demonstrates an excellent function for this here:
http://www.sqlservercentral.com/Forums/Topic470379-338-1.aspx
Cheers
ChrisM
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
October 13, 2008 at 3:36 am
You're welcome Ronald, thank you for the feedback.
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
October 13, 2008 at 2:35 am
Ronald (10/13/2008)
Can someone explain to me what it means when adding this to the end of a SQL query 'NOT IN (8)'
Hi Ronald
Try the following statement.
[font="Courier New"]SELECT *
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
October 13, 2008 at 2:15 am
Hi Barry, it's a while since I worked with the product, but back then it was blindingly fast vs the competition when importing files or splitting files as strings into...
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
October 10, 2008 at 7:16 am
Ahah. Thanks for the clarification, Jeff.
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
October 10, 2008 at 5:33 am
Sergiy (10/9/2008)
He/she will agree it with other side...
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
October 10, 2008 at 3:01 am
I'm sorry Joey but that simply isn't correct. Here's part of the WHERE clause from a very similar situation to yours, OPENROWSET with dynamic SQL:
AND CREATE_DTTM >= ''''' + @sDateRangeStart...
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
October 9, 2008 at 8:37 am
DROP TABLE #Sample
CREATE TABLE #Sample (C1 VARCHAR(20), C2 VARCHAR(20), C3 VARCHAR(20), C4 VARCHAR(20))
INSERT INTO #Sample (C1, C2, C3, C4)
SELECT 'a@a.com', '1-Jan-08', 'AAA', 'BBB' UNION ALL
SELECT 'a@a.com', '1-Jan-08', 'CCC', 'DDD'...
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
October 9, 2008 at 8:24 am
bharathi (10/9/2008)
I found it myself...Thankss a lot anywayz...
Hi bharathi
Please would you post your solution? It would finish this thread nicely and also, possibly, provide useful learning material for others.
Cheers
ChrisM
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
October 9, 2008 at 6:29 am
Viewing 15 posts - 9,466 through 9,480 (of 10,143 total)