Viewing 15 posts - 1 through 15 (of 17 total)
You have forgotten that not all of the UK has the same bank holidays.
July 15, 2019 at 8:14 am
Your case statement isn't doing anything, it always returns the value of ExpiryDate.
Your problem is that you can't compare things to null using anything other than 'is null'.
September 6, 2018 at 3:37 am
why would you want to do this in a cursor?
but if you really do, you need to get the next record in the while loop, or @@Fetch_status will...
July 23, 2018 at 4:18 am
Having just moved from SQL 2008, I'm finally able to use this improved version of the splitter function.
I have just one comment, the ISNULL(NULLIF(LEAD(s.N1,1,1) over (order by s.N1)-1,0)-s.N1,8000)...
March 20, 2018 at 4:12 am
I think you just need this where clause:
where column_2 = 'Y'
and (Column_1 <> 4 or column_3 = 'X')
December 13, 2017 at 2:19 am
You don't have a 'top 1000' clause in your select statement when you are actually testing this do you?
June 15, 2017 at 9:52 am
You solution 1 works fine, the problem must be in your code that is drawing the chart.
If you add some SQL to your solution to do the group...
June 15, 2017 at 2:06 am
You should be doing something along the line of
insert into answers
select appropriate fields
from #myTempTable
(this is obviously a very simplistic example, you may need an unpivot...
March 1, 2017 at 2:23 am
The reason your loop never stops is because @@rowcount is updated by the insert statements.
However, your whole code example is not a good way to write SQL code....
March 1, 2017 at 2:12 am
The sql string that you are creating to execute is just wrong. There's the change Sue_H explained, but you also need to declare @r in @sqlrun, set it...
February 28, 2017 at 2:01 am
We use R to do similar processing. As we don't have SQL 2016, we use the standalone version of R called by a SSIS package which reads and writes to...
February 27, 2017 at 2:30 am
TomThomson (12/17/2016)
CELKO (12/14/2016)
its working ok with ORDER BY and the same results are been returned...
what does that mean though? that you always have to insert ORDER BY ?
You are missing...
December 22, 2016 at 2:32 am
You have posted the part of your problem that works, not the part that doesn't work, so it is impossible to help you.
If you post the code you are using...
December 13, 2016 at 4:51 am
Your function does what you expect it to do, so if you are seeing wrong results somewhere, it is being caused by how you are calling it.
Try selecting from the...
December 13, 2016 at 2:17 am
Removing the 'As Lastname' and 'AS Firstname' words should fix it
October 20, 2016 at 1:58 am
Viewing 15 posts - 1 through 15 (of 17 total)