Select Between

I have a select statement that selects all customer numbers. I
want to limit what is returned using between, but I am not sure
how to implement this logic. In this select statement I want to
exclude a certain range of customer numbers from 4400000-00 to
44000500-00 and return all other numbers. What would be the best
way to do this? I would include the code but as you can tell it
is only a simple select statement as I have not figured out how
to implement the between logic.
-Pat

All you would have to add to your where clause is:
column_name not between '4400000-00' and '44000500-00'
Be careful though since these won't evaluate as numbers since
they have the dash(-). They'll be evaluated based on each
characters ASCII value and could yeild unexpected results.

Similar Messages

  • In Mountain Lion how does OS select between ethernet and WiFi when both are activated??

    In Mountain Lion how does OS select between ethernet and WiFi when both are activated??  How does OS use "both" networl accesses??

    It will pick the highest service in the list which has an internet connection.
    To order the list, open Network System Preferences and select Set order of network services from the button below the service list.

  • Why i am unable to select between 2 anchor points with in a object while dragging with direct select

    why i am unable to select between 2 anchor points with in a object while dragging with direct selection tool instead it moves

    Another option is to temporarily change your view to outline mode, when your done switch back to preview mode. Ctrl-Y or View>Outline {View>Preview} The menu option will change depending on which mode you are in.
    And another option, double click on the object in question to place it in Isolation mode. You can now edit to your hearts content. When done, click on the gray border at top of document.
    So as you can see there are multiple ways of accomplishing the same thing.

  • If i have two option to select between XI or BW which one in better and why

    if i have two option to select between XI or BW which one in better and why
    both in terms of money and in terms of my career growth.......

    Sheetika,
    XI if you  are good in JAVA.The rest is same for both XI and BW.
    K.Kiran.

  • Shortcut key to select between languages in Yosemite

    I would like to know the short cut key or create a custom short cut key to select between the two languages (English and Tamil, in my case). Since Command+Spacebar is used for Spotlight search - which is essential to me - I need to know how to overcome this?
    Any support is much appreciated.
    Thanks

    Thanks Alfred.
    I found F1 free and used it for language selection. That worked. (I didn't want to change Spotlight from command+space, since I use it frequently. :-)
    However, your reply helped me to achieve it. Thanks again! Long live. :-)

  • Difficulty in selecting between HV segmentation and classical(LV) segmentat

    Hi All,
    I am in a dilema to select between the HV seg. or the old LV one. Can anyone tell me is it feasable to work on LV segmentation with 20million plus BPs.We need it only for BP segmentation.Will the performance be affected drastically if we use LV seg.I am just trying to understand the pros and cons of both the solutions(i.e, hv and lv seg). It would be great if someone can give me more clarity on this so that we can choos ethe right solution for our client.
    thanks!

    Hi,
    starting with CRM 7.0 EhP1 there will be one single UI for HV and LV. You decide via the usage which one is used. However, if you want to use HV segmentation, you must have a TREX server up and running, whereas LV runs without. I dont know exactly what you mean by "Is there any such capacity for LV seg to be used". HV segmentation will always be faster.
    Best Regards
    --klaus

  • Alternate Selection between 2 JTable

    Hello Experts,
    assume that i have 2 JTables in JPanel and each contain one row is it possible to alternate selection between these tables
    in other words if i select the first table then after that i select the second table the first table will be unselected and reverse
    Thanx

    Thank you camickr for your reply,
    I try with Focus Listener
    and this is my attempt
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.table.*;
    import javax.swing.*;
    import java.util.*;
    class JTables extends JFrame implements FocusListener {
       int counter = 0;
       JTable previousTable     = null;
       JTable table1 = new JTable();
       JTable table2 = new JTable();
       LinkedList<JTable> x = new LinkedList<JTable>();
       public JTables()
            setBounds(0,0,500,500);
            JPanel pane = new JPanel();
            pane.setLayout(null);
            setContentPane(pane);
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            pane.setBounds(0,0,500,500);
            String [] cols = {"Col1","Col2","Col3"};
            Object [][] rows = {{"data1","data2","data3"}};
            table1 = new JTable(rows,cols);
            table2 = new JTable(rows,cols);
            JScrollPane scroll1 = new JScrollPane(table1);
            JScrollPane scroll2 = new JScrollPane(table2);
            scroll1.setBounds(10,10,300,50);
            scroll2.setBounds(10,100,300,50);
            table1.setColumnSelectionAllowed(true);
         table1.setRowSelectionAllowed(true);
         table2.setColumnSelectionAllowed(true);
         table2.setRowSelectionAllowed(true);
         table1.addFocusListener(this);
        table2.addFocusListener(this);
        for(int i=0;i<3;i++)
            TableColumn tm1 = table1.getColumnModel().getColumn(i);
            TableColumn tm2 = table2.getColumnModel().getColumn(i);
            tm1.setCellRenderer(new cellRenderer());
            tm2.setCellRenderer(new cellRenderer());
        x.add(table1);
        x.add(table2);
       pane.add(scroll1);
       pane.add(scroll2);
       class cellRenderer extends DefaultTableCellRenderer
            @Override
                public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int col)
                     Component comp = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, col);
                     setHorizontalAlignment(SwingConstants.CENTER);
                     int [] selectedRows = table.getSelectedRows();
                     boolean selected = false;
         if (selectedRows != null)
               for(int i=0; i < selectedRows.length; i++)
                     if (selectedRows[i] == row )
                                 selected = true;
                                 break;
                if(selected)
                        comp.setBackground(Color.BLACK);
         comp.setForeground(Color.WHITE);
         comp.repaint();
                    previousTable = table;
                 return comp;
        class cellRenderer1 extends DefaultTableCellRenderer
            @Override
             public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int col)
                   Component comp = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, col);
                   setHorizontalAlignment(SwingConstants.CENTER);
                   int [] selectedRows = table.getSelectedRows();
                boolean selected = false;
                   if (selectedRows != null)
                        for(int i=0; i < selectedRows.length; i++)
                             if (selectedRows[i] == row )
                                 selected = true;
                                 break;
                if(selected)
                        comp.setBackground(Color.WHITE);
                        comp.setForeground(Color.BLACK);
                        comp.repaint();
                   return comp;
        public void focusGained(FocusEvent e)
                 for(int i=0;i<3;i++)
                    if(table1.getSelectedRows().length > 0)
                        TableColumn tm1 = table1.getColumnModel().getColumn(i);
                        tm1.setCellRenderer(new cellRenderer());
                    else
                        TableColumn tm1 = table2.getColumnModel().getColumn(i);
                        tm1.setCellRenderer(new cellRenderer());
         public void focusLost(FocusEvent e)
                 for(int i=0;i<3;i++)
                    if(table1.getSelectedRows().length == 0)
                        TableColumn tm1 = table1.getColumnModel().getColumn(i);
                        tm1.setCellRenderer(new cellRenderer1());
                    else
                        TableColumn tm1 = table2.getColumnModel().getColumn(i);
                        tm1.setCellRenderer(new cellRenderer1());
       public static void main(String[] args) {
          SwingUtilities.invokeLater(new Runnable() {
             @Override
             public void run() {
                new JTables().setVisible(true);
    }but not work only one cell from the other unselected

  • Selection between month type, currency

    Hi
    I have an requirement in OBIEE 10g where in we should have an option to select between
    1) calendar type(Normal calendar or Enterprise calendar),
    2) Currency Type (INR or USD)
    3) Value or Quantity
    For eg My report is Monthly Invoice (with Year Ago)
    The table & column structure is
    Time_table>Year ,Quarter,Month,Week, Ent Year,Ent Quarter,Ent Month
    Fact_invoice> Invoice Value in USD, Invoice Value in INR, Invoice QTY
    As user require Year Ago data as well I have created measure like - Year Ago Invoice Value in USD, Year Ago Invoice Value in INR, Year Ago Invoiced QTY
    Now user want a report like
    three Selection option at the top (selection as stated above) + selection option for table view and graph view
    I cant use view selector/column selector as I am using ago function so the request gives error (if I include all the above column in single request)
    Is there any way out
    Thanks & Regards
    Sameer

    35055 wrote:
    I cant use view selector/column selector as I am using ago function so the request gives error (if I include all the above column in single request)
    Is there any way outA simple workaround I can think off is to create two different reports, and place them in two different sections of the dashboard and use guided navigation to hide each section based on the selection of the prompt.
    Let me know if you need more details on how to use the guided navigation to achieve this.
    Thanks,
    - A.Y.

  • Select between clips not working

    I toggled something and am not sure what I did. I have been selecting between clips all day long, and command-T to add cross dissolve. Now I don't get the hourglassed shaped cursor to indicate that it is selecting (i.e. I cant select the line between two adjacent clips. If I copy to a new timeline it works. What did I toggle?

    Hi:
    Stupid question:
    Did you try saving your work, quitting and restarting FCP?
    Thanks

  • Keyboard Shortcut for Selecting between volumes?

    How do I select between volumes without having to use the mouse to select the upper left hand section if the finder window? It seems like I can only navigate the folders contained within the drives using the keypad, but not between the drives themselves. Anybody know if this is possible?

    iKey is a front end program that simulates typing and mouse movements. I use iKey to remap the Function keys.
    "iKey is an automation utility, a program that creates shortcuts to accomplish repetitive tasks. In essence, an iKey shortcut is a little program in its own right, but you don't need to know the first thing about programming to create an iKey shortcut. All you have to do is put together three necessary parts of a shortcut: One or more commands that give the shortcut its functionality, a context in which it runs, and a launcher that defines how the shortcut is activated."
    http://www.scriptsoftware.com/ikey/
    iKey has a little more function then the previous free version called youpi key. For many years, I used youpi key before switching to iKey. It works fairly well for me in MAC OS 10.4 although not officially supported.
    http://www.versiontracker.com/dyn/moreinfo/macosx/11485&vid=75326
    I have the common programs that I use assigned to function keys. I have F4 assigned to Firefox. When I want to start FireFox, I press F4. When I want to switch to firefox, I press F4! Starting & switching to an application in Mac OS are the same thing in Mac OS.
    Here is an example of to assign volumn control to a function key.
    http://discussions.apple.com/message.jspa?messageID=10361085#10361085
    Here is my script for listing my application folder. I have it assigned to function-key 6.
    !http://farm3.static.flickr.com/2689/4292832695_f3a8f1122e.jpg!
    tell application "Finder"
       set windowNames to windows whose name contains "Applications"
       repeat with wNames_ref in windowNames
          close wNames_ref
       end repeat
       activate
       select window of desktop
       make new Finder window to startup disk
       select Finder window 1
       set target of Finder window 1 to folder "Applications" of startup disk
       select Finder window 1
       set position of Finder window 1 to {60, 45}
    end tell
    The second portion of this script was generated in the script editor record mode. After I recorded the script and did some editing, I copy the script to ikey/youpi key.
    I have all of my frequently used applications set to function keys.

  • Stored procedure to select between dates?

     
    I am writing a stored proc to Select information, I would like it to only select between dates?
    ALTER PROCEDURE [dbo].[spname]
    @Supplier int
    AS
    BEGIN
    SELECT
    ProductScenario_PK, Supplier_FK,ProductID_FK,
    ChannelProductVariation_FK, WorkflowID_FK,
    FROM
    PRODUCT_SCENARIO
    LEFT OUTER JOIN
    PRODUCT_SCENARIO_SWIMLANE ON PRODUCT_SCENARIO.ProductScenario_PK = PRODUCT_SCENARIO_SWIMLANE.ProductScenario_FK
    WHERE
    Supplier_Fk = @Supplier
    I have column name EffectiveFrom and EffectiveTo in PRODUCT_SCENARIO table. I need to select the Id value between this two dates.
    Is it possible to use as WHERE Supplier_Fk = @Supplier and between
    EffectiveFrom and
    EffectiveTo 
    Does anyone know how to do this?
    Thanks

    It says "Ambiguous column name 'EffectiveFrom & EffectiveTo"
    Alias it with proper table name, 
    PRODUCT_SCENARIO .EffectiveFrom >=@datefrom and PRODUCT_SCENARIO .EffectiveTo <=@dateto
    vt
    Please mark answered if I've answered your question and vote for it as helpful to help other user's find a solution quicker

  • How to implement Select Between clause? ..help

    Hi
    I want to implent typical select between clause in the mappings. It is like i want to check whether the "Given date" exists between the range of dates. The range of dates is obtained from the various dimension tables. I dont know how implement that. please help.
    Typical SQL query would be ....
    and A."Month End Date" between dim.efcv_bgdt and dim.efcv_endt
    and A."Month End Date" between dim2.efcv_bgdt and dim2.efcv_endt
    and A."Month End Date" between dim3.efcv_bgdt and dim3.efcv_endt          
    and so on..............................
    ***************************************************************

    Hi
    Use a joiner operator and connect dim1, dim2, dim3 to it and in the join expression use your netween expression.
    Or do you want to use the between in the select clause? Then use an expression operator and define a case when ... between ... and ... then ... else ... expression.
    Ott Karesz
    http://www.trendo-kft.hu

  • How do I get my 8600 premium printer to auto select between tray 1 and tray 2?

    How do I get my 8600 premium printer to auto select between tray 1 and tray 2? Right now, i have to pull out tray 1 to get the printer to feed tray 2.

    Hi Retrotriker,
    Follow the steps below to properly configure your paper trays.
    1. Touch (right arrow), touch Setup, touch Preferences, and then select Default Tray
    2. Select Tray 2 as the Default tray
    3. Open Printers and Faxes
    4. Right click on printer, and then select Printer Properties
    5. Click on Device Settings tab
    6. On this screen set the media type you have assigned to each tray (Example: tray 1 - Envelopes & Tray 2 - Letter)
    7. Click Apply, and then Ok
    8. When you have an envelope you are printing it will pull from Tray 1
    9. When you have a letter you are printing it will pull from Tray 2
    I am an HP employee.
    Say Thanks by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as "Accepted Solution"

  • Any way to limit POV selections between different dimension?

    Hi,
    For Hyperion Planning:
    My users continuously ask for to limit POV selections between different dimensions.
    For example,
    Dimension Entity: West, South, East, North
    Dimension StoreType: Mega, Super, Normal
    However, the following combinations make sense in current business context.
    West - Mega
    West - Super
    West - Normal
    South - Normal
    East - Normal
    If users select East - Mega, this does not make sense since there is no such combinations in current business context.
    Do any one know a way to limit the wrong selection?
    Thank you in advance.
    Casper H

    This link will give you the answer :- Re: Help in Data forms
    probably not the answer you want to hear though.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How can I select between multiple JREs to run an *applet* in MSIE??

    (I'm posting this after spending quite a bit of time trolling the Forum for an answer, and could definitely use some help - thanks in advance!)
    I've got an applet that opens a socket to a small server running on an embedded controller to download some data. Recently, it started taking forever (>30 seconds) to open the socket, but but once its open, the download is fine.
    The problem seems to have cropped up around the time that JRE 1.5.0_02 came out. I'd like to do some testing with older versions to see if this is really true.
    The environment here is Microsoft Internet Explorer running under XP Pro.
    It appears that the version of JRE loaded by the browser will depend upon a registry setting, and while I've found several likely candidates in HKEY_CLASSES_ROOT|LOCAL_MACHINE_SOFTWARE|JavaSoft, none of them seem to make a difference. I restarted the browser after each attempt, but did not reboot the machine. I also experimented with CLASSPATH, but that seemed to be ignored as well.
    Again, the goal is to be able to switch between JREs involked by the browser for an applet.
    Can anyone offer some help on how to do this.
    Thanks, - LR
    PS - I know the delay in the applet is occuring when the socket is opened because I surrounded the Socket() call with two System.err.println() calls, and can see it hanging there. The first println happens, there's a long pause, and then I see the second one simultaneously with my server showing that the data is being served.

    Chuck,
    First of all, thanks very much for the quick reply
    I took a look at your post, and the reference in the Java Deployment Guide it mentions. I was able to run jpicpl32.exe in the /oldversion/bin, enable it for the browser, and get the old version running.
    But now I can't seem to get back to the current one. When I execute Java from the XP Control Panel and look in Java|Java Applet Runtime Settings, I see only the new version (1.5.0_02). If I select it, and then hit OK and Apply, when I restart the brower I still get the old version (1.4.2_07).
    What am I missing?
    Thanks again,
    -lr

  • Path Selection between 10 gig fiber and microwave

    Hello everyone,
    my network is running OSPF as an IGP, i have a 10 gig Ethernet  fiber connected between two sites and a microwave link as a redundant connection.
    since ospf metric is cost ( or bandwidth ), the 10 gig ethernet connection is always preferred. however, sometimes the 10 gig link is flapping or the bit error rate is bad, is there anyway to change the path selection to go through the microwave when the bit error rate in the 10 gig link is bad or the link flaps ?
    basically can we make the path selection based on anything than the speed or cost ?

    Disclaimer
    The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
    Liability Disclaimer
    In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
    Posting
    Bandwidth can be a metric to OER/PfR.  Much else can be used by OER/PfR.
    The intent of this technology is sort of described by the names, Optimized Edge Routing (v1) and Performance Routing (v2).
    Both can account for path bandwidth and/or analyze performance.
    Understand typical dynamic routing protocols keep track of paths between source and destination and some have a way to "weight" paths  (for example, OSPF link cost [which by RFC, hasn't nothing to do with bandwidth, but is often based on that]).
    OER/PfR, for example, can run their own SLA tests.
    Years ago, I set up OER in large dual MPLS/VPN environment.  Our initial "problem", after activation, our WAN performance monitoring tools (and our users!) no longer "saw" any WAN performance issues.  They were still happening, but OER "saw" them first, and worked around them before the monitoring tools saw them.

Maybe you are looking for

  • No accounting document generated (foreign trade data incomplete)

    hello all, I meet a problem like this: Sales order: 1001 delivery: 2001 Invoice: 3001 another invoice 9001 has created for cancel 3001. when we saveed 9001, no accounting document generated, but we were not cognizant of it. and we did VF09 reverse PG

  • PC vs Mac dl speeds on Linksys

    Hi My provider recently upgraded to provide download speeds up to 16Mbps. I have a Linksys G Router (WRT54G) serving three PC and two macs. I am seeing throughput on the PCs averaging around >8Mbps and occasionally in excess of 12Mbps; however, my Ma

  • JAX-RPC and Tomcat standalone: ClassNotFound

    Hi. I have just made a hello world web service and tested it in jwsdp-tomcat. Now i want to deploy the ws to a standalone Tomcat4.1, so I copyed the deplouable war-file to webapps and restarted tomcat. In the log I get the ClassNotFoundException show

  • IPhoto 4.0.3 won't start

    Hi, my iPhoto won't start properly. It'll start up but then it gets stuck with the message "loading photos". It is iPhoto 4.0.3 . I downloaded a 4.0.3 update for iPhoto but when I try to install it it says that "iPhoto updater cannot be installed on

  • RVS4000 No me deja acceder a Youtube

    Estimados Srs.: Tengo un router RVS4000, con firmware v1.3.2.0. Mi problema es que trato de acceder a la pagina de Youtube, para descargar unos videos y me bloquea. No encuentro la manera de quitar este bloqueo en la configuracion. Saludos