Simple query... but not so simple for me :(

http://img402.imageshack.us/img402/4654/tableps.jpg

I have a table that looks like the img above.
For each line,.
Two columns with Max and Min respectively numbers. And a value column.


How can I query to retrieve the value if I give myself only a variable whose number is 14.
Can someone show me in sql? Use us to the min and max function?

First change the name of the columns of MIN and MAX, what are words of reserve might give you unexpected results
Second, you can get data from Non equi join if you work with 2 tables

 select * from mytable
 where 14 between min and max;

Tags: Oracle Development

Similar Questions

  • I use firefox 3.6.16 and I want to upgrade to firefox 4, but not be adjusted for firefox 4. Is there a way to do this?

    I use firefox 3.6.16 and I want to upgrade to firefox 4, but not be adjusted for firefox 4. Is there a way to do this?

    Not until Mozilla gets started the 3.6.x to 4.0 notification 'upgrade', which will probably not happen for another 2 to 4 weeks based on how they handled this type of 'upgrade' in the past.

  • A key, but not cd/dvd for the operating system

    I received my new computer, but did not come with the operating system installed. It has the key for windows vista, but not CD... How to install the operating system

    Read the info below:

    How to get Vista recovery Media or the Vista recovery Partition on your computer back to factory settings.

    There is no Vista free download legal available.

    Contact your computer manufacturer and ask them to send a recovery disk/s Vista set.

    Normally, they do this for a cost of $ small.

    In addition, ask them if you have a recovery Partition on your computer/laptop to restore it to factory settings.

    See if a manual provided with the computer or go to the manufacturer's website, email or you can call for information on how to make a recovery.

    Normally, you have to press F10 or F11 at startup to start the recovery process...

    Another way I've seen on some models is press F8 and go to a list of startup options, and launch a recovery of standards of plant with it, by selecting the repair option.

    Ask them if you can also make recovery disk/s for the recovery Partition in case of a system Crash or hard drive failure.

    They will tell you how to do this.

    Every computer manufacturer has their own way of making recovery disk/s.

    Or borrow a good Microsoft Vista DVD (not Dell, HP, etc).
    A good Vista DVD contains all versions of Vista.
    The product key determines which version of Vista is installed.

    There are 2 disks of Vista: one for 32-bit operating system, and one for 64-bit operating system.

    If install a cleaning is required with a good DVD of Vista (not HP, Dell recovery disks):

    Go to your Bios/Setup, or the Boot Menu at startup and change the Boot order to make the DVD/CD drive 1st in the boot order, then reboot with the disk in the drive.

    At the startup/power on you should see at the bottom of the screen either F2 or DELETE, go to Setup/Bios or F12 for the Boot Menu

    http://support.Microsoft.com/default.aspx/KB/918884

    MS advice on the conduct of clean install.

    http://www.theeldergeekvista.com/vista_clean_installation.htm

    A tutorial on the use of a clean install

    http://www.winsupersite.com/showcase/winvista_install_03.asp

    Super Guide Windows Vista Installation

    After installation > go to the website of the manufacturer of your computer/notebook > drivers and downloads Section > key in your model number > get latest Vista drivers for it > download/install them.

    Save all data, because it will be lost during a clean installation.

    See you soon.

    Mick Murphy - Microsoft partner

  • Allow users to open a file on the network but not copy it for their machine. Possible?

    People! I have a scenario. Please let know us if its possible. I put a PDF on a folder and share it. I want to give users a direct link (network path) to this file so that users can open the pdf file. But I don't want them that copy on their local machine. Is this possible? If Yes please let me know for XP SP3 and Server 2003. Thank you!

    Hi rkka.

    Thanks for visiting the site of the community of Microsoft Windows XP. The question you have posted is related to the Server 2003 and would be better suited to the Technet community. Please visit the link below to find a community that will provide the support you want.

    http://social.technet.Microsoft.com/forums/en-us/categories/
    Shawn - Support Engineer - MCP, MCDST
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • Windows Mail can receive mail but not send worked for years

    I used Messaging windows for many years and now all of a sudden I have that can receive messages but can't send it I tried everything that the help section nothing. Does anyone have an answer or a suggestion?   Help, please

    I don't know your password.  If you have forgotten your password, you need to ask your ISP.  The concept behind a password is that only you know.

    Steve

  • Returns data query, but not in the datagrid control.

    Using Flex Builder 2 and ColdFusion, someone at - it advice or examples of executing a database query and the results for display in something else than datagrid? I need to more control on posting it where my data returned on my forms.

    You can start just binding a dataprovider (IE. Collection ArrayCollection) the result of CF and then you can use this a dataprovider for what is appropriate (the list, the drop-down list box, etc.).

    See this FB 2.0.1 help topic:
    Data connection

  • working in sql of the query, but not so forrms!

    I transferred my column of tblrefstaff to use paymast apprnum

    SQL > update paymast set paymast.apprnum = (select tblrefstaff.apprnum in the tblrefstaff where the tblrefstaff.empno = paymast.empno and rownum = 1);
    5072 lines updated

    Now I ask paymast records

    SQL > select empno paymast where apprnum = '338';

    EMPNO
    ----------------

    2217
    SQL > select apprnum from the paymast where empno = '2217'.

    APPRNUM
    --------------------------------------------------
    338


    Now in shape when I write this in the title of the post REQUEST
    Start
    Select apprnum
    in: paymast.apprnum
    of paymast
    where empno =: paymast.empno;
    exception when no_data_found then null;
    end;
    No data is retrieved in article apprum

    its only retrieved when the table name is that of the previous one like this
    Start
    Select apprnum
    in: paymast.apprnum
    of tblrefstaff
    where empno =: paymast.empno;
    exception when no_data_found then null;
    end;


    2nd CASE: after the transfer of apprnum to paymast all items are now under paymast then I just removed under POST-QERY code and all of the datbase Yes item and column name to APPRNUM but still no use
    It retrieves only records in the use of apprnum
    Select apprnum
    in: paymast.apprnum
    of tblrefstaff
    where empno =: paymast.empno;
    exception when no_data_found then null;
    end;

    How should solve this problem. ?

    Published by: Chase Suhail on November 10, 2009 02:10

    I think you forgot to commit; after you run the stmt update...

    It will not work in SQL, because you wrote the application immediately after the selection of stmt.

    But shapes is in another session, he cannot access the data until you commit the SQL session.

    Concerning
    Dora

    Published by: Dora on November 10, 2009 14:26

  • Grant permission to select the function but not executed in a PL/SQL block

    Hello.

    I know that there are only two permissions on procedures/functions - RUN and DEBUG.

    But I want to grant EXECUTE permissions for a user so that the user can Select the function to double or to any other request, but not to run(to prevent the user to trigger the update of LMD - insertion, etc.) inside a BEGIN-END block.

    I know that we can revoke access to tables etc. But that access has to give. The user must be able to perform the DML operation, but just not through a function.

    Can someone please help?

    I know that there are only two permissions on procedures/functions - RUN and DEBUG.

    Fix - so give one or both of those who depend on your use case.

    
    But I want to grant the EXECUTE permission to a user in such a way that the user can select the function using dual or any other query but not execute( to prevent the user from firing DMLs - Insert, update etc) inside any BEGIN-END block.
     
    

    You already know that there is NO "select" privileges for functions. a query such as "select the function of double" RUNS the function. That's all what you can do with the functions is execute them.

    I know that we can revoke access to tables etc. But that access has to be given. The user should be able to do perform DML operation, but just not through a function.
    

    Then revoke execute on the service. Then the user cannot run the service either directly or in the context of a dml statement.

  • Machine Vista "frequently", but not always, ask user name and password to access the public folders on the XP machine.

    Location:

    4 x Vista computers
    1 x XP computer acting as a server file, all the data in the "shared folders".

    All 4 Vista computers were to access shared data on the XP machine for two years without problem. All of a sudden this week one of the Vista computers "Frequently" but not always ask for a username and password to access the machine XP - not only shared folders, but still a list of shared resources on the machine XP via my network places is the result in the box of "connect to" request credentials to appear. All 3 other Vista machines have no problem to access the XP machine, so the problem must be with the a Vista machine.

    To put a spanner in the works as I have said in this case "Frequently" and by that I mean probably 9 of the 10 connection attempts. Let's say, you can see the name of the computer in my network places, you double click it and have asked for credentials, cancel the attempt and to repeat 4 or 5 times and then you could get display shared resources without going into the details of connection. For a few minutes, you might be able to access all the shared data and to navigate through the folders, but then all of a sudden have asked you credentials and can not access to anything, even the files accessed you seconds before.

    Lets say you are able to access the shared folders, you navigate to the Parent folder, then under A folder, then a subfolder B, go back to A notebook, then try to access folder B even once and you get guest credentials, quit out of the network completely locations, navigate back to the XP via Network Places and this machine you not even be able to display all the shared resources on the XP machine.

    I've also set up a shared folder on a Vista machine with matching username and password on the machines and the Vista machine with the get the problem exactly the same problem so this definatley Vista machine with the question and not sharing files on the XP machine.

    Someone at - he met before or have any suggestions?

    Hi MikeBarnes,

    You can check in the Analyzer for performance and reliability.

    Step 1:

    To start reliability monitor and performance monitor

    a. Click Start, right-click computer and click on manage.

    b. in the Microsoft Management Console navigation tree, click on performance and reliability.

    Step 2:

    You can also try a system restore to a point before the problem started.

    Note: When you perform the system restore to restore the computer to a previous state, programs and updates that you have installed are removed.

    To run the system restore, you can consult the following link:

    System restore

    http://Windows.Microsoft.com/en-us/Windows-Vista/what-is-system-restore

    System Restore: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows-Vista/system-restore-frequently-asked-questions

    Hope this information is useful.

    Jeremy K
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How can I transfer photos from my iPod touch 6th generation for my macbook pro WITHOUT using iCloud, please? It's simple with another camera but not the case, it seems, for the Apple iPod

    How can I transfer photos from my iPod touch 6th generation for my macbook pro WITHOUT using iCloud, please? It's simple with another camera but not the case, it seems, for the iPod Touch from Apple.

    Use import option from your Mac:

    Import photos and videos from your iPhone, iPad or iPod touch - Apple Support

  • database simple html5 works in the browser but not emulator

    I have a database of simple html5. It works on browser (chrome/safari) but not in the emulator. If after having included the html5_init.js file does not work on an os device five? I also simulated a sd card, so this isn't a problem, why it does not work. Here is the code:

    html PAG

    !DOCTYPE html PUBLIC-//W3C//DTD HTML 4.01 Transitional//Ehttp://www.w3.org/TR/html4/loose.dthtmheameta nameviewpor idMeta contentinitial-scale=1.0,user-scalable=n meta namex-blackberry-defaultHoverEffec contentfals link  relstyleshee typetext/cs hrefcss/common.cslink  link  relstyleshee typetext/cs hrefcss/start.cslink link  relstyleshee typetext/cs hrefcss/tabs.cslink
    titlAdd Birthda/titlscript typetext/javascrip srcjs/common.j/scripscript typetext/javascrip srcjs/html5_init.j idhtml5_ini/scripscript typetext/javascrip srcjs/birthdayapp.j/scrip
    /heabody onLoadinit()
           div classmy_heade
               p aligncenteAdd Birthda/
           /di
    
               div classmain-pane
                   div classpanel-top-lef/di
                   div classpanel-top-righ/di
                   div classpanel-insid
                    div classpanel-noga
                       div classro
                           div classlaeFirst Name/di
                           input typetex idfirstnam
                       /di
                       div classlistSeparato/di
                       div classro
                           div classlabeLast Name/di
                           input typetex idlastnam
                       /di
                       div classlistSeparato/di
                       div classro
                           div classlabeEmail/di
                           input typetex idemai
                       /di
    
                        div classlistSeparato/di
                       div classro
                           div classlabePhone Number/di
                           input typetex idphonenumbe
                       /di
                       div classlistSeparato/di
                        div classro
                           div classlabeImage/di
                           input typetex idimag
                       /di
                       div classlistSeparato/di
                        div classro
                           div classlabeBirthday/di
                           input typetex idbirthda
                       /di
                        div classlistSeparato/di
                        div classro
                           div classlabeBaught Gift/di
                           input typetex idbaughtgif
                       /di
                           div classlistSeparato/di
                        div classro
                           div classlabeReminder Day/di
                           input typetex idreminderda
                       /di
    
                    /di
                   /di
                   div classpanel-bottom-lef/di
                   div classpanel-bottom-righ/di
               /di
               input typebutto stylefloat: right; padding: 6px; margin-right: 8px idsav valueSav onClickmakeReminder()
    
            ul idreminder 
    
           /u 
    
            /bod/htm
    

    Now for the javascript database thread

    //Pre-requisites
    var birthdayapp = {};
    
    //Step 1. Opening the database
    birthdayapp.db = null;
    
    birthdayapp.open = function() {
      var dbSize = 5 * 1024 * 1024; // 5MB
      birthdayapp.db = openDatabase('bdreminder', '1.0', 'Birthday Reminder', dbSize);
    }
    
    birthdayapp.onError = function(tx, e) {
      alert('Something unexpected happened: ' + e.message );
    }
    
    birthdayapp.onSuccess = function(tx, r) {
      // re-render all the data
      // loadReminders is defined in Step 4a
      birthdayapp.getAllReminders(loadReminders);
      alert("an action was performed successfully!");
    }
    
    //Step 2. Creating the table
    birthdayapp.createTable = function() {
      birthdayapp.db.transaction(function(tx) {
        tx.executeSql('CREATE TABLE IF NOT EXISTS bdreminders(reminder_id INTEGER PRIMARY KEY ASC,'+
                                                            'firstname   varchar(50), '+
                                                            'lastname    varchar(50), '+
                                                            'email       varchar(50), '+
                                                            'phonenumber varchar(50), '+
                                                            'image       varchar(50), '+
                                                            'birthday    varchar(30), '+
                                                            'baughtgift  char(3),     '+
                                                            'reminderday varchar(50),'+
                                                            'createdon   date)', []);
      });
    }
    
    //Step 3. Adding data to the table
    birthdayapp.addReminder = function(firstname,lastname,email,phonenumber,image,birthday,baughtgift,reminderday) {
      birthdayapp.db.transaction(function(tx){
        var createdon = new Date();
        tx.executeSql('INSERT INTO bdreminders(firstname, lastname, email, phonenumber, image, birthday, baughtgift, reminderday, createdon) '+
                      'VALUES (?,?,?,?,?,?,?,?,?)', [firstname, lastname, email, phonenumber, image, birthday, baughtgift, reminderday, createdon],
            birthdayapp.onSuccess,
            birthdayapp.onError);
        });
    }
    
    //Step 4. Selecting data from the table
    birthdayapp.getAllReminders = function(renderFunc) {
      birthdayapp.db.transaction(function(tx) {
        tx.executeSql('SELECT * FROM bdreminders', [], renderFunc,
            birthdayapp.onError);
      });
    }
    
    //Step 4a. Rendering data from the table
    function loadReminders(tx, rs) {
      var rowOutput = "";
      for (var i=0; i < rs.rows.length; i++) {
        rowOutput += renderReminders(rs.rows.item(i));
      }
    
      var reminders = document.getElementById('reminders');
      reminders.innerHTML = rowOutput;
    }
    
    function renderReminders(row) {
      return '
  • ' + row.reminder_id + '[X]
  • '; } //Step 5. Deleting data from the table birthdayapp.deleteReminder = function(id) { birthdayapp.db.transaction(function(tx) { tx.executeSql('DELETE FROM bdreminders WHERE reminder_id=?', [id], birthdayapp.onSuccess, birthdayapp.onError); }); } //Step 6. update the table birthdayapp.updateReminder = function(reminder_id,firstname,lastname,email,phonenumber,image,birthday,baughtgift,reminderday) { birthdayapp.db.transaction(function(tx) { tx.executeSql('UPDATE bdreminders set firstname = ?, lastname = ?, email = ?,phonenumber = ?,image = ?,birthday = ?, baughtgift = ?, reminderday = ? WHERE reminder_id = "reminder_id" ', [firstname, lastname, email, phonenumber, image, birthday, baughtgift, reminderday], birthdayapp.onSuccess, birthdayapp.onError); }); } //Step 7. select a specific from table birthdayapp.getOneReminder = function(reminder_id) { birthdayapp.db.transaction(function(tx) { tx.executeSql('SELECT * FROM bdreminders WHERE reminder_id = ? ', [reminder_id], birthdayapp.onSuccess, birthdayapp.onError); }); } //select specific record function makeReminder(){ alert("add reminder called"); var fn = document.getElementById('firstname').value; var ln = document.getElementById('lastname').value; var em = document.getElementById('email').value; var ph = document.getElementById('phonenumber').value; var im = document.getElementById('image').value; var bd = document.getElementById('birthday').value; var bg = document.getElementById('baughtgift').value; var rd = document.getElementById('reminderday').value; birthdayapp.addReminder(fn,ln,em,ph,im,bd,bg,rd); } //init function function init() { birthdayapp.open(); birthdayapp.createTable(); birthdayapp.getAllReminders(loadReminders); }

  • everything is so big (words, etc.) that some things are cut. Help. Im not a computer buff so this can be simple for someone else.

    everything is so big (words, etc.) that some things are cut. Help. Im not a computer buff so this can be simple for someone else. For example... this screen as I'm typing this on Cup right now to the right of this box, I type in where it says "search forums" after the R in the forum.

    Hi 1958debbie,

    you don't need to do a system restore.

    Below, to the right of your screen, there is a % of films xxx next to a down arrow. Click this arrow and select 100%.

  • I want to buy 8 simple images, but not subscribe to a monthly plan. Is this possible?

    I want to buy 8 simple images with special pricing (sept 1 thru Sept 20,2015), but not subscribe to a monthly plan. Is this possible?

    Yes, you can buy images without a subscription. However, there is no way to buy several images in a single transaction. So it will take 8 separate operations.

  • After being opened for a while (with several tabs) Firefox does generally and repeatedly play a sound - video will play again, but not sound.

    This problem started happening only recently. I often keep my Firefox open all night with sites like rainymood.com or grooveshark.com playing, as well as several other tabs, including but not limited to Facebook, YouTube, and Reddit. Sometimes, after a few hours/days to not restart Firefox or my computer, Firefox starts to become insensitive - i.e., pages take a long time to load, opening new tabs is difficult for the browser and videos will have up to 30 seconds to start playing. In addition, the sound stops playing. If I start a YouTube video, after the initial period of excessive load, the video will play, but without any audio. Also, sites such as rainymood.com and grooveshark, even Facebook, stop sound.

    Note that this is different from an incident of flash plugin - when flash falls down, the audio and video become inaccessible and a simple refresh or restart of Firefox will solve the problem. But what is happening here is different; If I refresh the tab, nothing changes, and even if I restart Firefox, it opens the same way again until I restart my computer completely.

    Also of note: I had, in the past, this same thing happens, but rainymood.com continued to play, however no other tabs would make sound. The problem is sporadic and I don't know where to start. Also, sometimes it's only a problem of Firefox specific, which means other programs on my computer can make sounds, but sometimes this problem makes my computer all stop making sounds, with the exception of Ventrilo, which works, but is also insensitive in the beginning.

    The reset Firefox feature can solve a lot of problems in restaurant Firefox to its factory default condition while saving your vital information.
    Note: This will make you lose all the Extensions, open Web sites and preferences.

    To reset Firefox, perform the following steps:

    1. Go to Firefox > help > troubleshooting information.
    2. Click on the button 'Reset Firefox'.
    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    Information can be found in the article Firefox Refresh - reset the settings and Add-ons .

    This solve your problems? Please report to us!

  • Not enough space for music DB - but so car can be recognized on mac or PC

    Saturday my sansa (v2) e240 filled after recording radio then I got the message "not enough PACE for music db' - free up to 90 MB. This is not normally a problem I plug it into my mac and remove sufficient podcasts to solve the problem.

    However this time when I plugged the sansa, only the SD card would indicate all files and internal drive has prompted a message not recognized disk, inviting them to initialize or eject. The files are also not identified using XNJB or Windows XP (on my work laptop). I have also run the terminal and that the SD card is rated

    As with Windows security issues prevent me from transferring files on removable devices on my laptop, I need a solution that is simple for my mac. Initialization of the disk will be the solution or is it cause other problems?

    I had a good look in the ABI forums as well as forums of Sandisk, but it doesn't seem to be any similar incident posted or whatever it is in the manual or FAQ - please excuse me if I missed them.

    I don't want to go out and replace my sansa with an ipod - this is my second (my first overturned the idea of them being more robust than the ipod fragile by did not survive a fall on a ground (moquete) but if Sandisk continues to ignore the Macintosh so I may be, as security issues make it less and less chance to use Windows outside an environment very limited.)

    Thank you

    Put in the form of the Explorer had no effect secondary - recognized in the Finder on Mac back upward and running once the settings reset.

  • I have a license for CS3 Design Premium, but not drive. Exactly where can I download the software? The solution on the Adobe Web site does not work...

    I have a license for CS3 Design Premium, but not drive. Exactly where can I download the software? The proposed solution on the Adobe (CS3 products download) website does not work...

    If the page that you are connected does not work, then it should so what happens when you try?  It is possible that it could be a simple matter of enable you cookies or try a different web browser.

    You can also try to download the demo version of the software through the page linked below and then use your current serial number to activate it.

    Don't forget to follow the steps described in the Note: very important Instructions in the section on the pages of this site download and have cookies turned on in your browser, otherwise the download will not work correctly.

    CS3 and CS4: http://prodesigntools.com/download-adobe-cs4-and-cs3-free-trials-here.html

Maybe you are looking for