Invalid message of 'relational operator.

By PLSQL Code...

I am trying to run the queries below and keep, give a message invalid relational operator. When you click OK, the cursor flashes right in front of the equal sign on the highlighted line following:

and (grp00.grp00_rerate_month = 2
(or TO_DATE (TO_CHAR (grp00.grp00_stat_eff_date), 'MM')) = '2')

Here is the code all that the foregoing is a part, is in the last criteria clauses... I think it has something to do with my bracket? Also the code below is it correct? I tried to get the criteria month February (2 months). I think the TO_DATE function requires a date string, so I tried to convert by using the TO_CHAR. Then I thought that the result would be the result of the string, so I put in quotes. Is this correct?

Thanks for any help...

SELECT me607.subscriber_id,
me607.person_id,
me607.elig_start_date,
me607.elig_end_date,
me607.mbr_type,
me607.last_name,
me607.first_name,
me607.address_1,
me607.address_2,
me607. City,
me607. State,
me607.zip,
me607.zip_4,
me607.county_name,
me607.member_ssn,
grp00.grp00_org_suid,
grp00.grp00_grp_id,
grp00.grp00_name,
grp00.grp00_rerate_month,
grp00.grp00_stat_eff_date,
grp00.grp00_stat_code,
grp15.grp15_rmc_desc product,
grp06.grp06_cov_code,
MAX (DECODE (grp07_benefit_plan_type, "MEDICAL", grp07_benefit_plan)) AS pc_med,
MAX (DECODE (grp07_benefit_plan_type, 'DRUG', grp07_benefit_plan)) AS pc_drg
of 607_mbr_exp me607,.
grp00_master grp00,
grp15_grp_codes grp15,
grp06_grp_cov grp06,
grp07_cov_ben grp07
where me607.group_id = grp00.grp00_grp_id
and me607.rmc_code = grp15.grp15_rmc
and grp00.grp00_grp_id = grp06.grp06_grp_id
and grp07.grp07_cov_code = grp06.grp06_cov_code
and grp00.grp00_rmc_2 in (',' MP ',' MS', 'MX')
and grp06.grp06_cov_eff_date < sysdate
and grp06.grp06_cov_exp_date > sysdate
and me607.elig_start_date < sysdate
and me607.elig_end_date > sysdate
and (grp00.grp00_stat_code = 'A'
or grp00.grp00_stat_code = 'C '.
and grp00.grp00_stat_eff_date > sysdate)
and (grp00.grp00_rerate_month = 2
(or TO_DATE (TO_CHAR (grp00.grp00_stat_eff_date), 'MM')) = '2')
Group
me607.subscriber_id,
me607.person_id,
me607.elig_start_date,
me607.elig_end_date,
me607.mbr_type,
me607.last_name,
me607.first_name,
me607.address_1,
me607.address_2,
me607. City,
me607. State,
me607.zip,
me607.zip_4,
me607.county_name,
me607.member_ssn,
grp00.grp00_org_suid,
grp00.grp00_grp_id,
grp00.grp00_name,
grp00.grp00_rerate_month,
grp00.grp00_stat_eff_date,
grp00.grp00_stat_code,
grp15.grp15_rmc_desc,
grp06.grp06_cov_code;

To_char (grp00.grp00_stat_eff_date, 'MM') = '02'

SELECT me607.subscriber_id,
me607.person_id,
me607.elig_start_date,
me607.elig_end_date,
me607.mbr_type,
me607.last_name,
me607.first_name,
me607.address_1,
me607.address_2,
me607.city,
me607.state,
me607.zip,
me607.zip_4,
me607.county_name,
me607.member_ssn,
grp00.grp00_org_suid,
grp00.grp00_grp_id,
grp00.grp00_name,
grp00.grp00_rerate_month,
grp00.grp00_stat_eff_date,
grp00.grp00_stat_code,
grp15.grp15_rmc_desc product,
grp06.grp06_cov_code,
MAX(DECODE(grp07_benefit_plan_type,'MEDICAL ',grp07_benefit_plan)) AS pc_med,
MAX(DECODE(grp07_benefit_plan_type,'DRUG ',grp07_benefit_plan)) AS pc_drg
from 607_mbr_exp me607,
grp00_master grp00,
grp15_grp_codes grp15,
grp06_grp_cov grp06,
grp07_cov_ben grp07
where me607.group_id = grp00.grp00_grp_id
and me607.rmc_code = grp15.grp15_rmc
and grp00.grp00_grp_id = grp06.grp06_grp_id
and grp07.grp07_cov_code = grp06.grp06_cov_code
and grp00.grp00_rmc_2 in ('M','MP','MS','MX')
and grp06.grp06_cov_eff_date < sysdate
and grp06.grp06_cov_exp_date > sysdate
and me607.elig_start_date < sysdate
and me607.elig_end_date > sysdate
and (grp00.grp00_stat_code = 'A'
or grp00.grp00_stat_code = 'C'
and grp00.grp00_stat_eff_date > sysdate)
and (grp00.grp00_rerate_month = 2
or TO_CHAR(grp00.grp00_stat_eff_date,'MM') = '02')
group by
me607.subscriber_id,
me607.person_id,
me607.elig_start_date,
me607.elig_end_date,
me607.mbr_type,
me607.last_name,
me607.first_name,
me607.address_1,
me607.address_2,
me607.city,
me607.state,
me607.zip,
me607.zip_4,
me607.county_name,
me607.member_ssn,
grp00.grp00_org_suid,
grp00.grp00_grp_id,
grp00.grp00_name,
grp00.grp00_rerate_month,
grp00.grp00_stat_eff_date,
grp00.grp00_stat_code,
grp15.grp15_rmc_desc,
grp06.grp06_cov_code;

Max

Tags: Database

Similar Questions

  • Invalid relational operator error.

    Hello

    What is the problem with this query? I'm getting ORA-00920: invalid relational operator error.

    SELECT *.

    TEMP

    WHERE FLAG_Y = 1 AND (FLAG_N IS NOT NULL

    OR FLAG_K NOT NULL)

    Thank you

    you just forgot the IS before the second NOT NULL...

    HTH

  • Case with where clause - ORA-00920: invalid relational operator

    Hi all, when I try to run the following query, I get the following error...

    ORA-00920: invalid relational operator

    00920 00000 - "invalid relational operator.

    * Cause:

    * Action:

    Error on line: column 16: 5

    Anyone know what the problem with my request? Thanks in advance.

    SELECT concat (year, period)

    OF DD_ACTUALS_FACT

    CASE WHERE period

    WHEN 'JAN' THEN '01'

    WHEN 'FEB' THEN '02'

    WHEN 'MAR' THEN ' 03 "

    WHEN "APR" THEN ' 04 "

    WHEN 'CAN' THEN ' 05 "

    WHEN "JUN" THEN '06'

    WHEN 'JUL' THEN '07'

    WHEN 'AUG' THEN '08'

    WHEN 'MS' THEN '09'

    WHEN 'OCT' THEN '10'

    WHEN 'NOV' THEN '11'

    WHEN 'DEC' THEN '12'

    END as number 'months '.

    ORDER OF CONCAT (year, number 'months') / / DESC

    The problem is the number 'month' - you cannot give an "ACE" alias for an expression in a where clause clause.

    You have not really given any condition, that a set of translations of period in a number.

    Also, you didn't say what you're trying to do.

    Maybe you want to:

    SELECT concat (year, period)

    OF DD_ACTUALS_FACT

    WHERE something

    ORDER OF CONCAT (year, period of the CASE

    WHEN 'JAN' THEN '01'

    WHEN 'FEB' THEN '02'

    WHEN 'MAR' THEN ' 03 "

    WHEN "APR" THEN ' 04 "

    WHEN 'CAN' THEN ' 05 "

    WHEN "JUN" THEN '06'

    WHEN 'JUL' THEN '07'

    WHEN 'AUG' THEN '08'

    WHEN 'MS' THEN '09'

    WHEN 'OCT' THEN '10'

    WHEN 'NOV' THEN '11'

    WHEN 'DEC' THEN '12'

    END DESC)

    /

  • Cannot send mail with attachment from message reads the operation failed an object could not be found

    Unable to send an email with a photo attachment. Once all the steps to configure the e-mail was followed and press on send, the message reads 'the operation failed.  An object cannot be found.

    Hello

    Welcome to the Microsoft Answers site. Please take a look at the following address:
    http://support.Microsoft.com/kb/312354/en-us
    If only it was not fixed, so it's more probablyy caused by an Antivirus/Firewall. Symantec Antivirus seems to cause this issue often (as well as other AVs). In this case, try to disable the mailscanner in your Antivirus and see if that solves the problem. Or disable the Antivirus add-ins related via Outlook. See here how to proceed:
    http://Office.Microsoft.com/en-us/Outlook-help/enable-or-disable-add-ins-in-Office-programs-HA010034127.aspx#BM9

    I hope this helps.

  • Silverlight-during the installation receives an invalid message of (1) data for image corrupted and checksum (2). It is a Mac.

    Silverlight-during the installation receives an invalid message of (1) data for image corrupted and checksum (2). It is a Mac.

    Anyway to install Silverlight on a Mac. Use with Netflix
    pprimm

    http://www.Silverlight.NET/

    Silverlight forums: http://forums.silverlight.net/

    -steve

  • I tried to install windows vista on my laptop but I m unable to start because of a message error loading operating system.

    I tried to install windows vista on my laptop but I m unable to start because of a message error loading operating system. good quick response.

    Hello

    You need to change the Boot order to make the DVD/CD drive 1st in the boot order:

    How to change the Boot order in BIOS:

    http://pcsupport.about.com/od/fixtheproblem/SS/bootorderchange.htm

    Here's how to do a clean install of Vista:

    "How to do a clean install and configure with a full Version of Vista '

    http://www.Vistax64.com/tutorials/117366-clean-install-full-version-Vista.html

    See you soon.

  • cannot follow the links-error message said "this operation has been cancelled due to restrictions in effect on this computer"

    cannot follow the links-error message said "this operation has been cancelled due to restrictions in effect on this computer

    Hello

    1 are. what links you referring?
    2 are. links to which application you referring?
    3. what browser do you use to open the links?

    Your question does contain all the required information necessary for us to help you. Please re - write your question, this time make sure you have all the information necessary and we will try to help.

    http://support.Microsoft.com/kb/555375

  • When you try to add a network route with the "route add" command in the command line, I get the message "the requested operation requires a rise."

    Elevation required to route add command

    When you try to add a network route with the "route add" command in the command line, I get the message "the requested operation requires a rise."  What is the correct syntax to use?

    You can watch using the PowerShell...

    http://TechNet.Microsoft.com/en-us/library/bb978526.aspx

    http://TechNet.Microsoft.com/en-us/scriptcenter/dd742419.aspx

    .. .and post questions about Windows PowerShell forum...

    http://social.technet.Microsoft.com/forums/en/winserverpowershell/threads

  • ACS 5.4 EAP - TLS: the system of null or invalid message met CSCOacs_Internal_Operations_Diagnostics 31201

    Hi all

    I am trying to configure wireless with 802.1 x, authetication in the EAP - TLS computer with digital certificates, but it does not work.

    It runs on ACS 4.2.

    The message is ACS CA is not known, but it is configured correctlry.

    I have a "Wireless" accesses with identity store AD1 policy. I also tried to set up CN, SAN and a lot of identity store sequences, same results.

    At the time of authentication, I also see this log message:

    System encountered null or invalid message

    CSCOacs_Internal_Operations_Diagnostics

    31201

    I could be associated to?

    Can someone help me?

    THX,

    Andrea

    I see the certificates installed have been already expired.

    Regarding your second question, where do you see a mistake. I suspect a defect.

    CSCtw48906    Error due to an empty message (vector buffer), sent to the enforcement process

    Symptom: An Error Message is seen inlogs: message of the ERROR encountered CSCOacs_Internal_Operations_Diagnostics 31201 null or invalid system

    Conditions: ACS 5.2

    Solution: The issue is cosmetic. This message can be ignored.

    Under the guidance of the Director, this occors error when a message empty (vector buffer) that was sent to the runtime on the message Bus and it seems to be "cosmetic" question

    In default, debugging is attached. If you wish, you can activate the debbuging level performance logs and match symptoms.

    Here are the steps to generate support bundle.

    ACS / admin # acs - config

    Escape character is CNTL/D.

    Username: acsadmin

    Password:

    ACS/admin(config-ACS) #.

    Set logging for debug mode.

    ACS/admin(config-ACS) # debug level to debug-log duration

    ACS/admin(config-acs) #exit

    Collect the beam of support after reproducing the problem.

    Jatin kone

    -Does the rate of useful messages-

  • Whenever I try to download I get this error message "a socket operation was attempted to an unreachable network. "This means that the local software knows no route to reach the remote host.

    Hi all

    I use windows 7. whenever I try to download I get this error message "a socket operation was attempted to an unreachable network. "This means generally that the local software knows no route to reach the remote host" what does that mean?  help solve this problem. Thank you '.
     
    Original title: proxy error

    Hello

    The question you posted would be better suited to the TechNet community. Please visit the link below to find a community that will provide the support you want.

    http://social.technet.Microsoft.com/forums/en-us/categories

    Hope this information is useful.

  • How to use a stringfield as relational operator?

    Hello

    I try to use a stringfield as a relational operator. What I have:

    ID STR01 STR02 STR03 AMOUNT
    1AG< =.30000
    2AG>30000

    I want to get the ID of the line where ' if registered between STR01 and STR02 and 45000 is more then 30000 where I want to use the value in STR03 as relational operator in the SQL statement. So in this case the result should be ID 2.

    The SQL should look like

    SELECT ID FROM T WHERE has ' > = STR01 and had ' < = STRO02 AND 45000 STR03 AMOUNT

    the stringvalue in STR03 is used as relational operator to determine whether the 45000 is lower or equal to 30000 (ID 1) or if 45000 is superior to 30000 (ID2).

    Does anyone has an idea to solve my problem?

    Concerning

    Carsten

    You can do this with a CASE statement in the WHERE clause, for example

    WITH data AS (
      SELECT 1 AS id, 'A' AS str01, 'G' AS str02, '<=' AS str03, 30000 AS amount FROM DUAL
      UNION ALL
      SELECT 2 AS id, 'A' AS str01, 'G' AS str02, '>' AS str03, 30000 AS amount FROM DUAL
    )
    SELECT id
    FROM   data
    WHERE  'D' >= str01
    AND    'D' <= str02
    AND   (
           45000 <= CASE WHEN str03 = '<=' THEN amount END
      OR   45000 >  CASE WHEN str03 = '>' THEN amount END
    );
    
  • Certification of storage - tests failed with the "VM is in an invalid POWER State for operation"

    The LunReset TargetReset testing and Certification VMware Ready storage has failed with the following error:

    [< Timestamp > TESTHASH] [0] ERROR: cannot run processSetup for configuration: cannot run handleHostVMObj for configuration: RC: 7149 ErrDesc: VM is in an invalid POWER State for operation: ErrMsg: VM is in an invalid POWER State for operation: receiving Exception: com.vmware.qa.staf.common.EOperationFailed Trace: com.vmware.qa.staf.vc.vm.STAFVirtualMachine.checkAllowedCurrentPowerState(STAFVirtualMachine.java:1762) # com.vmware.qa.staf.vc.vm.STAFVirtualMachine.powerOn(STAFVirtualMachine.java:392) # com.vmware.qa.staf.vc.vm.VMSTAFService.handlePowerOn(VMSTAFService.java:4169) # com.vmware.qa.staf.vc.vm.VMSTAFService.acceptRequest(VMSTAFService.java:468) #.


    [< Timestamp > TESTHASH] [0] ERROR: cannot run processSetup for configuration: cannot run handleHostVMObj for configuration: RC: 7149 ErrDesc: VM is in an invalid POWER State for operation: ErrMsg: VM is in an invalid POWER State for operation: receiving Exception: com.vmware.qa.staf.common.EOperationFailed Trace: com.vmware.qa.staf.vc.vm.STAFVirtualMachine.checkAllowedCurrentPowerState(STAFVirtualMachine.java:1762) # com.vmware.qa.staf.vc.vm.STAFVirtualMachine.powerOn(STAFVirtualMachine.java:392) # com.vmware.qa.staf.vc.vm.VMSTAFService.handlePowerOn(VMSTAFService.java:4169) # com.vmware.qa.staf.vc.vm.VMSTAFService.acceptRequest(VMSTAFService.java:468) #.



    What can be done to fix this?


    TIA

    Try turning off all your test vm1 ~ vm16 initially. then run the test.

  • Formula is invalid and, possibly, missing operator

    Hello:

    In a new generation of report with analytics, I need a new line ('Custom formula in a calculated item) than the sum of the two operands and after that I have multiply by (-1) to the converter has a negative value I m getting the error:

    Formula is invalid and, possibly, missing operator

    This is the formula:

    ('Fixed load {Nivel04} '+' operating expenses and others - Fixed {Nivel03}') *(-1)

    Furthermore, the items belong to a hierarchy.

    When I change the value (-1) (1), do not get the error.

    can you share error screen? just in case try

    A + (B *-1)

    or the always less than A case then B

    B.-A.

  • Why do I get the message that my operating system is not supported?

    My computer is running Windows 7-64 bit. I have the latest softwear on my iPhone and my iPad. I installed edge inspect on these devices and have the advantage of Google Chrome to inspect the installed extension. I have enter my password strengthened for both devices in the Chrome extension. Why do I get the message that my operating system is not yet supported?

    It's VERY interesting... even if I got this weird message, once I connected my iPhone and my iPad to the extension of Google, it worked! See all what I automatically in Google Chrome displays in the application of edge inspect on small devices. It's clean! The only problem I see is that Adobe needs to replace the error message with information about the use of the application.

  • ORA-00920: invalid relational operator

    SELECT PATIENT_FILE_NO,PATIENT_NAME,START_DATE,END_DATE,AGE,GENDER,ATTENDANCE_TYPE,PATIENT_CATEGORY,EPISODE_NO,VISIT_ID,ORGANIZATION_NO FROM (SELECT PM.PATIENT_FILE_NO,
                                   PE.EPISODE_NO,
                                   DECODE(CURRENT_LANG_P_S,'P', PATIENT_NAME_P  ||' '||PATIENT_NAME_2_P||' '||
                                                                                     PATIENT_NAME_3_P||' '||PATIENT_NAME_F_P,
                                                                                     PATIENT_NAME_S  ||' '||PATIENT_NAME_2_S||' '||
                                                                                     PATIENT_NAME_3_S||' '||PATIENT_NAME_F_S ) PATIENT_NAME ,                                                              
                                   EXSYS.GET_AGE(PM.DATE_OF_BIRTH,SYSDATE) AGE ,
                                   CODES_PKG.GET_DESCRIPTION(PM.GENDER,103) GENDER,
                                   CODES_PKG.GET_DESCRIPTION(PM.PATIENT_CATEGORY,110) PATIENT_CATEGORY,                               
                                   PE.ATTENDANCE_TYPE  ,
                                   PE.START_DATE       ,
                                   NVL(PE.END_DATE,PA.CLINICAL_DISCHARGE_DATE)END_DATE , 
                                   PE.ORGANIZATION_NO,
                                   MR.VISIT_ID 
                            FROM   RC_PATIENTS             PM,
                                   RC_PATIENT_EPISODES     PE,
                                   AD_PATIENT_ADMISSIONS   PA    ,
                                   MR_PATIENT_VISITS             MR                    
                            WHERE  PM.PATIENT_FILE_NO              =PE.PATIENT_FILE_NO                        
                            AND    PE.ADMISSION_NO                 =PA.ADMISSION_NO
                            AND      PM.PATIENT_FILE_NO                          =MR.PATIENT_FILE_NO
                            AND    PE.STATUS                      != 'C'
                            AND    PM.PATIENT_FILE_NO              =NVL('',PM.PATIENT_FILE_NO)              
                            AND    PA.CLINICAL_DISCHARGE_DATE IS NOT NULL
                            AND    TRUNC(PA.CLINICAL_DISCHARGE_DATE)     BETWEEN '25-05-14' AND '25-05-14'                        
                            AND    PE.PRIMARY_ELIGIBILITY          ='Y'
                            AND    PE.ATTENDANCE_TYPE         M    in ('I','D')                        
                            and    '12226' IN  (SELECT RCST1.STAFF_ID
                                                                    FROM   RC_CLINICAL_TEAMS            RCTE,                              
                                                                           RC_CLINICAL_TEAM_STAFF       RCST,
                                                                           RC_CLINICAL_TEAM_STAFF       RCST1 
                                                                   WHERE   RCTE.CLINICAL_TEAM_ID =RCST.CLINICAL_TEAM_ID
                                                                     AND   RCTE.CLINICAL_TEAM_ID =RCST1.CLINICAL_TEAM_ID                                                                 
                                                                     AND   RCTE.WARD_ALLOCATION  ='Y'
                                                                     AND   RCST.STAFF_ID         =PE.DOCTOR_ID                                         
                                                                     AND   trunc(PE.start_date)   BETWEEN RCTE.APPLIES_START AND nvl(RCTE.APPLIES_END,trunc(PE.start_date))
                                                                     AND   trunc(PE.start_date)   BETWEEN RCST.APPLIES_START AND nvl(RCST.APPLIES_END,trunc(PE.start_date))))
                                                                     AND      PE.DOCTOR_ID IN ('1' ,'11906' ,'13074' ,'12767' ,'11903' ,'11904' ,'12495' ,'11905' ,'11939'))  order by PATIENT_NAME
    

    When I run this code, I am facing this error?

    where the operator that he speaks?

    Thank you, I had.

    There is the letter "M" next to the "attendance_type column.

    Thank you

Maybe you are looking for

  • Satellite Pro 4600 - upgrade processor

    Anyone know what that the processor spec max that I can fit a Satellite pro 4600.Its a Cel700 earlier and I was hoping it would take a p3 1 GHz or equivalentAnyone know what the exact specification of the processor there number bus speed model number

  • Center Apple brick my phone

    I replaced my iphone screen 6 myself. After the replacement, everything works except contact ID. I sent my phone Apple center, hoped that they could fix my Touch ID number. In the end, I was charged on an unauthorized change, and my phone was bricked

  • (Redirected) V525w printer communicates only with the PC

    Printer can do test page, photocopy, but nothing print Word, Open Office, mail I've been online for two hours with Dell support who tried "everything" without success. I tried to change the USB cord but no help. To complicate matters, I can't find th

  • HYPERLINKS IN EMAILS RECEIVED

    Good afternoon WHEN I CLICK ON A HYPERLINK IN THE BODY OF N RCIVED SEND IT BACK IS NOT OPEN IN INTERNET EXLORER.  IT SERVES the South Africa Patricia

  • BSOD locale ID: 4105. Help!

    So I got a new PC around Christmas, and since then he has BSOD'ed from time to time.  Not the BSOD I'm used to seeing tho, it just stops and then starts again.  Then once I log in, it tells me there was a dump file that is created.  He has not a patt