nuttyernurse
Technical User
Hello all!
I am trying to create new data in a table using a data field from another table. My IS department helped me with this following statement but it does not work and we are all scratching out heads:
INSERT INTO o_alias (alias, order_item_seq, alias_seq,is_order_name)
values ('Ultrasound', Get order_item_seq
FROM o_item
WHERE order_name like 'ULT%', alias_seq.nextval, 0)
The alias_seq is the PK for this table and needs to be sequential.
This is an example of actual data:
alias ULT Placental Local
o_item_seq 207508
alias_seq 113871
is_order_name 1
If the alias is not the same as the order name, then it has the value of 0.
Any help is appreciated!
I am trying to create new data in a table using a data field from another table. My IS department helped me with this following statement but it does not work and we are all scratching out heads:
INSERT INTO o_alias (alias, order_item_seq, alias_seq,is_order_name)
values ('Ultrasound', Get order_item_seq
FROM o_item
WHERE order_name like 'ULT%', alias_seq.nextval, 0)
The alias_seq is the PK for this table and needs to be sequential.
This is an example of actual data:
alias ULT Placental Local
o_item_seq 207508
alias_seq 113871
is_order_name 1
If the alias is not the same as the order name, then it has the value of 0.
Any help is appreciated!