How to use as operator for several values

Hi all

I want to obtain the column values for the column - filed_name which ends by ('X 1', 'X 2' 'X 3' 'X 4' 'X 5' 'X 0' 'XA' 'XB' "XM" "XP" 'X' "CM" "MT") of the variable_info table


I tried to use as shown below

SELECT * FROM VARIABLE_INFO WHERE FieldName like (' %x 1 "," %X 0 ");

but getting error
ORA-00907: lack of right parenthesis

can someone tell me how to use as operator for multiple values?

Thank you/kumar

You need not a subquery, just make sure that you use parentheses to group your GOLD requirements

SELECT RELATION ,
FIELD_NAME ,
ATTRIBUTE ,
FIELD_DESCRIPTION,
SOURCE
FROM VARIABLE_INFO
WHERE RELATION NOT IN ( 'CHAI',  'ITAB', 'ITB2', 'ITB3', 'MINI', 'NOTE', 'MINC', 'FINI', 'FTIM', 'FWTG', 'FMLY', 'FMIS', 'FSUM', 'MEMB' ,'FINC', 'FASO')
AND (SUBSTR(FIELD_NAME,-2) in ('X1', 'X2' ,'X3', 'X4', 'X5', 'X0', 'XA', 'XB', 'XM' ,'XP' ,'CM','MT')
  OR substr(FIELD_NAME,-1) in ('X')
  OR substr(FIELD_NAME,1) in ('J')
  )
AND (ATTRIBUTE LIKE 'NUM%' OR ATTRIBUTE = '-') ;

The error you are getting sounds like a problem with the definition of VARIABLE_INFO. It seems the synonym or something that it points to rear edge

For example:

CREATE SYNONYM X FOR DUAL;
CREATE SYNONYM Y FOR X;
CREATE OR REPLACE SYNONYM X FOR Y;
SELECT * FROM Y;

SQL Error: ORA-01775: looping chain of synonyms

Kind regards
Bob

Tags: Database

Similar Questions

  • How to use ab ObjectType for maintain values in a stored procedure

    Hello

    I use oracle 10g and oracle sql developer as user interface. I have an object of that type is created like this.

    create or replace
    TYPE T_T_PARTY_REQUEST_IDENTIFIER
    AS THE T_O_PARTY_REQUEST_IDENTIFIER TABLE;

    create or replace
    TYPE T_O_PARTY_REQUEST_IDENTIFIER
    AS AN OBJECT
    (
    NUMBER OF REQUEST_IDENTIFER (13, 0)
    )

    I want to use it in the stored procedure. so I set a variable like this and

    V_T_T_PARTY_REQUEST_IDENTIFIER T_T_PARTY_REQUEST_IDENTIFIER: = T_T_PARTY_REQUEST_IDENTIFIER (null);

    tried to insert the value

    SELECT PR. PRTY_RQST_ID IN V_T_T_PARTY_REQUEST_IDENTIFIER
    OF prty_rqst pr
    I am getting following error.

    Procedure CTH_USER. RETRIEVE_PARTY_REQUEST@CTH_ME
    Error (183.9): PL/SQL: statement ignored
    Error (183,16): PL/SQL: ORA-00932: inconsistent data types: expected UDT got the NUMBER

    Can someone help me on this. I have very little knowledge of PL/sql.

    Thanks in advance

    Christian mud
    DECLARE
       lv_t_party   tt_tester := NEW tt_tester ();
       lv_o_party   to_tester := NEW to_tester (NULL);
    BEGIN
       FOR i IN (SELECT     LEVEL a
                       FROM DUAL
                 CONNECT BY LEVEL < 10)
       LOOP
          lv_t_party.EXTEND (1);
          lv_o_party.request_identifer := i.a;
          lv_t_party (1) := lv_o_party;
          DBMS_OUTPUT.put_line (lv_o_party.request_identifer);
       END LOOP;
    END;
    

    -check the code above, I fixed it

    Kind regards
    friend

    Edited by: most wanted! on March 18, 2013 01:57

  • How to use between operator in Disqualification without using the script processor?

    Hello Experts,

    How to use between operator in Disqualification? for example phonenumberLength between 7 and 10. I don't want to use the script processor? Also how to reproduce the SWITCH statement Disqualification CASE?

    Thank you

    Konate

    1 Add a processor 'check the length.

    2. connect the transformer and open the configuration dialog box

    3. in the tab 'Attributes' select your attribute of telephone number as the "field Check.

    4. in the tab "Options", enter "7-15"in the option 'number of valid characters.

    5. run the process.

    a. accounts with [included] a character length 7-15 phone numbers out of the release of "valid".

    b. records with a length of character <7 or="">15 phone numbers out of the release of "Invalid character count.

    Note: the processor also adds a 'LengthValid' flag attribute which you may also branch on [with the values "Y" and "NC" for both scenarios above]. See Library of processor of the online help for more information.

    Thank you

    Nick

  • I used Paperport 9SE for several years without any problems with XP. Now, because of a forced computer upgrade, I have Windows & OS. Now I find that I can't "save under" or "send to" Word.

    I used Paperport 9SE for several years without any problems with XP.  Now, because of a forced computer upgrade, I have Windows & OS.  Now I find that I can't "save under" or "Send scanned documents to ' MSWord' as suggestions?

    Hello

    Is Microsoft Office (Word) installed on the new Windows 7 operating system?

    If this isn't the case, install Microsoft Office must fix.

    If Microsoft Office is installed, try Microsoft Office. Follow these steps.

    a. click Start.

    b. click on Control Panel, programs and features.

    c. find Microsoft Office.

    d. right-click on Microsoft Office and select Repair.

    Now, check the question.

  • How to use mobile data for large app download data

    How to use mobile data for large app download data

    How can I set big data

  • How to use transfer windows for xp to xp. When I plug usb computers are delivered to the top with the same screen and when I try to use the transfer to the new computer, it just said information gathering and sits for hours

    How to use transfer windows for xp to xp.  When I plug usb computers are delivered to the top with the same screen and when I try to use the transfer to the new computer, it just said information gathering and sits for hours

    Hello, welcome.

    The process is automatic and the maximum transfer rate should be about 20 GB/HR. If the process crashes during that long of a time, it's probably because of something internal rather something you're doing wrong.
    For reference purposes, I included this link. It goes into the details of the migration from XP to Vista (and the basic steps you follow). The instructions are for migrating to Vista via the network, but you can easily follow the steps and choose a different option for your specific installation.
    For both machines, I recommend you to prepare for the transfer using the following procedure:
    1. click on START > run
    2 type "msconfig" (without the quotes) and press enter
    3. go to the "Startup" tab and uncheck all the entries displayed
    4. click on 'Apply' at the bottom right
    DO NOT RESTART YOUR COMPUTER AGAIN
    5. click on START > run
    6. Type "cmd" (without the quotes). Right-click on the result at the top of the menu START and select 'run as administrator '.
    7. type chkdsk /r and press enter
    8 allow the system to attempt disassembly of the volume
    9. allow the system to plan restarting
    10. restart your computer
    11 let checkdisk analyze the file system on your hard drive
    12. Once completed, perform the same steps on the other machine
    13. Once completed, repeat the transfer

    Let us know what happens
    Thank you!

    Ryan Thieman
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Any how to use the Cloud for business training

    As in the topic I'm looking for inspiration, examples, how to use the Cloud for his work.

    My organization is a training, coaching and HR solutions company. (If you are interesting in, welcome to [deleted by Moderator])

    I believe that such tools as a Cloud technology could training more effective and more attractive to the user in its form.

    Will be grateful for any suggestion

    Wik

    Hello

    Please see the pricing and membership creative cloud plans | Adobe Creative Cloud

    You can also attach sales to understand plans and benefits.

    Contact us | Adobe

    Hope that helps!

    Kind regards

    Sheena

  • just bought SCAN SNAP supplied with disc of Acrobat, but only for PC, I use a MAC, the serial number of the disk, how to use and get for MAC

    just bought SCAN SNAP supplied with disc of Acrobat, but only for PC, I use a MAC, the serial number of the disk, how to use and get for MAC

    Standard Acrobat's window only; Acrobat pro for mac

  • How to use 'LIKE' operator/substr/instr with if condition?

    Hello

    How to use 'LIKE' operator/substr/instr with if condition?

    I can use the following function:
    <? xdofx:InStr('ssStatus','Open',1) = '0'? >
    which returns true or false depending on ssStatus as Open *.

    But when I try to use <? If: xdofx:instr('ssStatus','Open',1) = '0'? > calculating <? end if? >

    It gives an error.

    Any suggestion? OR a solution?
    Thank you.

    Published by: user12427117 on March 10, 2011 20:42

    Published by: user12427117 on March 10, 2011 20:46

    You can try to use

    0? >

    Use contains to AS

  • How to get the checksum for several columns?

    I need to compare the data of a record in a data table in another table. The structures of the two tables are not the same, but the data types of the columns I'm comparing cam is obviously the same. There are many columns so I thought that a shortcut to make a crazy long A = A AND B = B, etc... several dozens of times to check if the data are different each time was to use checksum.

    I had planned to use the concatenation of all the columns together in a single string, delmitted by a semicolon.

    However, I find that it does not work as desired. The checksum produces the same number for different values of data. So I need ot use something else.

    There is another function I could use in a similar way where it will create a compact, unique hash to a concatenated string of time I spend?

    And what is the data type of the return value - hoping that it's digital!

    What checksum algorithm do you use?

    Depending on the version of Oracle, you can use the HASH of the package DBMS_CRYPTO method, i.e.

    SELECT dbms_crypto.hash( to_clob( ename || empno || sal ),
                           1 /* dbms_crypto.hash_md4 */ )
      FROM emp
    

    A MD4 hash should have a very low incidence of collisions of normal data even if it isn't particularly cryptographically course. You can also use the ORA_HASH method

    SELECT ora_hash( ename || empno || sal )
      FROM emp
    

    but I expect the chance of collisions to be a little higher.

    Justin

  • How to use multiple columns for the bookmarks instead of column 1

    Bookmarks always appear in a single column. As I have a lot you have to scroll to see all.

    How can I set bookmarks in several columns so that I can see them all at the same time.

    You can use the above. The Bookmark Manager works just like the
    folders on your computer. Create folders by using the sort and general name
    your list in these files. In addition, when you open the Manager, it
    a search box is at the top right.

  • How to use black skin for specific controls?

    I am using black skin for segmented control. There seems to not be any property of skin or colorshade.

    How would I do that?

    Hey,.

    There are two methods available to set the skin to a control object segemented. The first is a setBackgroundSkin() and the second is a method of setButtonSkin(). Try the following and see if the counting works:

    import qnx.ui.skins.buttons;
    
    (...)
    
    var myControl:SegmentedControl = new SegmentedControl();
    
    (...)
    
    myControl.setBackgroundSkin(SegmentedControlSkinBlack);
    myControl.setButtonSkin(RoundedButtonSkinBlack);
    

    Be sure to import the skin button package and also replace "myControl" by your control object segmented. Hope that helps. Good luck!

  • How to use 780ti gtx for acceleration for adobe after effects?

    I have Asus gtx 780ti DirectcuII OC, How can I use it to GPU hardware acceleration for adobe after effects?

    The current versions of the AE does not use GPU acceleration for a large part of what. The only acceleration that makes all difference is in rendering traced to the RADIUS and which requires a compatible NVIDIA CUDA card. Nothing else will do it.

  • How to use the DPS for a daily with as wordpress content management system

    Hello

    I use the DPS for magazines.  I would like to use urgent for a media company.  the content will be in the form of such as wordpress content management system, joomla.  I know that I can download html in pages content.  How can I display content such as the New york Times and the Washington post on iPad using digital publishing suites?

    Hello

    Please send me a private mail (ktukker at_sign adobe d o t - com) with your question and description of the workflow. Can you give me some links to sample from the Washington Post / NYT that you talk too much?

    You can associate a workflow HTML with DPS. Take a look at the application of Shell scenarios; content has all be created in the HTML articles.

    Shell scenarios: https://itunes.apple.com/nl/app/scenarios/id605820338?l=en&mt=8

    -Klaasjan

  • How to avoid the report for all values of roller running upward of guided navigation

    Hello

    Thanks in advance

    I have 3 reports on three different pages of a dashboard. (Set up a navigation guided on a column of each report). When I click on the value of the column of guided navigation lead me to report 2 for this particular value (is invited), similarly for 3 report also so far it works great.

    However when I go back to report 3 2 and 2-1, the reports are run for all the values for the value which has been adopted by the guided navigation of the previous report (on which I clicked to go to the next report of value) instead.

    Published by: 808623 on November 9, 2010 02:10

    Use the ' back ' button.

    Otherwise, history.back(-1) it will take you to the session previous search in Google to get the HTML code and place it in object HTML/text at the bottom of each page of dashboard

    which will restore the last session he values he's running not not all previous values

    Thank you
    Saichand.v

Maybe you are looking for

  • Overheating of the satellite L50A-122

    I recently bought a Satellite L50A-122, with a 4th generatition Intel Core i7. Simply the pc overheating... All solutions?

  • I have a problem with the HP Deskjet2545 do not print on the computer.

    Printer does not print. Computer says "printer error". Convenience store said that the problem is resolved. The printer is 'ready' doesnot even impression. What is the solution? Original title: hpDeskjet2545.

  • EA8500 put in place the problem

    Current nine EA8500 to install it on a system Win10 (fully updated).  Router works through internet modem signal cable to the computer.  But the computer can not find the router.  I tried 192.168.1.1 via a browser (PW 'admin').  Can not find the rout

  • Win 8 upgrade with a hard drive in Vista

    I have computer with 64-bit, 16 gig of ram and Win7 installed with a purchase of Win8 upgrade, I want to install my current hard drive which has Vista Ultimate, Win8 allows this and recognize or even switch to Win8?

  • Outlook Express for windows mail__

    I have a dell computer and that you have just installed a new drive after the old man a failure. I was running Outlook express and I'm now being forced to use windows mail. Windows Mail can't find my old email. I reinstalled all my old data from a ba