Why there is an error

hi all,
here is my code.
create table DC_52 as (
select t.cl_pol_no POL_NO,t.pk_cl_claim_no CLM_NO,t.pk_cl_claim_type CLM_TYPE,
t.cl_claim_status CLM_STS,b.be_ben_no BEN_NO,b.be_ben_type BEN_TYPE,
b.be_ben_sum_assd ANN_BEN,p.pr_pol_pay_mode PAYMODE,
o.po_pol_status POL_STATUS,o.po_pol_pay_method PAY_METHOD
from bbsprod1.cl_claim t, bbsprod1.be_benefit b, bbsprod1.pr_pol_prem p,
bbsprod1.po_policy o
where t.pk_cl_claim_type = 'W' and
t.cl_claim_status = 'ADMT' and
t.cl_pol_no = b.be_pol_no and
t.cl_ben_no = b.be_ben_no and
t.cl_pol_no = p.pr_pol_no and
t.cl_pol_no = o.pk_po_pol_no and
o.po_pol_status in (20, 21, 22, 23, 24 )
order by o.po_pol_status );
tks.

try this.
create table test_table as select ...........
you do not need ().
create table DC_52 as
select t.cl_pol_no POL_NO,t.pk_cl_claim_no CLM_NO,t.pk_cl_claim_type CLM_TYPE,
t.cl_claim_status CLM_STS,b.be_ben_no BEN_NO,b.be_ben_type BEN_TYPE,
b.be_ben_sum_assd ANN_BEN,p.pr_pol_pay_mode PAYMODE,
o.po_pol_status POL_STATUS,o.po_pol_pay_method PAY_METHOD
from bbsprod1.cl_claim t, bbsprod1.be_benefit b, bbsprod1.pr_pol_prem p,
bbsprod1.po_policy o
where t.pk_cl_claim_type = 'W' and
t.cl_claim_status = 'ADMT' and
t.cl_pol_no = b.be_pol_no and
t.cl_ben_no = b.be_ben_no and
t.cl_pol_no = p.pr_pol_no and
t.cl_pol_no = o.pk_po_pol_no and
o.po_pol_status in (20, 21, 22, 23, 24 )
order by o.po_pol_status ;

Similar Messages

  • Why there is a error in this query ?

    why there is a error in this query ?
    declare
    v_exist pls_integer;
    v_search varchar2(255) := '175';
    v_sql varchar2(255);
    begin
    for s in
    (select table_name, column_name
    from user_tab_columns
    where data_type like '%CHAR%'
    order by table_name, column_name)
    loop
    v_sql := 'select count(*) from '||s.table_name||
    ' where instr('||s.column_name||',' || CHR(39)|| v_search|| CHR(39) ||') > 0';
    execute immediate v_sql into v_exist;
    if v_exist > 0 then
    dbms_output.put_line(s.table_name||'.'||s.column_name||' matches the string.');
    end if;
    end loop;
    end;
    Error:
    The following error has occurred:
    ORA-00933: SQL command not properly ended
    ORA-06512: at line 14
    Edited by: user575089 on Dec 23, 2009 4:14 AM
    Edited by: user575089 on Dec 23, 2009 4:14 AM

    See, Right now i am in schema and see below :
    set serveroutput on;
    declare
    v_exist pls_integer;
    v_search varchar2(255) := 'SCOTT';
    v_sql varchar2(255);
    begin
    for s in
    (select '"'||table_name||'"' table_name,'"'||column_name||'"' column_name
    from user_tab_columns
    where data_type like '%CHAR%'
    and table_name not like '%$%'
    order by table_name, column_name)
    loop
    v_sql := 'select count(*) from '||s.table_name||' where instr('||s.column_name||',' || CHR(39)|| v_search|| CHR(39)||') > 0';
    --dbms_output.put_line(v_sql);
    --execute immediate v_sql;
    execute immediate v_sql into v_exist;
    if v_exist > 0 then
    dbms_output.put_line(s.table_name||'.'||s.column_name||' matches the string.');
    end if;
    end loop;
    end;
    "EMP"."ENAME" matches the string.
    "EXCEPTIONS"."OWNER" matches the string.
    "FLOW_TABLE"."OBJECT_OWNER" matches the string.
    "MYEMP"."ENAME" matches the string.
    PL/SQL procedure successfully completed.
    I am getting output; that i search "SCOTT" word in my search string.

  • Can you explain why there is an error at the line   *pStart = *pEnd;

    //program should reverse a given string.
    //Original string is "SAW", and the same string reversed should be "WAS"
    #include <stdio.h>
    #import <string.h>
    int main (int argc, const char * argv[]) {
    // insert code here...
    printf("This program reverses a string without blank spaces.\n");
    char *sentenceArray = "SAW";
    char temp;
    char * pStart, *pEnd;
    pStart = sentenceArray;
    int stringLength = strlen(pStart);
    pEnd = (pStart + stringLength -1);
    printf("\nOriginal sentenceString is: %s", pStart);
    printf("\naddress of pStart:%lu, value: %c", pStart, *pStart);//make sure pointer is at the start
    printf("\naddress of pEnd:%lu, value: %c", pEnd, *pEnd);//ensures pointer is at the end
    while (pStart < pEnd)
    temp = *pStart;
    *pStart = *pEnd;//can somebody explain why this is an error? Thank you.
    *pEnd = temp;
    ++pStart;
    --pEnd;
    printf("\nReversed sentenceString is: %s", sentenceArray);
    return 0;
    //Thank you for your assistance!

    To expand on Keith's answer a bit:
    The problem, as you know, is with this line:
    *pStart = *pEnd;
    So, let's break this down a bit. This statement uses the dereference operator (the asterisk before each pointer) twice, and, as you probably know, the dereference operator allows you to access the value that a pointer points to, instead of accessing the value of the pointer itself (a memory address), which is what you would be accessing if you didn't use the dereference operator.
    So, on the right side of the assignment you have *pEnd, which is basically saying to take the value pointed to by the pointer pEnd and assign in to whatever is on the left side of the assignment, and that's where your problem is -- the left side of the assignment. The *pEnd part is fine, but the +*pStart =+ part is not fine. What you are saying here is to take whatever is on the right side of the assignment (*pEnd) and assign it to the value that is pointed to by the pointer pStart. And, as Keith mentioned, that's your problem. The value that is pointed to by pStart is a string literal ("SAW" here), and a string literal (like any literal) can not have anything assigned to it -- it can not be written to -- it is read-only, as Keith said. And like anything else read-only, this means that it can not be on the left side of an assignment statement, and that's where you have it, so, we get an error.
    The solution, as Keith gave, is to change pStart from a character pointer (which is what you have declared it as) to a character array, like so:
    char sentenceArray[32] = "SAW";
    This will fix your problem.
    Hope this helped some. Pointers are rough business, especially when it comes to character pointers and character arrays and whatnot, and I still don't understand them well by any means, so keep at it. Best of luck!

  • Why there is an error in the billing system even though I have a new charged card?

    I have an Apple account which I need to fill in the billing system via Visa and which I did, but there happend to be a problem where I couldn't update, download or even purchase an app. I assumed there wasn't enough cridet in my internet card so I got a new card with money in it, but it gave me an error saying "There is a billing problem with a previous purchase.". Even though I got a new card it still shows me the same message and when incerting the new card number it tells me "invalid security code". I have contacted the card company to know if the problem is from them but I have updated my account and got this new card but still having same errors. could you help me look what's the problem with the billing system?

    Hi R_Loading,
    You will need to contact iTunes Support:
    https://getsupport.apple.com/GetproductgroupList.action
    Or by email: https://ssl.apple.com/emea/support/itunes/contact.html
    Cheers,
    GB

  • Anyone have any idea why there is an "error" when trying to activate iMessage? It randomly turned itself off and wont go back on.

    This just happened yesterday

    I'd start with the following document, with one modification. At step 12 after typing GEARAspiWDM press the Enter/Return key once prior to clicking OK. (Pressing Return adds a carriage return in the field and is important.)
    iTunes for Windows: "Registry settings" warning when opening iTunes

  • Hello I am just wondering why there is a message of error 1004 when i tryed to make the update on my apps. Does someone know what it means?

    Hello I am just wondering why there is a message of error 1004 when i tryed to make the update on my apps. Does someone know what it means?

    Yes, many know what this means.  You can too.  Just type in "error 1004" in the search box at the top of this page.  Or, just look to the right.  You'll find many links in the "More Like This" box. 
    Always good forum etiquette to search for previous posts on the topic before posting.

  • HT1725 Why cant download from apple store? "There was an error in the App Store. Please try again later. (100)"

    Why cant i download application from apple store, they said :There was an error in the App Store. Please try again later. (100) and they suggest : Contact iTunes Support at http://www.apple.com/uk/support/itunes/ for assistance. pls help me

    Why cant i download application from apple store, they said :There was an error in the App Store. Please try again later. (100) and they suggest : Contact iTunes Support at http://www.apple.com/uk/support/itunes/ for assistance. pls help me

  • Why am I receiving an unknown error message when try to upgrade OS 10.8 to Yosemite?  It also says "There was an error in the App Store. Please try again later (4)."

    Why am I receiving an "unknown error message" when I attempt to upgrade my X OS from 10.8 to Yosemite?  It says "There was an error in the App Store. Please try again later (4)."  This happens only when I check for updates/upgrades for my software and then try to upgrade Yosemite in the App Store. Thanks for any help!

    Hi.
    I'm having the same problem. Could you tell me how you resolved it.
    Thanks
    Aliquatpat.

  • Why do I get this error when trying to use my bluetooth headset as a listening device? There was an error connecting to your audio device. Make sure it is turned on and in range. The audio portion of the program you were using may have to be restarted.

    Why do I get this error when trying to use my bluetooth headset as a listening device? There was an error connecting to your audio device. Make sure it is turned on and in range. The audio portion of the program you were using may have to be restarted.

    I may have already resolved this issue buy removing the device from my computer and re-pairing it. It is currently working just fine.

  • Seriously, this issue is really annoying. why wont my songs download? it wont stop saying there is an error. this needs to be fixed. refund or apple needs to put these songs in my itunes manually if that can be done.

    seriously, this issue is really annoying. why wont my songs download? it wont stop saying there is an error. this needs to be fixed. refund or apple needs to put these songs in my itunes manually if that can be done.

    seriously, this issue is really annoying. why wont my songs download? it wont stop saying there is an error. this needs to be fixed. refund or apple needs to put these songs in my itunes manually if that can be done.

  • HT204406 Itunes Match won't upload. I get error stating there was an error in the itunes store, please try again. I have tried again everyday for the last month and am still unable to use.  Any ideas on why Match can't complete the 1st step of the process

    Itunes Match won't upload. I get error stating there was an error in the itunes store, please try again. I have tried again everyday for the last month and am still unable to use.  Any ideas on why Match can't complete the 1st step of the process (Gathering information about your Itunes library)?

    JohnCullison wrote:
    For the last few weeks, the iTunes store has been displayed with empty graphic rectangles (with a blue box containing a white question mark centered in the rectangles), bits of text, and some buttons. The page extends quite a ways, including what I assume would be all the links to all the music...
    If all you are trying to do is buy music, you can easily buy MP3s at any online music download store (e.g. amazon.com) and add them to your iTunes library.

  • There was an error opening the database for the library "/Users/stacia134/Pictures/Aperture Library.aplibrary".  Why am I getting this message and how do I correct it so that I can open Aperture????  any suggestions would be most appreciated

    There was an error opening the database for the library “/Users/stacia134/Pictures/Aperture Library.aplibrary”.  Why am I getting this message and how do I correct it so that I can open Aperture????  any suggestions would be most appreciated

    Then I'd check the system drive, if it has problems.
    To check your System drive boot into the Recovery Partition, see: OS X Lion: About Lion Recovery
    Restart your Mac and hold down the Command key and the R key (Command-R), and keep holding them until the Apple icon appears, indicating that your Mac is starting up.
    You will see a panel, where you can use Disk Utility to check your System Drive.

  • Why there are differences in error table definitions?

    Why there are differences in error table definitions?
    We are using OWB repository 10.2.0.3.0 and OWB client 10.2.0.3.33. The Oracle version is 10 G (10.2.0.3.0). OWB is installed on Linux.
    I created a error table using DBMS_ERRLOG.CREATE_ERROR_LOG in databse.
    Here is the layout.
    =========
    ORA_ERR_NUMBER$
    ORA_ERR_MESG$
    ORA_ERR_ROWID$
    ORA_ERR_OPTYP$
    ORA_ERR_TAG$
    PROJECT_ID
    DESCRIPTION
    PROJECT_TYPE
    CREATION_DATE
    ===========
    I imported the table metadata into OWB. As I used the table in mapping using table operator, I am not able to see ERR group in table object of mapping.
    How do we bring manually created error table metadata into OWB? Is it feasible?
    I specified data rule/shadow table for imported table using object editor. I deployed the table via CC.
    Here is the layout from deployed ERROR table from DB
    +++++++++++++
    ORA_ERR_NUMBER$
    ORA_ERR_MESG$
    ORA_ERR_ROWID$
    ORA_ERR_OPTYP$
    ORA_ERR_TAG$
    ERR$$$_AUDIT_RUN_ID
    ERR$$$_AUDIT_DETAIL_ID
    ERR$$$_ERROR_ID
    ERR$$$_ERROR_REASON
    ERR$$$_SEVERITY
    ERR$$$_OPERATOR_NAME
    ERR$$$_ERROR_OBJECT_NAME
    PROJECT_ID
    DESCRIPTION
    PROJECT_TYPE
    CREATION_DATE
    ++++++++++++
    Why there are differences in error table definitions?
    As I used the table in mapping using table operator, I am not able to see ORA_ERR_NUMBER$ , ORA_ERR_MESG$ , ORA_ERR_ROWID$ , ORA_ERR_OPTYP$ , ORA_ERR_TAG$ in ERR group in table object of mapping.
    Are there any additional steps/process?
    Any idea ?
    Thanks in advance.
    RI

    There are columns for data rule errors (logical errors) and DML errors (physical errors), I think you probably have data rules on the table..?
    To process DML errors you will have to add the error table into a map you may have to reverse engineer it). The error group behavior is only available for processing errors from tables with data rules. Ensure your table operator is synchronized with your design table.
    http://blogs.oracle.com/warehousebuilder/newsItems/viewFullItem$184
    Cheers
    David

  • TS3694 why while updating my software there's a error 21 and the iphone get disconnected?

    why while updating my software there's a error 21 and the iphone get disconnected?

    Error 20, 21, 23, 26, 28, 29, 34, 36, 37, 40
    These errors typically occur when security software interferes with the restore and update process. FollowTroubleshooting security software issues to resolve this issue. In rare cases, these errors may be a hardware issue. If the errors persist on another computer, the device may need service.
    Also, check your hosts file to verify that it's not blocking iTunes from communicating with the update server. See iTunes: Advanced iTunes Store troubleshooting—follow steps under the heading Blocked by configuration (Mac OS X / Windows) > Rebuild network information > Mac OS X > The hosts file may also be blocking the iTunes Store. If you have software used to perform unauthorized modifications to the iOS device, uninstall this software prior to editing the hosts file to prevent that software from automatically modifying the hosts file again on restart.

  • I have a Nikon 300S. It is set to NEF(RAW) + JPEG fine. When I import to Lightroom I get message "There was an error working with the photo? Does anyone know why or how to correct?

    Nikon 300S. It is set to NEF(RAW) + JPEG fine. When I import to Lightroom I get message "There was an error working with the photo? Does anyone know why or how to correct?

    I don't know the answer, personally, because I don't use Lightroom. This is the Camera Raw forum.
    Someone here might answer your question, as there are a lot of clever people here, but, if not, you might try here:
    Photoshop Lightroom

Maybe you are looking for

  • My ipod touch 4th gen skips certain songs in my playlists.

    I have all the most recent software updates and I've looked this up in the support section.  It talked about this problem being related to music imported from CDs, but I'm having this problem with music downloaded form itunes.

  • Macbook a1181 display blanks out replaced the lcd inverter still blanking out

    Replaced inverter still blanking out.

  • Date conversion

    hi all, I am trying to extract the data from the flat file. and those fields have the 200707  which need to be converted to 072007 20073 which need  to be converted to 32007 and upload it to info package. How to write routine for this. thanxs haritha

  • [JS] ScriptUI - URL Links in Dialogues

    HI. I have a left field question, is it possible to put a hyperlink to a web URL in a scriptUI window? I have some video tutorials that I want to be able to link to from the UI and at the moment all I can do is have a button going to a new alert/prom

  • CS4 Playback Settings

    I can set the External Device to my DV monitor, but the Program Monitor in PP CS4 freezes. Tried all the different settings, what am I missing? Both played in CS3 and just upgraded to CS4. Thanks