Question about setting conditions in searches using SQL

I am trying to search through a table where the "Score" column hs to be in between two numbers.
Table Test:
Name: #
Tom 40
Tom 60
Tom 50
joe 60
If i were to search for "Tom" nomally i get all 3 back. Regardless of the code for SQL(assume it works) will the search display only Tom 40 and Tom 50 is i want between 40 and 60? In other words if the condition field has a valid sql expression that works do i need to write anything to display the data in SQl or it will be fixed automatically?

SQL> select * from test;
NAME SCORE
Tom 40
Tom 60
Tom 50
Joe 60
SQL> select * from test
2 where name = 'Tom';
NAME SCORE
Tom 40
Tom 60
Tom 50
SQL> select * from test
2 where score between 40 and 60;
NAME SCORE
Tom 40
Tom 60
Tom 50
Joe 60
When you use the 'between' operator the search for score includes both 40 and 60. In case of this example, if you were to display only Tom's scores of 40 and 50, you should use the following select statement.
Select * from test
where score >= 40
and score < 60;
SQL> Select * from test
2 where score >= 40
3 and score < 60;
NAME SCORE
Tom 40
Tom 50

Similar Messages

  • Question about Setting Window Title/the use of AVWindowSetTitle()

    Hi everyone,
    I have a question about setting the title of the window in which the Acrobat viewer normally opens a PDF file.  The documentation states that AVWindowSetTitle() cannot be used in this case.  However, using it has worked with versions of Acrobat/Reader up until and including version 8.
    Everything breaks down starting with Acrobat 9.
    According to the documentation I am supposed to do the following: "To set the title of a window in which the Acrobat viewer opens a PDF file, you must replace AVDocOpenFromASFileWithParams() and pass the window title in tempTitle."
    Unfortunately, there are 2 problems I have with this approach:
         I do need to be able to change the document title on document Save, not only on document Open
         I do not know what AVDocOpenFromASFileWithParams() implementation has to look like if I have to replace it using HFTReplaceEntry().
    Is there a sample customized implementation of AVDocOpenFromASFileWithParams() somewhere that I could take a look at?
    Is there a way to change a document Title inside Acrobat/Reader window after a Save operation?
    Thanks a million,
      Lana2010K

         I am sorry.  I don't know how you tested this and came to conclusion that this works correctly in Acrobat X.
         I just tested our Acrobat plug-in with a trial version of Acrobat X and this did not work.
         When we open a file in Acrobat (doing it ourselves in the plug-in by adding another specialized open) we set the window title to something different from the default file name.  Then if a file gets edited and saved (File->Save), the window title gets reset to the file name. In the PDDocDidSave callback we call AVWindowSetTitle() to set it back to a more descriptive window title we need.  This has worked up until and including Acrobat 8, but does not work in either version 9.0 or 10.0.
         Also, I just modified the plug-in code to always change the Window Title of every document (even if opened through native File->Open) on document Save.  It does not work.
         Please help,
              Lana2010K

  • Group Policy question about setting Start menu items using devices and not users

    I am using Windows Server 2003 and Windows Server 2008 R2 servers set up for use as Active Directory Servers.
    What I am trying to do is lock down thin clients start menu options and I have been able to get this to work down to the user level.  However, what I want to do is have it locked down on the machine level.
    We have multiple users that use both "Thin Clients" with Windows 7 Embedded and we also have them using other PC's with using the same log in.
    So, for example when you create an OU for "Thin Clients", I want thin client devices in there and when people log in to these thin clients then the start menu will be locked down.  I want this to be user independent and thus I don't want Users
    in the OU, but I want to lock down the start menu.
    How can I do this with Group Policy Objects on a domain level?

    Hi,
    you could achieve this using GPO loopback processing. It was designed for the purpose of applying settings from user GPO to a certain group of computers.
    http://technet.microsoft.com/en-us/library/cc978513.aspx
    MCP/MCSA/MCTS/MCITP

  • Question about setting cookies and custom authentication

    I have a question about setting cookies.
    I have two different 'projects' in HTMLDB - we will call them App1 and App2.
    I also have two different connection configurations setup in the DADs.conf file. - we will call them Connect1 and Connect2.
    App1 is setup to use database authentication (no user is specified in the DAD) and uses Connect1. Once the user successfully logs in, we set a username cookie (this is a persistent connection).
    We created a custom authenticatoin scheme for App2 - this scheme checks for the username cookie (set by App1). We would like for App2 to use Connect2 (HTMLDB_PUBLIC_USER is the default user specified and it uses connection pooling).
    Is it possible to set a cookie from App1, Connect1 for App2, Connect2 - then redirect to App2 and pick up that cookie?
    Here is an example of what we are trying to accomplish:
    A user loggs into App1, we set a cookie, and the user is redirected to App2. If the cookie exists, we allow them access to the home page in App2, if no cookie, we redirect back to a 'Login Failed' page in App1. We don't want App2 to use the same database connection as App1 though, we need App2 to use connection pooling.
    Is this possible? OR...Is there a better way to accomplish what we want to do?
    This is an enhancement to an existing app. Our requirements are to use Database Authentication (setup where pass expires after 60 days or so, cannot reuse last 3 passwords, etc.) - which is already setup and being used by other applications in our organization. All of our users have accounts in the database. We don't want users to have a new username/pass - and we don't want to manage a separate group for HTMLDB apps.
    The existing application uses HTMLDB's built in authentication - which uses database username/pass, and it uses connection pooling, but we cannot handle the pass expire stuff in it, unless there's something we're not seeing or understanding - at least that's how our DBA explained it to us.
    Any help with this will be appreciated so much. I can send you the code we have if needed.
    Thanks!

    Same problem here.  I have so many problems with this remote app.  Is there an iTunes API? I would like to write my own remote app that actually works.

  • Question about the CSS behavior when using layer 3 sticky and sticky table

    Hi everyone,
    I have a question about the CSS behavior when using layer 3 sticky and sticky table is full.
    If I configure layer 3 sticky and specify the inactivity timeout as below, how does the CSS
    handle subsequent needed sticky requests ?
    advanced-balance sticky-srcip
    sticky-inact-timeout 30
    CSS document says that
    Note:
    If you use the sticky-inact-timeout command to specify the inactivity timeout
    period on a sticky connection, when the sticky table becomes full and none of
    the entries have expired from the sticky table, the CSS rejects subsequent
    needed sticky requests.
    My question is what is the next reaction by doing the CSS if the CSS is in the
    following condition:
    when the sticky table becomes full and none of the entries have expired from
    the sticky table, the CSS rejects subsequent needed sticky requests
    Does CSS just rejects/drops subsequent needed sticky requests ?
    or
    Does CSS does not stick subsequence requests to particular service but CSS forward
    subsequence requests with round-robin basis ? which means if the sticky table is full,
    the CSS just works round-robin load balancing fashion for subsequence requests ?
    Your information would be appreciated.
    Best regards,

    Hello,
    There is a good document explaining this on Cisco web site
    http://www.cisco.com/en/US/products/hw/contnetw/ps789/products_tech_note09186a0080094b4b.shtml
    It depends if the sticky-inact-timeout is used or not. If not, it's FIFO (the oldest entry in the sticky table is removed). If yes, the CSS will reject the next sticky request.
    Rgds,
    Gaetan
    Rgds
    Gaetan

  • Question about setting up rdp using a cisco 800 series router

    HI there,
    I am currently in school for networking. One co-op placement I went too handed me a cisco 800 series router to practice my routing skills on. I am trying to setup RDP so I can access my server from outside my internal network. I ran this following acl command to do it.
    ip nat inside source static tcp server IP address port# cable modem IP port # extendable.
    My question here is, my cable modem will occasionally hand out a different IP since it has DCHP. I cannot turn DHCP off in my cable modem. So is there a way I can set this up to use a dynamic IP from my modem so I alwasy have access to it or every time my modem changes the IP address do I have to go in and modify this acl?

    Configure DDNS ( Dynamic DNS ) on the router. For this you need to register with a DDNS provider. Go to
    http://www.no-ip.com/ . they provide free reliable service.
    With DDNS, Once your router gets a DHCP address from your ISP , it will dynamically update the DNS name record. For example if you register you routers name as, "myrouter.no-ip.org",  from there onwards whatever the IP your router gets, you can refer to that by this name.
    So do as what Paolo said regarding using interface instead of ip, and register with the DDNS and you are good to go..
    Hope this helps
    Please rate this post if helpful..
    Thanks
    Shamal

  • I have a question about japan new depriciation engine using non-japanese chart of deprication

    Hi, all
    I have a question about link between new depriciation engine and chart of depriciation.
    My client want to use US chart of depriciation as standard chart of depriciation becuase it has already standard setting like IAS deprication keys.
    it means I have to create Japanese chart of depriciation by copying from US chart of depriciation(non-japanese sample(0JP))
    I have a little doubt about it. In my previous project, I copyed chart of depriciation by copy from Japan sample Chart of depriciation(0JP) stored in SAP.
    Is it possible to copy from non-japan sample charg of depriciation to using Japanese new depriciation engine? I worried some errors will occrues if I do not use sample chart of depriciation(0JP) .
    If I need to use sample Japanese chart of depriciation, please give me the idea why I need to use Japanese sample chart of depriciation. I want to know the examples of non-Japanese asset accouting consultants who have working experience in the area.
    Thank you.

    Hi, Narasimhulu
    Thank you for your support.
    My client use one COA to all over the world. And not only Japan, other country aslo use the COD which is copied from that of US. Basic reporting line is for USGAP. I will customize 2 depriciation ares, one for US GAP and another is JGAP. No need to create TAX realted customize.  It means it enought only adding Japanese new depriciation keys to Current US COD. No need to add more Japanese local requirements.
    In this case, I want to know follwoing point.
    I know COD controll depriciation keys, but I want to know more detail about COD, what kinds of controls COD do. What is Japanese local requirements. Why better to use COPY of JP COD.
    Thank you.

  • Question about setting track level

    Hi I finally got my new macbook pro and moto 8 pre and have just today tried a bit of recording just to get used to it. I am at the moment using garage band. I have a question about track levels. In Garage Band when I select a track to record there is a slider for input level or an option of clicking the automatic level control. But for some reason they are both just that color of grey you get when something can not be selected on a computer. How do I activate this? It's strange as I did actually manage to record the track, I just can't seem to really adjust the level. I thought maybe it has to do with the motu and I can only select the track level there, and that garage band level setting are (rightfully) disabled? Maybe that's what I should be doing, but just a bit confused. Anyway, thanks in advance for whoever takes the time to help out a newbie.

    Ah, ok. Good to know. Thanks for the info.

  • Question about sets in report painter.

    Hi, everybody. Please, could someone help me in this matter?.
    I wanna delete a set with the GS04 transaction in Report Painter but I cannot.
    When I put the set's id (XXX) in the set's name and push Delete-Set-F8 button, I get the following error:
    The XXX set cannot be deleted.I consult the error with the help and SAP tells me that  I need to use the set-usage option to view where the set is used in the system.
    I select this set-usage option under the utilities menu and SAP tells me that the set is being used in a report.
    The thing is that the report doesnt exist. I deleted the report before. Why the error is then.
    However, I created, generated and compiled the report again in report painter with other different set so that I confirmed that the report was not using the XXX set  and the error continues with report or without it.
    That I tried to say was that the XXX set is not being used anywhere and the question then is why report painter is telling me that the set is being used in a report. Thing that is not true.
    Thanks and I hope someone can help me out!!

    Hi, everybody. Please, could someone help me in this matter?.
    I wanna delete a set with the GS04 transaction in Report Painter but I cannot.
    When I put the set's id (XXX) in the set's name and push Delete-Set-F8 button, I get the following error:
    The XXX set cannot be deleted.I consult the error with the help and SAP tells me that  I need to use the set-usage option to view where the set is used in the system.
    I select this set-usage option under the utilities menu and SAP tells me that the set is being used in a report.
    The thing is that the report doesnt exist. I deleted the report before. Why the error is then.
    However, I created, generated and compiled the report again in report painter with other different set so that I confirmed that the report was not using the XXX set  and the error continues with report or without it.
    That I tried to say was that the XXX set is not being used anywhere and the question then is why report painter is telling me that the set is being used in a report. Thing that is not true.
    Thanks and I hope someone can help me out!!

  • Question about SET FRMLBOTTOMUP

    I'm getting unexpected resutls when using this set command and could use some feedback. EXAMPLE OF CALC - SET FRMLBOTTOMUP ON;SET UPDATECALC OFF;SET CACHE HIGH;/*This step multiplies UNITS times RATE and records the results on AMT, for all level 0 entities of North America SS */FIX(&Svar_Years,&Svar_Scenario,"FA10","FA11","FA12","FA13","FA14",@RELATIVE("XX SS",0), Local,"4111_AMT" ) "Current Version"="4111_UNITS" * "4111_RATE";ENDFIXWith SET FRMLBOTTOMUP ON Essbase calcs "4111_UNITS" * "4111_RATE" correctly but places the result in not only "4111_AMT" but also in "4111_UNITS" and "4111_RATE", erasing what was previously there. This only happens with SET FRMLBOTTOMUP ON otherwise the calc of unit times rates works fine. It also works fine if I replace the left side of the equation from "Current Version" to the account "4111_AMT" which is a dense member. I don't understand why that should matter and what about SET FRMLBOTTOMUP ON causes Essbase to place the result of the formula in the members used to generate the result in the first place. Any suggestions would be much appreciated. Thanks.

    thanks, can u explain when this server serialization
    occurs and why? the application i am using uses lots
    of beans with data coming from database, and those
    beans are used for display and calculation during
    user interaction(one session). is there a risk of
    lossing information during the interaction when
    server serializes session? thanksIt depends on the Server, and on the session manager used.
    For instance, Tomcat, with the default manager, will try to serialize sessions when the context is restarted so that user data is not lost during application upgrades. It will also attempt to serialize if the JVM begins to run out of memory.
    A second manager available in Tomcat will try to store all session data in a database, the file system, and the like so that it does not take JVM resources. This requires serialization.
    Finally, You can use load balancing or other clustering techniques to back up Tomcat (so one server doesn't do all the work, or if it goes down, other servers will handle requests). Since sessions will need to be shared (or sharable) between different servers, the data must be serializable so it can be sent from one to the other (or actually sent and received through an external storage system like a DB) they must be serializable for this to work...

  • Question about setting Rows to "All" for defualt Interactive Report

    I have a default report with 2 user requirements that I have some questions about.
    1. The report in the data sould be 90 days old.
    2. The report show "All" rows.
    First to set the date I have this page process:
    apex_util.ir_clear(p_page_id => 2);
    apex_util.ir_filter(p_page_id=>2,
    p_report_column=>'REQUISITION_DATE',
    p_operator_abbr=>'GTE',
    p_filter_value=>SYSDATE - 90);
    I also set the rows to "All" and save the report to be the default. However I think when the "apex_util.ir_clear(p_page_id => 2)" is executed it clears someting and my report opens with rows set to "15".
    Any ideas on this or even a better way to do it?

    the following link may help...
    It says that the ir_clear "Clears any report filters including default filters"
    apex_util.ir_* documentation - where to find them?
    Gus..

  • Question about setting column width in SQL*Plus using info retrieved w SQL

    Good morning,
    Is there a way to tell SQL*Plus to set the width of a column to the greatest width of the elements found in the column ? (as opposed to the default which is the width declared in the DDL)
    In other words, I'd like to do something functionally equivalent to this:
    COL <columname> format a[select max(length(<columnname>)) from <thetablethatcontainscolumname>]
    I'm doing the above manually in two steps
    1. select max(length(columnname)) from .....
    2. col columnname format a[resultofstep1]
    Is there a way of doing it in one step ?
    Thank you for your help,
    John.

    Hi Munky,
    >
    you should consider whther you are using the correct tool for the job, SQLplus isn't exactly ideal for doing presentation layer stuff
    >
    I'm not really doing presentation stuff, I asked because it would be very convenient for everyday stuff. I commonly query the tables that I am going to deal withm just to have a look at the column names and a few values, something like:
    select * from EMP where rownum <= 10; -- just to have a look at the table and some values
    when the table contains a wide column then the display gets all messed up. It would be nice to have an option or a mechanism to tell SQL*Plus to automatically use the width of the widest value, instead of having to determine the value and then manually set the column.
    thank you for your help, it's good to know that I didn't miss some trivial setting in the documentation that would do it ;)
    John.

  • A zillion questions about setting up and using external hard drive

    Hello. I recently purchased a Cavalry 440GB CACE USB/FW800 7200 RPM 3.5 in Mac Formatted hard drive. My Mac is a Power PC G4 using OS X 10.2.8.
    After much back and forth with the Cavalry support desk, I was able to connect it to my Mac. (The USB cable included was not compatible--fortunately, my printer cable was.)
    Through Disk Utility I see that my Mac is detecting the hard drive, but there's no icon on my desktop. My questions are as follows:
    1. How do I get the icon on my desktop?
    2. It was suggested on this board to partition the hard drive. What exactly is partitioning, and is it necessary?
    3. If I do partition the hard drive, into how many partitions should I make it?
    4. Once the number of partitions is set, can that number be changed? In other words, can it be repartioned without erasing anything?
    5. My main purpose for getting the external hard drive is to move all my movies off my Mac. I'm sure I will want to back up other files as well. Should I create one partition for all the movies, and one for photos, one for files, etc.?
    6. Once I get the icon on my desktop, is transferring files as simple as dragging the files onto the icon?
    7. Once I move files to the hard drive, is it simple to move them back to the Mac if I need to use them again?
    OK, that's all for now. I appreciate your patience in dealing with all my questions! Thanks.

    Hello, 
    I'll try my best on the first seven. The remaining zillion minus seven questions will have to wait!
    1. If the drive really is Mac-formatted it should just appear. Firstly check that hard disks are set to appear on the desktop. In the Finder go to Finder > Preferences... >General tab and ensure that the box to show hard disks on the desktop is checked. If that doesn't work go to Macintosh HD > Applications > Utilities >Disk Utility. Select the drive in the left hand pane and then click on the "Erase" tab. Erase the disk and ensure the format is "Mac OS Extended (with Journalling)".
    2. Partitioning is splitting the physically drive into two or more volumes. This will allow you to compartmentalise your data. You will have two or more icons appear on the desktop if you do partition. Although they are on the same physical disk you will be limited on each of the volumes to the size you set at the time of partitioning. If you do partition the drive be sure to use the "Apple Partition Map" not "GUID Partition Map". The latter is for Intel Macs.
    3. Whatever you want. My experience is that too many partitions and you loose flexibility in your storage space. Personally on my external drive I have a partition that is exactly the same size as my internal hard drive. I then use that to do a regular clone backup. I then have a second partition for general use. This means I can put files on the external but still guarantee I have enough spare to backup fully.
    4. No. Not without third party tools.
    5. As I said above, in my opinion the best use is to create a partition for backup and a partition for all other use.
    6. Yes absolutely. However if you plan on moving libraries like iTunes or iPhoto then you'll need to show the applications where the libraries are again.
    7. Yes.
    Some extra pointers:
    A. Use Carbon Copy Cloner to backup your internal drive to the external. Clones are fantastic backups as even if the internal drive bursts into flames you will have an identical copy of all user data and settings: http://www.bombich.com/software/ccc.html (scroll to the very bottom for the version suitable for 10.2.8).
    B. Don't use USB to connect the hard drive it's not very fast. Firewire 400 is significantly faster and will allow the iMac to be booted from the external drive in an emergency (USB will not boot a G4 Mac).
    Hope that helps a little.
    mrtotes

  • Question about setting opacity in DW Cs6, without using rgba

    Hello,
    I prefer not to use html5/css3 until there are no more windows xp accessing the internet. However, the html5/css3 functions are pretty nifty and I would like to find a ie8 friendly way of doing similar stuff. I would like to set the opacity of my background colors between my <div></div> and not use rgba, but rather hex, but NOT change the text color at all. I would prefer to do it in the css editor rather than hand coding if possible. Is there a way to do this?
    I'm new to the new stuff. Last time I built a site was back in 2007 using Frontpage 2003:)
    Thanks

    Without using rgba, you would be stuck with the opacity atribute if wanted to just use css. The problem with the opacity attribute (and filter for IE) is they affect the entire html element they are applied to and its contents.
    The only way to have a background with some opacity/transparency without using rgba for the background-color attribute is to use what Gramps points out. Create an image in Photoshop, add your color to a new layer, drop the opacity of the layer to the level you want. Remove any background layer (so you have just the checkerboard background with your partially transparent color over the top of it) then save it as a PNG-24.

  • Question about setting up a workstation with Aperture 2

    hello, I hope I will get some help from here.
    I guess first I should list the things I have, this will make it easier. I have a Macbook Pro with 10.5.6, a Samsung 24" monitor, Aperture 2, Photoshop CS4, CANON Pro9000 Printer, and Pantone Huey Screen calibrator.
    So I already have both my screen (macbook Pro's and Samsung's) calibrated. My question is about how to correctly set up my printer.
    I went on Canon's website and try to download the driver for the CANON printer, But I see there is 3 different version for the driver, i am not sure which one to choose. One is for 10.3.9 and above, one is for OSX CUP (which i donno what it means).
    and do I need to install any of the canon software or plug-ins? I thought the printer color profile is in the driver as well. and aperture should pick that up fine. but for max quality printing, am i better off with the canon software? if so which one should i USE? Easy Photo Printing EX or Easy Photo Printing PRO?
    last... I guess it will be nice if someone can point me the right steps to make a print after I have done everything I want to in Aperture. if you guys can give me a step by step guides for printing from Aperture 2 to Canon Pro9000 with Canon Photo Paper Pro II. and is photoshop is must have in the printing process? I really would love to stick with Aperture as much as possible. but again, quality go first...
    Thank you for reading my post, and thank you even more for replying.

    Challenging, yes, here is a link to a podcast on the O'Reilly website, hope this helps, I found it very useful. I actually subscribe to the podcast (via itunes) and find that there are some great topics.
    http://digitalmedia.oreilly.com/pub/a/oreilly/digitalmedia/2007/02/13/insideaperturepodcast-9.html?page=last&x-maxdepth=0
    Joe Schorr on Color Management in Aperture
    Inside Aperture Podcast 9
    by Derrick Story
    02/13/2007
    Joe Schorr, Apple Senior Product Manager for Aperture, covers color management in Aperture 1.5.2. He discusses the three basic areas that photographers must address in order to have consistent color throughout the workflow: Screen calibration, correct settings in the print dialog box, and adding profiles to exported images. There are some nice tips in this chat, including how to use on-screen proofing in Aperture. Derrick Story interviews Joe in this exclusive O'Reilly Media podcast. (Inside Aperture, Feb. 13, 2007: 18 minutes, 18 seconds).

Maybe you are looking for

  • Bursting to WebDAV problem

    Hello, I'm trying BI Publisher's (10.1.3.4) bursting functionality. The generated documents need to be delivered over WebDAV (in the real scenario to Oracle UCM but in my test cases I'm using Jackrabbit WebDAV server). Finally got everything to work

  • IE7 problem with PI7

    Hello, I would like to thanks all SDN members to complete my PI installtion . Though i am new to this installation, with guides and you, i could able to manage. Below are the steps i followed: 1. Installtion done with SAPinst ( PI70, 2004s SR1) 2. fo

  • App Updater Crashes on MacOS with Air 3.9

    We just released a new version of our desktop Air app, nothing different with any of the configuration files except for a higher version number. One of our Mac users (10.8.5) who had already updated to Air 3.9 sees the auto updater dialog and it appe

  • Converting Business Objects (BO) reports to OBIEE

    I am attempting to convert BO reports... I have a Request which determines a subset of all Customer Numbers based on certain criteria. I would then like to have a LEFT JOIN from all customers (with some filters applied) to this subset and have a colu

  • Does online backup work well for OSX?

    My external drive recently died, and my local backup failed (a string of bad bad luck). Good thing I have offsite backup, done with one of those cloud backup companies (backblaze). Right now I'm requesting for a hard drive mailed to me with my files