I need to retrieve the a set of rows in between two rows from a table.

consider employees table and primary key employee_id.
With out using EMPLOYEE_ID column in the where clause or between clause, I need to get the records between 104 and 116 or a set of records between two rows.
Can any one help me in this... i know this is simple but am just a fresher to oracle development... help me grow....
Thanks,
Arun

ya at last i got the out put... thank guys for thinking with me....
SELECT rownum, employee_id FROM (SELECT rownum, employee_id FROM employees ORDER BY employee_id)
WHERE ROWNUM <=8
MINUS
SELECT rownum, employee_id FROM (SELECT rownum, employee_id FROM employees ORDER BY employee_id) WHERE ROWNUM <= 4

Similar Messages

  • HT4847 I backed up my iphone 2 days ago via icloud. I now have restored my iphone to the factory settings and I need to retrieve the data that I backed up 2 days ago from icloud. My phone is only giving me an option to back up from my ipad icloud. Please

    Please Help
    I had lost all the music on my iphone a while back and wanted to put it back on but my PC is a dinosaur and couldn't handle the sync without taking days. I decided to give it a go anyway. I tried to sync but kept getting an error message saying "waiting for changes to be applied". I looked up a solution to this problem and I saw that I should restore the phone to factory settings which I did. I then tried to sync again and it worked! .....the downside was that it took forever and I was without a phone for 36 hrs while I waited for sync to complete. It was at 662 0f 771 last night when I went to bed and when I awoke this morn, syncing had ceased and my phone was still erased of all data.
    I am thinking now that everything was done and all I needed to do was turn off my phone and turn back on again but in a panic I selected an option on the phone to back up from icloud (as I knew I had done a backup 2 days ago). The only option available was "ipad backup" from over a week ago and stupidly I selected this option. It was successful but my contacts, mail, messages, photos and most importantly my notes and reminders are gone!!!
    I have now restored the phone back to factory settings again.
    WHAT DO I DO NEXT??

    I went back to iOS 7 and my backup file is restoring but when its done nothing is on my phone still and only takes 11-15 minutes to restore the backup instead of taking 25+ minutes like usual so I guess the backup is corrupted. How can I fix this?

  • I need to retrieve the code I was given to activate my creative suite design & web premium.

    PLEASE can someone help me. I need to retrieve the code I was given to activate my creative suite design & web premium. I have got a new mac and it is only saying I have a 30 day trial.

    Sign in, activation, or connection errors | CS5.5 and later
    Find your serial number quickly
    Mylenium

  • How to remove the option "Set as default background..." from the right-click menu on a picture, for all users.

    Hi! I would like to know if there is any possibility to remove the option "Set as default background..." from the right-click menu on a picture, for all users. I know that's possible to edit userContent.css or userChrome.css, but this concerns only a profile at a time and being in a domain, I would like to set this for all people using Firefox.
    Can it be possible to edit a mozilla.cfg file to get the same result?
    Thank you in advance for help and tips.

    AFAIK then there is no way to do that system wide. You can only do that via userChrome.css or an extension like the Menu Editor per profile .You can install extensions globally, but the user will have to enable them anyway. That is not required for userChrome.css code.

  • Is it possible to set up a backup between two external drives

    Is it possible to set up a backup between two external drives?
    i use time machine to back up my imac onto an external 2T.
    i also have two external 3T drives.  i am looking for redundancy of data, tried software RAID and it failed.  i also see some limitations with RAID that a backup would avoid.
    thanks for sharing your expertise.
    be well,
    tony

    so thanks to all of you, particularly rkaufmann87 i have decided to stop the plan of setting up a software RAID set.  instead i have downloaded ccc and am in the process of setting up the secone 3t external drive as a clone.  i will use time machine to back up the internal hard drive only and if possible see if i can clone that as well onto one of the 3t's.
    this gives me the peace of mind i sounght and avoids the problem of total corruption that exists with the raid solution i was exploring.
    thank you all for making this an enjoyable and informative experience.  what a powerful community.
    be well
    tony

  • How to count the number of Fridays and Saturdays between two dates

    Hi every one ... If we want to count the number of Fridays and Saturdays between two dates, how would we do that ? !
    Dates are ( 11-Feb-2010) to (19-May-2010)
    how to do it in SQL
    Edited by: khalidoracleit on Jul 28, 2010 5:51 AM

    some nice coding here, I'm still amazed with what some people can do with "connect by". But I agree with some statements here that this can take "time", and to be honest, it's funny to see it working, but if you do not have a computer, just a calendar and some paper, would you go for "counting" so there must be a better solution?
    The best working math in here is done by Aketi Jyuuzou, who writes so good English that I wonder why he still insists that he doesn't ;-)
    Anyhow I "translated" that code to English, and I really like that math. Math is math and data is data.
    ALTER SESSION SET NLS_DATE_LANGUAGE='ENGLISH';
    WITH my_dates AS (
    SELECT to_date('20100211','yyyymmdd') start_date,to_date('20100519','yyyymmdd') end_date FROM DUAL
    UNION ALL
    SELECT to_date('20100211','yyyymmdd') start_date,to_date('20100214','yyyymmdd') end_date FROM DUAL
    UNION ALL
    SELECT to_date('20100211','yyyymmdd') start_date,to_date('20100213','yyyymmdd') end_date FROM DUAL
    UNION ALL
    SELECT to_date('20100211','yyyymmdd') start_date,to_date('20100212','yyyymmdd') end_date FROM DUAL
    SELECT to_char(start_date,'DD.MM.YYYY') start_date,to_char(end_date,'DD.MM.YYYY') end_date,
           to_char(start_date,'DAY') start_weekday,to_char(end_date,'DAY') end_weekday,
           end_date-start_date day_difference,
           (next_day(end_date,'FRIDAY')-7
           -next_day(start_date -1,'FRIDAY'))/7+1
           +(next_day(end_date,'SATURDAY')-7
           -next_day(start_date -1,'SATURDAY'))/7+1 as count_of_fr_and_sat
    FROM my_dates;
    START_DATE END_DATE   START_WEEKDAY                        END_WEEKDAY                          DAY_DIFFERENCE         COUNT_OF_FR_AND_SAT   
    11.02.2010 19.05.2010 THURSDAY                             WEDNESDAY                            97                     28                    
    11.02.2010 14.02.2010 THURSDAY                             SUNDAY                               3                      2                     
    11.02.2010 13.02.2010 THURSDAY                             SATURDAY                             2                      2                     
    11.02.2010 12.02.2010 THURSDAY                             FRIDAY                               1                      1                      -- andy

  • Dont want to show the divided line between two rows in a Grid.

    Hello Friends,
    I want a Grid in which I want multiple rows but i dont want to show the divided line between two rows.
    It is just like a grid on Territories form(Administrator->SetUp->General->Territories)
    Thanks.

    Mithun,
    The component you're talking about is not a grid, and that component is not exposed by the UI API so you cannot use it.
    Regards,
    Vítor Vieira

  • How does the ADF support romote call method between two managed server ?

    How does the ADF support romote call method between two managed server ?

    You would usually use this as a WebService through the WSDL that is exposed.
    JDeveloper can help you create a Java Proxy to call the Web service if you point it to the WSDL file that was generated for your AM.
    Some other samples here:
    http://www.connotea.org/user/jdeveloper/tag/Service%20Interface

  • Calculate the variance between two row

    Post Author: jane
    CA Forum: WebIntelligence Reporting
    Hi,
    I'm new to BO and wondering whether there is a way to calculate the variance between two rows. I'm working on a report which requires to display the change of two day's data. For instance, I have a table in a format as
    Date
    Sales Amount
    3/12/2008
    2300.00
    2/12/2008
    1280.00
    Changed
    1020.00
    I'd like to display the "Changed" column. Is there a way to do that in BO InfoView? In Excel, you can use the formular by identify the two cells.
    Thanks!

    Post Author: Vinl
    CA Forum: WebIntelligence Reporting
    I am having the same problem and am steping outside of the box and cannot progress.
    Seems to me that you are kind of saying that the only way to get around this is to create an individual object in Designer? I cannot find a way of cementing values as a variable in order for a variance to be created.
    I am trying to do it at column level mind you, which should not make that much difference....
    Simple SQL database. I have created an object called "Year" which takes a date and converts it to a year. I then have another object created "Total sales", put the 2 in a table get the right results...try and create a year on year variance from that...no chance...
    Used to work ok...?

  • Need to retrieve the most recent record per deposit number

    Can someone please show me a way to solve my problem or at least point me in the right direction.
    I have a simple bibliography table called mdd_biblio that has 3 fields:
    bib_mdd_no this is a deposit number
    bib_upd_by person who updated the record
    bib_upd_date date the record was updated (timestamp)
    A deposit might have more than one bibliographic entry with either the same date or a newer date and, the deposit might have one or more person updating the bibliography
    The table has 4974 records but only 1867 are unique deposit numbers
    All I want to do is select a single record that indicates when the deposit was last edited and and who did the editing (as indicated by the *). I don't care which record it is as long as it is the most recent date.
    The following query retrieves 1944 records (67 duplicates) and has eliminated 3000 duplicates but hasn't eliminated them all. Why?
    select unique(bib_mdd_no), bib_upd_by, bib_upd_date from mdd_biblio
    order by bib_mdd_no
    M64C/16-001 MDD 13-SEP-07 *
    M64C/16-001 MDD 13-SEP-07
    M64C/16-002 DPROUXE 30-NOV-07 *
    M64C/16-002 MDD 13-SEP-07
    M64C/16-002 MDD 13-SEP-07
    M64C/16-003 DPROUXE 29-NOV-07 *
    M64C/16-003 MDD 13-SEP-07
    M64C/16-003 MDD 13-SEP-07
    M64C/16-004 MDD 13-SEP-07 *
    M64C/16-004 MDD 13-SEP-07
    M64C/16-005 MDD 13-SEP-07 *
    M64C/16-005 MDD 13-SEP-07
    M64C/16-006 DPROUXE 03-DEC-07 *
    M64C/16-006 MDD 13-SEP-07
    M64C/16-007 MDD 02-OCT-07 *
    M64C/16-008 MDD 02-OCT-07 *
    M64C/16-009 MDD 02-OCT-07 *
    M64C/16-010 MDD 02-OCT-07 *
    I don't understand why of these duplicates still show up here since 3000 have been eliminated..
    To Reiterate: What I really need is a simple query to retrieve the most recently edited record for each deposit number regardless of the updater's name. I need this in order to build a summary table from this and 15 other tables.
    Thanks for any help you can give
    Glenn

    Usually it is done somehow like this
    select bib_mdd_no,
           bib_upd_by,
           bib_upd_date
      from (select bib_mdd_no,
                   bib_upd_by,
                   bib_upd_date,
                   row_number() over (partition by bib_mdd_no order by bib_upd_date desc) r
              from mdd_biblio
    where r = 1
    order by bib_mdd_noRegards
    Etbin

  • Need help for the security setting

    We are preparing the demo environment with ADF Security turn on with Http Basic Authentication.
    Everything works fine but for a command that is send to one of our proxy servlet (context path /BIProxy), we got a pop up dialog that asks you to login to weblogic container.
    Anyone have any suggestion regarding what extra security configuration that I need to config to access to context path/servlet that is not default Faces servlet.
    The following is what we have in jazn-data.xml for region:
    <permission>
    <class>oracle.adf.share.security.authorization.RegionPermission</class>
    <name>testsecurity.pageDefs.untitled1PageDef</name>
    <actions>view</actions>
    </permission>

    Hi, we find more informaiton.
    We got two 401 errors which causes the login popup.
    o. For the 1st 401 error (expected), the http header is set to: WWW-Authenticate: Basic realm="jazn.com" so we enter the correct user credential, the dialog goes away.
    o. For the 2nd 401 error, the http header is set to: WWW-Authenticate: Basic realm="WebLogic Server" so we get "Authentication Required" dialog ask for WLS login.
    For the 2nd 401 error, we are pointing to /Sales-BaseSalesSalesHomePageUi-context-root/BIProxy?cid=BIPresentationServer&RedirectURL=res/b_mozilla/common/obips.ImportMeFirst.js from Referer URL: /Sales-BaseSalesSalesHomePageUi-context-root/faces/zbsSalesHomePage?_adf.ctrl-state=x5a1n5x2d_11
    So my quesiton is that do we need to add some security setting in jazn-data.xml or someother files to specify security setting for /BIProxy?
    Thanks

  • How i retrieve the default setting for my browser ?

    when i download any file from firefox browser there a small box that ask you if you want to from your browser to do the same action for files like the file you are downloaded automatically,
    i did that and i wont to retrieve the old sitting i tried to reinstall the browser but it doesn't worked! so any suggestion?

    The instructions in [[Resetting preferences]] explain how to reset all your preferences back to the defaults.

  • Need to retrieve the journal ID in the logs.

    Hi All,
    Where can I retrieve the journal ID in the logs?
    Thanks in advance
    Bala

    What exactly are you looking for? There is no "log" that contains a journal ID, except the log created when you try to load metadata and could possibly impact journals. Please clarify what your objective is and perhaps we can help.
    --Chris                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Do I need to install the drivers on my old Mac Pro disc or from my Snow Leopard disc?

    Hi,
    I've got a 2008 Mac Pro (dual quad @ 3GHz) w/ 24GB RAM and I've got Windows 7 Ultimate 64-bit installed. What do I need to install?
    On my newer 2009 iMac (which included Mac OS X 10.6) I just inserted that disc specific to the iMac and installed the drivers, but the disc for my Mac Pro is old (10.5.2) do I need to install the drivers on it or not? Can I just insert my Snow Leopard 10.6 disc to install Boot Camp etc., or won't that include drivers for the Mac Pro? The Mac Pro is running Snow Leopard 10.6.8.
    Thanks.

    Thanks for your reply,
    I have both the silver discs specific to my iMac and Mac Pro models that you receive with your Mac, and a general copy of Snow Leopard that you buy from the store.
    I used the silver disc that is specific for my iMac to install the drivers, and Boot Camp 3.0 on my iMac. But with the Mac Pro, the software is older and only has Boot Camp 2.0, thus I'm wondering if I can simply use the software on the general copy of Snow Leopard I own, or does the silver disc contain specific drivers for my Mac Pro that I need?
    I'm under perhaps the wrong impression that the silver discs that you get with your Mac purchase contain drivers for your specific Mac model which you can't get from the general Snow Leopard disc.
    Thanks.

  • Putting the label text of a chart on two rows - SSRS 2012

    Hi,
    for a my SSRS chart I need to show month and year period on x-axis and I'd like to put the month above the year, in this way:
    Sep.    Oct.    Nov.
    2014   2014   2014
    Is it possible?
    Thanks

    Hi pscorca,
    According to your description, you want to show both months and years in label of X axis. Besides, months should appears above years.
    In this scenario, we still need to have the values group on month. However, we can use the expression in labels. We can combine value of two fields, then use “vbcrlf” make years appear under the months. Please refer to below steps:
    1. Add Month field to Category Groups. Open Category Group Properties, set Label expression as “=Fields!Month.Value & vbcrlf & Fields!Year.Value”. Please refer to the screenshot below:
    2. Click Preview, the result looks like below:
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu

Maybe you are looking for