Viewing 15 posts - 9,931 through 9,945 (of 10,143 total)
Hi Jim
It's likely that your problem is down to column data types - either the column you're updating or the column you're using as row identifier in Excel isn't being...
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
March 11, 2008 at 4:30 am
You could avoid the use of those pesky variables altogether if you want...
DECLARE @script nvarchar(max)
SET...
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
March 10, 2008 at 6:19 am
Frank
SELECT batchid, description, merchantno, settlementdate, amount
INTO #batch_detail
In this table you have multiple rows...
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
March 9, 2008 at 4:33 am
I'd really appreciate that, thanks Debbie.
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
March 7, 2008 at 9:38 am
TheSQLGuru (3/7/2008)
Brandie, you are totally off the mark. Do whatever you can to make the most money so...
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
March 7, 2008 at 9:36 am
It's looking good! And thanks 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
March 7, 2008 at 7:46 am
Brandie Tarvin (3/7/2008)
Lynn Pettis said:
I just wish the computer would do want I want, not what I tell it to do. It would be sooo much easier.
Amen to...
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
March 7, 2008 at 7:36 am
Yep. It's called an UPDATE ... FROM and will look something like this when you've finished...
UPDATE b SET b.start_date = a.start_date, b.end_date = a.end_date
FROM dbo.ECAF a
INNER JOIN dbo.ECAF_IDEAR b
ON...
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
March 7, 2008 at 5:36 am
Absolutely Debbie! So we build the UPDATE in two steps; the first step, which is a simple SELECT, is easy to test - you have output rows to look at...
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
March 7, 2008 at 5:22 am
I'm guessing it will look something like this...
SELECT a.PersonID, a.start_date, a.end_date
FROM dbo.ECAF a
INNER JOIN dbo.ECAF_IDEAR b
ON b.PersonID = a.PersonID AND a.start_date IS NULL AND b.end_date IS NULL
WHERE a.start_date IS...
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
March 7, 2008 at 5:15 am
Good, that makes things quite a bit simpler. Now, can you write a SELECT query from your source table which contains the rows and columns which you are using to...
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
March 7, 2008 at 5:08 am
Hi Debbie
Your first step for this UPDATE should be a SELECT which returns the rows containing the data which you want to use as your reference, i.e. which will overwrite...
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
March 7, 2008 at 4:57 am
Jeff Moden (3/6/2008)
Why is there always enough time to do it again but never enough time to do it right the first time? 😛
TSQL or your cooking? 😀
No matter...
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
March 6, 2008 at 8:40 am
Bob Fazio (3/5/2008)
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
March 6, 2008 at 8:17 am
asmaa.sbaihi, you should run some experiments to establish exactly what you need in your query.
Something along the lines of...
This is your baseline, run it and record the results:
SELECT COUNT(DISTINCT(RecordedCalls.ID)) AS...
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
March 5, 2008 at 10:19 am
Viewing 15 posts - 9,931 through 9,945 (of 10,143 total)