independent research case and accents

Hello
I'm new on PL so sorry if it shows with the post :). I'm doing a Research independent of case and accents in the Apex without the help of the upper and lower functions. I found nlssort to solve this problem, but I don't know if I'm doing something wrong or can't do.

nlssort works very well when it is used like this:
select *
from Items_V
where nlssort(Name,'nls_sort=spanish_ai') like (nlssort(:P5_Name,'nls_sort=spanish_ai'))
what I also need is results that contain the name and in addition to that a case in the where clause.

The following code is what I have now and _where I want to include the nlssort_. It returns all the items containing Null values and P5_Name or correspondence.
select *
from Items_V
where  ((Name like (case when to_char(:P5_Sel)='1' then nvl('%'||:P5_Name||'%','%' )
                         else '%' end)
        and Name is not null) 
        or ((case when to_char(:P5_Sel)='1' then nvl('%'||:P5_Name||'%','%' )
                 else '%' end) ='%' and Name is null))                     
I tried many ways, but I just can't get the right combination and don't really know where to go. Try starting with a simpler approach, I found this concatenation + '%' + nlssort(:P5_Name,'nls_sort=spanish_ai') was not returning items contained, only items that match.


Thank you in advance,
Marc

BTW, I develop on:
DB 11g
Request Express 3.1.1.00.09

a common need for which I have not found another way to solve: independent research case and accents.

How about smth like (assuming you're on 10g or more):

SQL>  var p5 varchar2(50)

SQL>  exec :p5 := 'ae'
PL/SQL procedure successfully completed.

SQL>  with t as
(
 select 'Âero' str from dual
)
 select * from t where regexp_like(convert(str,'us7ascii'), convert(:p5,'us7ascii'),'i')

STR
----
Âero
1 row selected.

Tags: Database

Similar Questions

  • Case sensitive and independent research of / and update entries in double in Oracle 11 g

    Hi all

    This is my first time posting a question on any online support community. So please excuse my spotty label on this issue.

    I am using Oracle 11g and am faced with a dilemma.

    I have a table named POINTS as below:

    ID NAME IS_TYPE
    1Chair1
    2Chair1
    3Chair1
    4Chair

    1

    5CHAIR16Table17Table18Table19Table110Auto_Info111Auto_Info112Auto_Info113Auto_Info114Auto_Info1

    As you can see, the items 'flesh' and the 'table' have duplicates with different bodies. And what I have to do is find a way to harmonize the body and also add a number at the end of each duplicate item. The thing is, this should be done ONLY to the duplicates that differ in the envelope. If the Auto_Info entry should not be affected in some way. The result should look like this:

    ID NAME IS_TYPE
    1Chair1
    2Chair 11
    3Chair 21
    4Chair 3

    1

    54 Chair16Table17Table 118Table 219Table 3110Auto_Info111Auto_Info112Auto_Info113Auto_Info114Auto_Info1

    What I have so far:

    I spent a lot of time trying to internet search and the merger of what I find a solution. So far I've been able to find a way to extract duplicates with different case from the rest of the table in the following way:

    ALTER session set NLS_COMP = ANSI;

    ALTER session set NLS_SORT = BINARY_CI;

    SELECT NAME

    ELEMENTS

    GROUP BY NAME

    LESS

    SELECT NAME

    ELEMENTS

    GROUP BY NAME

    After HAVING COUNT (1) > 1

    I am very new to databases and help with this problem would be highly appreciated.

    Ok.

    You can use a MERGE statement to do next:

    SQL > fuse the elements I

    2 using the)

    3. Select rowid as i_rowid

    4, Chief (distinct name) over (partition nlssort (name, 'NLS_SORT = BINARY_CI')) as cnt

    5, row_number() over (partition nlssort (name, 'NLS_SORT = BINARY_CI') order by id): the nurse

    6 items

    (7) v

    8 on (i.rowid = v.i_rowid and v.cnt > 1)

    9 when matched then update set i.name = initcap (i.name) | ' ' || TO_CHAR (RN)

    10;

    9 lines merged.

    SQL > select id, name from the elements;

    ID NAME

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

    1 Chair 1

    2 Chair 2

    3 3 Chair

    4 4 Chair

    5 5 Chair

    6 table 1

    7 table 2

    8 table 3

    9 table 4

    10 Auto_Info

    11 Auto_Info

    12 Auto_Info

    13 Auto_Info

    14 Auto_Info

    14 selected lines.

    SQL > commit;

    Validation complete.

    Don't forget the VALIDATION to the end in order to validate the transaction.

  • Insensitivity to case and cache SQL space

    Hello

    I think that Oracle version 9i go supports case-sensitive hides SQL, i.e. the SQL statements in the cache can match independently of the case and the space. Please can anyone provide an authoritative answer confirming my assertion or makes me in the right direction, where I can verify these facts.

    I look forward to the answers.

    Best regards,

    Best answer is probably a simple demo:

    SQL> delete /*+ find this */ from t1 where owner = 'XXX';
    
    0 rows deleted.
    
    SQL> DELETE /*+ find this */ from t1 where owner = 'XXX';
    
    0 rows deleted.
    
    SQL> delete /*+ find this */ from    t1   where    owner = 'XXX';
    
    0 rows deleted.
    
    SQL> begin
      2  delete /*+ find this */ from t1 where owner = 'XXX';
      3  end;
      4  /
    
    PL/SQL procedure successfully completed.
    
    SQL> select sql_id, sql_text from v$sql where sql_text like '%find this%' and sql_text not like '%v$sql%';
    
    SQL_ID
    -------------
    SQL_TEXT
    ------------------------------------------------------------------
    7tc7jtr6jjd5r
    delete /*+ find this */ from t1 where owner = 'XXX'
    
    a4ud12x5fxmnw
    begin delete /*+ find this */ from t1 where owner = 'XXX'; end;
    
    bn65fyws830un
    delete /*+ find this */ from    t1   where    owner = 'XXX'
    
    9dumuwpg5b3ks
    DELETE /*+ find this */ from t1 where owner = 'XXX'
    
    9s7qm0xwcm7sc
    DELETE /*+ find this */ FROM T1 WHERE OWNER = 'XXX'
    
    5 rows selected.
    

    Notes that changes in the case, or the insertion of white space, produces a different SQL_ID, but when I set the static statement in pl/sql in SQL, it gets "normalized" by the PL/SQL engine uppercase without excess white space - may be what you think.

    Concerning

    Jonathan Lewis

    Now on twitter @jloracle

  • where can I find my id case and repair

    where can I find my id case and repair

    In order to find your Apple ID repair first, go to the Apple device repair status page. Then, enter your case or repair ID in the first field. Then, enter the zip code or serial number in the 2nd field. Finally, click on the submit button. To find your case number go on www. http://supportprofile.Apple.com

  • Cases and protection for iPhone 5 & 5 s fit iPhone SE

    Cases and protection for iPhone 5 & 5 s fit iPhone SE

    Yes.

  • Y at - it a lens which corresponds to Iphone 6 + with case and screen shield attached?

    Does anyone know of a lens wide angle for Iphone 6 + which allows that you keep the protector case and Iphone screen still in place? Most of those I've seen State the case and the shield cannot be still attached.

    Thank you

    As each case and screen protector can be a size and a different shape, I doubt there will be an iPhone lens that could correspond with them on.

  • The new iPhone may use the iPhone accessories 5s as case and battery materials?

    I currently use an iPhone 5, but I plan to move to the new iPhone, however, but to many fans of Apple, I already made an investment in all kinds of accessories.

    I would like to know if I can use cases and boxes of 5s with the new iPhone iPhone battery SE.

    Thank you!

    The specifications indicate that they have the same size. If there is a small difference in the placement of ports and controls that interfere with some cases probably will definitely be confirmed until the launch.

  • Special characters and accents on the smart keyboard?

    How to type special characters and accents on the smart Pro iPad keyboard? For example, I like to write "Róisín Murphy" with accents in the name as shown here. But I can't find a way to do it. Are there not as a software keyboard that I can draw on screen for those?

    Thank you.

    If you have your English keyboard, then you can use the standard Mac shortcuts.  For acute, you more e option, then the basic letter.  e is more e, then e option.

    If you have your keyboard to something else, like Italian, then it might be different.  That your keyboard is set to?

  • I closed and put my computer in its case after use. 3 hours later, when I went to use it again once I took the case and it was hot. It's on and he said "your computer was stopped because of a problem. Anyone had this happen?

    I shut down my computer and put it in its case after use. 3 hours later, when I went to use it again once I took the case and it was hot. It's on and he said "your computer was stopped because of a problem. Anyone had this happen?

    No. I have not experienced this before, after having turned off. It seems that your Mac was not completely extinguished before you he packed. Make sure that it is actually stopped before closing the lid.

  • The case and the smart keyboard will work together on an iPad pro

    The case and the smart keyboard will work together on an iPad pro

    Hi there drew6216,

    Looks like you're wanting to know if the Smart keyboard accessory is compatible with the iPad Pro. Do you mean this product?

    Smart keyboard for iPad Pro

    If so, then Yes, it was made for the iPad Pro. If I misunderstood the question can you please clarify for me a little?

    Thank you for using communities of Apple Support, beware!

  • Calculate the maximum value of the sub-table when creating using a structure of case and records the shift

    I have two 1 d arrays that contain cyclical information (a bit like a sine wave).  One that contains information about the position in degrees and another that contains the couple.  I would like to calculate the value of maximum torque whenever the station is within a certain range (for example, 30 to 80 degrees).  The beaches are repeated - that is why it is cyclical.   I use the function "in the range", a structure of the case and the shift records to build a new table with the values that are included in the beach I said - that was easy part (see attached VI).  I'm struggling with a way to calculate a maximum value for each sub-table formed when the values are 'in range '.   Your help is very appreciated.

    vt92 solution worked!  I agree that there should be a simpler solution, but your to works fine.  Thank you very much.

  • data transmission between the General case and problems of timing instructions using daq devices

    I'm currently developing a program using LabView 2012 SP1.  I am interfacing with an NI USB-6009 data acquisition using NOR-DAQmx 9.5.5f4.  I'm trying to get a voltage on the three analog inputs (AI0 and AI3 AI4) 1 second to start and 20 seconds of starting.  Three digital ports: P0.0, P0.1 and P0.2 are used to market the transistors for the signals in question and must remain high to the course of ~ 20 seconds the readings will take place.  After 20 seconds, I need to take the readings of each analog channel and the difference of the two to determine the delta at the start.  This delta will lead logic to implement later.  The attached VI has a while loop that runs on an interval of 1 second and a case statement that takes a reading DAQ at 1 second and 20 seconds (two separate trials).  The while loop stops after 21 seconds.  The question I have is how to manage the tensions of reading of the second 1 case and the second case 20.  I need to take the difference and the exit to the front after 20 seconds elapsed.  Please keep in mind when you answer that I am relatively new to LabView.  I have experience with several other languages (Matlab script, C, Java, Perl, etc.), but am still learning how to get concrete results in LabView.  That being said, guess I know nothing outside of what you see in this VI.  If you have any recommendations on how to implement more efficiently, I am open to suggestions. Thanks in advance for your help.

    RJ

    I would make the acquisition of 21 seconds of a value of data from data acquisition.  Then, you can index you want specific samples.  Have time to wire samples is much more reliable that Windows hope will be both properly 21 seconds.  It also simplifies the code in a bit.

  • DM4x comes with DM4t label on the box, case, and memory

    I bought a Pavilion model dm4x # LX130AV and received today. Box, case and even the memory of the computer model as a #LX State! 25AV, which is a Pavilion dm4t. I spent hours on the phone w/4 different CS representatives, who have all insisted that the serial number of checks that it is, in fact, a dm4x. I do not understand it being shipped in the wrong box, even the bad case... but the memory? I asked an RMA number and he'll be back. Has anyone else had this experience? Thank you.

    Same question on this topic, see the answer to Matt_Lo

    http://h30434.www3.HP.com/T5/other-notebook-PC-questions/wrong-model/m-p/797299/highlight/false#M28413

    Basically, a dm4x is not a real model number, x is a placeholder to represent a whole subset of models like the dm4t

  • HP ENVY 15 J051EA TS: broken bottom of the case and missing screws

    Hi it screws my low wws lost business and because of this, the hinge is now oushing my case to open. I tried to get another from a different part of the laptopn screw, but it seems that small but which allows the screw stay connected to the case is broken. Long story short, I would need for a new substantive case and a replacement of the screw. Anyone know where I can get these parts?

    Thank you.

    Andreea

    You are welcome

    If you have selected your country and sought the part number, proceeded to purchase and that you are still not able to, I can only assume that the part is not currently available at HP in your area.

  • Get a new case and power supply for my HP Pavilion a6355.uk

    1. sound of the HP Pavilion a6355.uk

    2. Windows 7 Professional 64-bit

    3. no error message

    4. it is not a problem, but its had a new graphics card, new ssd, another hard drive, removed the 500 GB hard drive, and that's all I think.

    Hi, I want to get a new case and power supply for my office

    If I want is http://www.pcworld.co.uk/gbuk/antec-one-0-761345-15970-8-atx-full-tower-pc-case-black-13374257-pdt.h...

    The power I want is http://www.pcworld.co.uk/gbuk/zs650w-uk-zs-series-ocz-zs650w-uk-atx-psu-650w-11342059-pdt.html

    Is 650 Watt most the jury can take? I read somewhere that most can take is 650 watts.

    My only concern is that, how do you take the I/O shield? I've never done before.

    Yes, it will fit your card mother Μatx.

    PS > remember to toggle the toggle SOLVED / SOLUTION to the right of MY post/reply.

Maybe you are looking for