Insert question

Hi,
I have a problem that I guess is super simple but I'm stuck
My insert failes with:
ERROR at line 5:
ORA-00984: column not allowed here
INSERT INTO emp
(EMPLOYEE_ID,LAST_NAME,DEPARTMENT_ID)
VALUES
(10,
NOOB,
99)
desc emp
Name                                                                     Null?    Type
EMPLOYEE_ID                                                              NOT NULL NUMBER(2)
LAST_NAME                                                                NOT NULL VARCHAR2(25)
DEPARTMENT_ID                                                            NOT NULL NUMBER(2)
JOB_ID                                                                            VARCHAR2(8)
SALARY                                                                            NUMBER(10,2)
I've also added a view on the table with
create or replace view test_view AS
select employee_id, last_name, job_id
from emp
where job_id like 'SA_%'
with check option;
Anyone know why I get this error?

Simple syntax error.  You need single quote marks around 'Noob'.

Similar Messages

  • Blank boxes when I insert question slides.

    I posted this yesterday and no one replied... Hopefully
    someone can give me some advice. Thanks!!
    I am trying to create a new project in CP3 and once I publish
    the project, there are 2 blank boxes on each slide and the movie
    stops on the second slide. These projects consist of 8 PPT slides,
    7 image slides, and 5 questions slides... and this project is
    narrated. I have tried creating the project again hoping the blank
    boxes would go away and that didn't work. So I published this
    module one slide at a time to try and determine the root of the
    problem. I can publish all 15 slides of images and PPT as a SWF
    file with no problem. But once I insert question slides, that's
    when the blank boxes appear and the module stops on slide 2. I
    think this is odd considering my question slides are the last 5
    slides of the module but the blank boxes start on slide one. When
    previewing each slide, each 5 slides, or the entire project, there
    are no problems. It's just once I publish the project. I've tried
    publishing to SWF file and a stand alone disc.. same problem. I
    also tried bringing up a module I had done before on CP1 and
    converted the files, made no changes to the project and just
    published it with CP3 as SWF file. I got the blank boxes and the
    project stopped at the second slide. The question slides I have are
    simple T/F or multiple choice slides and I don't have them set up
    to record results.
    Any ideas what I'm doing wrong? I've published about 25 of
    these modules in CP1 and never had this problem in the past. I
    would be happy to send someone an example of what I'm talking
    about.
    Thanks!
    Mindy Wilson
    Training Coordinator
    TALX Corp

    Thanks for responding. No, I don't have any interaction on
    the project. I even tried to create a new project and inserted 2
    PPT slides (with text only) and then one question slide... I just
    made up a simple T/F question just to have a question slide in that
    project and once I published it, it happened again. If I deleted
    that question slide and published, the blank boxes were gone and it
    didn't freeze up.
    I was on the phone all morning with Adobe support and they
    suggest I reinstall the software. All software disks for my company
    are located at home office so once I receive the software tomorrow,
    I'll try it again. If that doesn't work, I'll certainly appreciate
    any help.
    Thanks!

  • PHP/MySQL Record Insert question

    I am working with which PHP 4.4.2, MySQL Server 5.0 running
    on Apache 2.0.55, and I am developing my web-site with Dreamweaver
    8. All of which is running locally on my machine.
    I am working on a real-estate website that allows landlords
    around my local area to login to the web-site and add their
    apartment or housing rental units into a database that students
    that go to my small university can browse and search through. The
    landlords register through a form that loads into a 'landlords'
    table in the database and MySQL auto-increments an ID into a
    'landlord_id' column which obviously assigns them their
    'landlord_ID'.
    My question is: When the landlord is filling out the form to
    add one of their rental units ( which loads into a separate table I
    called 'sites'), how can I make their 'landlord_id' (which resides
    in the 'landlords' table) be entered into the 'landlord_id' column
    in the 'sites' table for each site that they enter into the
    database?
    I'm trying to do this because when the landlord first logs
    in, I'm going to have a dynamic table that displays all of the
    sites they already have entered in the database, and only displays
    their sites that they have already entered in by only displaying
    the sites that have their 'landlord_id' in the site record.
    Thanks so much for your help, and if I'm being confusing at
    all, please reply or email me so I can clarify.

    Cade06 wrote:
    > Thanks alot for your reply, but I am completely new to
    MySQL, and I am not
    > quite sure how the syntax works. When you say " WHERE
    landlord_username =
    > 'whatever' "I'm not sure what needs to go in the
    'whatever' portion of the
    > code. Do I need to insert static text here or something
    else? I am totally out
    > of my element here, sorry :-/
    It's probably not so much MySQL syntax that's the problem for
    you, but a
    lack of understanding how to work with Dreamweaver
    recordsets, server
    behaviors, and sessions. Building database-driven sites with
    Dreamweaver
    isn't difficult, but there are a lot of things involved.
    The Log In User server behavior automatically creates a
    session variable
    called $_SESSION['MM_Username']. You can use this as a
    parameter to pass
    to the SQL query in the Advanced Recordset dialog box. In the
    SQL area
    you would type (I'm guessing the name of your table and the
    username
    column):
    SELECT landlord_id FROM landlords
    WHERE landlord_username = 'col1'
    Then click the plus button above the Variables area, and
    create a
    Parameter with the following values:
    Name: col1
    Default value: 1
    Runtime value: $_SESSION['MM_Username']
    You can then extract the result of the recordset, and assign
    it to a
    session variable like this:
    $_SESSION['landlord_id'] = $row_recordsetName['landlord_id'];
    > Also, I understand that I need to do this on the login
    page, but do I need to
    > define the recordset again on the add_site page as well?
    I guess I'm still not
    > quite clear on how I specify the session variable as the
    value that needs to be
    > entered in the sites table as the landlord_ID.
    As long as the session is still valid (which it would be if
    you use
    Restrict Access to Page), you will always have access to that
    landlord's
    id through $_SESSION['landlord_id'].
    David Powers
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "Foundation PHP 5 for Flash" (friends of ED)
    http://foundationphp.com/

  • In training, PL/SQL create table and insert question. (easy for some of you

    I have an empty table called messages. The task is this:
    a)Insert the numbers 1 to 10, excluding 6 and 8.
    b)Commit before the end of the block.
    I did this:
    SET SERVEROUTPUT ON
    SET VERIFY OFF
    BEGIN
    INSERT INTO messages VALUES (1,2,3,4,5,6,7,9,10);
    END;
    Which fails at messages. The table is there, I checked and it's empty. ORA-06550:

    Hello,
    c1 is not a valid column name I posted as an example , you need to provide valid column name of your table.
    Either post your table structure or replace c1, c2, c3 ... with valid column name from your table.
    INSERT INTO MESSAGES (c1, c2, c3, c4, c5, c9, c10)
    or
    insert into messages (your table column name1 , column name2 ,....) values (....);Regards
    Edited by: OrionNet on Feb 21, 2009 9:51 PM

  • Select * and Insert question

    I have my ResultSet and Query to get the data form an Oracle database. Would I use the same rs for an executeUpdate statement? Or how would I go about doing that?
    Basically I'm querying the database, getting the resultset, processing the data around, and then inputing the processed data as a new row in the same database. I have the first part down pat, but I'm a little hazy on the 2nd part, the INSERT INTO bit.
    Any help would be greatly appreciated.

    This is my code:
    public class LimitCheck extends HttpServlet
         private static int UsageAmount = 0;
         private static double TotalPurchased = 0.00;
         private static String Maybe = "Blurbo!";
         private static String Third = "Snafu!";
         private static int CustID = 0;
         private static void loadOracleJDBCDriver () {
    System.out.println ("Loading database driver...");
    try {
         DriverManager.registerDriver ( new oracle.jdbc.driver.OracleDriver());
    System.out.println ("Database driver loaded...");
    catch (SQLException e) {
    System.err.println (e.getMessage ());
    System.exit (1); // Driver error
    private static Connection getConnected () {
    System.out.println ("LC getting connection...");
    try {
    String jdbc_url = "jdbc:oracle:thin:@localhost:1521:oracle";
    Connection conn = DriverManager.getConnection (jdbc_url, "scott", "tiger");
    System.out.println ("LC connection created ...");
    return conn;
    catch (SQLException e) {
    System.err.println (e.getMessage () ) ;
    System.exit (1); // Driver failure
    return null;     // never happen
         private static Statement makeStatement (Connection conn) {
    try {
    System.out.println ("LC Making a Statement...");
    Statement stmt = conn.createStatement ();
    System.out.println ("LC Statement created...");
    return stmt;
    catch (SQLException e) {
    System.err.println (e.getMessage () ) ;
    System.exit (2); // Driver failure
    return null;     // never happen
    private static ResultSet openResultSet (Statement stmt, String query, String update) {
    try {
    System.out.println ("LC Creating resultSet...");
    ResultSet rs = stmt.executeQuery (query);
                   stmt.executeUpdate(update);
    System.out.println ("LC Resultset created...");
    return rs;
    catch (SQLException e) {
    System.err.println (e.getMessage () ) ;
    System.exit (3); // ResultSet error
    return null;     // never happen
         private static void processResultSet (ServletOutputStream out, ResultSet rs)
    try {
    System.out.println ("\n\n+++++ Processing ResultSet for LimitCheck+++++\n");
                   while (rs.next() )
                        CustID = (rs.getInt(2));
                        System.out.println(rs.getInt(2));
                        UsageAmount = UsageAmount + 1;
                        System.out.println(rs.getString(5));
                        System.out.println(rs.getDouble(4));
                        TotalPurchased = TotalPurchased + rs.getDouble(4);
    System.out.println ("\n\n+++++ ResultSet Processed for LimitCheck+++++\n");
              catch (SQLException e) {
    System.err.println (e.getMessage () ) ;
    System.exit (5); // Processing error
    private static void closeThingsDown (ResultSet rs, Statement stmt, Connection conn) {
    try {
    System.out.println ("LC Closing Things Down...");
    rs.close();
    System.out.println ("LC ResultSet Closed...");
    stmt.close ();
    System.out.println ("LC Statement closed...");
    conn.close();
    System.out.println ("LC Connection closed...");
    catch (SQLException e) {
    System.err.println (e.getMessage () ) ;
    System.exit (5); // Closure failure
    Then I have my doGet, and in it I have:
    ResultSet rs = openResultSet (stmt, query, update);
    processResultSet (out, rs);               
    closeThingsDown (rs, stmt, conn);
    When I javac it, I don't get any errors, but when I try to run it, my server craps out and the page can't be displayed. The problem is in my openResultset somewhere, but I can't see where.
    I have a sneaking suspicion that the update is supposed to come after I processResultSet, but it complains if I move the update to after it.

  • Sqlserver date insert question

    Hi All
    I use SQLServer 2005
    I use JDBC to insert values into database.
    My date is like this...
    Release Date is:10/25/2006
    SQL:
    insert into releases(appid, releasedate) values(?,
    to_date(?,'MM/dd/yyyy'))
    I can get this to work in oracle. However in SQLServer 2005 I get this
    exception..
    com.microsoft.sqlserver.jdbc.SQLServerException: 'to_date' is not a
    recognized built-in function name.
    at
    com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(Unkno?wn
    Source)
    at com.microsoft.sqlserver.jdbc.IOBuffer.processPackets(Unknown
    Source)
    How do I change SQL. Please let me know.
    Thanks

    SQL:
    insert into releases(appid, releasedate) values(?,
    to_date(?,'MM/dd/yyyy'))
    I can get this to work in oracle. However in
    SQLServer 2005 I get this
    exception..
    com.microsoft.sqlserver.jdbc.SQLServerException:
    'to_date' is not a recognized built-in function name.
    Which part of the above error message did you not understand?

  • Unusual string insertion question

    Hi everybody,
    I'm trying an experiment with "encoding" a text file, and I was wondering, is there a specific way to insert a random character, say, "&", into random places in a text string a random number of times? I've heard of Math.random, but I don't think that would do what I'm looking for, can anyone help me out?
    Thanks,
    Jezzica85

    Cipher.java
    import java.util.*;
    public abstract class Cipher {
      public String encrypt(String s) {
        StringBuffer result = new StringBuffer("");        
        StringTokenizer words = new StringTokenizer(s);    
        while (words.hasMoreTokens()) {                    
          result.append(encode(words.nextToken()) + " ");  
        return result.toString();                          
      public String decrypt(String s) {
        StringBuffer result = new StringBuffer("");        
        StringTokenizer words = new StringTokenizer(s);    
        while (words.hasMoreTokens()) {                    
          result.append(decode(words.nextToken())+ " ");  
        return result.toString();                          
      public abstract String encode(String word);          
      public abstract String decode(String word);
    } Caesar.java
    public class Caesar extends Cipher {
           public String encode(String word) {
             StringBuffer result = new StringBuffer();   
             for (int k = 0; k < word.length(); k++) {   
               char ch = word.charAt(k);                
               ch = (char)('a' + (ch -'a'+ 3) % 26);     
               result.append(ch);                        
             return result.toString();                   
           public String decode(String word) {
             StringBuffer result = new StringBuffer();   
             for (int k = 0; k < word.length(); k++) {   
             char ch = word.charAt(k);                   
                ch = (char)('a' + (ch - 'a' + 23) % 26); 
                result.append(ch);                       
             return result.toString();                   
         } TestEncrypt.java
    public class TestEncrypt {
           public static void main(String argv[]) {
             Caesar caesar = new Caesar();
             //here's the message
             String plain = "this is the secret message";       
             //encrypt the message
             String secret = caesar.encrypt(plain);               
             System.out.println(" ********* Caesar Cipher Encryption *********");
             System.out.println("PlainText: " + plain);           
             System.out.println("Encrypted: " + secret);
             System.out.println("Decrypted: " + caesar.decrypt(secret));
         } Message was edited by:
    fastmike

  • JavaScript insertion question

    Hi,
    All <script type="text/javascript"> (javaScripts) gets inserted before the closing </head> tag? Is that correct?
    Thanks!

    All <script type="text/javascript"> (javaScripts) gets inserted before the closing </head> tag? Is that correct?
    Not necessarily.  They can also be embedded in the body of the code.  It is important, however, that all functions get defined before there are any calls to them, so that may determine the order in which the script blocks appear.  For example, if you are use a preload call in the body tag (who does this anymore?), you would have to define the block for the preload function BEFORE the body tag, i.e., in the head of the page.

  • Photoshop CS5 + Epson 1400 DVD Cover insert question

    Hey there,
    I'm relatively new to the world of printing (video background) and I recently bought an Epson Stylus Photo 1400.
    I'm trying to print DVD covers (10.733" x 7.25") onto A4 photo paper and can't seem to get it centered and/or borderless.
    I'm always getting some clipping on either side and proportions are not ok.
    My document is exactly 10.733" x 7.25" at 300dpi. I created a custom paper size of 210mm x 297mm with 0mm border
    on all sides, used the Epson rules of moving the left margin by 0.2" as from what I read on other forums is a problem with
    almost all Epson printers on OSX, but still get some clipping on either or both sides.
    Could anybody help me with that one?
    Thank you

    If you're printing with "Borderless" there is an expansion applied to the image by the printer driver (so if you ask for 210 mm, you'll get 213mm or so) to make sure that you don't get any white borders on the paper.
    Use a non-borderless paper size and trim it down with a paper-cutter afterwards if you want precise results, or turn off the expansion in the printer driver ("Print Settings") settings. Not sure where they hide that on the 1400.

  • Inserting a question in to an existing quiz

    Hi,
    We're using version 6.1 of Presenter in PowerPoint 2000 and
    2003. We're trying to insert a question in to the middle of an
    existing quiz. When I add a question in the quiz manager the newly
    inserted question overwrites one of my my existing question
    (slides), followed by a friendly error message dialog stating an
    unexpected error occured. The question never shows up in the quiz
    manager, just one of my existing questions gets splatted.
    Looks like there's some sort of corruption occuring in the
    quiz that I can't fix without rewriting the entire quiz.
    Does anyone know how to work around this problem?
    Thanks in advance
    Phil

    I fixed this problem by doing two things. Firstly I deleted
    the summary slide at the end of the quiz. This stopped the error
    dialog appearing, but the new slides I was trying to insert were
    still overwriting an existing question. I then deleted the
    questions that were being overwritten, and all subsequent inserted
    questions worked correctly. Seems like something got corrupted in
    the question slide.
    The quiz result summary page gets regenerated so there's no
    problem with deleting it if things get corrupted behind the
    scenes.

  • Problem with fill-in-blank questions

    I'm using powerpoint 2003 and Adobe presenter 7. When I create fill-in-blank questions in quiz, more detail: I have 5 textboxes in 5 sentences; after each sentence, I pushed "enter" to make a new line (of course, there is 1 textbox in each one). It seemed ok. But, when I presented it on the browser, they were disordered. There weren't any enters. Where I had used "enter" button, they were still on the same line; even, textbox I created at the middle of the sentence, but at the presenting time it jumped to the end of the sentence.
    How can I do to overcome this situation? Is that because of the properly between the ppoint 2003 and AP7? or another causes?
    Plz help me because I'm preparing to attend an important competition in my school.
    Tks so much!

    Hi
    I can see a bit of the problem you are talking about
    the issue is as follows
         1. Say you inserted a FIB question and inserted question text with new line characters (say 3 lines)
         2. You pressed OK and the quiz slide appears properly
         3. Say you went back to the FIB question in manage quiz again.
              a. The problem is present here
              b. The new line characters present are getting deleted which is an issue which has been reported.
              c. All you have to do is to re- enter the new line character in the question textbox and the output will appear fine            
    Even after this if you are still seeing the issue can you please share the ppt file, atleast the fill in the blanks slide, so that we can see what the problem is?
    thanks
    Mahesh Nayak
    Message was edited by: mkalyanp

  • Inserting a level in existing dimension hierarchy

    hi,
    I have to insert a new level in existing dimension hierarchy with out affecting other reports.
    Please let me know how to do
    Thanks in advance.

    I fixed this problem by doing two things. Firstly I deleted
    the summary slide at the end of the quiz. This stopped the error
    dialog appearing, but the new slides I was trying to insert were
    still overwriting an existing question. I then deleted the
    questions that were being overwritten, and all subsequent inserted
    questions worked correctly. Seems like something got corrupted in
    the question slide.
    The quiz result summary page gets regenerated so there's no
    problem with deleting it if things get corrupted behind the
    scenes.

  • Question Bank Question

    Hello
    2 Questions I'm affraid
    Question 1
    I am using Captivate 5.  Is there a way to say have 10 questions in a question bank but randomly only ever show 5 questions.
    For example two people sitting next to each other at a PC both taking the same course which has 5 questions, however they both see different questions.
    Question 2
    can I attach more than one question bank to a test.  For example:  A person is being tested on several different subjects  from say Pain management to fire saftey.  Is there away to set up several question banks and attach them to one test and randomly take questions from each bank. ie
    Question Bank 1 Fire Safety . . 10 questions
    Question Bank 2 Pain Management . . 10 Questions
    Question Bank 3 Resucitation . . 10 Questions
    I want the acutual test to randomly take five questions from each bank.
    Thanks

    What you describe should be possible using question pools in Captivate.
    A question pool can have dozens of questions but if you only have 5 slides in your movie linked to that question pool then your users will only ever see 5 randomly selected questions each time the movie is played.
    Just be aware that those same 5 questions will be visible during that session no matter how many times the learner retakes the quiz.  In order to see a different set of 5 randomised questions from the same pool the learner would need to relaunch the entire lesson again.
    If two people log onto the same PC and each launches the same lesson (separately) then they will see a different randomised set of questions from the same pool.
    You can have multiple question banks in the same project, and each can have as many questions as you need.  All you need to do is insert question slides in your movie and select the option that they are randomised questions.  When you select this option, you get the drop down menu that allows you to select which question pool the questions will be drawn from for that slide.  If you later decide you want the slide to draw from a different pool, you can easily change this in the Properties tab.

  • Questions for Purchaser viewing only

    Hi team,
    When creating RFX's, can you alert me of how you insert questions which are for 'purchaser viewing only' ?
    There doesn't seem to be a function available on the page. I need this for some scoring issues which i have when posing, 'If not type questions'.
    Many thanks.
    Leon

    Hi
    What I understand of your requirement is that you need to keep some questions/ Sections visibility restricted to Purchaser Only . Unfortunately this is not possible.However I can suggest some workarounds which may apply to your business case:
    some questions may be applicable for some candidates, yet not for the other. With this in mind, we still need all scores being scored
    Here you can set question section scoring method preference to Manually Score. All the questions would be visible to all the suppliers but you can designate which section of questions is meant for which supplier. Once you receive responses from supplier you would manually assign score keeping in consideration your reservations.
    You can decide on a neutral score to be given for question that were not meant for the supplier.
    In case you simply dont want suppliers to have visibility to all the questions, you need to create  seperate RFx events for such suppliers from within a project.In this case each supplier would only answer the questions meant for him/ her and from multiple RFx events you can select the one to be awarded based on scores obtained.
    Regards
    Mudit Saini
    Edited by: Mudit_UCB on Nov 25, 2011 8:17 AM
    Edited by: Mudit_UCB on Nov 25, 2011 8:17 AM

  • Navigation issues with question slides in Captivate 6

    In earlier versions of Captivate (5.5) we have always been able to insert question slides into our projects as checkpoints and allow the user to freely navigate through the project and answer the checkpoint questions as often as they like. We have also been able to provide success and failure feedback popups for those question.
    In Captivate 6 we are seeing that question slides can apparently only be answered once and do not reset to be answered again the next time the user navigations to those slides. We want to allow the user to answer checkpoint questions as often as they like and we need to be able to provide success and failure feedback popups. We have tried every imaginable combination of setting with no success. Has anyone else been experiencing this or have a solution to this problem?
    Thanks,
    Vernon . . .

    When I run the same projects with the exact same settings side by side in Captivate 5 and Captivate 6, in the Cap 5 project I can navigate the project freely and answer the checkpoint questions repeatedly as often as I like. As I navigate the questions are reset and can be answered again every time I enter the question slides.
    In Cap 6 the questions are locked after the first answer and cannot be answered a second time. Even stranger is the fact that when tested using only a subset of the slides adjacent to the question slide (next 3) it works and does appear to reset the question allowing repeated answers, but it fails when the entire project is run.
    I have asked our other developers to test this and they are experiencing the same problem with their projects.
    The only difference I can see between the two projects is that the Quiz results slide in Cap 6 cannot be deleted whereas it does not exist in the Cap 5 project ???

Maybe you are looking for

  • Help: : Error in BPM (FILE to FILE)

    Hi All, I am trying out a file to file scenario using BPM and i'm following the blog "/people/krishna.moorthyp/blog/2005/06/09/walkthrough-with-bpm But after the file gets picked up, the process fails in the call adapter step. I see the mapping is do

  • Problems installing RSAT tools after upgrade to Win10x64Ent

    I upgraded my Windows 8.1x64 Enterprise installation with RSAT installed (Windows8.1-KB2693643-x64.msu) to the 10x64 preview, en-us to en-us. When I tried to install the new RSAT tools (WindowsTH-KB2693643-x64.msu) post-installation, it failed with t

  • [SOLVED] makepkg / configure locks up system

    This is really a continuation of this topic. That one is marked as solved, but it's not for me and it appears that others are experiencing the same lock ups. When compiling through makepkg, at the configure stage the system locks up. kernel.log shows

  • Change icons in App Package?

    I downloaded CandyBar 3 to check it out and was disappointed to find it no longer had App Extras. This was a way to change what icon an app put on it's documents, for instance I changed all zips and dmgs to cool black icons. I did some checking and f

  • Should I wait for the release of FF 4 to install on my new laptop?

    I have a 3.x version of FF on my "old" laptop, but I bought a new laptop a couple of weeks ago and want to install FF4 on it. Q: should I wait for the full release of FF 4 to install on the new machine, or would it be "better" to download FF 3.x firs