Output as 2 records.

Hi Team,
i am using oracle 10g.
below is my table with sample insert statements.
i want the expected output as mentioned below.
---two rows are having same values like below then we wont consider that record. because the values like comp_code,tot_cust_no,sto_no,sales_date,cash_no are same
but trans_type are having HOLD and UNHOLD with same date... then we consider that record at all.
1801     1504522002     601     120306     1     142     110125611     120628     HOLD     Y     6/18/2012 12:47:20 PM     6/18/2012 12:47:20 PM
1801     1504522002     601     120306     1     142     110125611     120701     UNHOLD     3     6/28/2012 3:26:39 PM     6/28/2012 3:26:39 PM
could you please help me on getting my expected output.
CREATE TABLE RIMS.WORK_INVOICE_HOLD_T
  COMP_CODE                 VARCHAR2(4 BYTE),
  TOT_CUST_NO               VARCHAR2(13 BYTE),
  STO_NO                    VARCHAR2(3 BYTE),
  SALES_DATE                VARCHAR2(6 BYTE),
  CASH_NO                   NUMBER(5),
  RECEIPT_NO                NUMBER(10),
  ORDER_NO                  NUMBER(10),
  ESTIMATED_COMPLETED_DATE  VARCHAR2(6 BYTE),
  TRANS_TYPE                VARCHAR2(10 BYTE),
  PROCESSED                 VARCHAR2(1 BYTE),
  INS_DATE                  DATE,
  UPD_DATE                  DATE
insert statement:
SET DEFINE OFF;
Insert into RIMS.WORK_INVOICE_HOLD_T
   (COMP_CODE, TOT_CUST_NO, STO_NO, SALES_DATE, CASH_NO, RECEIPT_NO, ORDER_NO, ESTIMATED_COMPLETED_DATE, TRANS_TYPE, PROCESSED, INS_DATE, UPD_DATE)
Values
   ('2300', '0062090790', '121', '120306', 3,
    132, 110125611, '120628', 'HOLD', 'Y',
    TO_DATE('06/18/2012 12:47:20', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('06/18/2012 12:47:20', 'MM/DD/YYYY HH24:MI:SS'));
Insert into RIMS.WORK_INVOICE_HOLD_T
   (COMP_CODE, TOT_CUST_NO, STO_NO, SALES_DATE, CASH_NO, RECEIPT_NO, ORDER_NO, ESTIMATED_COMPLETED_DATE, TRANS_TYPE, PROCESSED, INS_DATE, UPD_DATE)
Values
   ('1801', '1504522002', '601', '120306', 1,
    142, 110125611, '120628', 'HOLD', 'Y',
    TO_DATE('06/18/2012 12:47:20', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('06/18/2012 12:47:20', 'MM/DD/YYYY HH24:MI:SS'));
Insert into RIMS.WORK_INVOICE_HOLD_T
   (COMP_CODE, TOT_CUST_NO, STO_NO, SALES_DATE, CASH_NO, RECEIPT_NO, ORDER_NO, ESTIMATED_COMPLETED_DATE, TRANS_TYPE, PROCESSED, INS_DATE, UPD_DATE)
Values
   ('1801', '1504522002', '601', '120306', 1,
    142, 110125611, '120701', 'UNHOLD', '3',
    TO_DATE('06/28/2012 15:26:39', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('06/28/2012 15:26:39', 'MM/DD/YYYY HH24:MI:SS'));
Insert into RIMS.WORK_INVOICE_HOLD_T
   (COMP_CODE, TOT_CUST_NO, STO_NO, SALES_DATE, CASH_NO, RECEIPT_NO, ORDER_NO, ESTIMATED_COMPLETED_DATE, TRANS_TYPE, PROCESSED, INS_DATE, UPD_DATE)
Values
   ('1801', '1504522002', '601', '120618', 1,
    142, 110125611, '120701', 'HOLD', 'Y',
    TO_DATE('06/29/2012 11:17:37', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('06/29/2012 11:17:37', 'MM/DD/YYYY HH24:MI:SS'));
COMMIT;
when i run the above table and insert statements i will get below records from the table
2300     0062090790     121     120306     3     132     110125611     120628     HOLD     Y     6/18/2012 12:47:20 PM     6/18/2012 12:47:20 PM
1801     1504522002     601     120306     1     142     110125611     120628     HOLD     Y     6/18/2012 12:47:20 PM     6/18/2012 12:47:20 PM
1801     1504522002     601     120306     1     142     110125611     120701     UNHOLD     3     6/28/2012 3:26:39 PM       6/28/2012 3:26:39 PM
1801     1504522002     601     120618     1     142     110125611     120701     HOLD     Y     6/29/2012 11:17:37 AM     6/29/2012 11:17:37 AM
expected output:
2300     0062090790     121     120306     3     132     110125611     120628     HOLD     Y     6/18/2012 12:47:20 PM     6/18/2012 12:47:20 PM
1801     1504522002     601     120618     1     142     110125611     120701     HOLD     Y     6/29/2012 11:17:37 AM     6/29/2012 11:17:37 AMEdited by: 891933 on Oct 4, 2012 3:48 AM
Edited by: 891933 on Oct 4, 2012 3:54 AM
Edited by: 891933 on Oct 4, 2012 4:05 AM

I am not getting your query ?
You have inserted 4 records and it will show 4 records right ! Could you please elaborate/specify it more ?
when i run the above table and insert statements i will get below records from the table
2300     0062090790     121     120306     3     132     110125611     120628     HOLD     Y     6/18/2012 12:47:20 PM     6/18/2012 12:47:20 PM
1801     1504522002     601     120306     1     142     110125611     120628     HOLD     Y     6/18/2012 12:47:20 PM     6/18/2012 12:47:20 PM
1801     1504522002     601     120306     1     142     110125611     120701     UNHOLD     3     6/28/2012 3:26:39 PM      6/28/2012 3:26:39 PM
1801     1504522002     601     120618     1     142     110125611     120701     HOLD     Y     6/29/2012 11:17:37 AM     6/29/2012 11:17:37 AM
expected output:
2300     0062090790     121     120306     3     132     110125611     120628     HOLD     Y     6/18/2012 12:47:20 PM     6/18/2012 12:47:20 PM
1801     1504522002     601     120618     1     142     110125611     120701     HOLD     Y     6/29/2012 11:17:37 AM     6/29/2012 11:17:37 AMBetter use constraint on specified columns for uniqueness on data. And later update other columns with changing values.
Edited by: Ashu_Neo on Oct 4, 2012 4:33 PM

Similar Messages

  • How to wrap a stored procedure that outputs PL/SQL records for JDBC?

    Hello everybody,
    Is there an example for wrapping a stored procedure that outputs PL/SQL records and/or PL/SQL tables of records, so that it can be called from JDBC?
    Since this is not possible with the Oracle JDBC driver, Oracle recommends "To wrap a stored procedure that uses PL/SQL tables, break the data into components or perhaps use Oracle collection types." (http://download-west.oracle.com/docs/cd/B12037_01/java.101/b10979/ref.htm#sthref2123)
    Many thanks for any help,
    Cheers, Christoph

    Hi Christoph,
    Have you tried using JPublisher, or -more easily- JDeveloper (Go to your database connection in the "Connections" pane, open the "Packages" node, right click to "Generate Java...").
    These approaches (at minimum, use of jpub) will generate required PL/SQL wrapper code, including SQL Type declarations. Once these are installed in the database, you can invoke the wrapper procedures directly from Java.
    -- Ekkehard

  • GUI_UPLOAD output for a record having 130 fields [ 400 characters data ]

    Hi Experts,
    While working with GUI_UPLOAD, the output internal table record is limiting the characters.. but my requirement is a record containingg 400 + character... i.e, nearly 130 fileds in a record..
    Can you please help me how to do.
    Thanks & Regards,
    Bhaskar.

    Hi,
    Try using FM "WS_UPLOAD".
    Regards,
    Roger

  • DMEE Output File missing records

    I'm trying to create a flat file to send payment information to the Bank. I create a format tree that correspond to the Bank Layout using DMEE1 tcode. The request is create a flat file in which only detail records are stored (no headers are needed). After I configure all the payment stuff and run the payment program, the output file only contains one record. My testing scenario include two invoices pointing to a different vendors which are ready to be paid, the file should have two records.
    In addition, the idea is to create an Output file based on the CoCde field (separate files). Could you please help on this issue.

    HI Cristobal:
    Verifying the file I noticed that It has one record including to payment documents. Instead of that I need to records one per payment document. I tried with both options that you mentioned, but both of them creates one record with the two payments documents.
    Could you please let me know what I'm doing wrong?
    Regards...

  • Output Mini-disc recording to PB, how?

    How to output music from a Sharp mini-disc recorder (no output, just headphone output) with an Imic into a PB?

    This is how I'd do it;
    Connect the headphone output of the mini-disc recorder to an audio mixer (with the appropriate adapters) to control the gain and hopefully match the mini-disc's output impedence using the trim control of the mixer. Output from the mixer to DV/DVCam tape. Then capture the tape in FCP (audio only). The reason behind going to tape first is to have a timecoded source in case of a future need to recapture.
    -DH

  • Need to know the details on the change logs on the invoice output condition master records

    All,
    Recently, there seems to be a change made in VV32 transaction for Billingoutput types with regard to printer device names,
    I am unable to track down these changes. NACH provides information about created by & created on information, but i am not able to track the changes that were made against output condition records, is there any ways of identifying such changes using easier methods or even through CDHDR/ CDPOS tables.
    I tried executing CDPOS, but unable to proceed as i was not sure / do not know the ways of entries that i need to provide in CDHDR / CDPOS tables for my scenario.
    Can some one please help. Thanks in Advance.
    Regards
    Ilango

    Hi Ilango,
    if you don't activated the change logs, you just can find the chances made by identify the last two transports. So you need to go the way you started. Unfortunaly it could be, that you can't find the old settings anyway because there might be a * in...
    I know an easier way to find the old values.
    You can talk to your basis-guys if they got an older backup available and can backup it in an extra system. But that includes some extra work and the additional host.
    ~Florian

  • Is possible to have audio output during video recording with Canon 70D?

    Hi everybody,
    I am owner of a Canon 70D camera and I use this to record video (live) jazz small groups.
    I use for this audio input either external microphones (Rode or AKG) or my Zoom H4n digital handy recorder which has inside microphones.
    I want to ask you if there is a solution to hear at the same time the audio output from my Canon 70D via earphones which is suitable for studio recordings.
    I hope to have a clear answer about this....
    Regards
    Tasos Architektonidis

    You should check Magic lantern about this. I suppose the answer is no.
    My Swedish blog
    X100, 7D, 6D, 17-40/4L, 70-200/2,8L IS II, 17-55/2.8 IS, 24-105/4L, 85/1,8, 50/1,4, 24/1,4L II, Helios 58/2
    Darktable, RawTherapee, Photomatix, Luminance HDR, GIMP 2.9.1.

  • Output Volume for recording

    I'm having trouble getting enough volume in headphones while recording. I have the output volume on my interface (M-Audio Fasttrack pro) all the way up, but when I adjust the mix on the interface to hear a good mix of both recorded tracks, and what is being recorded, the volume is too low to hear anything. The outputs on Logic are set as high as possible without clipping. I've even tried a separate headphone amp and its not enough. Its not like I'm hard of hearing, either... :. any suggestions?

    Rob Twardock wrote:
    I'm having trouble getting enough volume in headphones while recording. I have the output volume on my interface (M-Audio Fasttrack pro) all the way up, but when I adjust the mix on the interface to hear a good mix of both recorded tracks, and what is being recorded, the volume is too low to hear anything. The outputs on Logic are set as high as possible without clipping. I've even tried a separate headphone amp and its not enough. Its not like I'm hard of hearing, either... :. any suggestions?
    You need a dedicated mixing console to blend the incoming overdubs with Logic's playback.
    What model? What price? You decide this.
    Cheers

  • Output 2 Extra Records That Are Sorted

    I want to map a repeating group to a similar output repeating group and also add 2 extra records to the output with the output sorted on the first element.
    Here's my input...
    <Request>
    <Records>
    <OrderType>4</OrderType>
    <OrderValue>01</OrderValue>
    </Records>
    <Records>
    <OrderType>4</OrderType>
    <OrderValue>01</OrderValue>
    </Records>
    <Records>
    <OrderType>4</OrderType>
    <OrderValue>02</OrderValue>
    </Records>
    <Records>
    <OrderType>4</OrderType>
    <OrderValue>03</OrderValue>
    </Records>
    </Request>
    Here is my desired output...
    <Request>
    <Records>
    <OrderType>1</OrderType>
    <OrderValue>05</OrderValue>
    </Records>
    <Records>
    <OrderType>2</OrderType>
    <OrderValue>00</OrderValue>
    </Records>
    <Records>
    <OrderType>4</OrderType>
    <OrderValue>01</OrderValue>
    </Records>
    <Records>
    <OrderType>4</OrderType>
    <OrderValue>01</OrderValue>
    </Records>
    <Records>
    <OrderType>4</OrderType>
    <OrderValue>02</OrderValue>
    </Records>
    <Records>
    <OrderType>4</OrderType>
    <OrderValue>03</OrderValue>
    </Records>
    </Request>
    I know I need to use Inline XSLT but cannot work out how to output the 2 extra records and ensure Order Type is in sequence.
    Both input and output use the same schema.

    Hi Stewart,
    If you use the following XSLT this add two extra nodes and sort the existing (input) nodes by OrderType. For sorting the existing node by OrderType, I am using
    Muenchian here. This XSLT outputs as you have wanted. I have given comments for your understanding.
    <?xml version="1.0" encoding="UTF-16"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:var="http://schemas.microsoft.com/BizTalk/2003/var" exclude-result-prefixes="msxsl var" version="1.0">
    <xsl:output omit-xml-declaration="yes" method="xml" version="1.0" />
    <xsl:key name="groups" match="Records" use="OrderType"/>
    <xsl:template match="/">
    <xsl:apply-templates select="/Request" />
    </xsl:template>
    <xsl:template match="/Request">
    <Request>
    <!--Add two extract node-->
    <Records>
    <OrderType>1</OrderType>
    <OrderValue>05</OrderValue>
    </Records>
    <Records>
    <OrderType>2</OrderType>
    <OrderValue>00</OrderValue>
    </Records>
    <!--Sort the existing node by Order Type-->
    <xsl:for-each select="Records[generate-id(.)=generate-id(key('groups',OrderType))]">
    <xsl:sort select="OrderType" order="ascending"/>
    <xsl:for-each select="key('groups',OrderType)">
    <Records>
    <OrderType>
    <xsl:value-of select="OrderType/text()" />
    </OrderType>
    <OrderValue>
    <xsl:value-of select="OrderValue/text()" />
    </OrderValue>
    </Records>
    </xsl:for-each>
    </xsl:for-each>
    </Request>
    </xsl:template>
    </xsl:stylesheet>
    Note: You may need to change the namespace as per your schema definition.
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • How can I output video without recording?

    I have FCE and it is working ok. I can record to a dv mini tape using Print to video and a firewire connection. But I want to send video to a monitor via my Sony D300 digital vcr. I cannot get the system to do this. For Easy Setup I am using DV NTSC 32khz. Would another easy set up work better?
    Are my settings wrong? I also have a Sony VX1000 digital camcorder but I have not tried to use it instead of the digital vcr.
    Would appreciate comments.

    When I go to: View>Video I get 3 choices: Real time, firewire, or show current.
    I have the D300 digital vcr set ready to play, so I guess this is the Play Mode. The "VTR OK" appears when I want to capture so I guess this is OK.
    When I try to output the timeline, I see the playback on the G4 but only the first frame of the video appears and it remains on the monitor. The rest of the playback does not appear. (This is an advance over what I had before,)
    I have FCE version 2.0.3

  • How to output database record in .doc format?

    Good day to all of you! I want to output the database records to a formatted .doc document.For example,
    Here are the db records:
    firstname mid lastname age
    ryan g gomez 23
    shiela m vanilla 21
    and the created document will be a .doc file, which will be formatted with image etc...
    +"File for the first record let's say RyanGomez.doc"+
    h4. Company Logo || Company Name
    h4. -------------------------------------------------------------------------------------------------------
    First Name: Ryan Middle Intial:G Last Name:Gomez
    +"and a separate file for the second format.. and so on...til all the records are created"+
    h4. Company Logo || Company Name
    h4. -------------------------------------------------------------------------------------------------------
    First Name:Shiela Middle Intial:A Lastname:Vanilla
    I know that I need Bufferedwriter/reader or printwriter but I'm having a problem on how to format or edit the output ...any help regarding this?
    I have tried using iText but I think it can only output pdf file...I need a doc output file.

    try {
            // Create a statement
            Statement stmt = connection.createStatement();
            // Prepare a statement to insert a record
            String sql = "DELETE FROM my_table WHERE col_string='a string'";
            // Execute the delete statement
            int deleteCount = stmt.executeUpdate(sql);
            // deleteCount contains the number of deleted rows
            // Use a prepared statement to delete
            // Prepare a statement to delete a record
            sql = "DELETE FROM my_table WHERE col_string=?";
            PreparedStatement pstmt = connection.prepareStatement(sql);
            // Set the value
            pstmt.setString(1, "a string");
            deleteCount = pstmt.executeUpdate();
            System.err.println(e.getMessage());

  • How can I get Audition 3 to record my Stereo Mix output in Vista?

    Under the Control Panel Ive set the Stereo Mix as the default recording selection, and can record my sound output in Sound Recorder. However, these are bad quality WMA files at 96khz.
    When I try to record my Stereo Mix in Audition, it records silence.
    Is there a way to fix it? Would an uninstall/reinstall work?
    Thank you everyone.

    Hi
    Today I am now noticing that when I plug in a keyword into the search it wont pull up that exact keyword but dozens and dozens from my general list.  The keyword may be in that list but there is no reason it should be pulling up non related words.
    I am guess this is all related to some sort of corruption issue.....how to de bug it...not sure. 
    Thanks for your help.

  • Recording drums app plus song output off of ipod touch

    I have ipodtoch and a drum app. It supports playing along with the songs on my itunes. I want to do a cover using the drum app. And i want the drum app plus song output to be recorded? Either on my macbuk or the ipod itself . Any ideas??
    I have been able to get the ouput on my jbl dock (using aux )

    Solution:  Doing a "Reset all settings" will release whatever hold the app has.  You'll have to set everything up (I did it as a new iPod). 
    Restore did nothing to resolve this issue.

  • Return records from Stored Procedure to Callable Statement

    Hi All,
    I am createing a web application to display a students score card.
    I have written a stored procedure in oracle that accepts the student roll number as input and returns a set of records as output containing the students scoring back to the JSP page where it has to be put into a table format.
    how do i register the output type of "records" from the stored function in oracle in the "registerOutParameter" method of the "callable" statement in the JSP page.
    if not by this way is there any method using which a "stored function/procedure" returning "record(s)" to the jsp page called using "callable" statement be retrieved to be used in the page. let me know any method other that writing a query for the database in the JSP page itself.

    I have a question for you:
    If the stored procedure is doing nothing more than generating a set of results why are you even using one?
    You could create a view or write a simple query like you mentioned.
    If you're intent on going the stored procedure route, then I have a suggestion. Part of the JDBC 2.0 spec allows you to basically return an object from a CallableStatement. Its a little involved but can be done. An article that I ran across a while back really helped me to figure out how to do this. There URL to it is as follows:
    http://www.fawcette.com/archives/premier/mgznarch/javapro/2000/03mar00/bs0003/bs0003.asp
    Pay close attention to the last section of the article: Persistence of Structured Types.
    Here's some important snippets of code:
    String UDT_NAME = "SCHEMA_NAME.PRODUCT_TYPE_OBJ";
    cstmt.setLong(1, value1);
    cstmt.setLong(2, value2);
    cstmt.setLong(3, value3);
    // By updating the type map in the connection object
    // the Driver will be able to convert the array being returned
    // into an array of LikeProductsInfo[] objects.
    java.util.Map map = cstmt.getConnection().getTypeMap();
    map.put(UDT_NAME, ProductTypeObject.class);
    super.cstmt.registerOutParameter(4, java.sql.Types.STRUCT, UDT_NAME);
    * This is the class that is being mapped to the oracle object. 
    * There are two methods in the SQLData interface.
    public class ProductTypeObject implements java.sql.SQLData, java.io.Serializable
        * Implementation of method declared in the SQLData interface.  This method
        * is called by the JDBC driver when mapping the UDT, SCHEMA_NAME.Product_Type_Obj,
        * to this class.
        * The object being returned contains a slew of objects defined as tables,
        * these are retrieved as java.sql.Array objects.
         public void readSQL(SQLInput stream, String typeName) throws SQLException
            String[] value1 = (String[])stream.readArray().getArray();
            String[] value2 = (String[])stream.readArray().getArray();
         public void writeSQL(SQLOutput stream) throws SQLException
    }You'll also need to create Oracles Object. The specification for mine follows:
    TYPE Detail_Type IS TABLE OF VARCHAR2(1024);
    TYPE Product_Type_Obj AS OBJECT (
      value1  Detail_Type,
      value2 Detail_Type,
      value3 Detail_Type,
      value4 Detail_Type,
      value5 Detail_Type,
      value6 Detail_Type,
      value7 Detail_Type,
      value8 Detail_Type);Hope this helps,
    Zac

  • How to show 'No Records Found' and 'Employee Name Unknown' in oracle report

    Hello,
    I'm using 6i and building a report to show employees who have incorrectly input their time. I have an input parameter so a user can select a specific employee by emp_id or can leave it empty to show all. That part works. I also have date parameters that are required. That works too. However I am having trouble displaying 'NO Records Found' if the date parameters have no late or rejected employee time records. I currently have it as a text field arranged behind the emp_name field which i filled white. It works...however i have a pretty good feeling there is a better way to do this. Also, I have some data that is null since i am using two tables. There are time stamps with no emp_name or emp_number. I still need to show these records but want them to show up as "Employee Name Unknown" that way the user doesnt get confused and thinks the emp_name in the row above also includes this row.
    select e.location "Clock Location",
    e.emp_no "Emp No",
    l.first_name ||' ' || last_name "Name",
    e.time_stamp "Time",
    from emp_time e, master_all l
    where e.emp_no (+) = l.emp_no
    and e.status = 'rejected'
    --and e.emp_no  = nvl (:p_emp_no, emp_no)
    --and e.time_stamp between :p_start_date and :p_end_date                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi,
    So, when the join between emp_time and master_all produces no rows, you still want one row of output, saying 'No Records Found'; is that right?
    If so, you can outer-join the result set to dual, with some join condition that accepts anything.
    Use CASE (or equivalents) to get special values (like 'No Record Found' or 'Employee name unknown') when certain columns are NULL.
    For example:
    SELECT     j.location     AS "Clock Location"
    ,     j.emp_no     AS "Emp No"
    ,     CASE
              WHEN  j.name     IS NULL
              THEN  'No Records Found'
              ELSE  j.name
         END          AS "Name"
    ,     time_stamp     AS "Time"
    FROM     dual     d
    ,     (     -- Begin in-line view j, join of emp_time and master_all
              SELECT     e.location
              ,     e.emp_no
              ,     CASE
                       WHEN  l.first_name IS NULL
                       AND       last_name    IS NULL
                       THEN  'Employee name unknown'
                       ELSE  l.first_name || ' ' || last_name
                   END     AS name
              FROM      emp_time     e
              ,     master_all     l
              WHERE     e.emp_no (+)       = l.emp_no
              AND      e.status (+)       = 'rejected'
    --           AND     e.emp_no (+)        = NVL (:p_emp_no, emp_no)
    --           AND       e.time_stamp (+)  BETWEEN :p_start_date
                                             AND        :p_end_date
         ) j     -- End in-line view j, join of emp_time and master_all
    WHERE     d.dummy     != j.name (+)
    ;In an outer join, all conditions involiving the optional table need a + sign; otherwise, the effect is the same as an inner join.
    The message 'No Records Found' is a string, so it has to go in a string column.
    I put it in the "Name" column, just because I knew that "Name" was a string.
    You can put in in any other column if you wish. If that column is not already a string, then use TO_CHAR to make it a string.
    You could also have a column just for this message.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables, and also post the results you want from that data.
    DOUBLE U wrote:
    I've tried nvl in the select statement but since emp_name is a concatination of first and last name it doesnt work. This is what i have tried
    nvl(l.first_name|' '||l.last_name,'NO EMPLOYEE RECORD FOUND') "Employee",I assume you meant to have two | characters, not just one, after first_name.
    The first argument to NVL will never be NULL in that case; it will always contain at least a space, whether or not the other columns are NULL. You could say:
    NVL ( NULLIF ( l.first_name || ' ' || l.last_name
        , 'NO EMPLOYEE RECORD FOUND'
        )        "Employee",bujt I find it less confusing to use CASE, as shown above.

Maybe you are looking for

  • New DVR Scheduler Bugs: Priority Settings No Longer Working, Scrolling Series Schedules is Flakey

    Hi, After this last HD DVR update, I have two new problems: 1) I can no longer set the priority of most of my series schedules. I have about 100 series schedule entries, which the DVR update probably wasn't tested for. Now when I try to set a series

  • How can I get a PDF form to email to me when it is hosted online?

    Ok, I'm not a coding expert, but I understand CSS and html alright. I am trying to create a PDF form for my website: www.pantherapressdesign.com. I have already created the forms (they are under the purchase section of the site) and when they are sav

  • Role is not showing up in SUIM transaction

    All Z_PT_TRANS_ALL role was created for all Display access. When I go to SUIM Roles -> By Transaction Assignment. and search for roles this role is not showing up. However, role does have the transaction in S_TCODE. Please advise. From, PT.

  • URGENT Java/SQLJ Help

    This is for my final exam that is due tomorrow. I've been trying everything & I just can't get it to work & my brain is turning to mush at this point. Please let me know if anyone can help... We need to generate data for a table based on what is in o

  • CS3 doesn't work on Mac OS

    First, I read the differents topics about problems with CS3 and solution proposed didn't work. At first I met the same blank error as describer by other. Unfortunatly I tried to uninstall - reinstall the CS 3 premium design from the CD. Until that wh