New to Oracle and do not know why this won't compile!

I really am tryining to have a good example to go on my Oracle, I do not understand if there is an error code or if it has something to do with my other tables, which have not yet been created. Any help would be appreciated.


CREATE TABLE ("ASSIGNMENT"
ProjectID INTEGER NOT NULL,
EmployeeNumber CHAR (35) NOT NULL,
HoursWorked CHAR (35) NOT NULL,
FORCED TO
assignment_pk
PRIMARY KEY (ProjectID, EmployeeNumber).
FORCED TO
projectID_fk
KEY (ProjectID) FOREIGNERS
REFERENCE PROJECT (ProjectID)
ON DELETE CASCADE,

FORCED TO
employeeID_fk
KEY (EmployeeNumber) FOREIGNERS
REFERENCE EMPLOYEE (EmployeeNumber)
ON DELETE NO ACTION
);

Welcome to the forum.

I don't understand if there is an error code or if it has something to do with my other tables, which have not yet been created.

It has to do with your other tables, you cannot refer to a table that does not exist:

SQL> create table b
  2  ( col1 number
  3  , col2 number
  4  , constraint b_pk primary key(col1)
  5  , constraint b_fk foreign key(col2) references a(col1)
  6  );
, constraint b_fk foreign key(col2) references a(col1)
                                               *
ERROR at line 5:
ORA-00942: table or view does not exist

SQL> create table a
  2  ( col1 number
  3  , constraint a_pk primary key(col1)
  4  );

Table created.

SQL> create table b
  2  ( col1 number
  3  , col2 number
  4  , constraint b_pk primary key(col1)
  5  , constraint b_fk foreign key(col2) references a(col1)
  6  );

Table created.

So, first create the tables that you are referencing.
And always mention the version of your database and when you get an error: always display the full error message.

Tags: Database

Similar Questions

  • Does anyone know why this won't compile? Thanks in advance.

    FUNCTION to CREATE or REPLACE frank.emails
    RETURN varchar2
    is
    temp_em varchar2;

    BEGIN


    Select 'abc' in double temp_em;

    Return temp_em;


    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    NULL;
    WHILE OTHERS THEN
    -Consider recording the error and then re-raise
    LIFT;

    Emails of LATE;
    /


    ATTENTION: updated, but with compilation errors

    Specify the length for this:

    temp_em varchar2;
    

    For example:

    temp_em varchar2 (100);

    You can also use the command 'show the error' after the failure of compilation to check what caused the failure.

  • Ive downloaded the software but its was not and do not know why. Help me?

    Ive downloaded the software but it has not installed on my mac and don't know why

    Are what software you referring?

  • I decided to do a clean install of windows 7, but when the disc it stops to extend windows files 0% I do not know why this happens is the drive.

    Original title: Windows 64-bit clean

    Ive recently done my 2nd attempt to install windows 7 64 bit and ive met the same problem, I have formatted and deleted all the data ln my drive hard amd decided to do a clean install of windows, but when the disc it stops expanding windows files 0% I don't know why this is happening is the disc

    You have all the features non-essential connected to the computer during installation? If you have external storage media connected, disconnect them.

    It is also possible to reinstall your Windows 7 media is corrupt. You can try to download a new copy and try again.

    How to: What are my options for Windows 7 reinstall media?

  • Does not work and do not know why

    Just installed the CLI and pulled up, went to run the cmdlet connect-viserver and it is not working and I don't know why? The system is Win7 x 32.

    C:\Program VMware vSphere CLI & gt; connect-viserver

    'connect-viserver' is not recognized as an internal or external command

    operable program or batch file.

    VCP, NT4/W2k/W2k3 MCSE, MCSA W2k3

    The cmdlet connect-viserver is part of PowerCLI and is not part of the vCLI.  With the vCLI you can specific to the host to connect to when you run a command.

    Dave

    VMware communities user moderator

    Now available - vSphere Quick Start Guide

    You have a system or a PCI with VMDirectPath?  Submit your specifications to Officieux VMDirectPath HCL.

  • new to apple and may not know a lot about this computer again

    You just bought a new iMAC. So far, I'm green grass on this subject. My first question is how can I know when the keyboard and mouse are all loaded to the top? Second question, is that they are more accountable?

    http://help.Apple.com/iMac/late-2015/#/apdbc13fd966

    Charge the battery. Connect your keyboard magic or the Magic Mouse 2 to your iMac with lightning included a USB cable. To check the charge level, click on in the MenuBar at the top of the screen, then choose your device.

    To charge the battery more quickly, don't forget that your input device is turned on when you connect it to your iMac.

    For more information on rechargeable batteries in your Keyboard Magic or Magic Mouse 2 go Apple Lithium -Ion Batteries.

    No - the battery stops to load completely load, so you cannot 'overload' it

    Take advantage of the iMac and please let us know of any questions

  • seems to be feeding through my speakers and do not know why or how to stop it

    Well, there's a buzz that crosses

    Hi murrayjupp,

    1. don't you make changes to the computer before the issue occur?
    2. does the same problem occur when you connect earphones?

    You can also try disabling audio enhancements on your computer and check if it helps. To disable speaker audio enhancements follow these steps:

    a. open peripheral Audio and sound themes by clicking the Start button, click Control Panel, hardware and sound, and then clicking sound.

    b. on the playback tab, click speakers and then click Properties.

    c. click the enhancements tab, and then check Disable all improvements.

    If you do not see the enhancements tab in the speakers Properties dialog box, these features are not available for your speakers, and this procedure is not applicable to your computer.

    Note: Make sure the computer speakers / are properly grounded with the electrical wiring.

  • I'm in Belgium in fact and I need to download the real version of Photoshop, but I can't. I was on the trial version for 60 days but now I am a professional designer and do not know why I can not buy the official Version.  Could someone help me?

    Can someone help me, how to download the official version of Photoshop in Belgium on the Adobe Web site?

    Hello

    Please see the pricing and membership creative cloud plans | Adobe Creative Cloud to place an order for the CC plan.

    See please download and install Adobe Creative Cloud apps to download.

    Kind regards

    Sheena

  • simple JavaScript with the .onClick function does not. I have the following little script and does not know why it does not work through. any ideas?

    #target illustrator

    main #targetengine

    Function

    function count_selected_objects() {}

    Alert ('start of the function'); works well!

    myDocument var = app.activeDocument;

    var items = selection.

    var totalSelected = items.length;

    for (var i = 0; i < totalSelected; i ++) {}

    var my_elementy = app.activeDocument.selection [i];

    Alert ("no" + i);

    }

    }

    Palette window

    var win = new window ("palette", 'Éléments Count');

    win.alignChildren = "fill".

    Win.My_Button = win.add ("button", undefined, "Run");

    Win.My_Button.onclick = function() {}

    count_selected_objects();

    }

    Win.Show ();

    You can reference below:

    Calling functions from the palette of the user interface

    Ten

  • Please someone told me how to Center justify text boxes in a window created in Javascript for Illustrator.  Think it must be done when creating the objects, but I'm new to scripting and do not know the syntax.

    function getCutterID() {}

    var CWindow is new window ('dialog', "ID layout");.

    var CInputGroup is CWindow.add ('group');.

    var CText = CInputGroup.add ('edittext', undefined, ' ');

    CText.characters = 7;

    CText.active = true;

    var CButtonGroup is CWindow.add ('group');.

    CButtonGroup.alignment = 'right '; CButtonGroup.add ('button', undefined, 'OK'); CButtonGroup.add ('button', undefined, 'Cancel');

    CButtonGroup.active = true

    CWindow.show ();

    return CText.text

    CWindow.close ();

    };

    ScriptUI for Dummies | Peter Kahrel

    See page 60.

    It may be useful

  • I'm about to upgrade to a NEW computer and do NOT know how to approach the transfer on my Photoshop CC program/service to the new computer without LOSING any settings. Can someone advise?

    I'm about to upgrade to a NEW computer system and do NOT know how to approach the transfer on my Photoshop CC program/service to the new computer without LOSING any settings. Can someone advise?

    Trevor thanks for your advice and take the time to answer.

    What about Paul

  • These latest BSOD and am not sure why

    I have recently started to become more and more BSOD and do not know why, any help would be appreciated.

    I have an Alienware Aurora ALX R4, 3960 X 6 extreme, 15mg Cache OC to 4.2, 32 Gig RAM, Soundblaster titanium, running Win 7 Ultimate with a card Nvidia GTX 590

    Error message:

    BCCode 50

    BCP1: FFFFFFFF80EB5000

    BCP2: 0000000000000000

    BCP3: FFFFF800058B3D48

    BCP4: 0000000000000005

    Files that may help: C:\Windows\Minidump\091012-24414-01.dmp and C:\Users\A5ASIN\AppData\Local\Temp\WER-52229-0.sysdata.xml

    Only things that I've done, downloaded the new Nvidia drivers at last beta together, soundblaster audio update drivers and that's it.

    You can limit the number of Audio drivers, you
    installed. As you map Sounblaster would uninstall both the
    Realtek (or disable Realtek in BIOS) and Nvidia HD Audio drivers.
    HD of Nvidia audio drivers have had conflicts with Realtek lately, and that you have updated your Soundblaster drivers at the time the BSOD began there is a possibility of conflict.

    BETA drivers are not a final version, so unless you want to test drivers for
    NVIDIA, it is best to stick with WHQL.

    You have run on the gpu and cpu temperature monitors?

    I see a quite a few windows update failures in the System Info-
    Can you tell us anything about the failures of Windows Update?

  • Age of Empires III: the Asian Dynasties cannot install the "Art5.bar" of the case and would not proceed beyond this file. I have

    Original title:

    Age of Empires III: the Asian Dynasties

    After a few years with Age of Empires III: the Asian Dynasties uninstalled I recently tried to install it. When the Setup could not install the file "Art5.bar" and would not proceed beyond this file. I tried several facilities with the same result. If it is a zero or a problem with the disc, is there no way, far from buying a new copy, which would allow the installation of The Asian Dynasties or would repair the disk? Is it not possible to force the installation to jump before the installation of the file "Art5.bar" and try to find the file online a patch or another source?

    I found similar questions online and was trying a possible solution, which was to copy files from my drive in another file and try to install from there. Then I discovered that windows can not copy a certain file on the disk, called ' YPack_ ~ 1 ' correctly. The copy process stop, just as the installer of The Asian Dynasties had previously and would not then spent the ' YPack_ ~ 1 ' file. I was also unable to copy the file '00002.tmp', but I was able to jump in front of the copy of the file. I don't know if this file is corrupted and critical for installation, were not able to determine if yes, when you attempt to run Setup from the folder Setup cannot start the installation of The Asian Dynasties without the ' YPack_ ~ 1 ' file. I have not found similar questions online and do not know if this is the issue of the installation of The Asian Dynasties or indicates files corrupted on my drive.

    Hi, I could not also copy the 00002.tmp, but I think it might be due to a cyclic redundancy check indicating a damaged drive.

    Maybe try to download this file from the internet and (after checking that it is the right file) replacing the version on your CD.

  • Why Apple can't do two systems? First of all, we are protected, and the other is free just like android, but in the style of the iOS and Apple needs a request so we can manage and see new products from an application and do not go on this site!

    Why Apple can't do two systems? First of all, we are protected, and the other is free just like android, but in the style of the iOS and Apple needs a request so we can manage and see new products from an application and do not go on this site!

    and I don't know that if Apple make a system more freely, there no need for any device on Earth but iPhone.

    http://www.Apple.com/feedback/

  • I have the new apple TV, and he had the new user interface.  Friday he returned to the old version of apple TV user interface.  Anyone know why this could have happened

    This is a silly question, but I'm not too tech savvy.  I don't know I have changed something somewhere.  I have the new Apple TV, and he had the new user interface, which means that the appearance of the applications using the applications, example, scroll down to Netflix, Netflix, etc. to research.  This weekend he returned to the UI I've seen on my old Apple TV. Does anyone know why this could have happened and how I me the new interface to return?  I did a reset to the original values Apple TV and it did not work.  The tvOS is 9.1 (13U85).

    Try to understand the issue.

    Do you mean that you have an apple tv4, but he has a home screen display from the older ATV 2/3?  You can attach a screenshot?

    I have never heard of it and don't know how it is possible that they run entirely new software on the ATV4...

Maybe you are looking for

  • IM lock out forgotten password after power on

    I'm locked out of my ipad after update please help sue

  • Login process failed create the security options dialog

    Login process failed create the dialog box options security can someone help me?

  • Material interruptions and DPC / after XP - SP3 install

    Following installation of the SP3 (made in safe mode by following the indications of the MS Support) system is terribly slow. I downloaded sysinternals Process Explorer that displays approximately 88% CPU by the "material Interruptions and DPC. My re

  • HP 6520: Printing from ipad

    I didn't know which side to choose for this. I had no problem installing the printer. My question is, when I send a picture from my iPad to the printer prints from the tray to photo paper. Is there a way to print a larger size of the iPad to the prin

  • AMD High Definition Audio Device

    Hello All of a sudden my audio is not plugged in.  My system shows that it is enabled, but there is a red "X" on the bottom right of my screen sound icon. I got it within a week. Product name: HP 15 laptop Product number: F9H60UA #ABA 8.1 Windows 64-