Avatar of egovernment
egovernmentFlag for Afghanistan

asked on 

SQL Plus - Insert statement

I need to write insert statement but one values will be calculate from other fields and records

any example for that ?
DatabasesOracle DatabaseSQL

Avatar of undefined
Last Comment
egovernment
Avatar of OP_Zaharin
OP_Zaharin
Flag of Malaysia image

- maybe something like this?:

INSERT INTO table1 (field1, field2) SELECT field1, (field2 + 1) FROM table2
Avatar of OP_Zaharin
OP_Zaharin
Flag of Malaysia image

- if you can provide sample data, and how its being caculated it will much clearer. does the value came from a field in different table or the same table?
ASKER CERTIFIED SOLUTION
Avatar of awking00
awking00
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
SOLUTION
Avatar of Qlemo
Qlemo
Flag of Germany image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of awking00
awking00
Flag of United States of America image

Qlemo,
I wish it were true that there is no reason to post my responses as an attachment, and that's precisely how I always initially respond. However, I don't know whether it's due to the extremely restrictive firewall under which I work, but I would say about 90% of the time I try to submit a direct response, it gets timed out, but an attachment will go through. This has been extremely frustrating to me as I have tried to submit solutions that were correct only to have to copy them to a file, save them and re-submit as an attachment only to have someone else get credit for submitting the same solution minutes earlier than my attachment. I expressed my displeasure with this a long time ago when EE made some substantial changes to the site causing my need to use the attachment method. I am trying to submit this comment directly now. Hopefully, it will go through.
Avatar of egovernment
egovernment
Flag of Afghanistan image

ASKER

I will return all answers and come back
Oracle Database
Oracle Database

Oracle is an object-relational database management system. It supports a large number of languages and application development frameworks. Its primary languages are SQL, PL/SQL and Java, but it also includes support for C and C++. Oracle also has its own enterprise modules and application server software.

81K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo