Viewing 15 posts - 1 through 15 (of 19 total)
thanks Alan,
what if the controlstart and controlend range is larger, ex: 1000 to 1025? Then I can't use the union all correct?
September 10, 2013 at 4:07 pm
Thank you very much for your solution. However, I probably didn't explain clearly enough.
The first sequence number doesn't necessarily start out with 1, it could start with 567891011 or...
April 23, 2013 at 9:58 pm
I got it working
set m1.TRACK1 = STUFF(m1.TRACK1 collate database_default , LEN(m1.TRACK1 collate database_default) - LEN(c1.track1 collate database_default) - 14, LEN(c1.track1 collate database_default), c1.track1 collate database_default)
November 6, 2012 at 2:52 pm
thank you all for helping me. yes STUFF did work for me and it should be -1 instead of +1. Thanks again.
October 17, 2012 at 2:05 pm
Thank you very much. what if my column1 have value 'abcdef0000' and column 2 value is 123. Then I cannot convert them to integer to add them together....
October 15, 2012 at 3:03 pm
Thanks. I forgot to mention that these columns are string not integer.
October 15, 2012 at 2:38 pm
I came up with this code:
DECLARE @BUNDLE INT
SELECT @bundle = 10780
SELECT CONTROLNUM,NUMPACK,
case WHEN ((NUMPACK % 10) = 0) THEN
SET...
April 20, 2011 at 12:14 pm
Hi Steve, thanks for the suggestion. Sorry, you are correct everything is based on column a (the counter for other columns).
April 20, 2011 at 11:32 am
Thanks Kingston. So do I need to create an after insert trigger on the orders table and that trigger would automatically insert a status in the status table?
February 23, 2011 at 6:44 am
curiosity is not the same as rude or unprofessional. In a real business world, you won't last for an hour with this kind of attitude. I'm really feel...
November 19, 2007 at 10:33 pm
Mr Moden
Please read my before you starting to criticize me. Didn't I say "Greatly appreciate all the helps" in my first post????? Besides, I already very patiently telling...
November 19, 2007 at 12:34 pm
Hi Jeff - I will be using this view to generate a report for accounting.
November 13, 2007 at 6:26 am
OK. So I have a fictitous view with these columns: buyer name, address, product number, product description (which is a join between purchaser and product table).
john doe, 123 usa, 1000,...
November 12, 2007 at 11:40 pm
Viewing 15 posts - 1 through 15 (of 19 total)