Select a statement creating problem

Hi guys!

I am trying to build a select statement as follows:

SELECT name, age, country
People
WHERE
THERE ARE
(SELECT cu.name, cu.age
CUSTOMER cu
WHERE
Cu.Name LIKE '% Mike % '.
AND cu.country LIKE '% two % '.
)

as you can see I'm trying to get the name, the age... of a table when these data exist in another table, the problem is that I need to do it this way, I can not change the name of the PEOPLE table or add an alias, I think I should add something like would take him IN, but I don't remember how to do it.

If anyone can help me it would be much appreciated.

THX

Clause EXISTS needs a subquery related Co. You will need to create a join between the table 'people' and 'customer '.

WHERE
THERE ARE
(SELECT cu.name, cu.age
CUSTOMER cu
WHERE
Cu.Name LIKE '% Mike % '.
AND cu.country LIKE '% two % '.
AND CU.NAME = PEOPLE.NAME
AND CU. AGE = PEOPLE. AGE
)

Otherwise, you could use operator as

WHERE
(NAME, AGE) IN
(SELECT cu.name, cu.age
CUSTOMER cu
WHERE
Cu.Name LIKE '% Mike % '.
AND cu.country LIKE '% two % '.
)

Tags: Database

Similar Questions

  • I want to go back to the previous version of 2014.2.  .3 is far too buggy and full of error messages. Create problems because I'm on a timeline with my client and I don't have time to fool around with all the problems.

    2014.3 is far too buggy and full of error messages. Create problems because I'm on a timeline with my client and I don't have time to fool around with all the problems.

    You don't mention what you have encountered errors? Workaround for the problem more frequently reached here is Re: error in Muse: object UID:U6875 has two (or more) owners: U3633 and U3165

    If you have a copy of your .muse file that has not been saved by using 2014.3, you can downgrade by uninstalling Muse, and then choose the previous Version in the drop-down list of filters in the Panel of Apps from the desktop creative cloud application. There will be a popup next to the Muse, where you can select a version prior to install.

  • When I click on the compose window with my accidentally selection tool, it creates a mask or a form, that I can't get rid of.

    When I click on the compose window with my accidentally selection tool, it creates a mask or a form, that I can't get rid of.  Undo does not work.  Newbie here.  What I am doing wrong?  How can I avoid this?  Thanking you in advance

    Then you have a region of interest to market. It is one of the icons in the Middle at the bottom of the composition Panel.

  • Then, right click on a doc file and choosing create a pdf file... Word 2013 launches and creates problems. We are using Acrobat Pro. Is there a way to disable this feature in Word 2013?

    Is there a way to get around the word 2013 hijacking of the process 'to create a pdf file' Acrobat Pro? Then right click on a doc file and choosing "create a pdf file"... .the process Acrobat will beging but then Word 2013 jumps and creates problems.

    Hello

    Acrobat X doesn't support office in 2013. You will need to upgrade to Acrobat 11.0.1 or higher to use the feature to create a PDF file.

    Otherwise, you can open the Word file and print to PDF using the Adobe PDF printer. But it is not as rich as the one created by PDFMaker.

    Thank you

    Tanvi

  • Reader Adobe XI updates last week. Reinstalled this morning. All previous saved pdf files are now forms of words asking the conversion? Creates problems for my business. Help, please?

    Reader Adobe XI updates last week. Reinstalled this morning. All previous saved pdf files are now forms of words asking the conversion? Creates problems for my business. Help, please?

    See http://windows.microsoft.com/en-us/windows/change-file-open-program#1TC=windows-7

    Another method: http://windows.microsoft.com/en-us/windows/change-default-programs#1TC=windows-7

  • When I select HTML to create new, it appears in the Doc tab as untitled-1. XHTML

    Whenever I have select HTML to create new in the Welcome screen, it appears on the tab of the Document without title-1. XHTML, with a green icon.  In the past she always imagined as a document - 1.html, with no icon, like in my book.  I don't know why it does this, it's important (I assume it is), or how to change it.  I am new to Dreamweaver.  Any help would be appreciated...

    What version and build # DW don't you have?  You will find this under help > about Dreamweaver.

    Also the preferences you have specified for new documents?

    Go in Edition > Preferences > new Document.

    The default extension should be .htm, .html, .shtml or .php - according to the type of files, you are working with the most.

    Nancy O.

  • SELECT SQLite statement failed

    I've reached the point where I need to crowd source this error.

    I try to run the following code:

    uri = URI.create("file://" + _optionsData.getStorageURI() +     OptionsData.DB_NAME);
    sqliteDB = DatabaseFactory.open(uri);
    Statement st = sqliteDB.createStatement("SELECT * FROM foo");
    st.prepare();
    Cursor c = st.getCursor();
    Row r = c.getRow();
    int size = r.getInteger(0);
    

    Creates the URI end to the database of opening works very well.  The statement is prepared.  However, when I get the cursor, it is 'empty', containing no information line or column.  c.getRow () returns a NULL reference and the following statement fails with a special Null pointer.

    The SQL code has been checked with a SQLite spy program to the same database.

    To check that I have all correct on the connection to the database, I changed the code to make an INSERT using st.execute (), and the values inserted in the database.  Verified by SQLite Spy.

    It will fail in the same way on the 9700 "Bold" standard simulator that comes with the Eclipse plugin and the specific Storm 2 Add-on Verizon Simulator.

    Any suggestions?

    Solved my problem.

    The code snippet, before you start changing things to try to understand what wasn't in question a "SELECT MAX (id) foo" call.  Thus, it only returns a single line.

    I come from a background of Perl/MySQL, and I didn't know that when you have a line that is returned, you should always call the next() on a cursor before it will be initialized.  Therefore, the above code should read as follows:

    Statement st = sqliteDB.createStatement("SELECT MAX(id) FROM foo");
    st.prepare();
    Cursor c = st.getCursor();
    if (c.next()){
        Row r = c.getRow();
        int size = r.getInteger(0);
    }
    

    When c.next () is called, the cursor is on the first line.

  • How to-create problems


    Hi all

    I have problems to create a simple procedure that returns a result value. Below you can se the code:

    CREATE OR REPLACE PROCEDURE tw.check_pad

    IS

    v_pad_check VARCHAR2 (50);

    BEGIN

    SELECT count (pd.esta)

    IN v_pad_check

    OF tw.padro_dat pd, tw.padro p, tw.date f

    If pd.esta not in ('2000 ', 8000')

    AND PD. ARC = P.ARC

    AND P.FECH = F.FECH_SIS;

    DBMS_OUTPUT. Put_line (' number is: ' | v_pad_check);

    END;

    /

    Error I get is ORA-00942 table or view does not exist. Any help would be appreciated.

    SELECT statement works without any problem.

    Thank you in advance.

    Kind regards.

    Hello

    A user who uses to create this procedure?

    You must use the user who's grant select on the tables tw.padro_dat, tw.padro, tw.date.

    Have you used the name of 'date' for the name of the table?

    Concerning

    Mr. Mahir Quluzade

  • Select SQL statement - See all the value of the range of month of entry

    Hi all

    I have a vision that is a union of other views
    But the description of the view is as below
    desc dashboard_monthly_view
    Name                           Null Type         
    ------------------------------ ---- ------------ 
    MONTHS                              VARCHAR2(17) 
    NUM_DEPENDENT_IN_ASSESSMENT         NUMBER       
    NUM_REFERRED_AODTC                  NUMBER       
    NUM_AT_DETERMINATION_HEARING        NUMBER       
    NUM_ACCEPTED                        NUMBER       
    NUM_NOT_ACCEPTED                    NUMBER       
    NUM_EXITED_SUCCESS                  NUMBER       
    AVERAGE_DAY_TO_EXIST                NUMBER       
    NUM_EXITED_UNSUCCESS                NUMBER       
    AVERAGE_DAY_TO_EXIST_UNSUCCESS      NUMBER       
    COURT_NAME                          VARCHAR2(9)  
    -current data in the view
    MONTHS            NUM_DEPENDENT_IN_ASSESSMENT NUM_REFERRED_AODTC     NUM_AT_DETERMINATION_HEARING NUM_ACCEPTED           NUM_NOT_ACCEPTED       NUM_EXITED_SUCCESS     AVERAGE_DAY_TO_EXIST   NUM_EXITED_UNSUCCESS   AVERAGE_DAY_TO_EXIST_UNSUCCESS COURT_NAME 
    ----------------- --------------------------- ---------------------- ---------------------------- ---------------------- ---------------------- ---------------------- ---------------------- ---------------------- ------------------------------ ---------- 
    AUG 2012          1                           0                      0                            0                      0                      0                      0                      0                      0                              AAA   
    OCT 2012          8                           1                      3                            1                      1                      1                      44                     1                      4                              AAA   
    SEP 2012          2                           0                      2                            2                      0                      0                      0                      0                      0                              AAA   
    *UNDEFINED*       0                           11                     7                            1                      1                      0                      0                      1                      0                              AAA   
    NOV 2012          0                           0                      0                            0                      0                      0                      0                      1                      54                             BBB  
    OCT 2012          4                           1                      2                            1                      1                      1                      9                      0                      0                              BBB  
    SEP 2012          1                           0                      0                            0                      0                      1                      14                     0                      0                              BBB  
    *UNDEFINED*       0                           5                      4                            1                      0                      0                      0                      1                      0                              BBB  
    AUG 2012          1                           0                      0                            0                      0                      0                      0                      0                      0                              COMBINED   
    NOV 2012          0                           0                      0                            0                      0                      0                      0                      1                      54                             COMBINED   
    OCT 2012          12                          2                      5                            2                      2                      2                      26.5                   1                      4                              COMBINED   
    SEP 2012          3                           0                      2                            2                      0                      1                      14                     0                      0                              COMBINED   
    *UNDEFINED*       0                           16                     11                           2                      1                      0                      0                      2                      0                              COMBINED   
    
     13 rows selected 
     
    -My select query is
     DEFINE startmonth = "Aug 2012";
    DEFINE endmonth   = "Nov 2012";
    with all_months as
    ( select to_char(which_month, 'MON YYYY') month from
      (select
            add_months(to_date('&startmonth','MON YYYY'), rownum-1) which_month
        from
            all_objects
        where
            rownum <= months_between(to_date(NVL('&endmonth', '&startmonth'),'MON YYYY'), add_months(to_date('&startmonth','MON YYYY'), -1))
        order by
            which_month )
    )
    
    select nvl(months, '**ALL**')    AS "MONTHS", TO_DATE(MONTHS, 'MON YYYY') AS MONTH_SORT
        , sum(num_dependent_in_assessment)    AS num_dependent_in_assessment
        , sum(num_referred_aodtc)    AS num_referred_aodtc
        , sum(num_at_determination_hearing) as num_at_determination_hearing
        , sum(num_accepted) AS num_accepted
        , sum (num_not_accepted) AS num_not_accepted
        , sum(num_exited_success) as num_exited_success
        , sum(average_day_to_exist) as average_day_to_exist
        , sum(num_exited_unsuccess) as num_exited_unsuccess
        , sum (average_day_to_exist_unsuccess) as average_day_to_exist_unsuccess
    from 
      DASHBOARD_MONTHLY_VIEW    right outer join all_months
      on DASHBOARD_MONTHLY_VIEW.months = all_months.month
    --where months in (select month from all_months)
      and upper(court_name) like 'AAA'
    group by (months)
    order by month_sort
     
    - And the result is
    MONTHS            MONTH_SORT                NUM_DEPENDENT_IN_ASSESSMENT NUM_REFERRED_AODTC     NUM_AT_DETERMINATION_HEARING NUM_ACCEPTED           NUM_NOT_ACCEPTED       NUM_EXITED_SUCCESS     AVERAGE_DAY_TO_EXIST   NUM_EXITED_UNSUCCESS   AVERAGE_DAY_TO_EXIST_UNSUCCESS 
    ----------------- ------------------------- --------------------------- ---------------------- ---------------------------- ---------------------- ---------------------- ---------------------- ---------------------- ---------------------- ------------------------------ 
    AUG 2012          01/08/12                  1                           0                      0                            0                      0                      0                      0                      0                      0                              
    SEP 2012          01/09/12                  2                           0                      2                            2                      0                      0                      0                      0                      0                              
    OCT 2012          01/10/12                  8                           1                      3                            1                      1                      1                      44                     1                      4                              
    **ALL**                                                                                                                                                                                                                                                                       
    
     
    -The requirement of results I have to produce is
    MONTHS            MONTH_SORT                NUM_DEPENDENT_IN_ASSESSMENT NUM_REFERRED_AODTC     NUM_AT_DETERMINATION_HEARING NUM_ACCEPTED           NUM_NOT_ACCEPTED       NUM_EXITED_SUCCESS     AVERAGE_DAY_TO_EXIST   NUM_EXITED_UNSUCCESS   AVERAGE_DAY_TO_EXIST_UNSUCCESS 
    ----------------- ------------------------- --------------------------- ---------------------- ---------------------------- ---------------------- ---------------------- ---------------------- ---------------------- ---------------------- ------------------------------ 
    AUG 2012          01/08/12                  1                           0                      0                            0                      0                      0                      0                      0                      0                              
    SEP 2012          01/09/12                  2                           0                      2                            2                      0                      0                      0                      0                      0                              
    OCT 2012          01/10/12                  8                           1                      3                            1                      1                      1                      44                     1                      4                              
    NOV 2012          01/11/12                  0                           0                      0                            0                      0                      0                      0                      0                      0                          
    **ALL**
     
    On the tota (* EVERYTHING *) l, I tried to use the rollup but he total average too, which is not correct. I think the reason because he cannot read the form that was used to calculate the column.
    How can I fix this, should I create, select another below one, with the sum of each column and the average for the other columns.
    Also, the business analyst want to show all the months between the start and end of the month.
    I used the right outer join, but apparently does not produce the right result.
    If anyone of you have any ideas, please advise.
    We use Oracle 11 g, it is a select statement for an Oracle APEX report.
    The APEX version is 4.0.2. I'm a junior developer of the APEX and I still have to learn a lot about SQL Oracle analytic function.

    Thank you very much in advance.

    Ann

    Hi, Ann.

    Ann586341 wrote:
    ... I created a table to contain a simplified version of this view

    Thank you. It is much easier to work with.

    ... My query is

    DEFINE startmonth = "Aug 2012";
    DEFINE endmonth   = "Nov 2012";
    with all_months as
    ( select to_char(which_month, 'MON YYYY') month from
    (select
    add_months(to_date('&startmonth','MON YYYY'), rownum-1) which_month
    from
    all_objects
    where
    rownum <= months_between(to_date(NVL('&endmonth', '&startmonth'),'MON YYYY'), add_months(to_date('&startmonth','MON YYYY'), -1))
    order by
    which_month )
    )
    , tbl_dashboard_active as
    ( select *
    from tbl_dashboard_monthly
    where months != '**UNDEFINED**' )
    
    select tbl.months    AS "MONTHS" --, TO_DATE(tbl.MONTHS, 'MON YYYY') AS MONTH_SORT
    , tbl.num_hearing
    , tbl.num_exited_success
    , tbl.avg_day_success_exist
    , tbl.num_exited_unsuccess
    , tbl.avg_day_unsuccess_exist
    
    from
    tbl_dashboard_active  tbl right outer join all_months am
    on tbl.months = am.month
    and upper(tbl.court_name) like 'BBB'
    
    UNION ALL
    
    select 'ALL'    AS "TOTAL"
    , SUM(tbl.num_hearing)
    , SUM(tbl.num_exited_success)
    , round(AVG(tbl.avg_day_success_exist),2)
    , SUM(tbl.num_exited_unsuccess)
    , round(AVG(tbl.avg_day_unsuccess_exist),2)
    --order by to_date(am.month,'MON YYYY')
    
    from
    tbl_dashboard_monthly  tbl right outer join all_months am
    on tbl.months = am.month
    and upper(tbl.court_name) like 'BBB'
    

    - And the result I got

    MONTHS            NUM_HEARING NUM_EXITED_SUCCESS AVG_DAY_SUCCESS_EXIST NUM_EXITED_UNSUCCESS AVG_DAY_UNSUCCESS_EXIST
    ----------------- ----------- ------------------ --------------------- -------------------- -----------------------
    AUG 2012                    1                  0                     0                    0                       0
    OCT 2012                    1                  0                     0                    2                      35
    SEP 2012                    1                  0                     0                    0                       0 
    
    ALL                         3                  0                     0                    2                   11.67 
    

    I don't know why even I already filter all lines that the month is undefined, I still have a blank line in the result set.

    This is the line for November. You do an outer join, in order to ensure that each value of am.month is displayed, even if it does not match what anyone in tbl. When it does not match anything, then all the columns tbl is supposed to provide will be NULL. You decide to view tbl. months, which is one of the following columns will be NULL. You should display mod. monmth instead.

    But if I run for handset Court, I don't see this problem. The reason is that the Court combined have given for all four months?

    When you say "on behalf of the combined Court", do you mean the unconditional "upper (tbl.court_name) as"BBB "?
    If Yes, that would explain it.

    Also is it possible to list all the months between the start and end month assuring the user even if the statistics are 0.

    Once again, in the case of lines that are present, even if they do not have the status of outer join, all of these columns will be NULL. Use NVL to map these nulls to 0.

    and how to sort the month

    GROUP OF two expressions, which depend on each other: one for sorting and the other for display.
    For the sort expression, you can use months as a DATE. (It seems that you have tried this, but commented on the ORDER BY clause in your query is before the FROM clause.) The ORDER BY clause is always at the end of the query, after the FROM clause.)
    Another expression of sorting is the number you used to generate the first month. That's what I used below.

    Here's a way to get the results you requested:

    WITH   got_months    AS
    (
         SELECT     TO_DATE ('&startmonth', 'Mon YYYY')     AS startmonth_dt
         ,     TO_DATE ( NVL ( '&endmonth'
                         , '&startmonth'
                         )
                   , 'Mon YYYY'
                   )                    AS endmonth_dt
         FROM    dual
    )
    ,     all_months     AS
    (
         SELECT  rownum               AS month_num
         ,     TO_CHAR ( ADD_MONTHS ( m.startmonth_dt
                                , ROWNUM - 1
                             )
                   , 'MON YYYY'
                   )              AS months
         FROM        got_months  m
         CROSS JOIN  all_objects
         WHERE     ROWNUM <= 1 + MONTHS_BETWEEN ( m.endmonth_dt
                                              , m.startmonth_dt
                                  )
    )
    SELECT    NVL ( am.months
               , 'All'
               )                              AS months
    ,        SUM (NVL (tbl.num_hearing,             0))     AS num_hearing
    ,        SUM (NVL (tbl.num_exited_success,      0))     AS num_exited_success
    ,       AVG (NVL (tbl.avg_day_success_exist,   0))     AS avg_day_success_exist
    ,       SUM (NVL (tbl.num_exited_unsuccess,    0))     AS num_exited_unsuccess
    ,       AVG (NVL (tbl.avg_day_unsuccess_exist, 0))     AS avg_day_unsuccess_exist
    FROM              all_months          am
    LEFT OUTER JOIN      tbl_dashboard_monthly  tbl  ON  am.months           = tbl.months
                                           AND  UPPER (tbl.court_name) = 'BBB'
    GROUP BY  GROUPING SETS ( (am.month_num, am.months)
                              , ()
                   )
    ORDER BY  am.month_num
    ;
    

    Again, I used two GROUP BY expressions: one for sorting, the other for display. These depend on each other, that is, given one, you could derive from each other, and it is not sensible to dependent ROLLUP GROUP BY expressions like that, so I used GROUPING SETS ROLLUP instead, so it would be only 1 rank of great aggregate (in other words, 'all').

    Output:

    `                               AVG_                 AVG_
                         NUM_       DAY_      NUM_       DAY_
                 NUM_ EXITED_    SUCCESS   EXITED_  UNSUCCESS
    MONTHS    HEARING SUCCESS     _EXIST UNSUCCESS     _EXIST
    --------- ------- ------- ---------- --------- ----------
    AUG 2012        1       0          0         0          0
    SEP 2012        1       0          0         0          0
    OCT 2012        1       0          0         2         35
    NOV 2012        0       0          0         0          0
    All             3       0          0         2       8.75
    
  • that occurred during the processing of this queue by creating problems (like to ignore these events)

    I think maybe I need to change my design and use more screens, but here's what I'm doing now and 2 challenges that he created.

    App starts - runs from the main screen - throw a box with instructions

    Trackball that I capture and trigger is clicked:

    (1) remove the case of the statement

    (2) display a countdown timer label field

    (3) start a timer to decrement the field job

    (4) audio recording start

    So we are always on our main screen, with just a timer showing at this stage

    Trackball is clicked when recording is finished:

    (5) app starts a job of decoding and analysis of your time

    What is happening on the user interface thread and I really don't want the user to be able to do something this afternoon

    Until the scan is finished the user starts hitting the keys... MENU, track ball, followed by the clicks of ball movements, enter etc.

    6) now that the analysis app is ready to draw a graph of the results, but start first transformation of these user actions and they could have carried off a menu and even blow close without realizing so the app could close

    In addition to potential problems of user interface events waiting, there is another major problem...

    * If a MENU is open - even empty - once the scan is complete the chart is not updated and my bitmap is empty.  I create an object to a bitmap and graphics, I use DrawLines to create a chart.  This code works great except the chart ends up empty if this menu is when he tried to view the chart.

    There are many potential problems here and not enough details for you guys to give the actual specific patches.  I tried ignoring the clicks in the analysis period and also to set the menu to be empty during the analysis period, and I even tried to close the menu after the analysis period by using the menu I have more drive with menu making.

    I guess the crux of the problem is all those waiting in line for the actions of the user... If there is a kind of pop events so you can ignore them that would probably be the best course of action for me.  Any suggestions?  or should I look to push another screen to display a message of 'treatment' in the audio analysis (I'm not sure it will solve the problem).

    Thanks in advance,
    Craig York

    I understand how to synchronize with the user interface thread, but slows the working thread already slow waiting for a lock is probably not a good idea.  Thanks if.

  • BlackBerry smartphones can not change 'Sounds for the selected profile' or create new ones

    I can't change any of the other sounds in my profiles or create new profiles.  I can switch between them and change notifications as expected from fort to vibrate to silence.  When I select 'Sounds for the selected profile' I get a transition of the screen as he opens the new screen, but then disappears.  I tried to create a new one, but the new profile button and menu option do nothing.  I upgraded to 6.0.0.246 in hope, he could solve the problem, but it didn't.  Can I change the ringtone and sounds for contacts only.  When I arrived at the torch, I could change and I even created a new.  Any ideas?

    delete nimbuzz, berrybuzz or any other instant messaging applications, and then restart the device

  • Photoshop CC 2015 + Wacom Intuos Pro: Shift selection brush size + other problems

    Hello.
    I have 2 problems with Photoshop CC 2015 stock (no plugins or other) + Wacom Intuos pro (updated driver)

    1. The first one when I left click with my pen to open the brush selection, when I use the slider to set the size of the brush, it looks like 'frozen' in place until I push the slider away...
    2. The other, whenever I chose my brush, I do a double painting get created-> paint I select the brush, I want to paint a front-line nothing happen, I need to redo a second time to make it work

    I recorded the number: photos by Antoine Collignon - Photos of Google

    This is really annoying in my current pipeline. Just Photoshop Photoshop CS6 CC, and it feels ultra is not compatible

    Windows 10 using last generation / all drivers up to date, etc. etc.


    Thank you

    Hello

    Thank you for your response.

    It seems that it is a problem of "Ink window" associated with the new carrot of CC in Photoshop.
    If you disable, in the preference of wacom no lag to slide more, but you feather drop pressure are.
    If you leave it enabled, you will have pressure of the pen but lag on cursor all inside photoshop CC

    I just cancelled my Photoshop CC plan to go back to my good old CS6

    Thank you.

  • Function call creates problem

    Hi all

    I am unable to call my function and grateful if someone help out me.

    I created the following package:

    Creating the table

    drop table;

    CREATE TABLE HAS

    (

    NAME VARCHAR2 (30),

    ADDRESS VARCHAR2 (30),

    N ° 1 NUMBER

    );

    Package specifications

    CREATE OR REPLACE

    PACKAGE employee_management AS

    FUNCTION hire_emp (NAME VARCHAR2, VARCHAR2 address)

    RETURN NUMBER;

    END;

    Package body

    CREATE OR REPLACE

    Employee_management PACKAGE BODY IS

    FUNCTION hire_emp (NAME VARCHAR2

    address VARCHAR2

    ) RETURN NUMBER

    new_no1 number 4;

    BEGIN

    SELECT s1.nextval INTO new_no1 FROM dual;

    INSERT INTO ONE

    VALUES

    (new_no1, NAME, address);

    Return (new_no1);

    END;

    END employee_management;

    -------------

    All my code above is to compile, but when I try to call the hire_emp function, then I get the error message.

    I use the code to call the function below.

    Call Fuction

    BEGIN

    employee_management.hire_emp ('zzz', 'Gulshan');

    end;

    Error

    Error report:

    ORA-06550: line 2, column 1:

    PLS-00221: 'HIRE_EMP' is not a procedure or is not defined

    -------------

    Please guide

    Hello

    979596 wrote:

    Thanks Frank, but I always get error when I run your code provided:

    Error

    Error from the 1 in the command line:
    DECLARE

    x NUMBER;

    BEGIN

    x: = employee_management.hire_emp ("zzz", "Gulshan");

    END;
    Error report:
    ORA-01722: invalid number
    ORA-06512: at "SCOTT. EMPLOYEE_MANAGEMENT', line 8
    ORA-06512: at line 7
    01722 00000 - "invalid number."
    * Cause:
    * Action:

    ------

    I also check my sequence S1 and its working very well. Please advice

    I was adding to my previous message when you posted it.

    See the last part of explicitly name the columns of all INSERT statements.

    Don't say not verified the sequence;  view a code example to create the sequence.  People need run your code to catch any errors.

    Compare this function that you posted:

    FUNCTION hire_emp (new_name in VARCHAR2
    new_address IN VARCHAR2
    )
    RETURN NUMBER
    IS
    new_no1 number 4;
    BEGIN
    SELECT s1.nextval
    IN new_no1
    DOUBLE;

    INSERT a (n ° 1, name, address)
    VALUES (new_no1, new_name, new_address);

    Return (new_no1);
    END hire_emp;

    If you do not change the names of argument NEW_name and NEW_address, don't forget to change them in the specification of the function, too.

    Starting Oracle 11, you can use NEXTVAL in assignments of PL/SQL, like this:

    new_no1: = s1. NEXTVAL;

    or this:

    ...

    IS

    new_no1 number 4: = s1. NEXTVAL;

    BEGIN

    ...

    Select the value of the sequence of double is needed in Oracle 10.2 and earlier versions, but it still work in later versions.

  • Button state created the Master page properties not applying does not at all pages

    When I create a button and add a hyperlink to this button on my main page, the hyperlink properties do not apply to all other pages.  So when I test my Web site and click on the 'Services' button, it will take me to the page "Services".  However, since the 'Services' page the other buttons do not work.  Technically, they must work because EVERYTHING is created on the main page should apply to all pages, including linking them.  Is there a bug in the function?

    Hello

    This problem is usually caused when objects are located above the Navigation bar, so that you are unable to click on it.

    To resolve the issue:

    (1) open the master page with Muse

    (2) create a new layer using the layers panel

    (3) move the navigation bar at this new layer: select the navigation bar, click with the right button on it > go to layer

    4) to ensure that this new layer is on top

    It may be useful

    Sonam

  • Agents creating problem on ICC

    Hello

    I'm having a problem when you try to add a new agent in the configuration of the site for the deployment of project to the ICC.

    When I create a new agent that belongs to a host different from that of the BCC (different real servers), the new agent is not to be found, showing the inaccessible error, and it's the State on DeploymentServer: ERROR_TRANSPORT_UNINSTANTIATED

    For example:

    I try to create an agent with this configuration:

    RMI://190.0.0.1:8870 / atg/epub/AgentTransport

    and the host of the BCC is 190. 0.0.2.

    So, the agent is not be found when the host is different.

    PS: I tried telnet and the server communicate with each other in the port being used.

    Anyone know what's happening or what's missing?

    Any help would be appreciated,

    Rena Treto

    @rtreto,

    I had this problem once, access/atg/epub/DeploymentServer on the CA server and click agent instantiate (or something like that) on the agent that is not be instantiated. Then, check the log if there is something like that.

    11/08/10 17:57:58, ERROR 908

    [nucleusNamespace.atg.epub.DeploymentServer] transport error of

    agent of "Production_Agent1".

    java.rmi.NoSuchObjectException: no object in table

    If Yes, then you have a firewall issue on your network, like other sad here. To solve it, check of workaround or check your network settings to work with the RMI.

    https://support.Oracle.com/epmos/faces/DocContentDisplay?_afrLoop=203691319619143&ID=1037986.1&_afrWindowMode=0&_adf.CTRL-State=w4kv2t6yh_166

Maybe you are looking for