Viewing 9 posts - 1 through 9 (of 9 total)
Thanks Guys.
Created a stored procedure which is called from a batch file using SQLCMD as currently this is a development machine with SQL Express installed so no SQL Agent feature.
March 1, 2010 at 9:39 am
Please ignore last note - was being an idiot I just needed to change the code to :
with cteNotes
as(
select *,ROW_NUMBER() over (partition by Account order by Date desc,Time...
February 18, 2010 at 5:53 am
Just checked the extracted table and found that there is a TIME element field (new table attached)
Can this be used to ensure the youngest NOTE is returned?
Thanks for all your...
February 18, 2010 at 5:44 am
Great Thanks - will run the code and let you know the outcome.
As for John's valid point - I don't think we will be able to as the data exported...
February 18, 2010 at 5:10 am
Brilliant, thank you very much for your help.
February 16, 2010 at 7:16 am
Hi
Attached are the tables that I have used in this View and some sample data.
This is being picked up by BIDS and then displayed in SSRS. My end goal...
February 16, 2010 at 5:46 am
Thanks Bru - thats sorted it.:-)
February 15, 2010 at 8:54 am
OK
So I have tried this :
SELECT DATEADD(YEAR, - 2, GETDATE()) AS Expr1, DATE
FROM dbo.SalesHistory
WHERE ...
February 15, 2010 at 8:37 am
Had already attempted to use DATEADD but unsuccessfully!
I can add some code into my SELECT like
SELECT DATEADD(MONTH, -24, GETDATE())
But I am not sure how I then edit my WHERE...
February 15, 2010 at 8:26 am
Viewing 9 posts - 1 through 9 (of 9 total)