Viewing 15 posts - 451 through 465 (of 1,468 total)
A calendar table is definitely the better option.
But, just for fun, I have come up with 2 options that *SHOULD* work with SQL2000. Unfortunately I do not have SQL2000 to...
October 8, 2019 at 3:27 pm
the only days i would be exluding are weekend days (so no other holidays to be excluded).
so would a calendar still be the most appropriate way to do this?
I...
October 8, 2019 at 2:45 pm
Historically, I have found that Stored Procs out-perform functions such as these.
October 8, 2019 at 1:48 pm
Due to the clash of you div names with the web page, I am not recreating the actual xml here.
This should also get what you are looking for.
October 8, 2019 at 1:19 pm
It is not possible, as the value "Avis" does not exist in the sample data
October 8, 2019 at 12:20 pm
--=== Logic breakdown ================================================
--=== -- Group the consecutive enrollments for each waiver
--=== SELECT *, Grouper = DATEADD(DAY,0-DurationRuningTotal,TERMDATE)
--=== FROM (
--=== -- Get the enrollment...
October 3, 2019 at 8:48 pm
Thanks all,
that's going to take me some time to analyse. The source data is just terrible. They have been swapping the format of the dates on almost a daily...
October 3, 2019 at 3:38 pm
Thanks for that, guys! That does work for getting the results I need from that part of my query. I'm joining these results into a larger data set via...
October 2, 2019 at 7:14 pm
So, I spent some time creating a function that will successfully convert *MOST* string formats to DATETIME. This has only been tested in a us-en environment.
CREATE FUNCTION...
October 2, 2019 at 6:49 pm
Take a look at this post where a present a solution for a similar issue.
You can take this a step further, and create a iTVF for future use
October 2, 2019 at 3:32 pm
That SQL does not make sense.
Kindly provide DDL scripts and sample data so that we can understand what you are seeing.
September 30, 2019 at 3:51 pm
This looks like you are simply repeating the same query over and over
SELECT top(1) PM_DataContabileBKI
FROM [xxx].[xxx].[xxx]
order by 1 desc
and subtracting a number of months from the single...
September 30, 2019 at 1:08 pm
How to rewrite as single statement with out variable?
I don't know your table structures or data types. I also do not have any sample data to work with.
So the...
September 27, 2019 at 7:21 pm
You cannot use variables in a view.
Either re-wrtie it as a single statement, or create a stored procedure.
September 27, 2019 at 7:13 pm
Viewing 15 posts - 451 through 465 (of 1,468 total)