Select does not work

Hello.

I was testing a select statement before to create a view but it did not work. I need of Select name from three companies et restrict a city. I can Select the 3 companies, but when I restrict the city no error, but select returns me the same companies but in the throughout the State. If I select a company and a city, everything is fine,


My selection is as follows.


Select municipio, empresas entidade

where entidade like '% EMPRESA01% ' or entidade like '% EMPRESA02% ' or like 'EMPRESA03% ' and municipio entidade = "Cidade01."

Thank you.

Hello Sandro,

did you try to use parentheses?

SELECT municipio,
       entidade
  FROM empresas
WHERE (   entidade LIKE '%EMPRESA01%'
        OR entidade LIKE '%EMPRESA02%'
        OR entidade LIKE 'EMPRESA03%'  )
   AND municipio = 'Cidade01'

And maybe a few functions high around municipio?

concerning
Kay

Tags: Database

Similar Questions

  • 29,0 Firefox, print 'selection' does not work.

    When I select a section of a page, then use the "print" button, the 'selection' print option does not work. It is not highlighted in the print menu.

    The button "print" 'action' in Firefox 29 differs from earlier versions. Now, he opens preview print rather than going directly to the box of "native print dialog. That breaks the ability to print a 'selection '.

    My advice is to highlight the selection , then use {Ctrl + P} to start printing until Mozilla fixes the action of the "print" button in a newer version of Firefox.

  • Static assets selection does not work in 10.2

    Here, dear

    I have an application with selection of static assets, whose exhibition structions aset looks like this:

    |----assets
    |     |----720x720
    |           |----ui1.qml
    |----ui1.qml
    

    The intention is that when run on devices of 720 x 720 (q10/CAD), must use the ui1.qml sub-folder '720 x 720'.

    Everything works fine when build Momentics 10.1, but when build Momentics 10.2, the built application does not work. Which means that it always uses the ui1.qml under the heading 'assets' regardless of the DPI of the device.

    There that anything must be updated for the 10.2?

    Thank you

    Dong

    Just to finance a solution soon as I posted this: to add an entry in assets/gear - assets.xml:

    
    

    Hope this helps someone as well.

    Dong

  • Bindings.Select does not work with the primitive properties like string etc?

    My code works when I use a < String > ObjectProperty, this however does not work when I use a string instead.

    Don't know if this Bindings.select behavior is a bug or expected.

    The NBS are:

    The impression is:

    ObjectProperty < String >--> < String > ObjectProperty: abc

    String-> string: null

    String-> < String > ObjectProperty: null

    I expect all cases to print 'abc' good

    import javafx.beans.binding.Bindings;
    import javafx.beans.property.ObjectProperty;
    import javafx.beans.property.SimpleObjectProperty;
    import javafx.beans.property.SimpleStringProperty;
    import javafx.beans.property.StringProperty;
    
    public class SelectBindingTest {
    
        public static class A {
    
            private StringProperty comment = new SimpleStringProperty(this, "comment");
            private ObjectProperty<String> commentObj = new SimpleObjectProperty<>(this, "commentObj");
    
            String getComment() {
                return comment.get();
            }
    
            StringProperty commentProperty() {
                return comment;
            }
    
            void setComment(String comment) {
                this.comment.set(comment);
            }
    
            public String getCommentObj() {
                return commentObj.get();
            }
    
            public ObjectProperty<String> commentObjProperty() {
                return commentObj;
            }
    
            public void setCommentObj(String commentObj) {
                this.commentObj.set(commentObj);
            }
        }
    
        public static class B {
            private ObjectProperty<A> member = new SimpleObjectProperty<>(this, "member");
    
            A getMember() {
                return member.get();
            }
    
            ObjectProperty<A> memberProperty() {
                return member;
            }
    
            void setMember(A member) {
                this.member.set(member);
            }
        }
    
        public static void main(String[] args) {
            B b = new B();
            A member = new A();
            b.setMember(member);
    
            final String expectedString = "abc";
    
    // this works
            SimpleObjectProperty<String> targetStringObjProperty = new SimpleObjectProperty<>("initialTargetText");
            member.setCommentObj("initialSourceText");
            targetStringObjProperty.bind(Bindings.<String>select(b.memberProperty(), "commentObj"));
            member.setCommentObj(expectedString);
            System.out.println("ObjectProperty<String> -> ObjectProperty<String>: " + targetStringObjProperty.get());
    
    // this doesn't work
            SimpleStringProperty targetStringProperty = new SimpleStringProperty("initialTargetText");
            member.setComment("initialSourceText");
            targetStringProperty.bind(Bindings.selectString(b.memberProperty(), "comment"));
            member.setComment(expectedString);
            System.out.println("StringProperty -> StringProperty: " + targetStringProperty.get());
    
    // this doesn't work either
            targetStringObjProperty = new SimpleObjectProperty<>("initialTargetText");
            member.setComment("initialSourceText");
            targetStringObjProperty.bind(Bindings.<String>select(b.memberProperty(), "comment"));
            member.setComment(expectedString);
            System.out.println("StringProperty -> ObjectProperty<String>: " + targetStringObjProperty.get());
        }
    
    }
    
    
    
    

    EDIT: Sorry for the horrible formatting. Can't seem to understand how to properly insert empty lines.

    Read the fine print in http://docs.oracle.com/javafx/2/api/javafx/beans/binding/Bindings.html#select(javafx.beans.value.ObservableValue, java.lang.String...)

    All classes and properties used in an affair of selection must be public.

    If you do your commentProperty, getProperty (and setProperty, although I suppose it doesn't matter) methods in public class has, it works as expected.

    Post edited by: James_D (link fixed javadoc)

  • Pavilion g6 2307el: LEGACY BOOT SELECTION does not WORK

    Hi, first sorry for my bad English , I have a big problem...

    4 days ago, that I decided to install a new os on my pc (pavilion g6 2307el).

    I installed win 7 64 bit, and to do this, I enabled the legacy boot.

    now, I have some problems with some drivers and for this reason I want to change my os originally win 8 64-bit.

    I have the original cd of victory CV 8 (when I installed win 7 has deleted everything on my pc; recovery partition ecc..) but it does not work... Infact when the legacy box is turned on and I press the f9 key I see 2 option. boot to the efi file or boot from the hard drive (I can't see cd boot or boot usb or other) and when I put inherited boot off the system tell me that it isn't any os on my pc, and in this case when I Press f9 I don't see anything...

    Please, I want to return my windows 8...

    can someone help me?

    Hi @pavilion9512

    Thank you for your request! No worries for tyour not English, also long as understand us each other, that we are very well.

    I understand that a few days ago, you wanted to downgrade to Windows 7, but after doing if some drivers were not available.

    Now, you want to perform a recovery from the disk that you created but are unable to get the option to boot to the optical drive.

    Here is a link to HP Notebook PC - configuration of the Boot in the BIOS system order which will facilitate this process.

    Good luck!

  • CC2015 drag rectangle selection does not work

    Since I installed the CC of 2015 for photoshop and illustrator, 95% of the time that I open a program, I can't drag a selection.  I can try again and again, but nothing seems to happen, and then all of a sudden I get a part of a selection.  I can close and open the program and sometimes it starts to work as never was.  I can go in any other program (even just on my desktop) and drag and it will start by selecting without problem.  I can not even open the program, try to drag and get nothing, then move my mouse the program on the desktop and it pulls very well and go back and nothing.  This has never been a problem with cc2014.

    Any ideas?  It's just a simple Logitech mouse and I'm just trying to select a portion of an image in photoshop or select traces in illustrator.  It is just as I'm not click and drag.  Click works fine 100% of the time, simply click and drag is not.  Has anyone else seen this and y at - it one solution other than go back to 2014?

    BTW, it wasn't a problem to Adobe, it ends up being a problem with synergy, a program to share keyboard and mouse with other computers.  Upgrades to the latest version and it fixed the problems.  I just wanted to day in case someone else runs into this.

  • Area of development under the menu "select" does not work

    CC trial on 32-bit machine with 4 GB of ram and 1 GB card graph.

    Have the photo on the screen. Select the update box, select Menu. Get the graphic treatment of circle and then nothing.

    Tried all the display modes and still nothing. Original photo with no overlay.

    Any ideas greatly appreciated.

    What version of windows are you using?

    Maybe your photo is quite important with respect to the pixel dimensions.

    Have you tried smaller photo?

    (smaller in size in pixels, as 1014 x 768)

  • Safari category selection does not

    Safari category selection does not work and in box does not. Selection needs several times and do not 'remembers' the choices you make. What do I do please I really want us Firefox

    Please give us more details.

    Try these general troubleshooting steps.

    1 search for safari?

    Safari > Preferences > Search > search engine

    Uncheck the "Include search engine Suggestions."

    2 empty Caches

    Safari > Preferences > advanced

    Tick the box "Show develop menu in menu bar."

    Develop menu will appear in the Safari menu bar.

    Click on develop and select 'Empty cache' in the menu dropdown.

    3. Delete Cookies and test them.

    Safari > Preferences > privacy > Cookies and other data from the website:

    Click on the button "Details".

    Delete all cookies except those from Apple, your internet service provider and the banks.

    4 disable Extensions and test them.

    Safari > Preferences > Extensions

    Select Disable all extensions and test them.

    Enable the Extensions one by one and test.

    To uninstall any extension, select it and click the "Uninstall" button

  • ReadyNas Ultra 2 Bootmenu selection does not

    Hello

    I was informed by my NAS (RNDU2220) that a new firmware is available which I have tried to install via the "Remote Installation" option of the WebGUI interface. At first things went well, Raidar said that an update is performed. After updating the device unbootable, when I press the power that only the blue activity Led turns on, no LED drive. I thought that something was wrong and that he has decided to perform the operation to reinstall OS. It is absolutely crucial that I have do not lose data wherever I didn't do a factory full reset, just reinstall the OS.

    Up to this so bad... I followed the guide as described here: http://kb.netgear.com/app/answers/detail/a_id/21100

    I managed to get the SIN to the State where all the LIGHTS are on, and now I'm supposed to scroll the boot menu options by pressing the Save on the front button. But when I press this button at all nothing happens, which means that no change in configuration of LED and all 4 LEDs stay lit no matter how much times I press the backup button or for how long I hold, or all 4 lights are extinguished after a simple click on the button Save and only the blue activity LED is turned on with the FAN running at high speed. Network is not activated at this stage so Raidar does not see my SIN no more.

    What I am doing wrong, how can I leave the NAS reinstall the OS without a factory reset when bootoptions selection does not work? Is there a way to Flash the OS on USB without the need to choose a startup option, and without losing the data on the disks?

    Any help is highly appreciated

    Mdgm thank you for your time and effort, unfortunately nothing worked and history has ended with me pay $60 for a software recover data. Who worked happily

  • gesture trackpad of three fingers to select text does not work on the sierra

    I have a MacBook Pro (13-inch, mid-2014 retina). After upgrade to sierra trackpad gesture to select text using three fingers does not work. Instead, I saw that now a press and hold your finger and drag to select the text, it's very painful and does not work perfectly as three fingers gesture.

    If by mistake the press with a single finger is lost text selection stop there and have to start over and it also causes mild pain if the selection is long.

    Please let me know if anyone knows how to get the text selection gesture three fingers in sierra.

    OK the solution is already here - https://support.apple.com/en-ae/HT204609

  • I can't select or copy text on Firefox for Android 26.0.1 (device: Samsung Galaxy Note 2) OS: Android 4.3. Long press on the text does not work. )

    Can't select or copy text on Firefox for Android 26.0.1.
    Device: Samsung Galaxy 2 Note.
    OS: Android 4.3.
    Long press on the text does not work.

    I would ask someone to check that...

    I'm glad to hear that your problem has been resolved by using the beta version.

    If you have not already the case, please mark this thread as solved by the solution of marking.

    This will help other users experience similar problems helps to find faster and more efficiently.

    I hope that you will continue using our products and we thank you for contacting the Mozilla Support.

  • How to select multiple lines of text (without selecting all the text) within a title? (Holding Cmd does not work)

    I need to select several lines of text (in the various sections of the text) within a title without selecting any text. Holding Cmd like you would in other applications does not work, and now Shift selects all. Does anyone have a solution?

    Thank you.

    YYou cannot select several segments of text in a text block.

  • In the United States, I can use selector locale quick to get U.S. locale of Russia but in Russia, it does not work to go the other way or any other premises than elsewhere. After selecting a new language and restarting firefox, it remains on the Russian

    In the United States, I can use selector locale quick to get us to the locale of Russia (ru - RU), but in Russia, it does not work to go the other way or any other premises than elsewhere. After you have selected the local new and restart firefox, it remains on the Russian locale. Y at - it a fix for this problem?

    This has happened

    Each time Firefox opened

    == Looks like it started with a newer version of firefox, but this may have been coicidental

    You have other language packs languages installed?
    Tools > Modules > languages

    There is no module language en-US, to achieve that you must install the version of Firefox en-US and install other languages in the version.
    http://releases.Mozilla.org/pub/mozilla.org/Firefox/releases/3.6.6/Win32/XPI/

    See also http://kb.mozillazine.org/Language_packs

  • Select CTRL or copy, does not work - using the new Windows 7-

    Using the new Windows 7, it still does not work:

    > To select the non-consecutive files or folders, press in and hold the Ctrl key and then click each item you want to select.

    There is also the same problem when you use the Ctrl key to 'Copy', rather than 'move '.

    Sometimes a reboot will fix it, but other times not. Is it an appropriate solution for the Ctrl key work properly?

    Hello

    It is difficult to imagine a particular key for only certain combinations of keys does not?

    Here are a few troubleshooting steps that you can try to isolate if all goes well the problem.

    1. start the computer Safe Mode and try to reproduce the problem. Start your computer in Safe Mode

    2. perform a clean boot, and then follow the instructions in the following article to help identify the problem.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    3. create a new user account, log in to the new account and test the issue. Create a user account

    If this step resolves the issue, is that your user account may be damaged. Replace

    your original user account.  How to fix a corrupted user profile.

    Let us know the results.

    Thank you for using Windows 7

    Ronnie Vernon MVP
  • In Windows 7, selecting "Automatically expand to current folder" in Windows Explorer, it does not work

    In Explorer windows (win7... new laptop...?) activating the box "Automatically expand to current folder" does not work. I went through tons of forums and no one can answer this recurrent problem.

    If I navigate through the folders in the left pane using the arrow keys: the right pane should follow! and display the contents of the folder.

    What is the difference with the guys who claim that this box, it's employment and tons of guys for whom this box makes no difference at all including me?

    Please provide a solution! Many of us will enjoy!

    OK, so now that I've been messing around with this problem its as magically started working for the first time (within 6 months) on my personal laptop...

    I think I know what fixed it. I remember toggling the 'automatically expand to current folder' option in right mouse click an empty link in the navigation pane (it was already placed on). When I did it first, it did not work. I remember deselection and then selecting once again, and it still doesn't work. I went back to folder options and (this is where it gets fuzzy) I think I've deselected and not selected again from there, still no luck.

    So I opened the registry to verify automatically expand them to current folder key is set to 1. It was so I let fall, don't make any changes to the registry. I posted the above comment and left my PC, still running, no reset.

    9 hours later I come home and hey presto all his work.

    Go figure.

    Now that his work, using the Folder Options box still does not work with it all - either to the value on or off. Using a right-click in the browser window works, but the effect is not immediate. We need to change at least a folder selection (double click on a folder) in the file list pane before the change takes effect.

    I'll test this fix some information on other portable dozens that have this problem and present the results here.

Maybe you are looking for

  • Gift cards

    I received a gift card Apple Store, email, for $50.00.  I won't, however, I would like to exchange it for a $50.00 iTunes gift card.  Apple made it impossible with links that go nowhere and do nothing. Apple needs to simplify the return and/or Exchan

  • How do sound on dial-up?

    This is a silly question maybe, but my dial-up is completely silent. I find it disconcerting to not hear the tones a connection sounds. All other sounds is fine and dial-up sound was there until a day or two ago. How do I turn it back to the? (I am r

  • Is it normal in the 6s overheating iphone when you use a wi - fi connection

    is it normal in the 6s overheating iphone when you use a wi - fi connection

  • RALink rt5390r wireless guard give up the connection

    I have the Office of CTO H8-1540 8.1 Windows running.  This machince has been bundled with Windows 8 and I experienced the same behavior on the two OS'.  I have no problem getting a connection, but I can't keep the connection.  I have a RT5390R of RA

  • Replace the thermal paste on Y570

    Hey guys, you can change the thermal paste from the portable Y570 without dissociate completely the it (coming out of a keyboard and other things) or is there another way? If someone can tell me how? Thank you