Problem in Final Result in PL/SQL

Dear All,
I have a problem in the final output of PL/SQL. I am using cursor and one SQL statement. Following is the complete procedure. First select after BEGIN inserts values in one table and that is fine. When second SQL is called by CURSOR while updating the table again I am having overlapped values. There seems some logical error. Would appreciate if some one help in this regard where is the issue and how to resolve that?
Thanks
CREATE OR REPLACE PROCEDURE P_PhotoCap_Report
                                           IS
  Local variable declaration.
      v_locationcode  VARCHAR2(4);
      v_day_0         Number(10):=0;
      v_day_1         Number(10):=0;
      v_day_2         Number(10):=0;
      v_day_3         Number(10):=0;
      v_day_4         Number(10):=0;
      v_day_5         Number(10):=0;
      v_day_6         Number(10):=0;
      v_day_7         Number(10):=0;
      v_day_8         Number(10):=0;
      v_day_9         Number(10):=0;
      v_day_10        Number(10):=0;
      v_day_11        Number(10):=0;
      v_day_12        Number(10):=0;
      v_day_13        Number(10):=0;
      v_moredays      Number(10):=0;
      v_diff          VARCHAR2(5);
      v_daily_enrol   Number(10):=0;
      v_sum           Number(10);
      v_average       Float(10);
      CURSOR c_insert_values IS
             SELECT locationcode
             ,decode(length(to_char(TRUNC(enrol_date) - TRUNC(photo_date))),1,to_char(TRUNC(enrol_date) - TRUNC(photo_date)),'>13')
             , COUNT(*)
             FROM track_id
             WHERE TRUNC(enrol_date) = TRUNC(SYSDATE-1)
             GROUP BY LOCATIONCODE, decode(length(to_char(TRUNC(enrol_date) - TRUNC(photo_date))),1,to_char(TRUNC(enrol_date) - TRUNC(photo_date)),'>13');
   BEGIN
         INSERT INTO reporting.photodate_report (locationcode, locationname, total_enrol)
            SELECT a.locationcode, (trim(b.locationname)||' '||b.DESCRIPTION),  count (*)
            FROM track_id a, location b
            WHERE  to_date(a.enrol_date,'DD/MM/rrrr') = trunc(sysdate-1) AND a.locationcode = b.locationcode
            GROUP BY a.locationcode, (trim(b.locationname)||' '||b.DESCRIPTION);
         commit;
   OPEN  c_insert_values;
   LOOP
         FETCH c_insert_values into v_locationcode, v_diff, v_daily_enrol;
         EXIT WHEN c_insert_values%notfound;
         CASE
            WHEN v_diff = '0'   THEN v_day_0 := v_daily_enrol;
            WHEN v_diff = '1'   THEN v_day_1 := v_daily_enrol;
            WHEN v_diff = '2'   THEN v_day_2 := v_daily_enrol;
            WHEN v_diff = '3'   THEN v_day_3 := v_daily_enrol;
            WHEN v_diff = '4'   THEN v_day_4 := v_daily_enrol;
            WHEN v_diff = '5'   THEN v_day_5 := v_daily_enrol;
            WHEN v_diff = '6'   THEN v_day_6 := v_daily_enrol;
            WHEN v_diff = '7'   THEN v_day_7 := v_daily_enrol;
            WHEN v_diff = '8'   THEN v_day_8 := v_daily_enrol;
            WHEN v_diff = '9'   THEN v_day_9 := v_daily_enrol;
            WHEN v_diff = '10'  THEN v_day_10 := v_daily_enrol;
            WHEN v_diff = '11'  THEN v_day_11 := v_daily_enrol;
            WHEN v_diff = '12'  THEN v_day_12 := v_daily_enrol;
            WHEN v_diff = '13'  THEN v_day_13 := v_daily_enrol;
            ELSE v_moredays := v_daily_enrol;
         END CASE;
          v_sum := (v_day_0)+(v_day_1)+(v_day_2)+(v_day_3)+(v_day_4)+(v_day_5)+(v_day_6)+(v_day_7)+(v_day_8)+
                      (v_day_9)+(v_day_10)+(v_day_11)+(v_day_12)+(v_day_13);
       v_average := ((0*v_day_0)+(1*v_day_1)+(2*v_day_2)+(3*v_day_3)+(4*v_day_4)+(5*v_day_5)+(6*v_day_6)+(7*v_day_7)+(8*v_day_8)+
                          (9*v_day_9)+(10*v_day_10)+(11*v_day_11)+(12*v_day_12)+(13*v_day_13))/v_sum;
         UPDATE PHOTODATE_REPORT a
         SET    a.day_0 = v_day_0,
                a.day_1 = v_day_1,
                a.day_2 = v_day_2,
                a.day_3 = v_day_3,
                a.day_4 = v_day_4,
                a.day_5 = v_day_5,
                a.day_6 = v_day_6,
                a.day_7 = v_day_7,
                a.day_8 = v_day_8,
                a.day_9 = v_day_9,
                a.day_10 = v_day_10,
                a.day_11 = v_day_11,
                a.day_12 = v_day_12,
                a.day_13 = v_day_13,
                a.moredays = v_moredays,
                a.avg = v_average
          WHERE a.locationcode = v_locationcode;
      END LOOP;
      commit;
      CLOSE c_insert_values;
  END;Edited by: BluShadow on 15-Mar-2011 09:44
added {noformat}{noformat} tags                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

tis is a douplication of Problem in Final Result in PL/SQL

Similar Messages

  • Please help - Scrollable result set in sql server 2000

    Hi can some one please help me. I'm trying to create scrollable result set in sql server 2000, but i just can't get it to work. I've been trying to do this for the past 12 hours. I want to go home, but I can't till I get this going! please help!!! My crap code is as follows:
    package transact;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.JInternalFrame;
    import java.sql.*;
    import java.io.*;
    import java.util.*;
    public class DummyFrame extends Dummy
    protected String name, surname;
    protected Connection conn;
    protected CallableStatement cstatement;
    public DummyFrame()
    createFrame();
    private void createFrame()
    try
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
    conn = DriverManager.getConnection(
    "jdbc:microsoft:sqlserver://server:1433;" +
    "user=user;password=pwd;DatabaseName=Northwind");
    catch (Exception e)
    e.getMessage();
    populateFields();
    menuAction();
    show();
    private void menuAction()
    btncontacts.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
    getRecords();
    populateFields();
    btncontacts.setText("NEXT");
    btnkeywords.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
    // transaction.getRecords();
    nextRecord();
    populateFields();
    btncontacts.setText("NEXT");
    protected void nextRecord()
    try
    // CallableStatement cstatement = null;
    cstatement = conn.prepareCall(
    "{call Employee_Selection}", ResultSet.TYPE_SCROLL_INSENSITIVE,
    ResultSet.CONCUR_UPDATABLE);
    ResultSet rs = cstatement.executeQuery();
    while (rs.next())
    surname = rs.getString("Lastname");
    cstatement.getMoreResults();
    catch (Exception e)
    e.getMessage();
    protected void getRecords()
    try
    CallableStatement cstatement = null;
    cstatement = conn.prepareCall(
    "{call Employee_Selection}", ResultSet.TYPE_SCROLL_INSENSITIVE,
    ResultSet.CONCUR_UPDATABLE);
    ResultSet rs = cstatement.executeQuery();
    while (rs.next())
    surname = rs.getString("Lastname");
    name = rs.getString("Firstname");
    rs.first();
    // call stored procedure
    catch (Exception e)
    e.getMessage();
    // populate the fields;
    private void populateFields()
    txtfirstname.setText(name);
    txtsurname.setText(surname);
    }

    ummm ok i think the logic in your code is kinda screwy...
    here is what your should be doing.
    create the gui.
    get the resultset...
    have code that looks like this for nextRecord...
    protected void displayNextRecord(){
      // we do not call next here because we already called it last time
      surname = rs.getString("Lastname");
      name = rs.getString("Firstname");
      populateFields();
      if(!rs.next(){
        btncontacts.setEnabled(false);// i'm not sure what btncontacts is but we want to disable next becuase there are no more records...
    // in your intitalization code you need to do this...
    // you old stuff ending with...
    ResultSet rs = cstatement.executeQuery();
    // the new stuff...
    if(rs.first()){
      displayNextRecord();
    }else{
      btncontacts.setEnabled(false);//the result set is empty
    }ok the real problem you are having is that you are trying to display one record at a time but you are scrolling
    through the entire result set using while(rs.next()... what you
    want to do is create the result set once and scroll through
    it one item at a time with your gui.
    the example method i have given displays the data from the current
    row in your gui. then it advances the result set forward one row if possible. this method assumes that the result set will always
    be positioned on a valid row thus the need for calling
    rs.first() before we originally call displayNextRecord()
    well i hope you find this helpful.

  • Overclock E8400 + MSI P45 NEO Final results

    This is the final result, and the default config for me from now on, thank you Jack the Newbe, you helped me a lot.
    I fixed your links and tags
    -Frankenputer

    HARDWARE
    MOBO: MSI P45 NEO - BIOS Version 1.1
    CPU: C2D E8400 3.0Ghz - Cooler Box
    MEM: 2x 2Gb DDR2 800Mhz Kingston Value Ram
    GPU: MSI GeForce N9800GTX 512Mb(700/2200/1750)
    HDD: Seagate 250Gb Sata II
    PSU: Akasa 500W
    CASE: Cooler Master Elite 333
    Monitor: 19" Samsung 943BWX Wide (1440x900)
    OS: Win Vista Ultimate x64 + SP1
    CLOCKS AND VOLTAGES
    CPU - BIOS
    Multi-Step OC - [MODE 1]
    D.O.T Control  - [Disabled]
    Intel EIST       - [Disabled]
    Adjust CPU FSB Frequency (Mhz) - [445]
    Adjusted CPU Frequency (Mhz) - [4000]
    Multiplier    - [9]
    Advance DRAM Configuration -
    Timings - [5-5-5-15]
    FSB DRAM Ratio - [1:1.00]
    Adjusted DRAM Frequency (Mhz) [890]
    ClockGen Tuner - [Untouched]
    Adjust PCI Frequency (Mhz) - [Default]
    Auto Disable DRAM/PCI Frequency - [Enabled]
    CPU Voltage (v)     - [1.3350]
    DRAM Voltage (v)   - [1.90]
    MCH Voltage (v)     - [1.100]
    VTT FSB Voltage(v)- [1.25]
    ICH Voltage (V)      - [1.50]
    Spread Spectrum - [Disabled]
    GPU - Riva Tuner 2.10
    Core Clock (Mhz)     - [783]
    Shader Clock (Mhz)  - [1957]
    Memory Clock (Mhz) - [1183]
    FAN Speed (RPM)     - [95%]
    TEMPERATURES
    Ambient Temp - 30~31ºC
    CPU
    Idle        - 56~60ºC
    Full Load - 85~90ºC
    GPU
    Idle        - 45ºC
    Full Load - 60ºC
    I know that these CPU temps are not aceptable, but as soon as my thermal grease arrives I'll use it with my TT cooler(current I'm on cooler box) and it will drop a lot.
    COOLING
    I just use:
    a 120mm fan in the lower front of the case sucking the (cool)air in,
    a 120mm fan in the middle back of the case blowing the (hot)air out,
    a 80mm fan fixed in the door case blowing the (hot) air out,
    a 80mm fan over the back of the VGA blowing air to the Northbridge heatsink,
    and (about next week) Thermaltake Big Thyphoon 120 VX with Artic Silver 5.
    The MSI N9800GTX is the best VGA cooler that I ever saw, it really does the job even in the extreme overclocks.
    FINAL WORDS
    After I did this OC, I used the machine for about 4 hours with no problem at all. I did some tests, including some benchmarks like Super PI and 3Dmark 2006, but I did not made any stress test(prime95, orthos) because I'm still using the cooler box and this will for sure overheat it beyond it's capacity, therefore this OC was just a preparation(test) for the real one that I'll do when my thermal grease and my TT cooler were in place, I think that the voltages still can suffer some variation with the advantage of the new cooler, but it will be worked in the right moment, after all overclocking is a long process, when I wrote "final results" to the title of this topic, I mean that this is the clock that I wanted to reach, but of course that still lacks some fine adjustments.
    The real objective of this test was to see:
    1. if the motherboard handles it stable.
    2. if there were no FSB walls to block my OC.
    3. if there were any voltage problems.
    4. if there were extreme overheating.(even with the cooler box)
    and I'm more than happy to see that it passed in all the tests so far.
    PROGRAMS USED FOR ADJUSTING AND MONITORING
    CPU-Z v1.47
    GPU-Z v0.27
    Core Temp v0.99.3
    Riva Tuner 2.10
    Super PI v1.5
    3DMark06 v110

  • Aspect ratio inappropriate with final result

    hi guys.. we meet again..   i get a problem here.. look at the picture below..
    above one is my comp when i make it to the final result below.. how to setting my comp to make it look the same with the final video? the final comp has a widescreen perfectly. but my comp not.. im using AE CS5 10.0.458

    You can either turn on Pixel Aspect Ratio correction in the Composition window or change your composition settings to the default NTSC DV Widescreen Square Pixel preset. Your frame rate is wrong for this preset however. If you are going to DVD then you should be either using 29.97 fps for NTSC video, or you should be using the PAL Widescreen Presets. I believe, and so does Wikipedia, that Indonesia is a PAL country until 2018. Your Comp Settings should look like this for NonSquare pixels:
    Or this for Square Pixels:
    A render from either will go into any program that builds DVD's. A render from the Square Pixel setup will work perfectly on the web for YouTube or Vimeo while a render from the NonSquare comp settings will have problems displaying correctly on a computer monitor or on the web.
    Just one more thing. If you are creating artwork for this project in Photoshop or Illustrator then you should use 1050 X 576 pixels for your frame size. That sized image will fit perfectly in either composition.

  • Transfer data from Result Set (Execute SQL Task) into Flat File

    Hi to all,
    My problem is this:
     -) I have a stored procedure which use a temporary table in join with another "real" table in select statement. In particular the stored procedure look like this:
    create table #tmp
    col1 varchar(20),
    col2 varchar(50)
    --PUT SOME VALUE IN #TMP
    insert into #tmp
    values ('abc','xyz')
    --SELECT SOME VALUE
    select rt.*
    from realTable rt, #tmp
    where rt.col1 = #tmp.col1
    -) I cannot modify the stored procedure because I'm not admin of database.
    -) I HAVE THE REQUIREMENT OF TRANSFER DATA OF SELECT STATEMENT OF SOTRED PROCEDURE INTO FLAT FILE
    -) THE PROBLEM is that if I use an OLEDB source Task within a Data Flow Task I'm not be able of mapping column from OLEDB source to flat file destination. The reason for this, is that in the "Column page" of OLEDB source task, SSIS do not retrieves
    any column when we using a temporary table. The reason for this, is that SSIS is not be able to retrieve metadata related to temporary table. 
    -) One possible solution to this problem is to use an Execute SQL Task to invoke the stored procedure, store the result returned from stored procedure in a Result Set through a Object type user variable.
    -) The problem now is: How to transfer data from result set to flat file?
    -) Reading here on this forum the solution look be like to use a Script task to transfer data from result set to flat file.
    QUESTIONS: How to transfer data from result set to flat file using a script task?? (I'm not an expert of vb .net) Is it really possible?? P.S.: The number of row returned of stored procedure is very high!
    thanks in advance.

    Hi  Visakh16<abbr
    class="affil"></abbr>
    thanks for the response.
    Your is a good Idea, but I do not have permission to use DDL statement on the database in production environment.

  • HT5149 Hi, I still have problems reinstalling Final Cut Pro even though I followed these steps. Didn´t find "com.apple.motionapp.plist" to remove though, but the others I found. Reason why I have to reinstall is because I have repaired my Macbook Pro hard

    Hi, I still have problems reinstalling Final Cut Pro even though I followed these steps.
    Reason why I have to reinstall is because I have repaired my Macbook Pro hard drive at a Mac Authorized Repair.
    Short history of repair and my Final Cut Pro installation:
    1. Macbook Pro stopped working, sendt it for repair. Had the Final Cut Pro installed,
    2. Desided to try a MiniMac and recovered my backup with Time Machine, got the Final Cut Pro working.
    3. Got my Macbook Pro back from repair, did backup on this one as well. But this time only the files not the Applications.
    4. Removed the files as mentioned in HT5149. Didn´t find "com.apple.motionapp.plist" to remove though, but the others I found.
    5. When I try to install Final Cut Pro from App Store, it downloads the application as planned. But after download it won´t show in the Application folder nor in the downloads folder, nor will it start an installation prosess. If I pause the installation in App Store, I can see the Final Cut Pro icon in my Dock. (But, as mentioned, after installation it won´t show neither here or in the Applications folder).
    Any suggestions on what I should try now?
    Thanks for any reply, I´m in deep water here...

    Sounds like there is a file you're not getting.  Never do a removal manually.  It's so time consuming and a pain.  There's a very easy and fast way to do this, safely, properly.
    Get the free "Final Cut Remover" app from Digital Rebellion (dot com), use this to remove FCP X.
    Reboot the Mac.
    Download from scratch.
    If you're not seeing FCP X in your app folder, run Disk Utility to Repair all drives.
    If that doesn't help, try running Disk Warrior from Altsoft to repair the directories on all drives.

  • Search has encountered a problem that prevents results from being returned. If the issue persists, please contact your administrator.

    Hello Guys,
    I am creating resultsource from central admin. If I create it from central admin it works fine. But if I am creating result source from power shell scripts it shows me following error message.
    An exception of type 'Microsoft.Office.Server.Search.Query.InternalQueryErrorException' occurred in Microsoft.Office.Server.Search.dll but was not handled in user code
    Additional information: Search has encountered a problem that prevents results from being returned.  If the issue persists, please contact your administrator.
    Any suggestion ?
    Thanks in Advance.

    Hi,
    Please provide more specific information about the issue. What type of content source you tried creating via powershell?
    Make sure you are using the approproate permission and search service application.
    Here is the reference for creating content resource via script:
    http://technet.microsoft.com/en-us/library/ff607867(v=office.15).aspx
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Result of an SQL query as a Column name of another query

    Hi Friends,
    Can we use a result of a SQL Query as a column name of another table to retrieve data. If so please help me.
    For eg :
    I have a table where is store numbers;
    select col1 from table1 where col1='5';
    and i have another table where .. this value of col is a column name..
    select ( select col1 from table1 where col1='5') from table2;
    Thanks in advance.

    Hi,
    ORAFLEX wrote:
    Hi Friends,
    Can we use a result of a SQL Query as a column name of another table to retrieve data. If so please help me.
    For eg :
    I have a table where is store numbers;
    select col1 from table1 where col1='5';
    and i have another table where .. this value of col is a column name..
    select ( select col1 from table1 where col1='5') from table2;
    Thanks in advance.Do you really mean that?
    select col1 from table1 where col1='5';That query will always return either '5' or nothing. Whatever you're trying to accomplish with that, you can do with an EXISTS query.
    Perhaps you meant to reference two different columns in that query:
    select col1 from table1 where col2='5';In that case, sorry, no, you can't do that without resorting to dynamic SQL.
    If the same column is used throughout the query (but could change every time you run the query), then the dynamic SQL might be pretty easy. In SQL*Plus, for example, you could use substitution variables, defined in another query at run-time.
    If there are only a few possible values that the sub-query could possibly return, and you know what they all are, then you can fake a dynamic query like this:
    SELECT     CASE     ( SELECT  col1
                FROM       table1
                WHERE       col2     = '5'
              WHEN  'BONUS'     THEN  bonus
              WHEN  'COMM'     THEN  comm
              WHEN  'SAL'     THEN  sal
         END     AS col1
    FROM     table2
    ;Sorry to give such a vague answer, but it's the best I can do with the information I have.
    It would help if you posted a little sample data (CREATE TABLE and INSERT statments for both tables), and the results you want to get from that data. If you want to pass a parameter to the query, give the results you want for a couple of different parameters.

  • Emailing results of a SQL Query....

    I am new to Oracle and was wondering if there is a way to create an email task that could be used to email results of a sql query. My query returns emails addresses that meet a specified criteria. I want to use an email task that takes these addresses as variables and sends out an email to the specified email address.
    Anyone provide any help with how I might do this?
    Thanks.

    Hi,
    The odiSqlUnload has a "select" command. Is possible, at your process, work with the "LPAD()" and/or "RPAD()" function to complete the necessary whitespace at each column?
    To the column heading I suggest you use the "union" like: (I put the lpad and rpad fuctions as example...)
    select col1, col2, col3
    from(
    select 1 as internal_order, 'header_col1' as col1, 'header_col2' as col2, 'header_col3' as col3
    from dual
    UNION
    select 2 as internal_order, RPAD(col1, 10, ' ') as col1 , LPAD(col2, 50, ' ') as col2 , col3
    from your_table)
    order by internal_order
    Do you think this will work for you?

  • How to export the result from executing sql statement to excel file ?

    HI all,
    Great with Oracle SQL Developer, but I have have a trouble as follwing :
    I want to export the result from executing sql statement to excel file . I do easily like that in TOAD ,
    anyone can help me to do that ? Thanks so much
    Sigmasvn

    Hello Sue,
    I just tried to export to excel with the esdev extension and got java.lang.NumberFormatException. I found the workaround at Re: Windows Multi-language env, - how do I set English for application lang?
    open the file sqldeveloper\jdev\bin\sqldeveloper.conf and add the following two lines:
    AddVMOption -Duser.language=en
    AddVMOption -Duser.country=USyet now my date formats in excel are 'american-style' instead of german. For example 01-DEC-01 so excel does not recognize it as date and therefore I can not simply change the format.
    When export to excel will be native to 1.1 perhaps someone can have a look at this 'feature'
    Regards
    Marcus

  • End the result of an sql query by Email as an excel file attachement

    Hi,
    I would like to create a PL/SQL function that send the result of an sql query by Email as an excel file attachement.
    i'm newbie in pl/sql an d i dont know if it's possible to do such task.
    regards,

    i think a regular expression is he way to go in your case...
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com

  • How to view complete date stamp in query result view in sql developer?

    Hi,
    In the query result, the date present in db is shown as DD-MM-YYYY format but I want to view the complete date stamp. When I view the same data in aqua data studio, I see the complete time stamp. Please let me know if I need to do some settings in Oracle SQL Developer so that complete date is shown?
    How to view complete date stamp in query result view in sql developer?
    Thanks in advance,
    Vineet

    864793 wrote:
    Hi,
    In the query result, the date present in db is shown as DD-MM-YYYY format but I want to view the complete date stamp. When I view the same data in aqua data studio, I see the complete time stamp. Please let me know if I need to do some settings in Oracle SQL Developer so that complete date is shown?
    How to view complete date stamp in query result view in sql developer?
    Thanks in advance,
    VineetAlternatively you can execute below
    set nls_date_format='DD-MM-YYYY HH24:MI:SS';Regards,
    Achyut K

  • Colorize report results depending on sql selects

    Hy,
    is it possible to colorize report results depending on sql selects.
    For example: select id, name from db where name = 'frankfurt' or name = 'munic'
    All Results munic in red colour.
    Thanks
    Tom

    Hi,
    I have tried using the following in a decode statement of a Region report (type is SQL Query), and all it seems to do is form the HTML text as expected, but does not actually do what I want (i.e. display the field as red):-
    SELECT a_code, a_status, decode(a_fld,a_fld,'&ltfont color=&quotFF0000&quot&gt'||a_fld||'&lt/font&gt','other') "CA" from a_table
    What appears in the report is literally (I've put in single quotes in case this line is interpretted in the forum):
    '<font color="FF0000">1234</font>'
    I'm missing something - to force the HTML to be rendered as such. The field is displayed as a Standard Report Column, but it's just taking the decode search field as an ordinary piece of text. There's something that needs setting, but I can't find it - does anyone know?
    Thanks in advance
    Dave

  • I have a new iMac but having problems installing final cut express 4 from old macbook pro ?

    i have a new iMac but having problems installing final cut express 4 from old macbook pro ?

    FCE was discontinued nearly 3 years ago and is no longer supported.
    I don't know whether it's possible to install it on Mavericks and if you do it may not perform properly.
    Final Cut pro X and iMovie are the only Apple apps that are supported.

  • Graphic problem with Final cut pro X

    Hello
    Since some days I have graphical problems, it seems it is related to final cut pro X (10.0.8), all other programms are running well.
    When I import events to my project the graphic is ok:
    After modification, example: here stabilization on, I have some colored pixels in the preview:
    After this happens once, I found some colored pixel also in other programs or on the background picture.
    I'm not sure if I have a problem with final cut or with the graphic card. When I use my iMac without final cut, I found no problems
    Can anybody help me? Thank you

    Thank you for you answer.
    I have 12 GB Memory and Final Cut Pro X was working properly until now.
    The problem occure already at the preview windows, as soon as I close Final cut the graphic background looks good again.
    I found that I have a similar problem also with iMovie, so I think it is maybe a hardware and not a software problem.
    The hardware test does not show any problems, do you know another method to test the graphic card?

Maybe you are looking for

  • Byte array to png image conversion

    hi friends i am using a servlet using tomcat server to send multiple images to a client. i have stored all the images in a single byte array.and then encoded using base64. i am sending it to the client side and decoding it. when i extract the byte ar

  • TDS quarterly returns (J1INQEFILE)

    Hi Guys, Can some one guide me on the procedure to be followed on generting the quarterly TDS returns. We are using mySAP ERP 5.0 version and we have already applied note 870991 Regds Nagendra

  • I want to reactivate the USB device

    Bonjour, Hi ,        J'ai un Macbook pro sur OS X 10.9.4, processeur 2,5 GHz, intel core 5.  Mon port USB a été désactivé en me disant que l'appareil que j'avais connecté ( un I-phone) prenait trop d'énergie. Comment puis-je le réactiver? How to reac

  • Phone  5c won't connect to iTunes

    I phone won't connect to i tunes and won't let me use my payment info

  • How to stablish an email into to the printer so it can receive sent email?

    How to establish or give an email to my printer so it will receive emails. Manny HP 4620 e printer