Viewing 15 posts - 271 through 285 (of 427 total)
You need to get rid of the pivot and make it into a crosstab. Have a look at the crosstabs post in my footer. Jeff Moden describes in the linked...
September 12, 2011 at 7:31 am
Your requirements are indeed not clear on the topic of the 5 days period. I was little afraid of that already (and that's why I asked you to post your...
September 12, 2011 at 7:23 am
Can you post your end result so others may learn from it too and (as a plus for yourself) have your solution reviewed for any errors / options for improvements.
September 12, 2011 at 4:28 am
Please post some ddl (table definitions) plus some example data. From just your query it is not clear from which tables columns like 'Period' and 'YEAR' are taken. Knowing this...
September 12, 2011 at 4:11 am
Chris, I still don't understand your functional requirements. But I've found that creating an instead-of-trigger on a view can be a handy way of hiding from the caller the actual...
September 11, 2011 at 4:11 pm
And if you create a view over the both tables and create an instead-of-trigger on that view. This trigger excutes code alike that was presented. This way you can do...
September 9, 2011 at 7:12 am
SQLServerMS (9/7/2011)
the sequence has 000010.....999999
Then the example is wrong: In your example A00000 is missing in between 999999 and A000001 and this pattern seems to be repeated in ...
September 8, 2011 at 6:56 am
Does the sequence not have any zero's in the rightmost position? for example, is 000010 in your sequence or is that skipped, like A00000?
September 7, 2011 at 2:46 pm
This is not my day :doze:. You can forget about my improvement: Paul excellently implemented that already too...
I'm not sure though whether the lock hint on the select in...
September 7, 2011 at 12:41 pm
elogen (9/7/2011)
Having...
September 7, 2011 at 12:28 pm
paul_ramster (9/7/2011)
declare...
September 7, 2011 at 3:27 am
First of all you can have a look at your cursor type. FAST_FORWARD means your cursor will fetch all rows in one go, then to feed them one row at...
September 7, 2011 at 3:09 am
ghanshyam.kundu (9/7/2011)
as per sean, i am thinking to come up with a solution that at the time of saving the datetime i have to save the offset of it...
September 7, 2011 at 2:28 am
Replace '&' by '& amp ;' (without the spaces in between) in the source string. Same thing applies for any '<' & '>'s in your texts, these need to be...
September 5, 2011 at 9:51 pm
Viewing 15 posts - 271 through 285 (of 427 total)