Viewing 15 posts - 61 through 75 (of 82 total)
Eugene Elutin (3/5/2013)
prakashr.r7 (3/5/2013)
For example, if we have 150 rows to be updated with two character values, first we have to update PnxCodeValue feild...
March 5, 2013 at 7:25 am
Eugene, I forgot to tell this functionality.....
For example, if we have 150 rows to be updated with two character values, first we have to update PnxCodeValue feild with 99,98,97,...10 so...
March 5, 2013 at 5:02 am
Yes, Eugene, I did a mistake by using cursor....This one is very simple.. but how can i modify this set based operation to generate 2 character, 3, 4 and so...
March 5, 2013 at 4:54 am
Declare an integer-typed variable @Iteration or something outside the cursor loop and assign a value of 1. Inside the loop, SELECT @value = value FROM table WHERE key = @Iteration....
March 5, 2013 at 4:15 am
Sorry, but I don't.
I have asked what should happen with rows which cannot have unique on-character code set as all unique values already were used. Should such rows be...
March 5, 2013 at 4:13 am
You can solve your immeditate problem by using the solution I proposed above - generate a table of all 36 values (or whatever) randomised relative to an incrementing numeric key....
March 5, 2013 at 4:01 am
Jeff Moden (3/4/2013)
March 5, 2013 at 3:46 am
Eugene Elutin (3/4/2013)
....and remaining rows with random unique values...
and if you have more than 36 (or, as per your sample which already contains two of one-char codes, 34) ...
March 4, 2013 at 10:42 am
Since i don't want to update the rows with the existing values...i do row by row operation to avoid duplicates.....well, some function can be able to give unique values, but...
March 4, 2013 at 9:54 am
Create TAble Coded (JurisID int,CodeID int, srcCodeValue varchar(50), Description varchar(100), PnxCodeValue varchar(10))
insert into Coded(JurisId,CodeID, srcCodeValue,Description)
Select 0,1034,'BLU','BLUE'
union
Select 0,1034,'O','ORANGE'
union
Select 0 , 1034,'R','RED'
union
Select 0 , 1034,'GR','GREEN'
union
Select 0 , 1034,'BW','BROWN'
If...
March 4, 2013 at 9:48 am
First of all, Sorry Eugene...i am not a native speaker of english...so bare with me
yes..Eugene....generating 36 and skipping the the next incoming rows...since we can not generate more than unique...
March 4, 2013 at 9:12 am
Eugene,
I can generate unique values....what i am asking is " How do you generate unique values for 40 rows ? " We can generate upto 36 right? How to...
March 4, 2013 at 8:50 am
[quote-0
So, if table #tempSrcCodeDB contains more than 36 rows, it's okay to process 36 and throw away the rest?
Next thing - why not pick 36 rows at random from...
March 4, 2013 at 8:36 am
Eugene,
that topic was posted by me and from there, i was able to get some of the ideas at that time.. Thank you for reminding me. But still i can...
March 4, 2013 at 8:29 am
Eugene Elutin (3/4/2013)
http://www.sqlservercentral.com/Forums/Topic1267659-391-2.aspx
That one will generate unique values and it will "automatically" determine the size required based on how...
March 4, 2013 at 8:25 am
Viewing 15 posts - 61 through 75 (of 82 total)