How would I add data to this DB?

CREATE TABLE "ASSESMENT_TYPE"
(     "ASSESMENT_TYPE" VARCHAR2(15),
"ASSESMENT_DESCRIPTION" VARCHAR2(70),
CONSTRAINT "ASSESMENT_TYPE_PK" PRIMARY KEY ("ASSESMENT_TYPE") ENABLE
CREATE TABLE "COURSE"
(     "COURSE_NO" NUMBER,
"COURSE_NAME" VARCHAR2(30),
"COURSE_START_DATE" DATE,
"COURSE_END_DATE" DATE,
"TOTAL_UNITS" NUMBER,
"COURSE_COORDINATOR_STAFF_NO" NUMBER,
"TOTAL_COURSE_COST" NUMBER,
"THIRD_PARTY_SUPPLIER_NO" NUMBER,
CONSTRAINT "COURSE_PK" PRIMARY KEY ("COURSE_NO") ENABLE,
CONSTRAINT "COURSE_CON_FK" FOREIGN KEY ("COURSE_COORDINATOR_STAFF_NO")
REFERENCES "EMPLOYEE" ("EMPLOYEE_NO") ENABLE,
CONSTRAINT "THPARTY_SUPPLIER_FK" FOREIGN KEY ("THIRD_PARTY_SUPPLIER_NO")
REFERENCES "THIRD_PARTY_SUPPLIER" ("THIRD_PARTY_SUPPLIER_NO") ENABLE
CREATE TABLE "COURSE_OUTCOME"
(     "COURSE_OUTCOME" VARCHAR2(5),
"COURSE_OUTCOME_DESCRIPTION" VARCHAR2(25),
CONSTRAINT "COURSE_OUTCOME_PK" PRIMARY KEY ("COURSE_OUTCOME") ENABLE
CREATE TABLE "DEPARTMENT"
(     "DEPARTMENT_NO" NUMBER,
"DEPARTMENT_NAME" VARCHAR2(50),
"DEPARTMENT_LOCATION" VARCHAR2(150),
"DEPT_MANAGER_NO" NUMBER,
CONSTRAINT "DEPARTMENT_PK" PRIMARY KEY ("DEPARTMENT_NO") ENABLE,
CONSTRAINT "DEPTMANNO_FK" FOREIGN KEY ("DEPT_MANAGER_NO")
REFERENCES "EMPLOYEE" ("EMPLOYEE_NO") ENABLE
CREATE TABLE "EDUCATIONAL_INSTITUTION"
(     "SCHOOL_UNIVERSITY_NAME" VARCHAR2(100),
"SCHOOL_UNIVERSITY_ADDRESS" VARCHAR2(200),
CONSTRAINT "EDUCATIONAL_INSTITUTION_PK" PRIMARY KEY ("SCHOOL_UNIVERSITY_NAME") ENABLE
CREATE TABLE "EMPLOYEE"
(     "EMPLOYEE_NO" NUMBER,
"EMPLOYEE_NAME" VARCHAR2(50),
"EMPLOYEE_ADDRESS" VARCHAR2(150),
"JOB_DESCRIPTION" VARCHAR2(50),
"STATUS" VARCHAR2(15),
"START_DATE" DATE,
"SALARY_CODE" NUMBER,
"SUPERVISOR_EMPLOYEE_NO" NUMBER,
"DEPARTMENT_NO" NUMBER,
CONSTRAINT "EMPLOYEE_PK" PRIMARY KEY ("EMPLOYEE_NO") ENABLE,
CONSTRAINT "SALARYCODE_FK" FOREIGN KEY ("SALARY_CODE")
REFERENCES "SALARY" ("SALARY_CODE") ENABLE,
CONSTRAINT "SUPEMNO_FK" FOREIGN KEY ("SUPERVISOR_EMPLOYEE_NO")
REFERENCES "EMPLOYEE" ("EMPLOYEE_NO") ENABLE,
CONSTRAINT "EMDEPNO_FK" FOREIGN KEY ("DEPARTMENT_NO")
REFERENCES "DEPARTMENT" ("DEPARTMENT_NO") ENABLE
CREATE TABLE "EMPLOYEE_COURSE_OUTCOME"
(     "EMPLOYEE_NO" NUMBER,
"COURSE_NO" NUMBER,
"COURSE_OUTCOME_CODE" VARCHAR2(5),
"COURSE_EMPLOYEE_MARK" NUMBER,
CONSTRAINT "EMPLOYEE_COURSE_OUTCOME_PK" PRIMARY KEY ("EMPLOYEE_NO", "COURSE_NO") ENABLE,
CONSTRAINT "EM_FK" FOREIGN KEY ("EMPLOYEE_NO")
REFERENCES "EMPLOYEE" ("EMPLOYEE_NO") ENABLE,
CONSTRAINT "EMPLOYEE_COURSE_FK" FOREIGN KEY ("COURSE_NO")
REFERENCES "COURSE" ("COURSE_NO") ENABLE,
CONSTRAINT "EMPLOYEE_COURSE_OCODE_FK" FOREIGN KEY ("COURSE_OUTCOME_CODE")
REFERENCES "COURSE_OUTCOME" ("COURSE_OUTCOME") ENABLE
CREATE TABLE "EMPLOYEE_COURSE_UNIT_OUTCOME"
(     "EMPLOYEE_NO" NUMBER,
"COURSE_NO" NUMBER,
"UNIT_NO" NUMBER,
"UNIT_OUTCOME_CODE" VARCHAR2(5),
"EMPLOYEE_UNIT_MARK" NUMBER,
CONSTRAINT "EMPLOYEE_CUO_PK" PRIMARY KEY ("EMPLOYEE_NO", "COURSE_NO", "UNIT_NO") ENABLE,
CONSTRAINT "EMPCU_FK" FOREIGN KEY ("EMPLOYEE_NO")
REFERENCES "EMPLOYEE" ("EMPLOYEE_NO") ENABLE,
CONSTRAINT "EMCU-FK" FOREIGN KEY ("UNIT_NO")
REFERENCES "UNIT" ("UNIT_NO") ENABLE
CREATE TABLE "EMPLOYEE_CRS_UNIT_ASSESMENT"
(     "EMPLOYEE_NO" NUMBER,
"COURSE_NO" NUMBER,
"UNIT_NO" NUMBER,
"ASSESMENT_TYPE" VARCHAR2(15),
"EMPLOYEE_ASSESMENT_MARK" NUMBER,
CONSTRAINT "EMPLOYEE_CRS_PK" PRIMARY KEY ("EMPLOYEE_NO", "COURSE_NO", "UNIT_NO") ENABLE
CREATE TABLE "EMPLOYEE_QUALIFICATION"
(     "EMPLOYEE_NO" NUMBER,
"QUALIFICATION_TYPE" VARCHAR2(5),
"SUBJECT" VARCHAR2(20),
"GRADE" NUMBER,
"SCHOOL_UNIVERSITY_NAME" VARCHAR2(100),
"AWARDING_BODY" VARCHAR2(50),
"DATE_QUALIFICATION_OBTAINED" NUMBER,
CONSTRAINT "EMPLOYEE_QUALIFICATION_CON_PK" PRIMARY KEY ("EMPLOYEE_NO", "QUALIFICATION_TYPE", "SUBJECT") ENABLE,
CONSTRAINT "DEPTNO_FK" FOREIGN KEY ("EMPLOYEE_NO")
REFERENCES "EMPLOYEE" ("EMPLOYEE_NO") ENABLE,
CONSTRAINT "EMQUALREF_FK" FOREIGN KEY ("QUALIFICATION_TYPE")
REFERENCES "QUALIFICATION_TYPE" ("QUALIFICATION_TYPE") ENABLE,
CONSTRAINT "SCHUNINAME_FK" FOREIGN KEY ("SCHOOL_UNIVERSITY_NAME")
REFERENCES "EDUCATIONAL_INSTITUTION" ("SCHOOL_UNIVERSITY_NAME") ENABLE
CREATE TABLE "QUALIFICATION_TYPE"
(     "QUALIFICATION_TYPE" VARCHAR2(5),
"QUALIFICATION_DESCRIPTION" VARCHAR2(25),
CONSTRAINT "QUALIFICATION_TYPE_PK" PRIMARY KEY ("QUALIFICATION_TYPE") ENABLE
CREATE TABLE "SALARY"
(     "SALARY_CODE" NUMBER,
"SALARY_AMOUNT" NUMBER,
CONSTRAINT "SALARY_PK" PRIMARY KEY ("SALARY_CODE") ENABLE
CREATE TABLE "THIRD_PARTY_SUPPLIER"
(     "THIRD_PARTY_SUPPLIER_NO" NUMBER,
"THIRD_PARTY_NAME" VARCHAR2(100),
"THIRD_PARTY_CONTACT_NAME" VARCHAR2(100),
CONSTRAINT "THIRD_PARTY_SUPPLIER_PK" PRIMARY KEY ("THIRD_PARTY_SUPPLIER_NO") ENABLE
CREATE TABLE "UNIT"
(     "UNIT_NO" NUMBER,
"UNIT_NAME" VARCHAR2(30),
"UNIT_COST" NUMBER(7,2),
CONSTRAINT "UNIT_PK" PRIMARY KEY ("UNIT_NO") ENABLE
CREATE TABLE "UNIT_OUTCOME"
(     "UNIT_OUTCOME_CODE" VARCHAR2(5),
"UNIT_OUTCOME_DESCRIPTION" VARCHAR2(25),
CONSTRAINT "UNIT_OUTCOME_PK" PRIMARY KEY ("UNIT_OUTCOME_CODE") ENABLE
I need to add 10 people to this database, all im getting is blooody errors. Someone please help! I am having trouble due to constraints and so on.
Thanks
Ollie

I would make this one as answered if it was directly the same as the other, however that one I do need to makr an answered as the point of that one was for someone to decipher an error message, this one is asking how i would insert the following data into the database, I shall mark the other one as answered now.
insert into department values (01, 'Management', 'London',01);
insert into department values (02, 'Programming', 'Surrey', 02);
insert into department values (03, 'Cleaning', 'London', 03);
insert into department values (04, 'Data Analysis', 'London', 04);
insert into department values (05, 'Cleaning', 'Surrey', 05);
insert into department values (06, 'Reception', 'London', 06);
Insert into department values (07, 'Reception', 'Surrey', 07);
commit;
insert into salary values (1, 100000);
insert into salary values (2, 75000);
insert into salary values (3, 60000);
insert into salary values (4, 40000);
insert into salary values (5, 30000);
insert into salary values (6, 20000);
commit;
insert into employee values (0002, 'Mitch Vaughan', '145A Green Street', 'Administrator','Active','01-December-2010', 1,1,1);
insert into employee values (0001, 'Ollie Marriott', '12 Ghetto Road', 'Administrator','Active','02-December-2010', 2,2,1);
insert into employee values (0003, 'Tim Reynolds', '12 Shoebury Way', 'Cleaner','Inactive','02-December-2000', 3,0002,3);
insert into employee values (0004, 'Tom Watson', '90 Seymour Road', 'Data Analyst','Active','10-December-2008', 4,0001,04);
insert into employee values (0005, 'Wajj Queda', '125 Hamlet Court', 'Cleaner','Active','15-September-2007', 5,0001,05);
insert into employee values (0006, 'Nathan Mann', '33a Bushey Hill Road', 'Receptionist','Active','02-December-2010', 6,0004,06);
insert into employee values (0007, 'Tim DeLong', '34 Buena Vista Drive', 'Receptionist', 'Active','21-December-2010',7,1,06);
commit;
insert into course values (1, 'BSC degree', '10-October-2005', '10-July-2008', 5, 10000', 1);
insert into course values (1, 'BSC degree', '11-October-2006', '11-July-2009', 5, 11000, 1);
insert into course values (2, 'A-levels', '30-September-1997', 30-August-1999', 3, 0, 2);
insert into course values (3, 'GCSE's', '10-September-1979', '10-August-1981', 8, 0, 3);
insert into course values (3, 'GCSE's', '14-September-1988', '14-August-1990', 5, 0, 3);
insert into course values (2, 'A-levels', '12-September-2005', '12-August-2007', 4, 0, 2);
insert into course values (4, 'BSC degree', '10-October-2000', '10-July-2003', 5, 9000, 1);
commit;
insert into course_outcome values ('First', 'Excellent');
insert into course_outcome values ('First', 'Excellent');
insert into course_outcome values ('A-B-B', 'Good');
insert into course_outcome values ('5A*-C', 'Fair');
insert into course_outcome values ('5A*-C', 'Fair');
insert into course_outcome values ('B-B-B', 'Good');
insert into course_outcome values ('2/1', 'Great');
commit;
insert into educational_institution values ('Nottingham Trent', 'Clifton Lane-Clifton Campus-Nottingham');
insert into educational_institution values ('Sheffield Uni', 'Uni Road-Sheffield');
insert into educational_institution values ('none', 'none');
insert into educational_institution values ('none', 'none');
insert into educational_institution values ('none', 'none');
insert into educational_institution values ('none', 'none');
insert into educational_institution values ('Nottingham Trent', 'Clifton Lane-Clifton Campus-Nottingham');
commit;
insert into employee_course_outcome values (1,
insert into employee_course_outcome values (1,
insert into employee_course_outcome values (3,
insert into employee_course_outcome values (4,
insert into employee_course_outcome values (4,
insert into employee_course_outcome values (3,
insert into employee_course_outcome values (2,
The progblem is all my contraints are making it impossible to add data!

Similar Messages

  • How do i add data from database to JTable ! Urgent

    How do i add data from database to the columns of JTable?.

    hi,
    Thanks for ur link. but this is just a part of my application which i am developing user interface in swing package for which i want to know how to show data to user in the table format where by table input data will be from the database. say something like todays activity is shown to the user in table format... So u have any idea of how to do this...

  • If i have a mac book 11 how would i up date the software so i can buy imovie 12 or 13

    If i have a mac book 11 how would i up date the software si i can get imovie 12 or 13

    iMovie 11 is the newest version publicly available at this time.
    (89754)

  • Arabic is not listed as a display language in iTunes for Windows 7. How can I add support for this language?

    Arabic is not listed as a display language in iTunes for Windows 7. How can I add support for this language?

    Edit  ---> referance ----->   general    ------> language

  • Good afternoon. I have created a Form in Indesign, imported into FormsCentral. I would like to post this onto a webpage. It is currently an iPDF. How would I go about doing this. I cannot 'Place it'. Thanks

    Good afternoon.
    I have created a Form in Indesign, imported into FormsCentral.
    I would like to post this onto a webpage. It is currently an iPDF.
    How would I go about doing this. I cannot 'Place it'.
    Thanks

    The only way to use Forms Central would be to export it the method that gives you the embed code (can't remember what the actual term is off hand) and then use Object--->Insert HTML and past your code in.

  • Hey, I'm trying to authorize my new laptop with my iTunes account. How would I go about doing this?

    Hey, I'm trying to authorize my new laptop with my iTunes account. How would I go about doing this?

    Hi Michael1296,
    Thanks for visiting Apple Support Communities.
    Here are the steps to authorize a computer in iTunes:
    How do I authorize a computer?
    Open iTunes on the computer you want to authorize.
    Choose Store > Authorize This Computer from the menu bar.
    You might need to show the menu barto see this option in Windows. In earlier versions of iTunes, you can access this option from the Advanced menu.
    Enter your Apple ID and click Authorize.
    If your Apple ID uses an expired MobileMe account, you can still use it to authorize your computer.
    If iTunes asks you to authorize your computer again, it won't use a new authorization. iTunes uses the same authorization for the same computer.
    You can find these steps and more information at this link:
    Authorize your computer using iTunes
    All the best,
    Jeremy

  • I have a short homemade film burnt onto a DVD, I now want to import the movie into IMOVIE on my MacBook Pro so that I can edit it, how would I go about doing this? Welcoming any guidance.  Thanks in advance.

    I have a short homemade film burnt onto a DVD, I now want to import the movie into IMOVIE on my MacBook Pro so that I can edit it, how would I go about doing this? Welcoming any guidance.  Thanks in advance.

    1. Insert your DVD.
    2. Open Disk Utilities (Application> Utilities> Disk Utilities). Highlight your DVD and press "New Image" on the upper toolbar.
    3. Choose the location you would like to save your DVD from the drop down menu, "Desktop" is usually the best choice. Then click Save.
    4. When finished, your DVD icon will appear on the desktop with the .dmg extension.
    5. With iMovie open, double-click the .dmg  file you created to mount it. The iMovie import window will then appear asking you to choose. Click Import All and wait for the Import to complete.

  • Need help on how to help my sister register her new nano and add music to it on my computer. I have my on nano already on my computer registered and set up but she and I don't listen to the same music so how would I go about doing this?

    I'm trying to find out information on how to go about helping my sister to register her new nano and load on CD's and such. I have a nano and already know how to do this but she is from CA and we want to load it here on my computer. She will be going home in 2 weeks and wants to use it in the car for the ride home.We don't listen to the same kind of music so I don't want to use my library but do one of her own for her. Also she will want to add this library on to her computer at home. I'm 60 and my sister is 70 I have enough knowledge to do some things on the computer but am not real computer smart. My sister is just learning about everything but has no idea what to do with that knowledge. Can anyone give me and idea on how to do this that I can get a grasp of what needs to be done to do this? My nephew says it's easy but he's in Az and I'm here. He also helps people with computers so he is more knowledgeable than I am. Would appreciate any help on this. thx

    See the procedures below for removing a device from Find My iPhone when you can't do it on the device itself.
    iCloud: Remove your device from Find My iPhone

  • How can I add date to photos taken on my iphone 4s

    How can I add a date to photos taken on my iphone 4s?

    That's correct - Photos supports geotagging, but only allows viewing of that information. Once an image is in Photos, geotags cannot be added, deleted, or edited. This post suggests some apps for editing geotags outside of the Photos app. As you mentioned, you can edit the geotags in iPhoto, export to the finder and then import to Photos. I would guess (and hope!) we'll see this added in an update, and hopefully soon!

  • VI Analyzer - How Would You Configure It for This Use Case?

    My group has different people working on different LVPROJs for each software deliverable we have. Each LVPROJ uses our user.libs and instr.libs, as well as an overall "framework" that is the same for most LVPROJs.
    I really think the VI Analyzer toolkit would be powerful for code reviews, but only if I can configure it in a way where which tests I run and what the criteria are can be saved and used on any project. I can't seem to get this to work for me. I want to save all those configurations, and use it on new LVPROJs easily - the easier I can make this process, the more inclined others will be to use this for code review. How would you do it? (if it's even feasible)
    Solved!
    Go to Solution.

    I suggest creating a .cfg file without a project linkage, but with all the tests selected and configured as you want...so a .cfg file with no "Items to Analyze" specified. Then, when working on an individual project, open that CFG file, add the project's top-level folder to the analysis, then save that CFG file with that project. This means you can't have the project linkage in your CFG file, but assuming your project is all within some top-level folder, that shouldn't be much of an issue, since the CFG file will be "linked" at that point to the top-level folder containing your project.
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • How do I add a "Print this page" button (not just a "Print" button) to a PDF?

    I am creating a multipage PDF in Acrobat Pro 8 for a client and it includes a linked table of contents with several sections and also several forms sprinkled throughout. I need to be able to add buttons that allow the user to print specific page numbers. Is it possible to add a "print this page" button to a page ... or even a "print this form" in case the form within the larger document is multiple pages? I would appreciate any help, thanks!

    I was just coming back to here to say I've figured it out and am using an invisible button (over text that was created to look like a link) on each page... tested and working (when combined with the code). Thank you for your replies!

  • How Would you add a Plug In?

    I want to add this into Edge and I want it to effect nearly all DIV's on the stage like 90% of them
    But I have no idea how I add it into edit I can easily get it working in Dreamweavther but in edge its hopless
    Heres the JS http://stephband.info/jparallax/
    Could anyone walk me threw how to add something like this or direct me to a similar effect/ tutorial for edge?

    Looks like you got your question answered here:
    http://forums.adobe.com/message/5763832#5763832
    Thanks,
    -Elaine

  • Disable the pop-up message box "How would you like to open this file" to open pdf file??

    Hi,
    is there any way i can stop the pop-up box displaying to open pdf file in sharepoint document library? Right now whenever i am trying to open pdf file, asking "how would you like to open"  Read only or edit mode. currently MIME Type is setup
    but still pop-up message box.
    Thanks in advanced!

    Hi ,
    As far as I know, This is a default feature. and is not recommended to delete or deactivate this pop up. 
    This is a feature of office and there is a dll called owssupp.dll which is responsible for getting the popup to open.
    You can go to IE tools> addon settings and deactivate the above dll (sharepoint open document class). But if you do so, then the other office office files which are word/excel/pptx etc.. would aslo gets affected and they also wont get the popup.
    Hope this helps.
    Best Regards, Ashok Yadala

  • How do I add the "Rate this book" and "write a review" feature?

    At the end of most books, I see this "Rate the book" widge.  When you click on "Write a Review" within the book a form for submitting a review shows up...how do I add this?

    I believe you're looking at a Kindle Book, not a book in the iBookstore. This is something Amazon has added to many books automatically when submitted through Amazon Kindle Direct Publishing. 

  • How i can add data to the dev ?

    hello  ,
    we have  dev / qa / prod .
    the problem is that the "dev" don’t have enough data and we need
    to pass the development to the qa for any simple test  .
    is it possible to insert data just to the tables without erase or make
    damage to the existing  programs/develops ?

    //the problem is that the "dev" don’t have enough data and we need
    to pass the development to the qa for any simple test .
    How much is the data content to be created into the table ?
    For unit testing is this a report or what program is to be run in the QA?
    Can u elaborate the query in this regard?
    //is it possible to insert data just to the tables without erase or make
    damage to the existing programs/develops ?
    Are u trying to transport the table with entries into QA for just testing purpose ?
    confirm this .
    in my opinion if at all the entries are required to test some scenario
    like say one or two max 5 per scenario ,
    can't u create some entries in debugging itself by appending the entry in ur QA itself .
    regards,
    vijay.

Maybe you are looking for

  • Hp laserjet m1536dnf mfp. "Connection error Check connection".

    i have hp laserjet m1536dnf mfp.  when tried to enable eprint at the web services setup menu... i get "Connection error Check connection".  Network and Internet connection works fine.  Please help? It seems like the Printer is having a hard time conn

  • Mavericks Simple Finder Not Displaying Correctly

    I have upgraded one of our network mac minis to mavericks and have created a test server for it, i am trying to use WGM to restrict the finder for students to simple finder this works but no finder launches at all, when i create a local account on th

  • IPhone 3G screen alignment

    Hi, I have an iphone 3G and I've just been inspecting around the phone and have noticed that the actual LCD is not aligned to the centre of the phone. I figured this because the display on one side is directly on the line of the black glass while on

  • Document Printing Authorizations ...

    Hello Experts, there is a scenario: I want to give the Report Printing Authorization to a user reports like Sales Analysis, Purchase Analysis ... etc.... But don't want to give access to Print Purchase Order to any user other than one or two. Help Re

  • Ummm apps?

    How do I remove an app from my iphone 3g...It is not showing up under my iphone in itunes when I expand the iphone...