Viewing 15 posts - 1 through 15 (of 51 total)
If anyone is interested. I solved it by creating the following query. I will loop this through each quarter and populate another table.
with res
as
(
select
...
July 8, 2014 at 7:12 am
I gather its a marketing tool.
So you get a group of customers who bought in Year 2010 Q1 and you track the same groups spent through the years.
2010 Q2 -...
July 8, 2014 at 4:11 am
Great. Will give that a try and report back
many thanks
Scott
June 27, 2014 at 10:41 am
Yes. Confirmed. Was a datatype I was capturing to take care of zeros. Was set to int therefore 0.9 came out as 0.
Had we worried for a minute! Thanks again...
February 8, 2013 at 1:53 am
I had one of those thoughts dropping off last night. I think maybe it might be due to the datatype.
I will try it out and if not then post my...
February 8, 2013 at 1:37 am
This function has been working 100% in production for some time. Now I need to factor down as well i.e. 0.9
Currently this actually makes the result 0.
I will be looking...
February 7, 2013 at 5:37 am
Hi Jeff. No I currently do not have that.
Are you suggesting I need to do this to progress this as a solution?
I'll be back on this tomorrow so will start...
November 22, 2012 at 4:05 pm
No. its lost some days.
201249102012-12-03 00:00:002012-12-09 00:00:001212
201250102012-12-10 00:00:002012-12-16 00:00:001212
201251202012-12-17 00:00:002012-12-23 00:00:001212 --Stops 23
201252102011-12-26 00:00:002012-01-01 00:00:00121 -- Starts 26
20131102012-12-31 00:00:002013-01-06 00:00:00121
November 22, 2012 at 9:03 am
Fixed. It was due to me not using ISOWK in the datepart function. Excellant.
Let me check all details and I'll respond
November 22, 2012 at 9:00 am
Thats great. Thanks for your input. Here are the results.
I am using a Monday as the first day. Just going to try and work that out from your code.
Also...
November 22, 2012 at 8:55 am
Thanks for the additional information. It's helpful to receive and be able to look further into the process.
Many thanks scott.
November 13, 2012 at 11:24 am
Yes..I only want to add another record if the specific code exists. This is due to us sending out a book but the pack actually contains two books. So I...
September 24, 2007 at 5:25 am
many thanks. thats a great help
Scott
July 4, 2007 at 2:06 am
Viewing 15 posts - 1 through 15 (of 51 total)