Re: [SQL] new calculated column

2002-09-09 Thread Viacheslav N Tararin
For implicit modification you can use a trigger on the table. If you wan't store this data, you can use view. andres javier garcia garcia ?: >Hi; > >I've got a table with two fields and about 3000 rows, the second one is a >character field, what can have about twenty different values; of c

[SQL] new calculated column

2002-09-09 Thread andres javier garcia garcia
Hi; I've got a table with two fields and about 3000 rows, the second one is a character field, what can have about twenty different values; of course these values are repeated a lot of times in the table. I need to create a new column of type integer, whose value depens on the character fields

Re: [SQL] new calculated column

2002-09-05 Thread mallah
HI. simple (tedious) solution would be do fire 20 sqls.  update tabel set f1= where f2='some varchar1'; update tabel set f1= where f2='some varchar2'; update tabel set f1= where f2='some varchar3'; incase there is some the integer is a function of varchar u may translate to the corresponding

[SQL] new calculated column

2002-09-05 Thread andres javier garcia garcia
Hi; I've got a table with two fields and about 3000 rows, the second one is a character field, what can have about twenty different values; of course these values are repeated a lot of times in the table. I need to create a new column of type integer, whose value depens on the character fields. T