Viewing 15 posts - 4,696 through 4,710 (of 10,144 total)
create table #temp (ID int, Name varchar(20))
insert into #temp
values
(10, 'Helen'),
(20, 'Joe'),
(30, 'Blake');
;WITH OnlyHelen AS (
SELECT CTE = 1, *
FROM #temp
WHERE Name = 'Helen'
),
ExceptHelen AS (
SELECT CTE = 2,...
May 1, 2013 at 1:43 am
chadmack (4/30/2013)
This appears to be a data issue. The data in moveitems.description is getting tuncated, this is...
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?
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
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,...
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.
April 30, 2013 at 8:41 am
Copy the lot, paste it into an SSMS window and execute it.
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 😉
April 30, 2013 at 8:01 am
todd.ayers (4/30/2013)
April 30, 2013 at 7:57 am
issa269 (4/30/2013)
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...
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...
April 30, 2013 at 6:36 am
mister.magoo (4/30/2013)
Evil Kraig F (4/29/2013)
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,...
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...
April 30, 2013 at 6:02 am
Viewing 15 posts - 4,696 through 4,710 (of 10,144 total)