Viewing 15 posts - 16 through 30 (of 72 total)
Hi John
Yes, you are right. I'm just having a blonde moment. There is an IDENTITY key word in the other PK.
Thanks for showing me the error of my...
July 23, 2015 at 5:46 am
Hi John
I thought SQL would automatically insert values if it's a PK. Did I think wrong? I will research it, thanks.
July 23, 2015 at 5:38 am
Thanks Louis, I will see if there is something on SSIS/SSAS that I can use.
July 9, 2015 at 12:15 am
Hi
No, it should use the getdate function, so that I can advance it to the next month without hard coding the date
July 8, 2015 at 7:41 am
Hi
Thank you for your response.
I most probably didn't make myself clear, my apologies.
It should be something like the following:
Select 1 AS Month1: 07/07/2015 where the part after the AS keyword...
July 8, 2015 at 5:49 am
Thank you both for your reply but the integer dates are still hard-coded in your answers. And that's the problem that I have. Instead of 20141106 (hard-coded) I...
November 20, 2014 at 11:16 pm
Thanks Stuart. You took the ugliness out of the code. 😀
November 13, 2014 at 11:20 pm
Hi Stuart
Thanks for replying. Here is some sample data from the calendardefinition table:
KeyDateTransDateSmallTransDateNumericTransPeriodTransWeekOfYearNumberTransWeekOfYearDescrTransWeekOfMonthNumberTransWeekOfMonthDescrTransMonthDescrTransMonthNumberTransYearNumber
1NULLNULLNULLNULLNULL0NULLNULLNULL
201/01/1980 00:00198001011980.0111980 Week 0111980.01 Week 1January11980
302/01/1980 00:00198001021980.0111980 Week 0111980.01 Week 1January11980
403/01/1980 00:00198001031980.0111980 Week 0111980.01 Week 1January11980
504/01/1980 00:00198001041980.0111980...
November 13, 2014 at 7:32 am
Thanks Chris.
The problem that I have is that in the main query them MIN_keydate and MAX_keydate have null values, which creates a problem for me. Is there any way...
October 28, 2014 at 3:47 am
Hi Chris
Can I, for the last time, just run some idea with you, if you don't mind.
Kind regards
Fred
October 28, 2014 at 12:05 am
can you assist me with option two, please?
I have to be out of office in the next ten minutes and then should be at home in about three...
October 24, 2014 at 7:52 am
sorry, forgot about the difference in dates. Here is sample data
(shortened as for space):
KeyDepotKeyItemMIN_keydateMAX_keydate
511031221712541
1075181223412524
6194751221812218
6322101223712541
1580991224712509
624951222712541
6165581221812218
15367241221012503
580271234212523
4363041221912219
4108341221912403
October 24, 2014 at 7:32 am
Viewing 15 posts - 16 through 30 (of 72 total)