Retrieve the range of records using the string

I have a table with records inserted in the following columns: the half year.

Half will be in values such as 1 H and 2 H, representing the first half and second half of the year

Will be the year for example, 2014, 2015

How my sql are if I want a range of records? Example 1: 2013 against 2 H 2014?

... to get a range of records? Example 1: 2013 against 2 H 2014?

... year. "' between ' 20131 H ' and ' 20142 H.

Tags: Database

Similar Questions

  • Retrieve the string after the symbol @.

    Hello

    I need a suggestion how to extract the string after the symbol ' @' in the string.

    The user will pass the Email that I need to extract the domain name of the string

    > > Eg: [email protected]

    She must return to gmail.com under the domain name, please suggest me


    Thank you
    Sudhir

    Try:

    select substr('[email protected]', instr('[email protected]', '@')+1) from dual
    
  • Need to retrieve the string after the 2nd comma.

    The input string: "CN = Beard\, of Tracy, OU = operations, OR = HPUsers, DC = HealthPartners, DC = org"

    Output string: OU = operations, OR = HPUsers, DC = HealthPartners, DC = org

    Select substr ("CN = Beard\, of Tracy, OU = operations, OR = HPUsers, DC = HealthPartners, DC = org', instr (" CN = Beard\, of Tracy, OU = operations, OR = HPUsers, DC = HealthPartners, DC = org ',','") + 1") twice;

    I tried this. But it is issued by the 1st comma.

    Select substr (str, instr(str,',',1,2) + 1, instr(str,',',1,3) - instr(str,',',1,2) - 1) third_one,.

    substr (STR, InStr(STR,',',1,2) + 1) third_to_end

    from (select "CN = Beard\, of Tracy, OU = operations, OR = HPUsers, DC = HealthPartners, DC = org" str)

    of the double

    )


    THIRD_ONE THIRD_TO_END
    OU = operations OU = operations, OR = HPUsers, DC = org, DC = HealthPartners

    Concerning

    Etbin

  • Retrieves the string number

    Hello world.

    Thank you to everyone who helps everyone. I need your help

    1. Select regexp_replace ('Add freon to a 1/2 ',' [^ [: digit:]]') twice;

    I am trying to execute the query and I make the output voltage

    Output

    ----------

    12

    But I need the output voltage

    Output

    -----------

    1/2

    2. Select regexp_replace (' add 5 * freon ',' [^ [: digit:]]') twice;

    Output

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

    5

    second query is good but for the first query, I need "/" to be displayed in the output.

    Like this?

    Select regexp_replace ('Add freon to a 1/2 ',' [^ [: digit:] /]') twice;

  • How to retrieve the values of character without using single quotes

    Hi all

    How to retrieve the values of character without the use of single quotes. Its Possible in Oracle SQL

    Please answer me...

    For example

    Is actual query-> Select * from employees where name like in("SCOTT", "JAMES", "ALBERT",...);

    I want to--> Select * from employees where name like(SCOTT, JAMES, ALBERT...); -without the use of single quotes.

    Why I need this application, I need to retrieve the records more than 200 employees in a select statement by using name in where clause.

    shagarmahabubjan wrote:

    Hi all

    How to retrieve the values of character without the use of single quotes. Its Possible in Oracle SQL

    Please answer me...

    For example

    Actual query is---> Select * from employees where name like in("SCOTT", "JAMES", "ALBERT",...);

    I want to---> Select * from employees where name like(SCOTT, JAMES, ALBERT...); -without the use of single quotes.

    Why I need this application, I need to retrieve the records more than 200 employees in a select statement by using name in where clause.

    In short... you can't.  The channels are channels, and SQL and PL languages dictate that the string literals are provided within single quotes.

    I don't see how trying to retrieve more than 200 records of employees in the select statement means that you must get rid of the quotes.

    Be clear in what you ask: Re: 2. How can I ask a question on the forums?

    and take note of the FAQ link davidp provided the solution "variable IN the list.

  • Recording on DVD - "Unable to retrieve the table of contents" error

    Hi all

    Whenever I try to record on a DVD a face "could not retrieve the table of contents.

    I tried to change the recording speed, but no use.

    When I go to properties of DVD and click on activate record it does not recognize the DVD or any CD in the drive.

    Please help

    Hello

    1. what software to use to burn cd/dvd discs? Try using Nero, Ashampoo burning studio, alcohol CD and DVD software of engraving,
    2. then, I advise you to use high quality as TDK or Verbatim media.

    3
    Go to Device Manager and remove the drive from the list of devices CD/DVD.
    Then access the registry and delete the Upperfilters and Lowerfilters completely from the following registry key values:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Class {4D36E965-E325-11CE-BFC1-08002BE10318}

    Reboot the laptop and wait for the CD/DVD drive would appear once again

    If your problems persist, there may be a problem with your cd/DVD-ROM

  • Can I hold ThisContext go a step and use it in a later step to find the name of the current stage? Error 1 when retrieving the name of the step.

    I am trying to create a generic message using LVOOP logging class.  The recorder would include information on stage during execution (name, sequence, etc.).  I would like to create the message object log and then move it into another object (communication, controller of oven, etc.).  Everyone should get its own copy.  None of this is a problem to date.

    I found ways to gather the necessary information to ThisContext.  However, this only seems to work if ThisContext is spent in running step.  If I want ThisContext in LVOOP, the next step to try to use causes an error 1 "an input parameter is incorrect."  Is it possible to get this kind of information (name, sequence, etc.) without ThisContext in at each stage?  It would be inappropriate to do so, but if necessary I will.  It does not go against LVOOP.

    Summary: Can I hold ThisContext go a step and use it in a later step to find the name of the current stage?  If not, is there an effective way to do this?

    My solution was to store the reference to thread.  At each step, I can retrieve the current context.  This is valid only in a thread, but meets my needs.  I could also move something to a higher level, but it would need to know the thread that interests me in any case.

  • Activate search resource group using the string key

    Hi all

    RIM has provided APIs (Resource Bundle) to support the localization of the applications. We are able to use it

    ResourceBundle.getBundle(BUNDLE_ID, BUNDLE_NAME).getString(key);
    

    He expects int key and generated dynamically by Blackberry. There are 2 cases.

    1. Local labels, we are aware and we can provide keys for those who, for the latter is no problem.
    2. From backend error codes. This is not a definitive list. This is the string value. But we cannot find the resource group by using this key of type string. We have to check what the error code and create the key to this and allows to retrieve the label.
    if(errorCode.equals("SOME_ERROR_CODE"){
       Dialog.alert(LanguageResource.getString(SOME_ERROR_CODE));
    } else if (errorCode.equals("ANOTHER_ERROR_CODE"){
       Dialog.alert(LanguageResource.getString(ANOTHER_ERROR_CODE));}
    

    To avoid this check, we thought that if this was possible.

    String msg =  LanguageResource.getString("SOME_ERROR_CODE"));
    if (msg == null) // Label not found
       Dialog.alert(LanguageResource.getString("GENERAL_ERROR");
    else
      Dialog.alert(msg);
    

    Now, API provides no support for this, is the solution to create the own property file and load them but I think that the Blackberry does support playback of the file as Java Standard properties or may be something else. The same reflection API is not supported in Blackberry up to now, there may be support in the future. This could allow to dynamically use the variable as the key name.

    Someone did it faced simular situation and made a work around? All entries would help.

    Kind regards

    Sandeep

    Edited: updated information on option of the reflection API.

    It will never take in charge of reflection as the baseline for BB Os is J2ME and therefor java 1.3/1.4

    you will have to translate the error to the resource key string yourself.

  • to refer to an object using a string value that is the name of the object

    is this possible? I want to do something like:

    String str = "classname";
    
    UiApplication.getUiApplication().pushScreen(str);
    

    Thank you

    If you want to use strings as keys use class java.util.Hashtable.

    Place your items for the hash table and retrieve it through the string of unique keys.

    Like this

    Hashtable myObjects = new Hashtable();
    myObjects.put("MyStringKey", myObjectReference);
    
    .......
    
    Object myObjectFromTable = myObjects.get("MyStringKey");
    
    if (myObjectFromTable instanceof Screen) {
      UiApplication.getUiApplication().pushScreen((Screen)myObjectFromTable);
    }
    
  • How can I use the sequence of the string "\u00e5" in myfile.txt converted unic

    How can I use the sequence of the string "\u00e5" in myfile.txt converted to unicode in my application?

    I have a text file, MyFile.txt, with some sequences represented unicode:
    \u00e5
    \u00e4
    \u00f6
    etc.

    This is the file contains unicode, not the character it represents: a, a and o.
    I get the sequence of the file and save it to a vector. When I tried to use it on a JButton, I see the "\u00e5" string and not the character that I assumed.

     
            read file codes ...
            ...
         Vector<String> glyphVector = readGlyphIndex.getUnicodeFiles();     // to retrieve the vector with unicode sequence and save it to glyphVector
         String unicode = glyphVector.get(0);     //get the first unicode sequence
            System.out.println(unicode);    //displays \u00e5 and not å in the console.
         jButton.setText(unicode);   //jButton is a JButton and it shows the string \00e5 and not the character å
            ...
    The question is how to convert the sequence of string to be a unicode escape in the code?

    In order to make it clear:
    //from
    jButton.setText("\\u00e5");
    //to
    jButton.setText("\u00e5");
    Thanks in advance!

    Dragonfly
    String s = Character.toString((char) unicodeInInt);
    

    Strictly speaking, if unicodeInInt is a Unicode code point (for example, it can be greater than 0xFFFF) then the correct code would be this:

    String s = new String(Character.toChars(unicodeInInt));
    

    However, since the "\u" notation allows only 4 hexadecimal digits (and need to 0xFFFF code points > Unicode represented by their UTF-16 encoding), the code above is not enough for this particular case.

  • I have a MacBook Pro.  Is there a way to implement a rarely used keyboard key that - WHENEVER - it is pressed the computer will insert the string, predetermined character at the cursor position?

    I have a MacBook Pro.  Is there a way to implement a rarely used keyboard key that - WHENEVER - it is pressed the computer will insert the string, predetermined character at the cursor position?

    Yes. You can add in system preferences > keyboard > text.

  • Cannot retrieve the Portege R100 by using the recovery CD

    I replaced the HARD drive on my R100 not having the original. Thank you to help on the forum, I managed to solve a CDROM with a PCMCIA connector.

    I got through the recovery screen and choose option 1 - retrieve the entire disk. He got a disc of part way through 1 when he did not play a file. I then ran it again, but the selected option 2 - Toshiba Recovery utility and it started and then failed with the error - "cannot open TOSH_REC. COMMITTED AN ERROR."

    Where else?

    Thank you

    Ian

    Hello

    Have you replaced it with all new HARD drive? It's very strange question and if the HARD drive is nine something like that shouldn't happen. You have the FDD to check the HDD with FDISC? Please use the floppy drive and boot the disk to check the new HARD drive.

    Somehow, I feel that there is something wrong with this new HARD drive.

  • Failed to retrieve the DIAdem DataFinder research data, using data-finder toolkit LabVIEW 2009

    I am facing problem to retrieve the DIAdem Datafinder data.

    At first, I developed this project in LabVIEW 2010. But because of a problem that I met in LabVIEW 2010, I thougth to work on the project in LabVIEW 2009.

    Then, I reused the project that I created using LV 2010 using option economy for the previous version.

    When I tried to retrieve the data from the tiara using data finder toolkit. I got a 305505 warning. Please see the attached message of Warninig.

    But I have not seen this warning while I was working in LabVIEW 2010 and also, I was able to get the data from the tiara.

    Please suggest me a way to solve this problem.

    Hi Nanda,
    There is a bug when using the SDK use in combination with DataFinder Toolkit 2009.
    This bug is already fixed in LabVIEW 2010 and use SDK 2010. But as you said there is another question in LabVIEW 2010, forcing you to LV 2009.
    I suggest you use LabVIEW 2009 with use SDK 2009 and DataFinder Toolkit 2009 and instead to use the "Waveform.vi results" to read the search results, I would recommend to use the screw storage. I spread your example VI and it attached to this message. You will still see the dialog box to search for "lvStorage.dll" but it will automatically disappear and the VI works anyway because in this case LabVIEW will find the dll itself.
    My extended VI uses the '_openWithRoot.vi' to open a file with a different use than CT or PDM. This VI is also described in the following knowledge base article: http://zone.ni.com/devzone/cda/epd/p/id/4181
    With LabVIEW 2010 use support has been enhanced and fully integrated in the standard palette of storage screws. So in LabVIEW 2010, you can replace the "_openWithRoot.vi" with the 'Open Data Storage.vi' standard but with LabVIEW 2010, you can also use "Waveforms.vi results" to read the search results.

    I hope this helps.

    Kind regards
    Eva

  • How to use the string as a terminal window control

    Hi all

    I am setting up a terminal window in my VI and to do this I have a control of the chain and an indicator of the chain.

    I want the user to be able to write a command in the terminal and when hitting enter into the control must update, but not before! I'd do it

    as the user to be able to enter several commands without having to re - click the control with the mouse, so he must stay in the

    control window.

    The result of this chain control is introduced to an external motor controller, which responds with a string entry in the string of an invoke node indicator.

    I tried to make some case of the event, but not quite sure how I'm going to only detect the input control.

    Any ideas how to precede?

    Thank you

    Concerning

    Tommy

    Yes, in the structure of your event, look for an event of your control chain called 'key' down... on the left, there are several upcoming parameters (char, Vcle etc.) where you can use for example the char find char = 13 (back).

    Look here: http://zone.ni.com/reference/en-XX/help/371361B-01/lvprop/control_key_down/

    Good luck

    Christian

  • How to use the commands on the cmd prompt witout using a string like 'netstat' but I need output

    How use the commands on the cmd prompt witout using a string like netstat but I need output
    example: C:\ > netstat-an... will give its results
    But if the keyword netstat is blocked...
    I want to use the command netstat another way... can I convert it to binary, and then I can run or something else
    Please answer my questin

    Netstat is simply a file program located in the folder C:\Windows\System32.   It appears as "netstat.exe.  If you rename (or copy / paste / rename) to "abc.exe" then you can run it using 'abc' instead of 'netstat '.

    HTH,
    JW

Maybe you are looking for