By selecting only normal characters of the column data

Hello

We have a table column that stores the names of party and this could be in non-English characters. If anyone knows how just to select the regular lines of English character of the table using a select query and does not include rows that have non-English characters?

Thank you

ryansun wrote:
Thank you Frank and Chris,

Group names can have numbers, parentheses, commas (mostly address is attached). I wanted to so all English characters. Whatever in another language can be eliminated. I think in your examples, it considers that the alphabets.

So spaces, punctuation, numbers and symbols like '%' is all right; is this fair?

In this case:

SELECT     *
FROM     table_x
WHERE     CONVERT ( party_name
          , 'US7ASCII'
          )     = party_name
OR      party_name     IS NULL          -- If wanted
;

Tags: Database

Similar Questions

  • Firefox cannot display normal characters after the second run

    After loading windows, I can run firefox normally, but after the closing and opening of firefox, it shows normal characters in the menu and the text in web pages, in the form of rectangle.
    I have try shift + open and turns off modules and selected the check all box and restarted firefox, but the problem exists. even the most recent version completely uninstalled, and installed, but no income.
    the only solution is lunching without failure or restart windows.
    This problem is started after a system full scan with avira antivirus.
    screenshot

    You can try setting the Boolean gfx.font_rendering.directwrite.use_gdi_table_loading false pref on the topic: config page.

    Try turning off hardware acceleration.

    • Tools > Options > advanced > General > Browsing: "use hardware acceleration when available.
  • I want to accept only Arab characters in the input text

    Hello

    Is it possible to let the user just write in Arabic in the af input text?

    If he enter English tank when you use keyboard ENG that I want to prevent this event and not let him write without error msg and if it helps keyboard AR I want let write

    Thank you.

    You can implement something like this using javascript. You should prevent the addition of English characters of:

    -Keyboard

    -By using ctrl + v (in case you have copied English words)

    -Using right-click + spent (in the case where you have copied English words)

    To do this test to track the following:

    1 - inside af:inputText add 2 clientListener. One to accept only Arabic characters and the other for the deactivation of ctrl + v as:

    
              
              
    
    

    2 - Add af:resource with type = "javascript" and inside this write three functions:

    -an acceptArabic function.

    b disabledPastFunction

    c disabled right click on the page.

    as:

    
    
            = 1560 && k <= 1610) || k == 32)
        {
        }
        else
        {
          evt.cancel();
        }
      }
      ]]>
    
      function disabledPastFunction(evt)
      {
        var k=evt.getKeyCode();
        var e = window.event;
    
        if(e.ctrlKey)
        {
          if (window.event.keyCode == 86)
          {
            evt.cancel();
          }
        }
      }
    
      function dis_rightclickNS(e)
      {
        if ((document.layers || document.getElementById && !document.all) && (e.which == 2 || e.which == 3))
        {
          return false;
        }
      }
      if (document.layers)
      {
        document.captureEvents(Event.MOUSEDOWN);
        document.onmousedown = dis_rightclickNS;
      }
      else if (document.all && !document.getElementById)
      {
        document.onmousedown = dis_rightclickIE;
      }
      document.oncontextmenu = new Function("return false")
    
    
  • How to cut the column data

    Gurus in the morning

    I have two tables with the data in the corresponding column, BUT I need to cut the columns in a table
    the data is displayed as follows in table xpq_log
    LOG_DATE                     LOG_PTR     LOG_HDR
    01/06/2011 00:00:00     0609pro     0609IN002C_06
    04/06/2011 00:00:00     0609pro     0609IN002C_06
    05/06/2011 00:00:00     0609pro     0609IN002C_06
    06/06/2011 00:00:00     0609pro     0609IN002C_06
    07/06/2011 00:00:00     0609pro     0609IN002C_06
    09/06/2011 00:00:00     0609pro     0609IN002C_06
    10/06/2011 00:00:00     0609pro     0609IN002C_06
    12/06/2011 00:00:00     0609pro     0609IN002C_06
    01/06/2012 00:00:00     0609pro     0609IN002C_06
    02/06/2012 00:00:00     0609pro     0609IN002C_06
    03/06/2012 00:00:00     0609pro     0609IN002C_06
    06/06/2012 00:00:00     0609pro     0609IN002C_06
    07/06/2012 00:00:00     0609pro     0609IN002C_06
    08/06/2012 00:00:00     0609pro     0609IN002C_06
    09/06/2012 00:00:00     0609pro     0609IN002C_06
    In the table of printpdf as follows
    PDF_REPORT     PDF_DESCRIPTION
    IN002C                     STOCK FILE PURGE - PRINT WH CONTROL
    How can I cut the column data (log_hdr) to match column (pdf_report)?

    Any help will be much appreciated

    user11978142 wrote:
    Yes the code always starts with an alphabetic character and always ends before the underscore character and the prefix is always digital.

    And Yes to the second comment WRT 1 to many relationship.

    WRT the duplicates I want the info displayed even if there is no matching printpdf

    You talk a LEFT OUTER JOIN, then:

    See the example below (the statement are just to reproduce the paintings, just use the last query):

    WITH xpq_log AS
    (
       SELECT '0499SYS003A_06' log_hdr FROM DUAL UNION ALL
       SELECT '0612PV410W1_06' log_hdr FROM DUAL UNION ALL
       SELECT '0609IN002C_06' log_hdr FROM DUAL UNION ALL
       SELECT '2201PA100D1_30' log_hdr FROM DUAL
    )
    , printpdf AS
    (
       SELECT 'SYS003A' pdf_report, 'STOCK FILE PURGE - PRINT WH CONTROL' description FROM DUAL UNION ALL
       SELECT 'PV410W1' pdf_report, 'Description 2' description FROM DUAL
    )
    SELECT a.log_hdr, REGEXP_SUBSTR (a.log_hdr, '[[:alpha:]][^_]*') AS pdf_report
         , b.description
      FROM xpq_log a LEFT OUTER JOIN printpdf b
           ON pdf_report = REGEXP_SUBSTR (a.log_hdr, '[[:alpha:]][^_]*');
    
    Output:
    LOG_HDR        PDF_REPORT     DESCRIPTION
    -------------- -------------- -----------------------------------
    0499SYS003A_06 SYS003A        STOCK FILE PURGE - PRINT WH CONTROL
    0612PV410W1_06 PV410W1        Description 2
    2201PA100D1_30 PA100D1
    0609IN002C_06  IN002C                                           
    

    Kind regards.
    Al

  • ToolTip on the column data

    Hello

    I want to display the ToolTip on the column data.
    To this end, I work with the data format.
    under data format I use custom format.
    on the format of data, I wrote the following code.

    < b title = "This" about says month"> month < /b >

    but it demonstrated ToolTip on 'months' and not on real data.

    Is any HTML that display dynamic data, then we can put this code instead of 'months '.

    Please, give me suggestion.

    Concerning

    Prashant

    Did you add the ' @' in your HTML simbol? They must state the values in your column.

    You should have something like months @

    KR,
    A

  • Help with the query to select only one record from the result set in double

    Hello

    Please help with the query. Version of Oracle database we use is 10g R2.

    I have a vision that is duplicated IDS, but they are used across the different functions. See below examples of data. Please help me with a query to select only one record (based on ID regardless of the area) from the bottom of the result set of duplicate records. For what is the point of view is there unique records, given the combination of the fields ID, Org, DF, dry, Sub-Sec

    ID
    Org
    DF
    Sec Sub-Sec

    (163)CQCPDMCPDMHD(163)PCENGENGENG(163)CQASICASICIS8888TSTACTACTAC(163)TSHEHESW6789CQINFOINFOFOS6789PCSECSYSSECSYSINFO16789TSSECSYSSECSYSINFO29009PCBMSBMSBMS1

    My result set must eliminate the duplicate identifiers regardless of whoever we choose of the result set. (I mean without distinction Org, DF, s, Sub-s). My expected result set should be.

    ID
    DSB

    DF
    SEC
    Sub-Sec
    (163)CQCPDMCPDMHD8888TSTACTACTAC6789CQINFOINFOFOS9009PCBMSBMSBMS1


    Thank you

    Orton

    Hello

    This sounds like a job for ROW_NUMBER:

    WITH got_r_num AS

    (

    SELECT id, DSB, df, s, sub_sec org

    ROW_NUMBER () OVER (PARTITION BY ID.

    ORDER BY org

    ) AS r_num

    OF view_x

    )

    SELECT id, DSB, df, sub_sec s,

    OF got_r_num

    WHERE r_num = 1

    ;

    He is a Top - N query example, where you choose the elements of N (N = 1 in this case) from the top of an ordered list.

    I hope that answers your question.
    If not, post a small example of data (CREATE TABLE and INSERT, only relevant columns instructions) to your sample data and the results desired from these data.  (I know that you said that you were a view selection.  Just for this thread, pretending it is a picture and post simple CREATE TABLE and INSERT statements to simulate your point of view).
    Point where the above query is to produce erroneous results, and explain, using specific examples, how you get the right results from data provided in these places.  (I didn't quite understand the explanation above.  I don't know why you want to

    ID ORG DF DRY SUB_SEC

    --      ---     --      ---     -------

    1234 CQ DPRK DPRK HD

    and is not

    1234 IS CQ ASIC, ASIC

    or

    TS 1234 IT IT SW

    or

    1234 CQ ASIC ASIC HD

    )
    If you change the query at all, post your modified version.
    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: https://forums.oracle.com/message/9362002

  • Select a random entry in the column

    I have a column with the random number of digital inputs. What happens if I want to select a random number in this column. as they select a random number for the lottery. What is the code behind the button using forms6i?

    Don't know if you need something like this?

    create table test_table
    (
      col       number
    );
    
    begin
      for i in 1..1000 loop
        insert into test_table values (round(dbms_random.value(1001, 100000000)));
      end loop;
      commit;
    end;
    
    with data as
    (
      select col, row_number() over (order by col) rn
        from test_table
    ),
    lucky_num as
    (
      select round(dbms_random.value(1, (select max(rn) from data))) l from dual
    )
    select col, l lucky_num
      from data, lucky_num
     where rn = l;
    
    COL                    LUCKY_NUM
    ---------------------- ----------------------
    21711712               219
    
  • How to extract the last 5 characters of the column CLOB001?

    Hi all

    I've set up an external WS in the APEX and now I want to create a report with the following query:

    Select dbms_lob. Substr (CLOB001, 5, -5) 'Test '.

    of APEX_collections

    where collection_name = "P422_CHECKVAT_RESULTS";

    What I want to do is to retrireve the last 5 characters in the CLOB, has anyone any ideea how I can do this?

    Kind regards
    Ana-Maria
    SELECT dbms_lob.Substr(CLOB001,dbms_lob.getlength(CLOB001),dbms_lob.getlength(CLOB001)-5 ) test
      FROM HTMLDB_COLLECTIONS
     WHERE COLLECTION_NAME = 
    {code}
    
    Hope this helps...
    
    Tyson                                                                                                                                                                                                                                                                                                                                                                                                                            
    
  • A loop in the column date - hours per day in summary

    All,

    Run the query against my timesheet tables below, I get the following results:

    SQL - CODE

    SELECT
    TS.ts_date Date,
    TS.user_name name,
    SCI Account account,
    TS.no_of_hrs hours,
    Sum (TS.no_of_hrs) OVER (PARTITION BY ts.ts_date) Daily_Total
    Of
    eba_time_timesheet ts,
    eba_time_timecodes tc
    WHERE
    TS.timecode_id = tc.id AND
    TS.user_name AS "JohnD".
    ORDER BY
    1

    -RESULTS-

    Date name hours Total daily
    1 December 09 JOHND 489310 1.5 8
    1 December 09 JOHND 486830 1.5 8
    1 December 09 JOHND 481710 3 8
    1 December 09 JOHND 481210 8 0.5
    1 December 09 JOHND 486840 8 0.5
    1 December 09 JOHND 485710 8 0.5
    1 December 09 JOHND 481010 8 0.5
    December 2 09 JOHND 481710 1 8
    December 2 09 JOHND 485710 7 8
    December 3 09 JOHND 481710 6 8
    December 3 09 JOHND 488810 1.5 8
    December 3 09 JOHND 481310 8 0.5
    4 December 09 JOHND 489710 8 8
    7 December 09 JOHND 481110 8 0.5
    7 December 09 JOHND 489710 7 8
    7 December 09 JOHND 481210 8 0.5

    However, I prefer the Total column everyday be a row in the results instead of a column. Here's an example of how I prefer the results. This statement will then be sent to a calendar for each user to see here for each account and total time twice a day.

    Date name hours
    1 December 09 JOHND 489310 1.5
    1 December 09 JOHND 486830 1.5
    1 December 09 JOHND 481710 3
    1 December 09 JOHND 481210 0.5
    1 December 09 JOHND 486840 0.5
    1 December 09 JOHND 485710 0.5
    1 December 09 JOHND 481010 0.5
    * 1 December 09 JOHND daily Total 8 *.
    December 2 09 JOHND 481710 1
    December 2 09 JOHND 485710 7
    * 2 December 09 JOHND daily Total 8 *.
    December 3 09 JOHND 481710 6
    December 3 09 JOHND 488810 1.5
    December 3 09 JOHND 481310 0.5
    * 3 December 09 JOHND daily Total 8 *.
    4 December 09 JOHND 489710 8
    * 4 December 09 JOHND daily Total 8 *.
    7 December 09 JOHND 481110 0.5
    7 December 09 JOHND 489710 7
    7 December 09 JOHND 481210 0.5
    * 7 December 09 JOHND daily Total 8 *.

    Any help would be greatly appreciated.

    This is my 1st post, so if I missed something or you need more information please let me know.

    I use Oracle 10 g

    Hello

    Welcome to the forum!

    Whenever you have a question, it helps if you post the CREATE TABLE and INSERT statements for some examples of data.
    For example:

    CREATE TABLE     eba_time
    (     ts_date          DATE
    ,     name          VARCHAR2 (10)
    ,     account          NUMBER (6)
    ,     no_of_hrs           NUMBER
    );
    
    INSERT INTO eba_time (ts_date, name, account, no_of_hrs) VALUES (TO_DATE ('1-Dec-09', 'DD-Mon-RR'),  'JOHND',  489310,  1.5);
    INSERT INTO eba_time (ts_date, name, account, no_of_hrs) VALUES (TO_DATE ('1-Dec-09', 'DD-Mon-RR'),  'JOHND',  486830,  1.5);
    INSERT INTO eba_time (ts_date, name, account, no_of_hrs) VALUES (TO_DATE ('1-Dec-09', 'DD-Mon-RR'),  'JOHND',  481710,  3);
    INSERT INTO eba_time (ts_date, name, account, no_of_hrs) VALUES (TO_DATE ('1-Dec-09', 'DD-Mon-RR'),  'JOHND',  481210,  0.5);
    INSERT INTO eba_time (ts_date, name, account, no_of_hrs) VALUES (TO_DATE ('1-Dec-09', 'DD-Mon-RR'),  'JOHND',  486840,  0.5);
    INSERT INTO eba_time (ts_date, name, account, no_of_hrs) VALUES (TO_DATE ('1-Dec-09', 'DD-Mon-RR'),  'JOHND',  485710,  0.5);
    INSERT INTO eba_time (ts_date, name, account, no_of_hrs) VALUES (TO_DATE ('1-Dec-09', 'DD-Mon-RR'),  'JOHND',  481010,  0.5);
    INSERT INTO eba_time (ts_date, name, account, no_of_hrs) VALUES (TO_DATE ('2-Dec-09', 'DD-Mon-RR'),  'JOHND',  481710,  1);
    INSERT INTO eba_time (ts_date, name, account, no_of_hrs) VALUES (TO_DATE ('2-Dec-09', 'DD-Mon-RR'),  'JOHND',  485710,  7);
    INSERT INTO eba_time (ts_date, name, account, no_of_hrs) VALUES (TO_DATE ('3-Dec-09', 'DD-Mon-RR'),  'JOHND',  481710,  6);
    INSERT INTO eba_time (ts_date, name, account, no_of_hrs) VALUES (TO_DATE ('3-Dec-09', 'DD-Mon-RR'),  'JOHND',  488810,  1.5);
    INSERT INTO eba_time (ts_date, name, account, no_of_hrs) VALUES (TO_DATE ('3-Dec-09', 'DD-Mon-RR'),  'JOHND',  481310,  0.5);
    INSERT INTO eba_time (ts_date, name, account, no_of_hrs) VALUES (TO_DATE ('4-Dec-09', 'DD-Mon-RR'),  'JOHND',  489710,  8);
    INSERT INTO eba_time (ts_date, name, account, no_of_hrs) VALUES (TO_DATE ('7-Dec-09', 'DD-Mon-RR'),  'JOHND',  481110,  0.5);
    INSERT INTO eba_time (ts_date, name, account, no_of_hrs) VALUES (TO_DATE ('7-Dec-09', 'DD-Mon-RR'),  'JOHND',  489710,  7);
    INSERT INTO eba_time (ts_date, name, account, no_of_hrs) VALUES (TO_DATE ('7-Dec-09', 'DD-Mon-RR'),  'JOHND',  481210,  0.5);
    

    I know that you have in fact two different tables, but if you already know how to join them, you could simplify a bit the issue by claiming there is only a single table. Could you tell what you're doing, like this: "what I posted as eba_time really is a join of two tables separate."

    GROUP BY... CUMULATIVE (or GROUPING SETS) is a convenient way to get totals for the same set of results with the raw data. It helps if you have a primary key or a sime column that uniquely identifies each row.

    Published by: Frank Kulash, April 21, 2010 12:17

  • Unable to store the component "time" in the column date Oracle's ADF

    Hi friends,

    I have a table with the date column. I'm trying to set the current date with the time in the column of the table. Java.sql.Date refers to the field of the VO. When I try to turn it using the setLastUpdatedDate() it not be saved. The time is get truncated and the time is saved is 16-mar-2015 00:00:00.  How can I keep the component "hour" as well in the column with the date data type. FYI the component "hour" is saved when I do the sql uisng the insert.

    JDev version is 11.1.1.7.0

    Thank you

    Hello

    java.sql.Dateis the DATE of SQL which means it stores years, months and days whilehour, minute, second and millisecond are ignored. Also sql.Date is not related to time zones.

    java.sql.Timestampcorresponds to the SQL TIMESTAMP, which is the exact nanosecond (Note that util.Date only supported milliseconds!) with customizable precision.

    try to use the timestamp if you want exact

  • XMLTable: definition of the columns data type of table

    Hello world

    I am using ORACLE 11 g and you want to shred XML into a table called test used. I was hoping I'd be able to get the types of data to the employees table existing instead of specify them in the clause of columns. Is this possible?

    Here is an example of what I'm trying to do. But I get an error: PL/SQL: ORA-00907: lack the right parenthesis on the line starting with columns.
        insert into EMPLOYEES
         select *
           from xmltable(
           '/employees/employee'
            passing EMP_XML
    
            columns FIRST_NAME EMPLOYEES.FIRST_NAME%TYPE path 'first_name',
                    LAST_NAME  EMPLOYEES.LAST_NAME%TYPE  path 'last_name',
                    GENDER     EMPLOYEES.GENDER%TYPE     path 'gender',
                    AGE        EMPLOYEES.AGE%TYPE        path 'age'
            );
    Error details
            columns FIRST_NAME EMPLOYEES.FIRST_NAME%TYPE path 'first_name',
                                *          
    
    ERROR at line 16:
    ORA-06550: line 16, column 42:
    PL/SQL: ORA-00907: missing right parenthesis
    ORA-06550: line 11, column 5:
    PL/SQL: SQL Statement ignored
    Thank you.

    Specification of column names is required, but you can omit the declaration of data types.

    See: the function XMLTABLE SQL/XML in Oracle XML DB

    XMLTable is used with storage XML based on a schema of XMLType data type is optional. If absent, the data type is inferred from the XML schema. If Oracle > XML DB is unable to determine the right type of a node, a default type VARCHAR2 (4000) is used.

    It is an Oracle extension; in the SQL/XML standard, the data type is always required.

    Note:
    The alleged data type might change as a result of the application of a patch or upgrade of Oracle XML DB. In particular, a new set of release or patch might be able to > determine the data type when the previous version was unable to do so (and therefore not reimbursed to VARCHAR2 (4000)). To protect against such an eventuality, specify an explicit data type with the data type.

  • Online update of the column data in the sql statement

    Hello Experts,

    I created a sql report
    select apex_item.checkbox(1,RES_RTNG_ID) as "RATING ID",RES_ID,SKILL_SET_ID, to_char(EVALUATION_DATE,'DD-MM-YYYY') d, EVALUATOR, RATE_TYPE, RATING ,REMARKS
    from HRMS_RESOURCE_RATING
    where TRAINING_ID = :P51_TRNG_PLN_ID
    I have a box that is used to delete rows in the report.
    and I want features to update the data in the column of the report.
    Please help me how to do this.

    Thank you
    Jitendra

    Hi all

    I did it with inline sql reports updated. Those who want to implement online update of sql reports

    Please see the link below:
    http://roelhartman.blogspot.in/2009/11/UPDATEABLE-interactive-report-websheets.html?z

    Thank you
    Jitendra

  • How to divide the column Date OBIEE

    Hello
    We have the name of the date column: To_Date and the format is DD/MM/YY hh.
    How to divide the date in YEARS, MONTHS, DAY as new columns.
    kindly help on that.


    Kind regards.
    CHR

    Published by: 867932 on November 23, 2011 22:18

    Hi user,

    All 3 functions can be written in RPD too. MDB layer, duplicate the date column-> the mapping tab to column of Goto-> expression-> functions Builder Select-> calendar Date functions / hour-> select DayofMOnth function. The column of your logic formula will look like,

    DayofMonth (YourDateColumn)

    Rgds,
    DpKa

  • the column data must be large to fit the whole space

    Hi Experts ADF,

    Jdev version 11.1.1.7.0

    I have an af:table in which I have a column with outpuText. The content of the outputText can be more. I want to show all of the text in the column.

    How do I do that? If I do columnStretching = this column also some texts are hid in the outputText.

    Thanks in advance,

    Roy

    Hi here the fix.

    noWrap = "false".

    Thank you

    Roy

  • Navigation from the column data

    JDev ADF BC 11.1.1.5.0

    Is it possible to provide a navigation of the column?
    For example, I have a column named "Accounts" to my table and there a few records. Each record should appear as a hyperlink that will lead me to a page where I can see the account information in detail.

    Suppose you already have an af:table with the data in it. Change the af: inputText / af:outputText for an af:commandLink account number - you can do it in source view (you will need to remove all properties that are not valid for af:commandLink). Set the Action property to point to a rule of control flow that takes you to the detail page. (If you were on 11.1.2.x, you must apply the hotfix that Frank details in the first part of the post that I linked you - this hotfix verifies that by clicking on the order link allows the current record).

    It is literally all you should have to do.

Maybe you are looking for

  • My wireless is not working

    HelloI was working on my computer laptop that today ' today all of a sudden, I found a red X on my wirelessI tried to solve the problem but could notnow, I work with a wirecan you help me please

  • Qosmio X 500 - 11 d: Fingerprint reader question and webcam problem

    Hello I am the owner of a portable X 500 - 11 d of Qosmio computer and I ran into a few problems these last time: 1. After installing windows 7, the fingerprint reader has worked flawlessly for about a month, but now the login screen of windows 7 not

  • 'create an analogue' control by programming of the cyclical report parameter

    I need to generate a square wave and a programmable duty cycle in LabView (not SignalExpress).  I use 'Create an analog Signal' for a signal fixed duty cycle but I can't figure out how to get the setting of market factor to change it programmatically

  • taskbar lost and the menu bar

    I was check to find answers to problems which can't seem to resolve, like int exp 7 restart and now my taskbar and menu bar disappeared. Help, please

  • Security warning when opening the task bar links

    Everything started after I moved my folder redirection from a server to the DFS share.  Running Windows 7 SP1, is Server 2008 R2.  Annoying but not fatal.  Thank you.