![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi newsgroup, Is it possible to build a constraint, that ensures, that there are not more entries in a column, that look like 'Abc * ' -> trim(upper(..))='ABC' 'ABC' * *-> trim(upper(..))='ABC' 'aBC ' * -> trim(upper(..))='ABC' ? Alternativ I could build a shadow column filled by a trigger that containes trim(upper(..)) and a check constraint on this, but it seems to me that there is a better way. Thank you in advance Andreas Mosmann -- wenn email, dann AndreasMosmann <bei> web <punkt> de |
#3
| |||
| |||
|
|
Hi newsgroup, Is it possible to build a constraint, that ensures, that there are not more entries in a column, that look like 'Abc * ' -> trim(upper(..))='ABC' 'ABC' * *-> trim(upper(..))='ABC' 'aBC ' * -> trim(upper(..))='ABC' ? Alternativ I could build a shadow column filled by a trigger that containes trim(upper(..)) and a check constraint on this, but it seems to me that there is a better way. Thank you in advance Andreas Mosmann -- wenn email, dann AndreasMosmann <bei> web <punkt> de |
#4
| |||
| |||
|
|
Hi newsgroup, Is it possible to build a constraint, that ensures, that there are not more entries in a column, that look like 'Abc * ' -> trim(upper(..))='ABC' 'ABC' * *-> trim(upper(..))='ABC' 'aBC ' * -> trim(upper(..))='ABC' ? Alternativ I could build a shadow column filled by a trigger that containes trim(upper(..)) and a check constraint on this, but it seems to me that there is a better way. Thank you in advance Andreas Mosmann -- wenn email, dann AndreasMosmann <bei> web <punkt> de |
#5
| |||
| |||
|
|
Hi newsgroup, Is it possible to build a constraint, that ensures, that there are not more entries in a column, that look like 'Abc * ' -> trim(upper(..))='ABC' 'ABC' * *-> trim(upper(..))='ABC' 'aBC ' * -> trim(upper(..))='ABC' ? Alternativ I could build a shadow column filled by a trigger that containes trim(upper(..)) and a check constraint on this, but it seems to me that there is a better way. Thank you in advance Andreas Mosmann -- wenn email, dann AndreasMosmann <bei> web <punkt> de |
#6
| |||
| |||
|
|
On 2 abr, 11:19, Andreas Mosmann <mosm... (AT) expires-30-04-2008 (DOT) news- group.org> wrote: Hi newsgroup, Is it possible to build a constraint, that ensures, that there are not more entries in a column, that look like 'Abc * ' -> trim(upper(..))='ABC' 'ABC' * *-> trim(upper(..))='ABC' 'aBC ' * -> trim(upper(..))='ABC' ? Alternativ I could build a shadow column filled by a trigger that containes trim(upper(..)) and a check constraint on this, but it seems to me that there is a better way. Thank you in advance Andreas Mosmann -- wenn email, dann AndreasMosmann <bei> web <punkt> de Not sure about what you're trying to do, but a Function Based Unique Index on (trim(upper(column))) may do the trick... HTH. Cheers. Carlos.- Hide quoted text - - Show quoted text - |
#7
| |||
| |||
|
|
On 2 abr, 11:19, Andreas Mosmann <mosm... (AT) expires-30-04-2008 (DOT) news- group.org> wrote: Hi newsgroup, Is it possible to build a constraint, that ensures, that there are not more entries in a column, that look like 'Abc * ' -> trim(upper(..))='ABC' 'ABC' * *-> trim(upper(..))='ABC' 'aBC ' * -> trim(upper(..))='ABC' ? Alternativ I could build a shadow column filled by a trigger that containes trim(upper(..)) and a check constraint on this, but it seems to me that there is a better way. Thank you in advance Andreas Mosmann -- wenn email, dann AndreasMosmann <bei> web <punkt> de Not sure about what you're trying to do, but a Function Based Unique Index on (trim(upper(column))) may do the trick... HTH. Cheers. Carlos.- Hide quoted text - - Show quoted text - |
#8
| |||
| |||
|
|
On 2 abr, 11:19, Andreas Mosmann <mosm... (AT) expires-30-04-2008 (DOT) news- group.org> wrote: Hi newsgroup, Is it possible to build a constraint, that ensures, that there are not more entries in a column, that look like 'Abc * ' -> trim(upper(..))='ABC' 'ABC' * *-> trim(upper(..))='ABC' 'aBC ' * -> trim(upper(..))='ABC' ? Alternativ I could build a shadow column filled by a trigger that containes trim(upper(..)) and a check constraint on this, but it seems to me that there is a better way. Thank you in advance Andreas Mosmann -- wenn email, dann AndreasMosmann <bei> web <punkt> de Not sure about what you're trying to do, but a Function Based Unique Index on (trim(upper(column))) may do the trick... HTH. Cheers. Carlos.- Hide quoted text - - Show quoted text - |
#9
| |||
| |||
|
|
On 2 abr, 11:19, Andreas Mosmann <mosm... (AT) expires-30-04-2008 (DOT) news- group.org> wrote: Hi newsgroup, Is it possible to build a constraint, that ensures, that there are not more entries in a column, that look like 'Abc * ' -> trim(upper(..))='ABC' 'ABC' * *-> trim(upper(..))='ABC' 'aBC ' * -> trim(upper(..))='ABC' ? Alternativ I could build a shadow column filled by a trigger that containes trim(upper(..)) and a check constraint on this, but it seems to me that there is a better way. Thank you in advance Andreas Mosmann -- wenn email, dann AndreasMosmann <bei> web <punkt> de Not sure about what you're trying to do, but a Function Based Unique Index on (trim(upper(column))) may do the trick... HTH. Cheers. Carlos.- Hide quoted text - - Show quoted text - |
#10
| |||
| |||
|
|
Not sure about what you're trying to do, but a Function Based Unique Index on (trim(upper(column))) may do the trick... I try to ensure, that it is impossible to insert/update records in the |
|
HTH. I tried it out: |
|
Cheers. Thanks Carlos. Andreas |
![]() |
| Thread Tools | |
| Display Modes | |
| |