Viewing 15 posts - 4,696 through 4,710 (of 10,143 total)
chadmack (4/30/2013)
This appears to be a data issue. The data in moveitems.description is getting tuncated, this 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
May 1, 2013 at 1:07 am
todd.ayers (4/30/2013)
Thx Bro I really really appreciate all your help!!!!
BRO?!!! Are you an old git too?
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 30, 2013 at 9:26 am
SELECT
d.Example,
[Output] = SUBSTRING(d.Example, 2,
NULLIF(CHARINDEX('/',d.Example,2),0)-2)
FROM ( -- sample data
SELECT Example = '/IT/Management' UNION ALL
SELECT '/PRODUCTION/Name' UNION ALL
SELECT 'Nothing'
) 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
April 30, 2013 at 9:24 am
todd.ayers (4/30/2013)
well..... Darn.. I dont have SQL on my desktop... only access 2007
Sorry, I can only guarantee that it will run in SQL Server 2008 - this is, after all,...
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 30, 2013 at 8:45 am
logicinside22 (4/30/2013)
hope this helpshttp://connect.microsoft.com/SQLServer/feedback/details/434632/#details
Not really. The connect item refers to a bug which can only be observed if a very specific set of conditions are met.
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 30, 2013 at 8:41 am
Copy the lot, paste it into an SSMS window and execute it.
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 30, 2013 at 8:27 am
issa269 (4/30/2013)
Thanks alot ChrisM@Work,My mistake unit cost was 0 on those rows.
You're welcome 😉
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 30, 2013 at 8:01 am
todd.ayers (4/30/2013)
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 30, 2013 at 7:57 am
issa269 (4/30/2013)
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 30, 2013 at 7:18 am
You need the ORDER BY, otherwise what TOP returns is unpredictable.
You also need the reference to table trans in the subselect because the [order] table is filtered by a different...
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 30, 2013 at 7:15 am
The subquery (inner query) you added isn't correlated to the outer (main) query. Since all of the tables in the inner query are already referenced by the outer query, do...
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 30, 2013 at 6:36 am
mister.magoo (4/30/2013)
Evil Kraig F (4/29/2013)
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 30, 2013 at 6:17 am
@DJ (4/30/2013)
I see you placed an group by...
Is this needed or optional.
I am trying your version now,...
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 30, 2013 at 6:08 am
SteveEClarke (4/30/2013)
I am currently looking at a project that requires acounter table - I have done this very easilly in Excel with a VBScript - but want to do...
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 30, 2013 at 6:02 am
I'd check for NULL decsription in the source table:
DECLARE MOVEITEMS_CUR CURSOR FOR
SELECT MOVEITEMSID, MOVEDATE, ITEMID, [DESCRIPTION], USERID
FROM MYOB_IMPORT..MOVEITEMS
WHERE [DESCRIPTION] IS NOT NULL
The code is horrible! I gave...
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 30, 2013 at 5:54 am
Viewing 15 posts - 4,696 through 4,710 (of 10,143 total)