Viewing 15 posts - 61 through 75 (of 75 total)
yep its a complete nightmare, i'm hoping once the report is live and scheduled they will see the benefit from it and grant me access so i can then set...
October 5, 2017 at 3:53 am
great spot thankyou Thom, it should be IF GETDATE() >='2018-01-02' AND GETDATE() <'2018-01-03'
October 5, 2017 at 3:31 am
Thank you all, i believe i have sorted this now (code below). Thanks for everyone's input i have learnt a lot and this will seriously speed up my reporting.
October 5, 2017 at 3:14 am
Hi, Yes UK has more hols. I will add in once i have fixed the other issue with data looking for previous day SET @ed = DATEADD(MONTH, 1, @sd);
October 5, 2017 at 3:00 am
Thanks all, i think the best way around it as i don't have access to any other database is something like the following. I know its not the ideal way...
October 5, 2017 at 2:49 am
Thank Thom, already had that chat with the manager but its a no go unfortunately as we don't own the database its a third party and they have only given...
October 3, 2017 at 9:07 am
I've actually just found some code that may help. This works perfectly if today's date is the first of the month. So if today's date is the first of the...
October 3, 2017 at 9:03 am
Thank you so much everyone for this. I have another issue now being that i do not have access to create tables in the database and the developers will not...
October 3, 2017 at 8:44 am
Hi,
So sorry. ok, so the query pulls back data based on the current month to yesterdays date (which is great but sometimes this is not what i need). ...
October 2, 2017 at 9:50 am
Sorry Thom, I have had a look at the calendar function and it is completely over my head, As mentioned i am completely new to SQL. If you could have...
October 2, 2017 at 9:21 am
ok thanks a lot. I'll have a blast and see how i get on. New to SQL so will probably come back for more help. Thanks again. Craig
October 2, 2017 at 8:25 am
Hi Thom A,
Thanks for coming back to me. You are correctly yesterday would have provided me with all of September which is correct but because Sunday is a...
October 2, 2017 at 8:04 am
Thank you all for the support all sorted. Appreciate it
September 28, 2017 at 12:57 am
Thanks for that, i have amended to the below buts its not bring back the correct data. Any ideas?
where DBO.LogFile.Created >= DATEADD(YEAR, -1, DATEADD(MONTH, DATEDIFF(MONTH, 0, @mydate), 0))
September 27, 2017 at 8:03 am
sorry for the confusion, so what i was looking for would be the 01/09/2016 to 26/09/2016. Hope that makes sense.
how would i amend the below? sorry new to...
September 27, 2017 at 7:38 am
Viewing 15 posts - 61 through 75 (of 75 total)