Viewing 15 posts - 1,381 through 1,395 (of 3,957 total)
dc.pc100 (9/30/2013)
Where [SourceData] like '%[0-9]%' + 'Jan' + '[0-9]%'
as lots of data gets messed up with dwains code
e.g
Destination File Name....sourcedata2
20130616.xlsx..............0616.xlsx
201307.xlsx.................07.xlsx
HSE.201306.xlsx...........HSE.06.xlsx
HSE.201307.xlsx...........HSE.07.xlsx
2013 ICT Calendar.xls....ICT...
September 30, 2013 at 12:08 am
T.Ashish (9/29/2013)
I tried my hard to convince him that we...
September 29, 2013 at 11:23 pm
I find it interesting because I'm into self-flagellation and because it seems that all of the date formats you've included in your filenames CAST cleanly to a DATE data type,...
September 29, 2013 at 11:17 pm
Running the code you quoted Jeff, I get these results.
sourcedata ...
September 29, 2013 at 8:28 pm
If you're trying to unchain a sequence of part numbers using a parentID like this, you may want to look at using a recursive CTE to resolve the hierarchy.
Something like...
September 29, 2013 at 7:35 pm
Ok. This should work.
But someone I'm sure will probably come up with a better way.
WITH SampleData (sourcedata) AS
(
SELECT '12 Jan 2013 Test.docx'
...
September 29, 2013 at 7:16 pm
Post retracted. Hang on for a replacement.
September 29, 2013 at 7:10 pm
Like Luis suggested, can't you just do a GROUP BY?
SELECT RunDate, FiscalYear, PP, Port
,OilPrice=MAX(OilPrice)
,GasPrice=MAX(GasPrice)
FROM @t1
GROUP BY RunDate, FiscalYear, PP, Port
Based on LinksUp's...
September 29, 2013 at 6:38 pm
Briceston (9/29/2013)
First, thank you for replying. How are you deriving your average cost figures?
I included the intermediate cost and members columns so you could see that. Each is the...
September 29, 2013 at 6:13 pm
Sean Lange (9/27/2013)
Dwain, I think this should produce the same result?
SELECT field1, field2, field3
FROM table
JOIN dbo.DelimitedSplit8K(@UsersEntry, ',') s ON field1 = s.item
ORDER BY s.ItemNumber;
I believe that it most certainly...
September 29, 2013 at 6:09 pm
Knut Boehnert (9/27/2013)
dwain.c (9/27/2013)
Maddave (9/27/2013)
dwain.c (9/26/2013)
The only think I find annoying about them (unless I missed something) is that you can't update...
September 27, 2013 at 4:27 am
T.Ashish (9/27/2013)
Kindly ignore my earlier post, I missed it completely. Actually, Other four solutions are giving accurate results
My results goes as below:
1.hunchback
WITH C1 AS (SELECT Shift FROM test12...
September 27, 2013 at 3:46 am
enriquezreyjoseph (9/27/2013)
,@sexID=@sexID
...
September 27, 2013 at 2:29 am
Maddave (9/27/2013)
dwain.c (9/26/2013)
The only think I find annoying about them (unless I missed something) is that you can't update them. Need...
September 27, 2013 at 2:19 am
enriquezreyjoseph (9/27/2013)
this is it
Never seen that error but it looks like it is complaining about the typing of one of the parameters to your SP.
September 27, 2013 at 2:17 am
Viewing 15 posts - 1,381 through 1,395 (of 3,957 total)