PL/SQL spatial query will not compile.

I have a PL/SQL spatial query that will not compile, but the equivalent SQLPlus query works fine. I.e. (convert decimal degrees to degrees,minutes,seconds)
Any thoughts much appreciated....
THIS WORKS in SQLPlus
select
decode(rownum,1,decode(sign(b.column_value),-1,'W','E'),2,decode(sign(b.column_v
alue),-1,'S','N'))| |
to_char(abs(trunc(b.column_value,0)),'999')
| |to_char(abs(trunc((b.column_value - trunc(b.column_value,0)) * 60,0)),'99')
| |to_char(abs(
(((b.column_value - trunc(b.column_value,0)) * 60) - trunc((b.column_value - tru
nc(b.column_value,0)) * 60,0)) * 60
),'99.99')
from route_location a, table(a.line.sdo_ordinates) b
where a.route_adms_id = 13820370
and record_seq_num = 26
and rownum < 3
BUT THIS DOES NOT
ADMS>create or replace procedure PKG_route_loc_latlong_ins
2 (iADMS_ID in INTEGER, iRSN in INTEGER,
3 vcLAT out VARCHAR2, vcLONG out VARCHAR2) as
4 cursor c1 is
5 select decode(rownum,1,decode(sign(b.column_value),-1,'W','E'),
6 2,decode(sign(b.column_value),-1,'S','N'))
7 &#0124; &#0124;to_char(abs(trunc(b.column_value,0)),'999')
8 &#0124; &#0124;to_char(abs(trunc((b.column_value - trunc(b.column_value,0)) * 60,0)),
'99')
9 &#0124; &#0124;to_char(abs(
10 (((b.column_value - trunc(b.column_value,0)) * 60) -
11 trunc((b.column_value - trunc(b.column_value,0)) * 60,0)) * 60
12 ),'99.99')
13 from route_location a, table(a.line.sdo_ordinates) b
14 where a.route_adms_id = iADMS_ID
15 and a.record_seq_num = iRSN
16 and rownum < 3;
17 BEGIN
18 open c1;
19 fetch c1 into vcLONG;
20 fetch c1 into vcLAT;
21
22 EXCEPTION
23 when others then
24 vcLAT := 'ERROR';
25 RAISE_APPLICATION_ERROR(-20002,
26 'XXXXXXXXXXXXXX ');
27
28 END pkg_route_loc_latlong_ins;
29 /
Warning: Procedure created with compilation errors.
ADMS>
ADMS>show errors
Errors for PROCEDURE PKG_ROUTE_LOC_LATLONG_INS:
LINE/COL ERROR
5/5 PL/SQL: SQL Statement ignored
5/12 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
5/12 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
13/34 PLS-00201: identifier 'A.LINE' must be declared
19/5 PL/SQL: SQL Statement ignored
20/5 PL/SQL: SQL Statement ignored
null

try a
FOR UPDATE OF ID NOWAIT;where ID is the name of a column in the table.

Similar Messages

  • Trigger will not compile

    I wrote the trigger which compiles with errors. The errors are:
    Error(9,5): PL/SQL: SQL Statement ignored
    Error(9,12): PL/SQL: ORA-00903: invalid table name
    Error(14,5): PL/SQL: SQL Statement ignored
    Error(14,12): PL/SQL: ORA-00903: invalid table name
    and so on for the other lines that reference a table. I tried prefixing the table with the schema name and removing the alias but it will not compile either way. Is there something obvious that I don't see?
    Create Or Replace Trigger ERR_EVACUATION_TAB_BU
    Before Update On Err_Evacuation_Tab
    For Each Row
    Begin
    If V('APP_USER') Is Null Then
    :new.last_update_by := USER;
    ELSE
    :new.last_update_by := V('APP_USER');
    END IF;
    :New.Last_Update_Date := Sysdate;
    If :New.Evacuated_Ind = 'Y' And :New.Entire_Evac_Ind = 'Y' And :New.Remaining_In_Apt = 0 Then
    Update Table Err_Impaired_Tab Eit
    Set Eit.Evacuated_Ind = 'Y'
    Where Eit.Location_Code = :Old.Location_Code;
    -- And Eit.Rent_Id_Tenant_Number = :Old.Rent_Id_Tenant_Number;
    Update Table Err_Lifesustain_Tab Ert
    Set Ert.Evacuated_Ind = 'Y'
    Where Ert.Location_Code = :Old.Location_Code;
    -- And Ert.Rent_Id_Tenant_Number = :Old.Rent_Id_Tenant_Number;
    else
    Update Table Err_Impaired_Tab Eit
    Set Eit.Evacuated_Ind = 'N'
    Where Eit.Location_Code = :Old.Location_Code;
    -- And Eit.Rent_Id_Tenant_Number = :Old.Rent_Id_Tenant_Number;
    Update Table Err_Lifesustain_Tab Ert
    Set Ert.Evacuated_Ind = 'Y'
    Where Ert.Location_Code = :Old.Location_Code;
    -- And Ert.Rent_Id_Tenant_Number = :Old.Rent_Id_Tenant_Number;
    End If;
    END;

    --untested
    CREATE OR REPLACE TRIGGER err_evacuation_tab_bu
       BEFORE UPDATE
       ON err_evacuation_tab
       FOR EACH ROW
    BEGIN
       IF v ('APP_USER') IS NULL
       THEN
          :NEW.last_update_by := USER;
       ELSE
          :NEW.last_update_by := v ('APP_USER');
       END IF;
       :NEW.last_update_date := SYSDATE;
       IF     :NEW.evacuated_ind = 'Y'
          AND :NEW.entire_evac_ind = 'Y'
          AND :NEW.remaining_in_apt = 0
       THEN
          UPDATE err_impaired_tab eit
             SET eit.evacuated_ind = 'Y'
           WHERE eit.location_code = :OLD.location_code;
    -- And Eit.Rent_Id_Tenant_Number = :Old.Rent_Id_Tenant_Number;
          UPDATE err_lifesustain_tab ert
             SET ert.evacuated_ind = 'Y'
           WHERE ert.location_code = :OLD.location_code;
    -- And Ert.Rent_Id_Tenant_Number = :Old.Rent_Id_Tenant_Number;
       ELSE
          UPDATE err_impaired_tab eit
             SET eit.evacuated_ind = 'N'
           WHERE eit.location_code = :OLD.location_code;
    -- And Eit.Rent_Id_Tenant_Number = :Old.Rent_Id_Tenant_Number;
          UPDATE err_lifesustain_tab ert
             SET ert.evacuated_ind = 'Y'
           WHERE ert.location_code = :OLD.location_code;
    -- And Ert.Rent_Id_Tenant_Number = :Old.Rent_Id_Tenant_Number;
       END IF;
    END;Edited by: most wanted!!!! on Apr 20, 2012 2:20 AM

  • PHP 4 will not compile in PHP5 on OSX Server 10.5.5  Mac Mini

    I have been using a commercial server which does not give access to php.ini but bought a Mac Mini and OSX Server 10.5.5. My old PHP 4 program will not compile in PHP5. It gives weird compilation errors to do with curly brackets but as soon as I alter one bracket it jumps to another similar error somewhere else in the program. I think it may require tweeking the php.ini or httpd.conf files which I have opened using Terminal but I don't know what might need to be changed. I expected this to be a turn-key system ready to go. I knew there would be changed required to migrate from PHP4 to PHP 5 and read the official PHP site, searched many forums, and google searches, called AppleCare but none knows what to do. I used an editor and there are 276 open brackets and 276 close brackets. If you have made the same migration without difficulty please let me know. Maybe I just need to start again!

    evan-e-sent wrote:
    Well, I don't think the code is too messy except for the globals I use.
    It is. The point of this function is beyond elusive given the number of side effects it seems to induce. Everything in it could be reduced to one or two lines, but odds are good it shouldn't even exist in the first place.
    I just use the same set of globals for all functions so that these variables are readily available everywhere in the program without having to think about it.
    That's a very common beginner tactic which is unfortunately very prevalent in publicly distributed PHP projects due to the fact that many of them are written by beginners. I'd highly recommend you start thinking about it if you want to get anywhere.
    They are all constants once they have been set initially.
    http://us2.php.net/manual/en/function.define.php
    Like $query is set only once when the program picks it up from a $GET statement.
    And I'll bet you're not sanitizing that query string at all before passing it along to mySQL.
    This leaves two questions. Do you think I should treat every function as a separate file and have the mainline bring them in as "included code". There are 126 functions.
    Refactoring should improve the organization, performance and readability of your code according to some logical criteria. Simply putting each function in its own file accomplishes none of these things.
    (I have also written a 6000 line program as a MySQL data processor to make it easier for my wife to manipulate the data in dozens of tables without having to keep track of all the unique keys. So this will be quite a big job.) If so I would appreciate a quick tip about how to do that in PHP. Other pre-processing I do with Applescript.
    Why didn't you just install phpMyAdmin?
    Second, goes back to my initial question. This parsing problem only appeared after switching to PHP 5.2.2 with MySQL. Could this weird behavior be caused by some setting in the PHP.ini or httpd.conf or my.conf files and if so what would I change. The fact that this has not been suggested on this forum makes me think it is not a config. problem. That in itself is useful information.
    Probably not, but who knows what other nightmares might be lurking in this file. Did you use short tags like <? ?> or something?

  • Problem with shuffle() code, will not compile

    Hi,
    Below is some code designed to shuffle a set of integers in the file editET.txt. Basically:
    5
    2
    4 say:
    just shuffle these randomly around, however, the code will not compile, any advice or solutions would be great
    import java.io.*;
    import java.util.*;
    public class Shuffle3 {
    public static void main (String [] args) {
    if (args.length<2){
    System.out.println("Usage: java Shuffle3 <input file> <output file>");
    System.exit(-1);
    ShuffleStringList sl = new ShuffleStringList(args[0]);
    sl.shuffle();
    sl.save(args[1]);
    class ShuffleStringList extends StringList {
    public ShuffleStringList(String "editET.txt") {
         super(fileName);
    public void shuffle() {
    Collections.shuffle(this);
    public void save (String "Shuffledok"){
         PrintWriter out = null;
         try {
         out = new PrintWriter(new FileOutputStream("Shuffledok"), true);
    for (int i=0; i < size(); i++){
              out.println((String)get(i));
    catch(IOException e) {
    e.printStackTrace();
    finally {
         if(out !=null) {out.close();}
    class StringList extends ArrayList{
    public StringList(){
         super();
    public StringList(String "editET.txt") {
         this();
    String line = null;
    BufferedReader in = null;
         try {
         in = new BufferedReader(new FileReader("editET.txt"));
         while((line = in.readLine()) !=null) {
              add(line);
    catch(IOException e){
         e.printStackTrace();
    public void save (String "Shuffledok") {
    FileWriter out = null;
    try {
         out = new FileWriter("Shuffledok");
         for(int i =0; i < size(); i++){
         out.write((String)get(i));
    catch(IOException e){
         e.printStackTrace();
    finally {
         try{out.close();} catch (IOException e) {e.printStackTrace();}
    public void shuffle() {
    Collections.shuffle(this);

    import java.io.*;
    import java.util.*;
    public class Shuffle3 {
    public static void main (String [] args) {
    ShuffleStringList sl = new ShuffleStringList("editET.txt");
    sl.shuffle();
    sl.save("Shuffledok");
    class ShuffleStringList extends StringList {
    public ShuffleStringList(String fileName) {
    super(fileName);
    public void shuffle() {
    Collections.shuffle(this);
    public void save (String target){
    PrintWriter out = null;
    try {
    out = new PrintWriter(new FileOutputStream(target), true);
    for (int i=0; i < size(); i++){
    out.println((String)get(i));
    catch(IOException e) {
    e.printStackTrace();
    finally {
    if(out !=null) {out.close();}
    class StringList extends ArrayList{
    public StringList(){
    super();
    public StringList(String fileName) {
    this();
    String line = null;
    BufferedReader in = null;
    try {
    in = new BufferedReader(new FileReader(fileName));
    while((line = in.readLine()) !=null) {
    add(line);
    catch(IOException e){
    e.printStackTrace();
    public void save (String target) {
    FileWriter out = null;
    try {
    out = new FileWriter(target);
    for(int i =0; i < size(); i++){
    out.write((String)get(i));
    catch(IOException e){
    e.printStackTrace();
    finally {
    try{out.close();} catch (IOException e) {e.printStackTrace();}
    public void shuffle() {
    Collections.shuffle(this);
    }

  • Have a month number but QaaWs query will not run

    If I type in the parameters for the query it runs with no problem, but when I use the MONTH function that returns the month number the query will not run.
    I think the date serial number is what is being passed even though I see a number being display.  Does anyone know how to conver this MONTH() function to a true number?  This is a converted 4.5 model that works just fine, but looks like they tightened things up in 2008.
    Thanks...
    Tom Nather

    Here is how its setup.  I have a QaaWs query that returns the max date, then Excel functions that calculate the date back 13 months.  One of the functions is MONTH() that returns the month number based on a date stored in a cell, not really a true number.
    I added a vlookup that takes the month from a date field (05/31/2008) and looks up the appropriate NUMBER of the month =VLOOKUP(MONTH(K47),M54:M65,1). Find 5 (which is defined as a number.
    This then is applied to the input side for the Qaaws (Month Number = double) using a Paste Link function from the CONTROLS sheet in excel, and the query then works.
    Anything that is a date always seems to be built off of the date serial number so this was the easiest way to get this to work. 
    I think standards have been tightened up using the Flex language vs. what 4.5 was written in, this works in 4.5 without the necessary conversion.

  • Xcode will not compile

    I migrated from Windows C++(Dev C++) to Mac (Xcode) and Xcode will not compile, the command for it is greyed out (not selectable). Even Hello World Wouldn't compile. What am I doing wrong here?
    (this is an empty C++ file that's been opened)

    What kind of application do I want to open for basic C++. I've tried numerous now and I always get at least one error of conflicting commands.

  • Some jsps will not compile FC5+Tomcat

    Hello,
    I cannot compile SOME jsp pages for some reason.
    I have something like this:
    http://www.mydomain.net:8080/WEB/index.jsp - this comiles
    http://www.mydomain.net:8080/WEB/BLAH/BLAH/index.jsp - will not compile where BLAH is a bunch of different folders.
    I have it all working on Win XP. Now I am trying to make it work on FC5.
    I took the page that can compile and moved it to BLAH/BLAH folder and it does not compile now!
    OS: Fedora Core 5 (if it matters)
    What is going on? Any ideas?
    Thanks.

    sure, here it is
    Thanks for help.
    org.apache.jasper.JasperException: Unable to compile class for JSP
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:342)
         org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:248)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    Compile failed; see the compiler error output for details.
         org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:944)
         org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
         org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:216)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

  • Simple Update query Will not work

    I am new to sql and I am doing an update query in access and it will not work, here is the query.
    UPDATE Change Code Master Table SET change code = '0';
    Edited by: 805337 on Oct 26, 2010 8:05 AM

    805337 wrote:
    I am new to sql and I am doing an update query in access and it will not work, here is the query.
    UPDATE Change Code Master Table SET change code = '0';
    Edited by: 805337 on Oct 26, 2010 8:05 AMI'm not at all sure why you are asking an MS Access question on an Oracle forum. Last I heard, Larry had not bought Microsoft yet.
    The MS Access equivalent to double quoting an identifier is square brackets like:
    UPDATE [Change Code Master Table] SET [change code] = '0';John

  • LV 8.6 will Not Compile in LV 2010 - Labview 10.0 Development System Has Encountered a Problem and Needs to Close

    I submitted this support request to NI on 8/12/2010.
    When I compile my LV 8.6 app in LV2010 I get this error:
    "LabVIEW 10.0 Development System has encountered a problem and needs to close.  We are sorry for the inconvenience."
    I was told to do a "Mass Compile" of my LV 8.6 app in LV2010...this failed too.
    I was then told to go to each and every vi and "Mass Compile" individually...after about the 50th vi this got old quickly...and it still didn't compile.  I then sent NI tech support "my code".  The good news is my LV 8.6 app didn't compile with LV2010 @ NI.
    My LV 8.6 app compiles and runs great in LV 8.6.  I don't want to be left behind with the newer upgrades and I want to move to LV2010.  I have lots of LV8.6 code to maintain and I really don't have the time to debug all of my apps.
    I was told this will be looked @ in LV2010 SP1.
    One note...back up your LV8.6 data before you move to LV2010.  Once your LV8.6 code is compiled in LV2010 you will not be able to go back to LV8.6.
    I restored all of my LV8.6 code and I'm back working with LV8.6.
    It's a tough call, do I stay in LV8.6 and get left behind?
    Do I bite the bullet and try to debug this mess in LV2010?
    I was told the compiler is completely different in LV2010.  That's great, but one reason I have NI Maintenance Agreement is to keep updated with the latest software.  I can't afford to re-compile LV code every few years.  Like most people, maintaining my Apps with customer's revisions, and modifications is enough work.  I don't want more work!
    I was told LV2010 SP1 would likely appear in May or June of 2011.  I'd hate to break out my old Turbo Pascal apps again...but hey...they still work!  My NI maintenance agreement is due this month too, I guess I'll pay NI one more year, and see if they come up with a solution.  But if NI doesn't fix this LV8.6 compile in LV2010 problem...I don't see any value staying current with LV software.
    I found another Bug with LV2010...you are going to love this one!
    There is a new "LV Update Service".  Perfect!  I like updating my LV software when new patches are available.  When I click "update" the update spins over and over "Checking for New Version".  I have let it run ALL day with no results...just sits and spins over and over.
    OK, I know give NI a break!  Yes, LV2010 has a new compiler...and Yes, I will renew my NI maintenance agreement.  I just want NI to know failing to compile just one LV8.6 app in LV2010 is not a good idea for customer relations.
    Thanks,
    Doug

    For your update service problem
    Unable to Update Current Version of NI Update Service
    Why am I Unable to Update My Version of NI Update Service in Windows Vista or Windows 7?

  • MS Query will not return results after modification

    Using an ORACLE OBDC link, a msquery will work fine when first set up, but will fail to work when modified.  The query can be reset up with the modified criteria and work fine, however, all links have to be changed to the new table.  Other queries
    will work fine with multiple modifications.  We link to the BANNER database system tables. (when you try to query now, it is as if the query does not run any longer. Results which normally take up to 3 minutes to return, are returned immediately as no
    information)

    Hi,
    Do you get the error message when you Microsoft query fail to work? Which Excel and Oracle version are you using?
    Please try the below workaround to check if it is helpful:
    1. Update the Oracle ODBC drive
    2. Turn Off the Enable Background Refresh Setting
    http://support.microsoft.com/kb/168702/en-us
    Then, we also may be try to use OLEBD instand of the ODBC?
    http://blog.mclaughlinsoftware.com/microsoft-excel/how-to-query-oracle-from-excel-2007/
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Regards,
    George Zhao
    TechNet Community Support

  • NiseCfg library link errors - will not compile working code on replicate system

    i have working software trying to install on a replicate system.    it does not compile on the replicate system.   the problem is nise, niseCfg link errors  for example:  
    Undefined symbol:  '_niseCfg_GetVirtualDeviceProperty@20' referenced in "TestSystem_Config.c"
    originally it complained it couldn't find the nise.h and niseCfg.h header files.   i copied the header and some other object and fp files (yeah, yeah, i know :-/ from my working system to the replicate system (in the NI/Shared/CVI directory path).
    it then found the header file and prototypes but now the undefined link errors.   i have nise.dll in my WIndows System directory.
    Please help.   what do i do to fix this?   thanks!

    The CVI IDE needs to know someway where to find the resources your program is using and this can be done in several ways. One of them is loading the instruments in the Instrument menu: this is valid if your instrument is used in only one project of yours or a few one. Another method, which is useful for insrtument you use intensively in all your projects, is to add them to the Library menu (option Customize...): this will make your libraries and FPs available for every project you are working on without need to explicitly add the instruments to the Instrument menu.
    If you are using an instrument and you don't see it in the project it must be loaded in one of the ways I described before: you can check in the original system which method was used.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • LabVIEW 2013 Fpga will not compile tutorial solutions

    Y'all
    I am working to get the CRIO evaluation software to compile the tutorial solutions.  so far it will not and complains about missing XILINX_EDK (warning.)  Attached is the xilinx log.     (Do I need to reinstall? or what)
    Thanks for help! 
    Sincerely,
    Paul
    Attachments:
    XilinxLog.txt ‏130 KB

    Hi Paul,
    What version of LabVIEW (2013/2013 SP1), LabVIEW FPGA and Xilinx Compile Tools do you have (or are you compiling on an external server)?
    Which example specifically are you trying to compile? You mentioned tutorials, but I'm not sure exactly what example you are referring to.
    Thanks!
    Xavier
    Applications Engineering Specialist
    National Instruments

  • Goods Issue - SQL Query will not sum

    I have 3 Goods Issue documents with Document Total for each document 10,000 / 20,000 / 30,000 subsequently.
    I want to make query so that it will display like below - where it shows BOTH each of 3 document value (10000/2000/30000) AND the sum of the 3 documents (60000) like below.
    Doc 1 - 10,000
    Doc 2 - 20,000
    Doc 3 - 30,000
    Total = 60,000
    In addition, I would like the ability to choose date range. Basically, something like
    SELECT Document_Total
    FROM Goods_Issue table
    WHERE the_document_date is between 1-SEP-2011 and 31-SEP-2011
    AND the_reference_is _________________
    I have tried many SQL queries, but it displayed either:
    Doc 1 - 10,000
    Doc 2 - 20,000
    Doc 3 - 30,000
    OR
    Total = 60,000
    Please help.

    @Hendry Wijaya      @GordonDu   @malhaar
    Thanks for helps. The SQL query you provided solved 99% of the problem. I just need to make a tweak on the SQL so that it could display the total on the footer. See screenshot below - I uploaded the pics at imageshack as I don't find a way to attach pics in here.
    [See here - Total_at_Footer|http://i129.photobucket.com/albums/p213/whitesnowbear/AAAA/Untitled-2.jpg]
    Thanks a bunch.

  • SQL Query will not work in CRXI

    I am using CRXI Developer R2 against an Oracle 9i DB. The following query works in Oracle SQL Developer, but returns no results in Crystal (no errors in Crystal either). Anyone know what is wrong?
    SELECT b1.b1_alt_id,
           b1.b1_per_type,
           issued.status_date IssueDate,
           closed.status_date CloseDate,
           case
           when bc.b1_checklist_comment is null
           then 'No Patch List'
           else bc.b1_checklist_comment
           end PatchList
    FROM   b1permit b1
           INNER JOIN (SELECT b1_per_id1,
                              b1_per_id2,
                              b1_per_id3,
                              status_date
                       FROM   status_history
                       WHERE  status = 'Issued'
                              AND rec_status = 'A'
                              AND status_date BETWEEN '01-JUL-08' AND '31-DEC-08') issued
             ON b1.b1_per_id1 = issued.b1_per_id1
                AND b1.b1_per_id2 = issued.b1_per_id2
                AND b1.b1_per_id3 = issued.b1_per_id3
                AND b1.rec_status = 'A'
                AND b1.b1_per_type = 'Utility'
           LEFT OUTER JOIN (SELECT b1_per_id1,
                                   b1_per_id2,
                                   b1_per_id3,
                                   status_date
                            FROM   status_history
                            WHERE  status = 'Closed'
                                   AND rec_status = 'A') closed
             ON b1.b1_per_id1 = closed.b1_per_id1
                AND b1.b1_per_id2 = closed.b1_per_id2
                AND b1.b1_per_id3 = closed.b1_per_id3
           LEFT OUTER JOIN bchckbox bc
             ON b1.b1_per_id1 = bc.b1_per_id1
                AND b1.b1_per_id2 = bc.b1_per_id2
                AND b1.b1_per_id3 = bc.b1_per_id3
                AND b1.rec_status = bc.rec_status
                AND bc.b1_checkbox_desc LIKE 'Patch List%'

    Hi
    Instead of using this query direct;y, create a view
    as
    CREATE OR REPLACE VIEW V1
    AS
    SELECT <Your query>
    From Oracle client check if view returns desired result by
    select * from <viewName>
    and use that view as a datasource in your report.
    --Kuldeep

  • Portal Report from SQL query will not fill the page irrespective of column width.....

    I'm displaying a report in a portal and if you run in full screen the table does not fill the page.
    I can change the column width from xx percent to xx pixel and nothing makes a difference
    any ideas?

    Hi,
    Which version of portal are you using. This is a bug. It has been fixed in 30984.
    Thanks,
    Sharmila

Maybe you are looking for