Viewing 15 posts - 31 through 45 (of 98 total)
Looking to the things like that, it looks very easy...
But it's not handling the 50% interval duration, neither it's capable of it, for example if i have 1 day...
April 16, 2014 at 9:10 am
Volatile yes...
Offset?! What do you mean by offset row?!
April 16, 2014 at 8:13 am
Yes i need.
I'm currently using/testing in the 2008 version, but i need that the code works in the 2005 version too...
Just posted in this section because i thought that...
April 16, 2014 at 8:04 am
Thanks for the replies...
This chunk of code it's a requirement inside a bigger sp, the table it's a table that contains some fields a start date, duration (days), and several...
April 16, 2014 at 2:41 am
Made some tests and the loop version its equally slow...
So do anyone knows how I can speed up this?
Thanks
February 6, 2014 at 5:21 am
Always learning...
And it's working with your help!
Like i wrote i used the vars to test if everything was working, and it isn't, so probably i would added...
January 29, 2014 at 10:35 am
The extra "lines", vars and everything was for testing purposes, trial and error... And looks like these lines were the responsible for the problems... 🙁
But anyway, thanks for the info...
January 29, 2014 at 9:48 am
@Erin Ramsay
If i had the Identity in the History table, that was the way to go... but i don't have, when i created this table i set the date and...
March 22, 2013 at 11:46 am
@sean League
The main problem here it's I'm not seeing how to iteract with each row to compare the values... In the Row N i need to check the...
March 22, 2013 at 11:10 am
GO
IF OBJECT_ID('TempDB..#OrginalTable','U') IS NOT NULL
DROP TABLE #OrginalTable
IF OBJECT_ID('TempDB..#HistoryTable','U') IS NOT NULL
DROP TABLE #HistoryTable
CREATE TABLE #OrginalTable(
ID INT IDENTITY(1,1) PRIMARY KEY CLUSTERED,
A CHAR(1),
B...
March 22, 2013 at 10:49 am
Thanks
@sean Lange
I know the nullif, but to use that function i need to write every column... :crazy:
@steve-2 Jones - SSC Editor
I'll create some sample data... The...
March 22, 2013 at 10:12 am
:blush:
End of the day of friday, hard week... dumb questions... :satisfied:
Now it's obvious that i need to sum the values... 😀
Thanks
March 4, 2013 at 7:29 am
Hi
I have to reply with text, in this machine i don't have any sql server installed.
So if i run the above code i get something like this:
Num Name ...
March 1, 2013 at 4:57 pm
Thanks
I was using the CROSS APPLY, but to test i was using the GETDATE that returns date and time so the ITVF doesn't returned anything... :Whistling:
The all procedure now takes...
January 17, 2013 at 11:04 am
Viewing 15 posts - 31 through 45 (of 98 total)