Flight Instance table

I am developing a Web-based GUI for a flight reservation system. The following select statement is used to find the selected flights on a given date:
select distinct flight_no, origin, dept_time, destination, arri_time, flight_date
from flight_instance
where orig = 'AMS and destination = 'LHR'
and flight_date = '28-DEC-06'
order by dept_time;
Basically straightfoward, however, I need to display the outbound and return flight. How would the statement look like in this case?
Thank you!

From my experience, doesn't the outbound and the inbound have the same flight number except for the last digit...
Am sure if you just select those two you can display both the inbound and the outbound flights..
Or, you could embed an OR condition in your query to select both the flights. Though it does not look like a good option to me.
and ( (orig = '1' and des = '2' ) or (orig ='2' and des = '1) )
You could also paste the table structure so that we will have a better idea of what it is that you want.
Thanks.

Similar Messages

  • Versioning impact on in flight instances and transactions

    During a live demonstration of BPEL we noticed that deploying a change to an existing process would cause all in flight instances of the process to terminate.
    This behavior could represent a serious Oracle BPEL implementation flaw, in as much as that customers MUST be able to modify workflow processes for in-flight transactions.
    I have found information at the following link…
    http://www.activebpel.org/infocenter/ActiveBPEL/v30/index.jsp?topic=/com.activee.bpel.doc/html/UG18-15.html
    that indicates functionality that SHOULD be implemented as a part of the BPEL standard to allow in-flight processes to “migrate” to a new process version, allowing them to gain new functionality.
    We would like to verify that migration functionality is possible in Oracle BPEL, and understand how such functionality is controlled through the user-interface.
    Thanks

    I believe the two cases are:
    If the current version is overwritten instances from the old version are not processed.
    If a new version is created existing instances (from old version) are not processed.

  • Stop in-flight esb instances?

    Hello,
    I have a few questions. We are testing bulk loading (basic aq adapter to various output adapters) in ESB and noticed that I am surpassing our current limits, due to various reasons such as hardware. After reading some posts, I've gotten quite confused on what is considered best practice.
    If i click on Instances, and see that there are over 100 instances, how do I stop all of those that are currently in process? Do I need to stop the app (opmnctl) and then purge the records from the instance table in the esb repository?
    How is this different than purging instances in the Manage area? Is purging the instance equivalent to purging a log file? Meaning all it's doing is purging the list, and not necessarily clearing out the in - flight instances?
    Sorry for the incorrect terminology, I'm real new to ESB, and Oracle as well.

    Actually this is a known bug, and a patch is available, patch 9537174.
    Will now install patch and retest
    Bug 10090909: EXTREMELY LOW MESSAGE DEQUEUE RATE WHEN MANY MESSAGES IN ESB_RELATION_XML
    When posting messages to ESB, when there is a certain, high number of rows in the ESB_RELATION_XML table, the dequeue rate from AQ$_ESB_MONITOR_I and ESB_MONITOR decreases dramatically.
    A number of tests were run. During some, for example, if there were up to a few thousand rows in ESB_RELATION_XML, the dequeue rate was high, probably around 10s or 100s of rows being dequeued per
    second. With about 100000 rows in ESB_RELATION_XML, the dequeue rate decreased to around 1 message per second or slower. In the customer's case, where they have a throughput of millions of messages,
    the dequeue rate drops to about *30 seconds for 1 message*. Decompilation of the code show a possible cause related to full table scans.
    Bug 9877138: INSTANCES NOT BEING DISPLAYED IN ESB CONTROL SINCE INSTALLING MLR#9
    Bug 9537174: MLR7: MESSAGES BUILDING UP IN ESB_MONITOR QUEUE CAUSING ESB CONSOLE DISP DELAY
    Bug 9828169: ESB INSTANCES ARE TOO SLOW TO SHOW UP IN ESB CONSOLE AFTER UPGRADE TO MLR#8.
    Bug 9819999: TIMESTAMP IN ESB_ACTIVITY TABLE CONTAIN INCORRECT DATETIME

  • Corrupted innodb table crashing mysql instance how to recover table?

    Hello,
    Running a simple query against corrupted innodb table is crashing mysql instance .
    table test.xyz got corrupt during crash and truncate table command was in progressing when mysql crash , now
    running a simple select * query is also crashing db .
    mysql> use test;
    Database changed
    mysql> select * from xyz;
    ERROR 2013 (HY000): Lost connection to MySQL server during query
    mysql>
    mysql>
    mysql> select * from xzy;
    ERROR 2006 (HY000): MySQL server has gone away
    No connection. Trying to reconnect...
    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
    ERROR:
    Can't connect to the server

    Try to start mysql with innodb_force_recovery = 6
    Or to try to restore by means of the tool:
    MySql Recovery Toolbox and find out how you can use the corrupt MySQL recovery tool for damaged database restoration and easily repair known issues or already known problems, occurred in MySql files. This MySql repair utility offers many benefits
    like:
    Supports all MySql file versions and parses even very large documents on older PC computers;
    Supports primary and external keys, tables, views, indexes and other objects;
    Allows previewing recovered data in freeware mode so you can get results without purchasing MySql Recovery Toolbox
    For more information: http://www.mysqlrecoverytoolbox.com/
    As you can look for the answer here:
    http://www.filerepairforum.com/forum/databases/databases-aa/mysql/197-corrupted-innodb-table-crashing-mysql-instance-how-to-recover-table

  • Deleting the current table instance

    Hi
    I am replicating table dynamically using
    this.resolveNode('form1.#subform._subForm2').addInstance(1);
    if (xfa.host.version < 8) {
        xfa.form.recalculate(1);
    When I try to delete the current table instance using
    this.resolveNode('form1.#subform._subForm2').removeInstance(this.parent.index);
    if (xfa.host.version < 8) {
        xfa.form.recalculate(1);
    results in always deleteting the first instance ( table )
    Any help ?
    I have a table with a button "Duplicate Table" and "Delete Table"
    If user clicks on "Duplicate Table" it creates/replicates/duplicates the entire table with all the fields and the buttons.
    Now from the user perspective suppose I have created/duplicated 5 tables with all the data fields and buttons ( please note each of the newly created table will also have their individual "Delete Table" option). Now I want to delete the third table using the "Delete Table" from the third table ( want to delete the same instance from which the button is clicked deleted .

    Recheck your line:
    this.resolveNode('form1.#subform._subForm2').removeInstance(this.paren t.index);
    Replace this.parent.index with the name of the subform you are deleting. (ex: myParentTable.index);
    or
    Find how far down your delete button is in the hierarchy. For example if my delete button is wrapped in Subform1 and Subform1 is inside of TableToRemove then your syntax would have to be removeInstance(this.parent.parent.index) because the subform you want to remove is 2 parents up.
    Kyle

  • Sorting a table which is used as a reference

    Hi,
    I am not 100% sure that i have all the terminology correct here so please excuse me if i am calling "things" by there wrong name.
    I have a table which has a list of racing car numbers which are not in any particular order.
    !http://img571.imageshack.us/img571/4305/screenshot20100602at122.png!
    I then have lots of smaller tables looking at this list, for instance, table 1 looks at the first car number cell then table 2 looks at the second car number cell etc..
    So before the list of car numbers is sorted table 1 looks at the list and takes the first number off the list, in this example 5, and table 2 looks at the list and takes the second number off list, in this example 3. etc.....
    so table 1 has a 5 in it and table 2 has a 3 in it.
    to look this number up i use this formula
    =IF(ISBLANK(Race 1::Data :: A6),"",Race 1::Data :: A6)
    which if the cell it looks at is blank then it does not show anything.
    The problem I have is that when I sort my list of car numbers into numerical order( 1,2,3,4,5,6,7,8,9,10) the table 1,table 2 etc do not sort.
    So after sorting table 1 still as 5 in it and table 2 still has 3 in it.
    How can i do it so after sorting the list of car numbers table 1 has 1 in it and table 2 has two in it.
    I have tried making the cells in table 1, table 2 to absolute row/column but this did not work.
    Thanks
    Charlie

    Charlie,
    When your smaller table uses an expression like your "=IF(ISBLANK(Race 1::Data :: A6),"",Race 1::Data :: A6)", it will continue to access the same data even if you move that data about by sorting or other means. Numbers does this, as do all the other spreadsheet programs. They do it by tracking the movement and adjusting the references.
    A way to avoid this is to use another form of addressing, such as indirect or indexed addressing. For example, you could have used:
    =IF(ISBLANK(OFFSET(Data :: $A$1, 5,0)),"",OFFSET(Data :: $A$1, 5,0))
    Now this particular expression will always grab the content of Race 1::Data :: A6.
    Regards,
    Jerry

  • How to get start and end time of an ESB instance in SOA 10.1.3.4

    Hi All,
    I am using soa 10.1.3.4 and want to track the esb instance start and end time. (For example, in case of bpel we can query the cube instance table to get creation and modify time of an instance. )
    How to get that in esb?
    Thank you.
    Regards,
    Satish

    Hi Satish
    You may enable instance tracking option on the ESB Console and track the instances audit information and also from the logs(log.xml) when ESB loggers are set to DEBUG mode.
    Regards
    A

  • SQLPS - Checking for a specific table

    I am trying to check for a table existence in each database.  Any ideas why this does not work?
    Import-Module
    "sqlps" -DisableNameChecking
    $SQLServer
    = "wobdslezberg2"
    Set-Location
    SQLSERVER:
    $dbArray
    = Get-ChildItem
    -name -Exclude
    "tempdb*",
    "master*",
    "model*",
    "msdb*" |
    Sort-Object
    foreach ($DatabaseName
    in $dbArray)
    $instance =
    $DatabaseName
    #write-host  $instance
    if (test-path
    "SQLSERVER:\SQL\wobdslezberg2\DEFAULT\Databases\$instance\Tables\eConfig") {write-host
    "exists"}
    else {write-host
    "not exists"}

    I am trying to iterate through all the databases on the server and check for the existence of a specific table in each database. 
    Actually that line does work fine because if I comment out the if test-path line, I get results as expected.  and I get list of tables like this
    dbo.SRC04_TABLES
    How do I put in the schema (dbo) in the test-path?
    The test-path does not seem to work as I get this message
    Test-Path : Cannot retrieve the dynamic parameters for the cmdlet. SQL Server PowerShell provider error: The number of keys specified does not match the number of keys required to address this object. The number of keys required are: Name.
    At line:19 char:9
    +     if (test-path "SQLSERVER:\SQL\wobdslezberg2\DEFAULT\Databases\$instance\Tabl ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidArgument: (:) [Test-Path], ParameterBindingException
        + FullyQualifiedErrorId : GetDynamicParametersException,Microsoft.PowerShell.Commands.TestPathCommand
    Thanks
    Scott

  • SELECT statement comparing 2 fields in a table.

    Hi,
    Can someone help me out  in making a efficient SELECT statement for the follwing requirement.
    Say, I want to select all the records from a database table where the field, PLANT is equal to field SALESORG in the table (i.e., when both fields are equal select that record).
    Thanks & regards,
    Sree

    Hello,
    I think this is the answer to your question... if you explain a bit more we can formulate a query.
    Subquery
    Variants:
    1. ( select )
    2. ALL ( select )
    3. ANY ( select )
    4. SOME ( select )
    Effect
    A subquery is a SELECT statement select that occurs within a
    SELECT,
    OPEN CURSOR,
    UPDATE, or
    DELETE statement
    in the WHERE clause or HAVING clause, to check whether data from database tables or views meets certain criteria.
    Subqueries have a restricted syntax in comparison to the normal SELECT statement:
    SELECT result FROM source [WHERE where] [GROUP BY fields]       [HAVING having].
    Variant 1
    ( select )
    If the subquery returns a single value, you can use any relational operator except LIKE and BETWEEN.
    Example
    Selecting the flights with the most passengers:
    DATA: WA TYPE SFLIGHT.
    SELECT * FROM SFLIGHT
        INTO WA
        WHERE SEATSOCC = ( SELECT MAX( SEATSOCC ) FROM SFLIGHT ).
      WRITE: / WA-CARRID, WA-CONNID, WA-FLDATE.
    ENDSELECT.
    Note
    If you use a subquery with a relational operator instead of EXISTS, you may only specify one column in the SELECT clause. This can be either a field from the database table or an aggregate expression. Subqueries of this kind are referred to as scalar subqueries.
    Variant 2
    ALL ( select )
    If the subquery returns several lines, each containing one value, you specify that the comparison should apply for all of the values it returns.
    Example
    This example shows how to use ALL. It displays a list of the customer IDs of the customer (or customers) who have made the most bookings:
    DATA: ID TYPE SBOOK-CUSTOMID, CNT TYPE I.
    SELECT CUSTOMID COUNT( * ) AS C FROM SBOOK
        INTO (ID, CNT)
        GROUP BY CUSTOMID
        HAVING COUNT( * ) >=
          ALL ( SELECT COUNT( * ) FROM SBOOK GROUP BY CUSTOMID ).
      WRITE: / ID, CNT.
    ENDSELECT.
    Variant 3
    ANY ( select )
    Variant 4
    SOME ( select )
    If the subquery returns several lines each containing one value, this variant specifies that the comparison should apply to at least one of the values returned. The IN operator is the same as the combination = ANY.
    &ABAP_HINT
    If you use a subquery with the EXISTS operator, the expression is true if the subquery selects at least one line. You can useuse * in the SELECT clause of subqueries that use EXISTS.
    Example
    Selecting all flights from Frankfurt to New York between 1.1.1999 and 31.3.1999 that are not yet full:
    DATA: WA_SFLIGHT TYPE SFLIGHT.
    SELECT * FROM SFLIGHT AS F INTO WA_SFLIGHT
        WHERE SEATSOCC < F~SEATSMAX
          AND EXISTS ( SELECT * FROM SPFLI
                        WHERE CARRID = F~CARRID
                           AND CONNID = F~CONNID
                           AND CITYFROM = 'FRANKFURT'
                           AND CITYTO = 'NEW YORK' )
          AND FLDATE BETWEEN '19990101' AND '19990331'.
      WRITE: / WA_SFLIGHT-CARRID, WA_SFLIGHT-CONNID,
               WA_SFLIGHT-FLDATE.
    ENDSELECT.
    Subqueries such as the one in this example, in which the WHERE clause uses fields from the main query, are known as correlated subqueries. Subqueries can be nested, and a given subquery may contain any fields from other, hierarchically-superior subqueries.
    In a correlated subquery, the subquery is executed for each line r returned by the main query. In the above example, the main query finds all flights in table SFLIGHT that are not full and that have a date that meets the selection criterion. The statement then performs the subquery for each of the records returned by the main query, using the corresponding values of CARRID and CONNID, to check whether the relevant flight operates between Frankfurt and New York.
    Additional help
    Subqueries

  • How to reset table in Status "Replicate - Error'?

    Hi,
    we have a HANA sidecar scenario (HANA revision 82) where we replicate tables from ECC non-HANA towards HANA with SLT for operational reporting (using DMIS_2011_1_731 SP7).
    In total we have about 550 tables that are being replicated fine. There are however 2 tables that went into status "Replicate - Error": for instance table KONV. There are other large tables that replicate fine. When I have a look at the transaction LTRC, I find the following message:
    - Error while generating runtime objects for Z_KONV_002
    - Syntax error in function module /1CADMC/ACS_00100000000240
    - Error message: Method "ADJUST_INTERVAL_LOWER_BOUNDARY" is unknown or private or protected
    In attempt to solve this, we will load SAP notes 2041240 + 2016512 and test again.
    But how can we reset a single table as if it has not been selected for replication before? Is this via a specific expert function in transaction LTRC and a physical deletion in RS-tables on HANA? This is needed to be able to start replication again for that single table, right?
    Thanks in advance!
    Stijn

    Hi,
    I'm assuming that you want to reload table KONV completely into HANA? Through transaction LTRC, once in the required mass transfer ID/Configuration, on the Table Overview Tab, press the Data Provisioning button and then enter the table name in the appropriate field. Select the 'Stop Load/Replication' option and execute (make sure the master job is running).
    This will remove the triggers/logging tables in ECC and set the appropriate status for the table in HANA. You can check progress on the Table Overview tab...once KONV disappears, press the use the Data Provisioning button again and change the option to 'Start Replication' for KONV and execute. This will drop the data in HANA and then create the logging table and triggers again, then start the initial load phase and when the load is complete, the table should switch to 'replicate'.
    Word of caution, you might want to maintain any required performance options/filters before you reload.
    Hope this helps.
    Kris

  • Re: field symbols and interna table

    hi,
    here is field symbol which is table type
    FIELD-SYMBOLS: <gt_pos_data> TYPE table.
    there is one internal table it_data.
    how can  move <gt_pos_data> to it_data.
    please help me.
    rgds

    Hi
    You can assign field wise:
    like
    <gt_pos_data>- field to  to it_data-field.
    Field Symbols
    Field symbols are placeholders or symbolic names for other fields. They do not physically reserve space for a field, but point to its contents. A field symbol cam point to any data object. The data object to which a field symbol points is assigned to it after it has been declared in the program.
    Whenever you address a field symbol in a program, you are addressing the field that is assigned to the field symbol. After successful assignment, there is no difference in ABAP whether you reference the field symbol or the field itself. You must assign a field to each field symbol before you can address the latter in programs.
    Field symbols are similar to dereferenced pointers in C (that is, pointers to which the content operator * is applied). However, the only real equivalent of pointers in ABAP, that is, variables that contain a memory address (reference) and that can be used without the contents operator, are reference variables in ABAP Objects.
    All operations programmed with field symbols are applied to the field assigned to it. For example, a MOVE statement between two field symbols moves the contents of the field assigned to the first field symbol to the field assigned to the second field symbol. The field symbols themselves point to the same fields after the MOVE statement as they did before.
    You can create field symbols either without or with type specifications. If you do not specify a type, the field symbol inherits all of the technical attributes of the field assigned to it. If you do specify a type, the system checks the compatibility of the field symbol and the field you are assigning to it during the ASSIGN statement.
    Field symbols provide greater flexibility when you address data objects:
    If you want to process sections of fields, you can specify the offset and length of the field dynamically.
    You can assign one field symbol to another, which allows you to address parts of fields.
    Assignments to field symbols may extend beyond field boundaries. This allows you to address regular sequences of fields in memory efficiently.
    You can also force a field symbol to take different technical attributes from those of the field assigned to it.
    The flexibility of field symbols provides elegant solutions to certain problems. On the other hand, it does mean that errors can easily occur. Since fields are not assigned to field symbols until runtime, the effectiveness of syntax and security checks is very limited for operations involving field symbols. This can lead to runtime errors or incorrect data assignments.
    While runtime errors indicate an obvious problem, incorrect data assignments are dangerous because they can be very difficult to detect. For this reason, you should only use field symbols if you cannot achieve the same result using other ABAP statements.
    For example, you may want to process part of a string where the offset and length depend on the contents of the field. You could use field symbols in this case. However, since the MOVE statement also supports variable offset and length specifications, you should use it instead. The MOVE statement (with your own auxiliary variables if required) is much safer than using field symbols, since it cannot address memory beyond the boundary of a field. However, field symbols may improve performance in some cases.
    check the below links u will get the answers for your questions
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3860358411d1829f0000e829fbfe/content.htm
    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/field_sy.htm
    http://searchsap.techtarget.com/tip/1,289483,sid21_gci920484,00.html
    Syntax Diagram
    FIELD-SYMBOLS
    Basic form
    FIELD-SYMBOLS <fs>.
    Extras:
    1. ... TYPE type
    2. ... TYPE REF TO cif
    3. ... TYPE REF TO DATA
    4. ... TYPE LINE OF type
    5. ... LIKE s
    6. ... LIKE LINE OF s
    7. ... TYPE tabkind
    8. ... STRUCTURE s DEFAULT wa
    The syntax check performed in an ABAP Objects context is stricter than in other ABAP areas. See Cannot Use Untyped Field Symbols ad Cannot Use Field Symbols as Components of Classes.
    Effect
    This statement declares a symbolic field called <fs>. At runtime, you can assign a concrete field to the field symbol using ASSIGN. All operations performed with the field symbol then directly affect the field assigned to it.
    You can only use one of the additions.
    Example
    Output aircraft type from the table SFLIGHT using a field symbol:
    FIELD-SYMBOLS <PT> TYPE ANY.
    DATA SFLIGHT_WA TYPE SFLIGHT.
    ASSIGN SFLIGHT_WA-PLANETYPE TO <PT>.
    WRITE <PT>.
    Addition 1
    ... TYPE type
    Addition 2
    ... TYPE REF TO cif
    Addition 3
    ... TYPE REF TO DATA
    Addition 4
    ... TYPE LINE OF type
    Addition 5
    ... LIKE s
    Addition 6
    ... LIKE LINE OF s
    Addition 7
    ... TYPE tabkind
    Effect
    You can define the type of the field symbol using additions 2 to 7 (just as you can for FORM parameters (compare Defining the Type of Subroutine Parameters). When you use the ASSIGN statement, the system carries out the same type checks as for USING parameters of FORMs.
    This addition is not allowed in an ABAP Objects context. See Cannot Use Obsolete Casting for FIELD SYMBOLS.
    In some cases, the syntax rules that apply to Unicode programs are different than those for non-Unicode programs. See Defining Types Using STRUCTURE.
    Effect
    Assigns any (internal) field string or structure to the field symbol from the ABAP Dictionary (s). All fields of the structure can be addressed by name: <fs>-fieldname. The structured field symbol points initially to the work area wa specified after DEFAULT.
    The work area wa must be at least as long as the structure s. If s contains fields of the type I or F, wa should have the structure s or at least begin in that way, since otherwise alignment problems may occur.
    Example
    Address components of the flight bookings table SBOOK using a field symbol:
    DATA SBOOK_WA LIKE SBOOK.
    FIELD-SYMBOLS <SB> STRUCTURE SBOOK
    DEFAULT SBOOK_WA.
    WRITE: <SB>-BOOKID, <SB>-FLDATE.
    Related
    ASSIGN, DATA
    Additional help
    Declaring Field Symbols
    Reward points if useful
    Regards
    Anji

  • Meta-Data are missing for table

    Dear ALL ,
    I am trying to call "HR_READ_INFOTYPE" from a Java program using rfc and I got this error:
    " Meta data equal to null is not allowed for field INFTY_TAB with type TABLE in meta data instance TABLES "
    the required table INFTY_TAB is used as a generic table in the function module. I tried to use PA0008 but it seems it is not possible to use it through  RFC call.  How can I avoid this exception?
    Thanks in advance.
    Mehdi.

    Hi,
    This function by default is not remote enabled. Loot at BAPI to access/modify infotype data?
    Regards,
    Jarek

  • Import only the rows of emp table from Test into emp table of Prod

    hi,
    Test Instance:
    =========
    I have a table "emp". I want to take export of it.
    Prod Instance:
    =========
    Table with name "emp" already exists.
    I want to import only the rows of emp table from Test Instance into emp table of Prod Instance.
    regards,
    charan

    Charan,
    Set the import command IGNORE=Y
    Importing into Existing Tables
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/exp_imp.htm#i1023662
    Regards,
    Hussein

  • How to update payload/data within an in-flight SOA process

    Hi,
    I have a SOA process (Process A) deployed to my server and for instances of that process I need to change/update the value of instance variables within the payload of the process instance.
    I want to do this through Process B which will contain a step to go and update the value of an instance variable within Process A's in-flight instances. E.g. Process A has a variable called 'Status'
    and the process is in-flight and running. I then require Process B to go in and update this variable with a new value.
    Can someone please confirm whether this is possible, and if so, how this could be achieved and which API's to use etc? I was wondering whether the SOA-Infra schema or dehydration store could be used to do this?
    I am working in a SOA/BPM 11g environment with Weblogic Server 11g. Any help is appreciated.
    Thanks

    Hi
    You can try something along these lines given in this post of mine: Assign role, group to Human Task when initiated
    BUT the thing is, the above notes works fine for any HumanTasks within the same Process. But you have like 2 different processes. If they are like Sub-Process, inside one big single Process, still it should work. But the above CallBackHandler class is usually attached to a HumanTask in events section.
    Thanks
    Ravi Jegga

  • Multi table delete

    Hello,
    I have a scenario in which I have three tables I want to delete rows from simultaneously.
    They do not all have the same key, but two will share a like value, and then two others will share a like value,
    For instance, table one and table two both have USER_NAME, which is equal, and table two and table three both have USER_EMAIL, which are equal.
    I've tried to create a stored procedure in this, as I manually created a DML statement that did it ok.
    I'm getting one error on it, about the syntax.
    Here is my procedure's syntax:
    CREATE OR REPLACE PROCEDURE "CCTRL_REMOVE_APPROVERS_SP"
    (userid IN USERS.USER_NAME%TYPE,
    uemail IN USERS.USER_EMAIL%TYPE,
    useridrole IN USER_ROLES.USER_NAME%TYPE,
    uemailvp IN  APPROVERS.BUSVP%TYPE)
    AS
    BEGIN
    DELETE
    FROM USERS a
    WHERE
    a.USER_NAME = UPPER(userid)
    DELETE FROM
    USER_ROLES   b
    WHERE b.USER_NAME = UPPER(useridrole)
    DELETE FROM
    APPROVERS c
    WHERE
    c.BUSVP = uemailvp
    commit;
    end CCTRL_REMOVE_APPROVERS_SP;
    /Getting an 00936 error, about a missing expression. If I hard code values in, this will work properly.
    If anyone can please point out what they see might be going wrong I'd appreciate it.
    Thank you very much.

    >
    If I hard code values in, this will work properly.
    >
    No - it won't. The procedure won't work. Each individual query will work in sql*plus but that is only because of the '/' as Peter mentioned.
    Replace the '/' characters with ';'.

Maybe you are looking for