Its says ORA-00913 to many values
Main Topics
Browse All TopicsI have written simple sql code before and have created, dropped and tables. But I am unfamiliar with the way this code is written. I created 3 tables (temp_fis, temp_sa, temp_merged). But I was unable to use the insert statement listed below. I dont understand the first select statement. I think its asking me to use the oracle internal id and give it an alisa name id then I'm not sure what a*. means. I understand the from clause stating retreive these rows and rename the a ??? I think. Can you help me figure out how to run this code.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
ok, I altered the tables
temp_sa_fcm table
sa_id integer
CONSTRAINT sa_pk PRIMARY KEY,
sa_payment_type number(20),
sa_provider_id number(20),
sa_provider_name varchar(50),
sa_person_fname varchar(50),
sa_person_lname varchar(50),
sa_person_id number(20),
sa_person_name varchar(50),
sa_amount number(10,2),
sa_rec_cre_dt number(10,2));
**************************
temp_fis_fcm table
id integer constraint fis_pk primary key,
fis_id number(20),
fis_payment_type varchar(20),
fis_provider_id NUMBER(20),
fis_provider_name VARCHAR(50),
fis_person_id NUMBER(20),
fis_person_fname VARCHAR(50),
fis_person_lname VARCHAR(50),
sa_person_id number(20),
fis_person_name varchar(50),
fis_amount NUMBER(10,2));
I apologize for the delay to grading everyones solutions. I had a death in the family. But, if it had not been for you guys I would have never completed the assignment on time. I had to look at the code a little closer. The datatypes for the tables I created were incorrect and my 1 to 1 mapping was incorrect. Thank you for your time and patience.
Business Accounts
Answer for Membership
by: mrjoltcolaPosted on 2009-10-19 at 08:05:20ID: 25605808
You are close. It is using ROWNUM and aliasing it to ID. That is not the best "ID" as far as a primary key goes, because rownum can change based on ordering.
ROWNUM is simply the row number of query / result set.
ROWID is the actual unique row identifier in the table.
So what is the error?