Search range of the number to other folders

Hi all

I want to know the records which are in the range of other records in the table as:

with t as 
(select 1 ID, 405 Address, 3 Num from dual
union all
select 2 ID, 399 Address, 10 Num from dual)
select * from t 

If I'm on ID = 1 and I want the number of records in the table with the range of logic (405,406,407,408) is the research (Address [405] + num [3]) and output should be 2nd

because its already use 405,406,407,408 (logical is 399 + 10, so between 399 to 409).

Same deal if I select Id = 2, then he should be back record id = 1.

Please help me...

Thank you

Xandot

Brute force, be simplified:

with t as

(select 1 ID, address 405, 3 double Num

Union of all the

Select option 2 IDS, address 399, line 10 of the double

Union of all the

Select ID, address 406 3, 1 double Num

Union of all the

Select ID, address 400 4, 1 double Num

Union of all the

Select ID, 400 address 5, 6 double Num

)

Select

*

t, (select address has, address + num n t where id = 1) a

where id! = 1

and (address

between a.a

and a.n

or address + num

between a.a

and a.n

or AA

between the address

and address + num

or a.n

between the address

and address + num

)

ID; ADDRESS; NB; A; N

"2";" 399. " "" 10. " "" 405 "; "408"

"3";" 406. " » 1 » ; "" 405 "; "408"

"5";" 400. " » 6 » ; "" 405 "; "408"

Tags: Database

Similar Questions

  • How can I get the Inbox and other folders showing when I open logging

    When I have a message open, I can't see my Inbox and other folders. I need to scroll through the messages at the top until I have find the Inbox. Y at - it a fix for this or is it the new configuration for Mozilla?

    Stop leaving the message tabs opened after reading them.

    To close all tabs, you have now opened right click on one of them, and then select close other tabs. Then use the x to close the last of them.

    Make a habit of close tabs message after reading the or just read the messages in the message pane and do not open the tabs.

  • IOM search results: increase the number of entries per page

    Hello

    When you search for IOM, ten IM appear on each page. We want to increase the number of entries returned per page. Anyone know if this is possible or not? And, if possible, how it is configured?

    Thank you!

    Ed

    Check xlDefaultAdmin.properties.

    global.displayRecordNum.value = 10

    You can increase from there.

  • How to extract the number and other particulars

    I am trying to write a simple Select query that returns a list of
    Used EMPLOYEE_TABLE and in the second column names a count of the
    number of entries for each employee in the EMPLOYEE_ATTENDANCE table.

    Can anyone suggest how I might do this?

    For example:
    I have two tables EMPLOYEE_TABLE and EMPLOYEE_ATTENDENCE.

    EMPLOYEE_TABLE:

    emp_number emp_name
    1A
    2B
    3 C
    4 D

    EMPLOYEE_ATTENDENCE:

    emp_number emp_time
    1 8.00
    1 8.00
    1 8.00
    4 8.00
    4 9.00
    4
    4
    4
    3
    3
    3
    2




    Now my requirement is I want to retrieve the list of employees with emp_name and the number of days
    the employee came (ie the number of entries in the EMPLOYEE_ATTENDENCE table).
    Some, such as:

    A 3
    B 1
    A q
    D 5

    Select
    a.emp_name, b.emp_attendence
    Of
    Employee_Name has,
    (select emp_number, count (emp_number) "emp_attendence" of the employee_attendence by employee_number group) b
    where a.emp_number = b.emp_number;

    Kind regards
    Navneet

  • Help. Why my computer is "backup", a copy of the photos I'm the downloading from the internet or other folders?

    Whenever I have select multiple photos to download or move somewhere and I get to a number of selected images, Windows, or everything he does makes copies of selected images. It's a stupid program because it does not check to see if a copy had already been made and he asks either. This is an example of stupid stupid dummy programming and I want it stopped.

    Well intentioned? Yes. Extremely stupid? You bet.

    And if your answer is it's a virus so don't ' announcement of the sentence. If there's a post on it is caused by a virus, I want all users to disregard this post cause it is trying to sell her unwanted removal of malicious software. My computer is clean!

    Whenever I have select multiple photos to download or move somewhere and I get to a number of selected images, Windows, or everything he does makes copies of selected images. It's a stupid program because it does not check to see if a copy had already been made and he asks either. This is an example of stupid stupid dummy programming and I want it stopped.

    Well intentioned? Yes. Extremely stupid? You bet.

    And if your answer is it's a virus so don't ' announcement of the sentence. If there's a post on it is caused by a virus, I want all users to disregard this post cause it is trying to sell her unwanted removal of malicious software. My computer is clean!

    =========================================
    Unwanted copies have "copy of" appended to the file?

    If_Yes_read the following...

    Sometimes most of the person who
    trying to select multiple by holding the CTRL
    or the SHIFT key down while clicking on the left to select the
    image files.

    Copies are created when you are unable to
    completely release the mouse button before
    you move the pointer to another file. When a group
    the selected file is dragged... even the slightest
    release the mouse button will produce a bit...
    copies of all the files previously highlighted.

    It's a little easier if you have your folder
    Options set at single click... that way you can
    select/deselect a file with just a mouse more
    and you don't have to click. For multiples you
    I have to keep... CTRL or Shift.

    Do not click on... no slip... no copy... maybe that of
    your solution. To adjust the click...
    Open a folder and go... Tools / folder
    Options / General tab... Check... 'single click '.
    To open an item"/ apply / OK.

    If you want to delete all the files in a folder
    You can try the following:

    Reach... Edition / select all... or type... CTRL / has...

    With all of the files selected... go... Drop / delete...
    or press your delete key... or... click on the
    Group and choose 'delete '.

    How do I find and remove unwanted 'copies '.
    of your image files.

    Open the folder that the images are saved in and
    on the left, click on the button 'Search' in your toolbar.

    (If you view the files from a montage
    program and do not know where the record is... right
    Click on one of the image files and the menu...
    choose... Properties. The path to the folder will be
    in the tab 'General' to 'Place').

    In the research pane select... "All files and folders".

    In the "All or part of the file name" field. Come in...

    a copy of

    Now... on the left, click on the search"" button.

    When the search is complete... go to... Edition / select all...

    Then go to... Remove / delete.

    You will see a dialog box asking if you are sure
    you want to delete the files, click Yes.

    Now... on the left, click on the 'Back' button in your toolbar.

    Now the remaining files should be your originals.

    If you delete the wrong files... recover from
    your basket now.

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • Move the photos to other folders?

    I've seen many posts on this lack of features, but when Apple will fix this?  Hard to believe that with the huge technology crammed into these iPhones, I can still take a picture and move them to another folder!  Of course, I can use on my iMac iPhoto if I was in my office, all the time, but who is?  What a pain in the butt.  Why is it this way?

    What do you mean by "record"?

    On the iPhone, you can create and populate the stream of photos or Albums the.  On your Mac, you will have access to these two things.  Are what limits you referring?

  • by pressing the arrow down 'quick search' opens and inserts the number 3

    pressing arrow opens 'fast search' and inserts the number 3. pressing the left or right arrows, the slider moves correctly but also inserts the number. To ti3mes the number 3 seems sel3f 333 "insert" as it does now as I'm typing

    You are welcome.

    Thanks for reporting on your results.
    You can mark your answer above as the solution by clicking on the "Solves the problem" button next to this response.

  • How can we find Lenovo Thinkstation number since the number of model Lenovo

    Hello

    One of my Clients uses a Lenovo model Lenovo 4282PW6. This information is available in Msinfo32. But how do you know which model ThinkPad or machines he uses?

    As I personally use ThinkStation S30. However while performing for the MSinfo32 information system, it shows the system as 43516S 4 model.

    If can please tell me what ThinkPad/ThinkStation does 4282PW6 correspond to the?

    I would also like to know how do we find this in the future?

    Kind regards

    Sumit

    This link is what makes Z reference: http://support.lenovo.com/us/en/products/search

    Enter the number MTM (43516S 4, 4282PW6, MG 2447, 3, etc.) in the search field on this page and click on "search".

  • Is it possible to get clip names and additional descriptions (and other metadata) in a report? The number, .xls or some other document available?

    I have about 12 tablespoons of images recorded on several projects. Each clip has a description added to it. I'm trying to find a way to search for a specific content easier. Since so much information was laboriously on slot form of description of metadata, it would be great to be able to use it. Which brings me to the question -

    Is it possible to get clip names and additional descriptions (and other metadata) in a report? The number, .xls or some other document available?

    Thank you!

    Karim.

    one way is to highlight all the media/bins in the project Panel and from the menu, export the batch list. This will create a .csv text file.

    There is also this option in another post, but do not know how it works. First Pro CC - how can I export metadata custom in Excel?

  • How to find the number of search results

    Hello world

    Suppose that you type on the Web, and 2 page tabs for table dept and the other for the table emp and you do database text element not in the emp tab page. I need when I press dept page on-line access emp page and display the number of search results in this element of text

    any help that I enjoyed

    Thank you

    Hello
    What happens if you create a text element (no database) with the type of digital data in the emp block and set the property No. view records at 1.
    Then set the summary calculation .
    Then assign the Count summary function .
    Then choose the summarized block list as block EMP and choose any column in the list Elements summarized .

    The run of the form.

    -Clément

  • How can I get the number of emails in my Inbox (not just read but total) to view the list of folders?

    I use to have a count of the total number of mails in my Inbox. This was listed next to "inbox" in my list of folders. With the latest version, it is gone and I can't find anything in the settings which may bring back this feature. I see the number of emails by right clicking on the folder, but I would love to just see it again a glance.

    You have this add-on?

    https://addons.Mozilla.org/en-us/Thunderbird/addon/extra-folder-columns/

    http://chrisramsden.vfast.co.UK/3_How_to_install_Add-ons_in_Thunderbird.html

  • why I can't open emails in my Inbox that happened before today - I can open the messages today and I can't open emails earlier tha are stored in other folders

    Yesterday, I got a message that I "could not mail" because my Inbox was full and that I should delete some files or compact. He had only about 20 messages in there, but I had ignored the suggestions that I have compact for awhile I went to the menu and hit compact. Then I could get mail and I could open it while he was in my Inbox.

    This morning I got the email and I was able to watch it and I deleted a lot. A little later (I had rebooted my computer at the same time) I wanted to watch an email in my Inbox. He seemed to open but didn't have any content at all. Similarly when I looked at the message at the bottom of the screen it doesn't show there at all. The only messages in my Inbox that I watch are the two that happened today.

    I am able to open the messages that are stored in other folders. But by moving a message in the Inbox to a folder not in fact could not be opened.

    Something else odd; in the Inbox, a message that I can open shows the sender evil - the sender of a message that I had been in motion to see if it could be opened if it was stored elsewhere; but the sender is correct when I opened the message.

    It's all very weird.

    It sounds like you do not have a corrupt Inbox file.

    First create a backup of your profile folder.

    _ http://KB.mozillazine.org/Thunderbird: _FAQs_:_Backing_Up_and_Restoring

    Then try to repair the Inbox.

    Right click on the folder of Inbox Repair - properties-

  • In the google search engine lack of research (and other) bar

    A number of search engines have disappeared. I guess I can add those that I added in the past, but Google is missing and I don't know how to add.

    Try to restore default search engines by selecting "Manage search engines" in the drop-down list beside the search on the address and then bar by clicking on "Restore Defaults", it will attempt to restore the default value of Google search engine to the list. You should now be able to choose Google as search engine, even if it can remove those that you added previously.

  • I just started using my new iMac 27 "and in Mail, I can't find the setting to display a column that shows the number of emails in each folder.  Mavericks, I had this column.  I have checked all the menus and preferences and search online.

    I just started using my new iMac 27 "and in Mail, I can't find the setting to display a column that shows the number of emails in each folder.  Mavericks, I had this column.  I have checked all the menus and preferences and search online.

    Click the triangle next to the Inbox to view the Inbox for each account. Then select the desired mailbox and the information will be displayed in the upper part.

    You are entitled to 90 days telephone support from Apple. Try to contact them.

    Apple Support contact

    Apple Support by email or chat

    Contact Apple Support - phone

  • Is there a way to divide such ads and Add ons in a screen and automatically display search results in the other

    Original title: twomonitorsononepc

    I have two monitors on my pc is there any way for example divide ads and Add ons in a screen and automatically display search results in the other.

    or if facebook were used cat into one screen and status on the other screen please

    Hi Richard,

    What is the operating system installed on the computer?

    It seems that you need to divide the same application in several windows and place them in different monitors. Is this correct?

    Unfortunately, it is normal and you can not split the same application on two different monitors.

    Hope this information helps. Get back to us if you have more queries about Windows.

Maybe you are looking for