Get more neighbors for a given number

Hi all -

If a column in a row of values

Col1:

1
3
5
15
98

And I'm looking for a '40' value that does not exist. I'm looking for 40 can be between the values. That's on top of the column, 40 is between 15 and 98

It just isn't it?

SQL> ed
Wrote file afiedt.buf

  1  with t as (select 1 as num from dual union all
  2             select 3 from dual union all
  3             select 5 from dual union all
  4             select 15 from dual union all
  5             select 98 from dual)
  6  --
  7  select max(num) from t where num <= 40
  8  union all
  9* select min(num) from t where num >= 40
SQL> /

  MAX(NUM)
----------
        15
        98

Tags: Database

Similar Questions

  • How to get more sizes for my Windows like Windows 8.1 8 tiles without updating?

    How to get more sizes for my Windows like Windows 8.1 8 tiles without updating?

    Original title: Customize

    You must install Windows 8.1 update these capabilities.  Open the app Store and select the option get 8.1 Windows.

  • can I get more space for my site?

    can I get more space for my site?  I see that the default value for a site of WebCommerce is 1 GB...

    Business catalyst !

    Hello

    Yes, you can, to see how, please check this

    Accounts of the FAQ questions

    Let me know if you have any question.

  • HP Photosmart 7520 "Get More" icon for apps

    Old printer for only a few days.  The "Get More" icon on the online app on the home page the first day, but after the second day, he has disappeared from the App bar.  Any suggestions on how to recover the "Get More" (icon) app?  I use the printer wirelessly with an iMac OS X Lion 10.7.5.  Checked the HP connected in Apps for my printer, but it's not a way to reinstall the application "Get More"; It is not listed in the App section.  Thank you!

    Yes AnnaMarie57, to add applications to the Photosmart 7520 you should not use the website hpconnected.com. It really makes it easier (though a little less convenient), with a full text search to find and add apps on your printer. Have you ever subscribed to hpconnected.com and added to your printer?

  • How can I get more controls for audio?

    Problem: Audio only has the game and the pause button (I wonder why)

    I also need before young and rewind options

    The video has this feature

    I tried to create a video with only the sound but its size is too large (16:9) and seems impossible to crop, I need a bunch of 505 x 33 px

    Mask the video isn't an option for me, the controls of the cultures and is not very flexible way to handle the large number of audio that I have manage each issue of my magazine

    Any suggestions?

    Thanks in advance

    Italy Claudio

    Hello Claudio,.

    one option is to use HTML 5 and find a script that offers more controls for the media.

    I stumbled on the next page, the player has quick checks front and back. You can try to change the source to your liking files, and I think it's pretty cool:

    http://tympanus.NET/Codrops/2012/07/12/old-school-cassette-player-with-HTML5-audio/

    Ercole

  • How to get invoice_id ap for the invoice number

    Hello

    How to query the table of ap_invoices_v by the number of the invoice instead of invoice_id

    or, how to get the invoice_id based on invoice number and type

    appriciate your help

    Hello

    Use the where clause:

    where invoice_num = "invoice #

    and invoice_type = 'inv type.

    Kind regards

    Bashar

  • You can get more effects to keynotes

    is it possible to get more effects for keynotes?

    Some sources. Don't ignore the OS X App Store.

  • I can't more sounds for Windows 7?

    More sounds

    Can I get more sounds for windows 7 from somewhere online?

    Hello

    You hear system sounds:

    How to change the sound effects of the event in Windows 7
    http://www.SevenForums.com/tutorials/285-sounds-change.html

    IFX Custom Sound schemes in Windows 7 using seven its creator to create
    http://www.intowindows.com/create-custom-sound-schemes-in-Windows-7-using-IFX-seven-sound-creator/

    iFX seven its creator - download link has been fixed for the foregoing.
    http://www.ifxsound.NET/applications/seven.html

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

    Download Windows 7 Build 7048 sounds (13 models of different sounds)<-- good="">
    but the download link is broken
    http://www.intowindows.com/download-Windows-7-build-7048-sounds-13-different-sound-schemes/

    Download Windows 7 Build 7048 icons & sound patterns<-- download="" here="">
    http://webtrickz.com/download-Windows-7-build-7048-icons-sound-schemes/

    Use your favorite search engine to find other custom sounds and many themes include sounds.

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • Where can I find more widgets for muse?

    Where can I get more widgets for Adsense, contact form, contact list database, newsletter, social media icons, SEO, blogs, articles etc etc

    At the current stage that muse is not provides database or any other crm module. You must add the content or use the database of the server where your site is hosted.

    Here you can search for any widget you are looking for:

    http://Muse.Adobe.com/exchange

    For SEO:

    http://Muse.Adobe.com/strategies-for-SEO.html

    Thank you

    Sanjit

  • I want to download and buy acrobat adobe 10 standard, I downloaded it but it asks for a serial number, where can I get it?

    I want to download and buy acrobat adobe 10 standard, I downloaded it but it asks for a serial number, where can I get it?

    you have to buy adobe products to get a serial number, but adobe sells more acrobat x.

    You must use the latest version of acrobat (acrobat dc), Plans and prices | Adobe Acrobat DC

  • [Script / Code sample requests] The Total Network Get for a given set of ESXi hosts or natachasery flow

    Hi all

    I asked this question to Luc rooms (@LucD22) via twitter earlier and it offers to post here... good suggestion.

    Scenario:

    We have a set of ESX host running on hardware of blade, currently using double transmission 10 g out to the Top of Rack Juniper EX4500 switches. I offer you with our next design to be used in the chassis MXL Force10 switches and uplink of a distributed Thorn (or Lagg for 10g or 40g). There was some resistance from the network team saying we owe to full speed for all blades, all the time... I have a strong suspicion of our overall throughput for a given frame is much less than 320gbit... but I want to prove that with solid data.

    We had a follow-up, but they all use averages of 5 minutes (at best), so the transient peaks tend to miss (and I want to capture them if possible).

    What I would do:

    Generate a set of data that I can use to create a stacked line chart (each host or Teddy bear would be a line with each other at each point of data in total also). Probably should separate incoming and outgoing...

    I would like to have the data as granular as possible, in order to capture the 20 seconds on average, calculate averages over a period of Maximum would be ideal for each host. Remember to say a data point every 30 minutes, over a period of X (probably the length of time, the script is running allowed to run to?), maybe a failsafe (x, configurable?)

    However, overall, it probably should summarize each collection point, then calc the max of people for each datapoint (way not to capture two vertices that do not occur at the same time, the inclination data.)

    It may be useful to divide into a new CSV file daily / some-other-small-time, so long

    Other ways to do this:

    Get stats levels to get the values of "maximum" in vCenter to the largest. Ideally not... He puts a reasonable amount of strain on the vCenter DB, more it will produce asymmetrical data by combining the maximum values.

    Thoughts?
    Cnidus

    You are welcome, and as long as there is no "code editor" I will continue to make typos

  • HP laserjet more than 8600: can I get OCR software for a more 8600 with a mac?

    can I get OCR software for a more 8600 with a mac?

    If so, how?

    Hello

    OCR software, I included in the HP scanning software.

    In the Applications folder, find the Hewlett-Packard folder and launch the HP scanning software.

    After the analysis, you can select RTF or TXT files that save by processing OCR scanning.

    If you do not have the HP scanning software installed, remember to install the following software by checking the option of scanning HP during the installation:

    http://h10025.www1.HP.com/ewfrf/wc/softwareDownloadIndex?softwareitem=OJ-125213-3&cc=us&DLC=en&LC=en&OS=4159&product=4323648&sw_lang=

    Kind regards

    Shlomi

  • I can't find apps for C310 printer, using get more work.

    The only app that I installed the printer is Snapfish that was preinstalled.

    When I try to install more applications via the 'do more' function on the printer, the printer says that I have installed all apps there and maybe I watch regularly for more applications via the web or the function «get more» The eprint site, there should be a lot of apps that I could download to the printer. I'm doing something wrong? or is there some malfunction in the printer?

    avdavd, I sent you a PM. Let me know if you need more information.

  • I have windows 7 ultimate - my RAM is ONLY 1.5 GB-I need at LEAST 2.0 GB for my WORKER at HOME JOBS - HOW to GET MORE GB?

    MY NEW BOSS - AFTER 2 WEEKS of TESTING (managed to all)

    sent me this message when I sent the computer system information

    My computer is something else-

    BUT it comes to msg, she sent me ~.

    Thank you for the introduction of the certification of your system. Unfortunately, your system doesn't have enough RAM to support our programs.

    We invite you to update your RAM so that you have at least 2.0 GB available. Must be available, not total and resubmit another certification to confirm. If you have any questions or need help, please give me a call.

    MY computer says INSTALLED MEMORY (RAM) 1.5 GB

    I NEED MORE ~ ~ ~! MY NEW JOB HOME WORKER-customer service CALLS

    PLEASE PLEASE HELP AND ME SAY WHAT I HAVE TO DO TO GET MORE MEMORY

    Can someone HELP Please

    Leanani

    Las Vegas Nv

    Using the link posted by Tommy find amout max from the memory of your system can take. For a version 32-bit Windows GB 4 GB, not all of this will be available, but you should have about 3GB available.  With 4 GB installed on a 64-bit version of Windows, it will be available for Windows and most of it for applications.

    Do not forget that your specified the 'minimum' boss, being on the right side and go for more than the minimum.

    J W Stuart: http://www.pagestart.com

    This isn't accurate etirely.

    1. logical assistance must support 4 GB of ram + remapping memory. Some older Core 2 chipsets and earlier do not support this feature on the side of consumers. Not sure on the side of AMD memory controller was integrated into the cpu for a long time and I have not used something more recent than an Athlon 3800 X 2

    2/o PCI card can eat up to 1.5 GB of the address space available even if you are running X 64 #1 reason above. This means that you could be left with a meager 2.5 G (without video card with large amounts of video ram)

    OP after the specifications of your PC chipset stating so we can help you.

    For example, Intel Core 2 Duo Intel 965 G. All this information will be available through the Device Manager and system properties

  • How to get the timestamp per minute for the given interval

    Hello

    I have a table with a date of beginning and end of time columns. I need to divide the date given in one minute interval and post the results.

    create table min_data(objectid varchar2(20),starttime timestamp,endtime timestamp,duration number);
    
    
    SET DEFINE OFF;
    Insert into MIN_DATA Values ('U1_B011_P006_InvA', TO_DATE('06/23/2015 02:42:00', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('06/23/2015 02:46:00', 'MM/DD/YYYY HH24:MI:SS'), 5);
    Insert into MIN_DATA Values ('U1_B011_P006_InvA', TO_DATE('06/23/2015 12:43:00', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('06/23/2015 12:44:00', 'MM/DD/YYYY HH24:MI:SS'), 2);
    COMMIT;
    
    
    
    
    

    My expected output should be something like this. INT_TIMESTAMP is the timestamp calculated for the given interval (time of start and end times)

    INT_TIMESTAMPOBJECTIDSTARTTIMEEND TIME
    23/06/2015-02:42U1_B011_P006_InvA23/06/2015-02:4223/06/2015-02:46
    23/06/2015-02:43U1_B011_P006_InvA23/06/2015-02:4223/06/2015-02:46
    23/06/2015-02:44U1_B011_P006_InvA23/06/2015-02:4223/06/2015-02:46
    23/06/2015-02:45U1_B011_P006_InvA23/06/2015-02:4223/06/2015-02:46
    23/06/2015-02:46U1_B011_P006_InvA23/06/2015-02:4223/06/2015-02:46
    23/06/2015 12:43U1_B011_P006_InvA23/06/2015 12:4323/06/2015 12:44
    23/06/2015 12:44U1_B011_P006_InvA23/06/2015 12:4323/06/2015 12:44

    I wrote a query that works for one set of intervals.

    With get_data AS(
    SELECT   a.*,
             starttime -1/1440 v_s_date,
             endtime v_e_date
    FROM min_data a
    where duration=5)
    SELECT v_s_date + ((1 / 1440) * DECODE(LEVEL, 1, 1, LEVEL)) int_timestamp, objectid,starttime,endtime
              FROM get_data d
             WHERE MOD(LEVEL, 1) = 0
                OR LEVEL = 1
            CONNECT BY LEVEL <= (v_e_date - v_s_date) * 1440;
    
    

    Please send me a SQL query that gives me the timestamps of minutes between intervals.

    Hello

    The following query works for any number of intervals

    SELECT STARTTIME + ((LVL-1) / 1440) INT_TIMESTAMP, OBJECTID, STARTTIME, ENDTIME

    Of

    (SELECT LEVEL LVL FROM DUAL CONNECT BY LEVEL< 10)="">

    (SELECT * FROM MIN_DATA)

    WHERE STARTTIME + ((LVL-1) / 1440) BETWEEN STARTTIME AND ENDTIME ORDER BY, STARTTIME, ENDTIME LVL;

    Concerning

    Salim

Maybe you are looking for