How to find records of the sheet only.  EX [2.6, 2.6.1, 2.6.1.1, 2.6.1.2, 2.6.2]

I have the following:
2.6
2.6.1
2.6.1.1
2.6.1.2
2.6.2

I want to:
2.6.1.1
2.6.1.2
2.6.2

Please give me some advice, thank you!

And if you do not want regular expressions, you can use the normal string functions...

SQL> ed
Wrote file afiedt.buf

  1  with s as (SELECT '2.6' num FROM dual UNION ALL
  2    SELECT '2.6.1' num FROM dual UNION ALL
  3    SELECT '2.6.1.1' num FROM dual UNION ALL
  4    SELECT '2.6.1.2' num FROM dual UNION ALL
  5    SELECT '2.6.2' num FROM dual)
  6  --
  7  select num
  8  from s
  9  where connect_by_isleaf = 1
 10  connect by substr(num,1,instr(num,'.',-1)-1) = prior num
 11* start with num = '2.6'
SQL> /

NUM
--------------------
2.6.1.1
2.6.1.2
2.6.2

SQL>

Tags: Database

Similar Questions

  • How to find out what the police are actually using Firefox?

    How to find out what the police are actually using Firefox?
    Inspect the element don't say what substitute fonts.

    Firefox 24 ESR has the tab fonts in the Inspector, which shouldn't be a problem.

  • How to find and delete the dupes in Photos

    How to find and remove the many dupes in Photos

    Duplicate Finder in the App Store will clean the photo library. However, I would be careful to make sure that nothing is really a duplicate.

  • When you try to upgrade to photos in app store I get this message "the object you requested is not available in the store US." does anyone else have this problem or can you tell me how to find pictures in the app store

    "When you try to upgrade to photos in app store I get this message"the object you requested is not available in the store US."does anyone else have this problem or can you tell me how to find pictures in the app store" someone else meets this.  Is it me or is it pictures?

    Ever photos first? It should have been included when you first update of Yosemite and now El Capitan. I know that iPhotos updates get a message like that, but I didn't know the Photos app with a message with it.

    Update to iPhoto to Photos for OS X - Apple support

  • How to find out if the new menus or responsibilities have been added to the system

    Dear Sir

    Please let me know how to find out if the menus or the responsibilities have been added to the system.

    OUL5 x 64
    EBS r12 12.0.6

    Thanks-Tom

    It is a unique work, or you should always know when a new menu/responsibility is added?
    If it is a time of employment, then you can write a query on the 2 tables (fnd_menus_tl and fnd_responsibility_tl)

    Select * from fnd_menus_tl where creation_date > sysdate - 7

    Select * from fnd_responsibility_tl where creation_date > sysdate - 7

    If you need to do every time, then you can write an alert.
    Go to a responsibility to Alert Manager > alerts > set
    Process = system administration
    name = my Menu new alert
    Click event
    Check the insert box, clear the check box update
    application = application object library
    Table = fnd_menus_tl (or fnd_responsibility_tl)
    Select = Select responsibility_name in & output1 fnd_responsibility_tl where rowid =: rowid
    or, select user_menu_name in & output1 fnd_menus_tl where rowid =: rowid
    Save
    define an action
    attribute to the set of scripts
    make sure click the alert details and enter installation details

    Hope that answers your question
    Sandeep Gandhi
    Independent consultant
    513-325-9026.

  • How to find or change the voltage setting set in a series of HP TouchSmart IQ500

    How do I find or change the voltage setting set in a series of HP TouchSmart IQ500 (specifically an IQ524)

    It does not use an external power adapter? If so, all you need to use in another country is an adpater sheet to match the wall outlet.

  • How to find and view the results in flash

    Hello friends,

    I work in Flash 8 and using AS 2.0 coding.

    I work with failover-page application. Here I have an option 'search '. I'll tell you the scenario.

    Here I am loading images/pages dynamically through xml. He loading and works as a page flipping. so far, it has been done. Now if you enter some text inside the search option and press, he must search all loaded images/pages and view pages resulted.

    How this feature is indeed. How to find the jpg with a given string?

    Your help will be really appreciated.

    Kind regards

    Rajesh

    You must have a database of information related to the pages.  If the pages are only jpeg images, then they will not be able to provide you with anything in the way of useful data searchable beyond possibly titles image.  So, you will need to create a database that contains all of the information in these pages that you can have your (matching chain) diagram of function search works with to find matching information.

  • How to find records given a child parent key

    I have a main table that is parent for several children tables. I want to display a button to delete a record in the primary table. I would have preferred to see the this key conditionally so when a master record's child records, I don't show button Delete and no error is raised.
    Of course I could scan each child table to find the child records, but I think that must be a generic method

    How can I tell if a given parent key has child records?

    Thanks in advance
    Oscar
    PS: I use 10 gr 2

    Published by: user10712087 on 01/13/2009 14:31

    Oscar

    There is no magic/generic way to verify that a main line has no associated detail line. As says Pavan, you must decide which detail the tables to check and them using SQL as usual. (In fact, there is a quick way - you remove the line if there is no child rows with foreign keys which is not cascade, the delete will fail; but of course you can't use this in case the deletion succeeds and the user never wants to push the button).

    An addition to the Pavan response: DO NOT under any circumstances to count all records in the table of every detail. Everything you want to know is, is it at least 1 record retail at least 1 tables. No need to count the lines 100 or 1000...

    You can do it like this in your PL/SQL

    FUNCTION check_children(p_master_id IN INTEGER) RETURN BOOLEAN
    IS
    
      CURSOR c_child1  IS
      select 1 from child_table_1 where master_id = check_children.p_master_id;
    
      CURSOR c_child2 IS
      select 1 from child_table_2 where master_id = check_children.p_master_id;
    
      -- etc for all child tables
    
    l_rec_present integer := null;
    
    BEGIN
    
        OPEN c_child_1;
        FETCH c_child_1 INTO l_rec_present;
        CLOSE c_child_1;
    
        IF l_rec_present i= 1 THEN
            -- there is a child in child_table_1
            RETURN TRUE;
        END IF;
    
        OPEN c_child_2;
        FETCH c_child_2 INTO l_rec_present;
        CLOSE c_child_2;
    
        IF l_rec_present i= 1 THEN
            RETURN TRUE;
        END IF;
    
    -- etc for each child; finally, if no child found:
    
       RETURN FALSE;
    END;
    

    This made sure that (1) you stop once you find any child, and (2) you get all NO_DATA_FOUND and TOO_MANY_ROWS exceptions thrown.

    HTH

    Nigel cordially

  • How to find applications for the watch?

    My wife showed some interest in getting an Apple Watch, but she wondered what applications are available for this purpose. I was not able to find an answer for it so I contacted Apple, but their response has been no help whatsoever so now I'm here. Before you spend money on something that might not be a lot of benefits to it, she wished to know what additional apps are available before deciding. With iOS and mac os there is an app stores to browse, but where can I find apps for the watch? Should we have a watch to find them? IThanks

    Hello

    In the section on your Mac iTunes App Store, you can search for iPhone apps and then filter the results to show only those that include an app for Apple Watch.

    For example: search for "weather" and then, in the right-hand column, click on applications Apple Watch.

  • Settings.ini is being used by another process, how to find what causes the problem

    I can't use my sidebar or windows update, that other programs work not only on the desktop administrator. have you tried restoring system and boot

    Joan

    Are you saying the problem occurs in a user profile and not another?

    What happened when you tried the system restore? How long have you had the problem? You have a restore point from before the problem started?

    It is always sensible in this situation to achieve a malware check

    Start the computer in safe mode with network and download and install Malwarebytes (free version for individuals only), updated definitions and run in safe mode. Disable other security software while you do the analyses.
    http://www.Malwarebytes.org/

    Download and run SuperAntiSpyware (Free Edition)
    http://www.SUPERAntiSpyware.com/download.html

    Some malware is installing the entries of proxy server redirecting internet connections. If you encounter this problem step 2 see in the following link:
    http://www.myantispyware.com/2011/02/21/how-to-remove-Internet-Security-Essentials-virus/

  • How to find and use the video converter total already installed on my windows7 pc toolbar

    I tried to install total video converter that would appear as a bar above the search bar. But I was told that I have told you from. Unfortunately, I'm unable to find it, much less use it. Could you please advice me.

    OLIVIER OLIVIER

    EZEIDI ONICHA

    NWA Omar na-echi eze

    Hi Olivier,.

    How did you know that the application has been installed?

    Check if the program is installed in the Panel.

    was: Start Type programs and features in the search box and press ENTER.

    b: Now, locate the program in the list to see if it is installed or not.

    Good day!

    Please let us know about the State of the question.

  • How to find information from the Team administrator

    Hello

    We try to make changes to the composition of our team, but we are unable to find information on the search for the connection that has been created for the administrator of our team. We hoped to find additional information on how to locate this information, or how to assign the administrator account on the team to someone else.

    Thank you

    -Jim

    Hi Jim,.

    In addition, you can refer to the CC for teams FAQ: Creative cloud for teams FAQ: How can I manage my account teams?

    Hope that helps!

    Kind regards

    Sheena

  • How to exclude records from the outer query

    My apologies if this was requested. I find no answer. I don't know what terminology should be for that matter.

    In simple terms, I want to use the custom in where clause to select records. Problem is function will fail if applied to old records, as there was no relevant data. I have logic to exclude old records, but the problem is that this process running function before old records are excluded. I tried an inside view to exclude records before their passage in the outer query, but this does not resolve the situation.

    Below shows high level required

    Select x

    tab

    where (condition to exclude the old records)

    and function (tab.y) = value

    If I rewrite as below, still have the problem. Was hoping to exclude former records apply before function.

    Select inn.x

    Of

    (select x,

    There

    tab

    where (condition to exclude the old records)) inn

    where function (inn.y) = value

    Thank you

    Hello

    Including ROWNUM in the result set of the query-void will force the subquery to do first:

    Select inn.x

    Of

    (select x,

    There,

    ROWNUM AS r

    tab

    where (condition to exclude the old records)

    ) inn

    where the function (inn.y) = some_value

    Since ROWNUM depends on the WHERE clause of the query-sup, the query cannot be rewritten to the main to do first query WHERE clause.

  • How to find .fmb and the path of .fmx pending

    Hi all
    I use oracle EBS 12.1.1
    I can access form of people in India HRMS manager-> people-> Enter and keep the responsibility.
    I want to make some adjustments on this form of people.
    How can I do that.
    Can I have to first FTP which form the server, then how to find where this form is stored?

    Best to ask this question in the forum of the EBS.

  • How to find hidden using the Finder folders

    Really frustrating!  I want Finder to display the hidden files and folders.  I tried everything I could find in this forum and others to do so.  That's what I tried (many times):

    Tip #1:

    Finder > go hold the option key

    If you need to continuously show

    Open your Finder > go > home folder and then order J to see the display options

    Then, restart Finder

    Suggestion #2:

    Show hidden files Mac OS X El Capitan:

    1. Click the "Finder" icon in the dock of your Mac.
    2. Open a Terminal. Terminal is a utility that allows access to the operating system OS X El Capitan. It can be opened in one of two ways:
    3. Select 'Applications' on the left side, click "Utilities" and then double-click "Terminal."
    4. Open the launch of OS X El Capitan area. Click on the "Utilities" folder Then, double-click "Terminal."
    5. Enter the following in the Terminal window, and then press "Enter": "defaults write QLEnableXRayFolders AppleShowAllFiles YES."
    6. Exit the Terminal program. This can be done by selecting "Quit Terminal" in the Terminal.
    7. Restart the Finder. Your new setting will take effect after you restart the finder. To do this, hold down the 'Alt' key and click or with two fingers on the Finder icon. Select "raise".

    None of them work for me.  :-(  I use Macbook Air and El Capitan Version 10.11.4

    Do not include the quotes.

    write QLEnableXRayFolders AppleShowAllFiles YES

Maybe you are looking for

  • Replacing the battery for Satellite NB10T-A-103

    Hi all Y at - there no replacement battery (compatible maybe?) with a higher capacity (> 2100mAh) for the computer portable satellite nb10t-a-103? the original battery only works for 2 hours. Thank you.

  • HP G62 Shut Down and no power up

    Hello If I was working recently on my HP G62 and he stopped from nowhere. The battery is fully charged, so this isn't the problem. Once I returned home I plugged the charger and the light next to the plug does not light and the computer is completely

  • cannot not to download the software driver for USB connected HP Officejet pro 8500 A909a

    My HP Officejet pro 8500 A909a is NOT a wireless printer.  It is connected via a USB port. I tried both find and download the drivers for this printer and also using the wizard to download and installation of HP (hppiw.exe).  The download was interru

  • How can I get my printer to print more than 1 page?

    I type in how many pages I want to print (1-4) but it will only print a view on my computer page.  I have a V524w printer - I can't understand the disk that came with it as I am hearing. Thanks for any help.

  • IPhone 3.5 screenshots

    Apple support:Therefore apple itunes connect requiring 3.5 screenshots iphone, as well as screenshots of iphone 4 "?My folio is formatted for 4 "only?