Select st. using AND to find matches not working

HI,
Hopefully this one will be easy. I've need to produce the results of a query for customers who are on two plans (product1 & product2). THis should be an easy use of where name like 'product1%' and name like 'products2%'. THis is not working, I've tried it with parenthesis, without and everything I can think of. I know that there are accounts that use both, but this query keeps returning no rows.
Does anyone have any ideas of how this should work?
select distinct(a.account_no),
     ani.first_name||' '||last_name,
     abp.name
from account_nameinfo_t ani,
     account_t a,
     brio_broadcast.accounts_and_products abp
where UPPER(abp.name) like '%PRODUCTS1%'
and UPPER(abp.name) like '%PRODUCTS2%'
and a.poid_id0=ani.obj_id0
and a.poid_id0=abp.poid_id0;
also tried -
select distinct(a.account_no),
     ani.first_name||' '||last_name,
     abp.name
from account_nameinfo_t ani,
     account_t a,
     brio_broadcast.accounts_and_products abp
where ((UPPER(abp.name) like '%PRODUCTS1%')
and (UPPER(abp.name) like '%PRODUCTS2%'))
and a.poid_id0=ani.obj_id0
and a.poid_id0=abp.poid_id0;

Joe,
I'm not sure what your data model looks like, so you might have to tweak this a little bit.
It sounds like you're looking for customers that subscribe to two different plans. If different plans appear in different rows of the Brio table of plans, then you have to reference that table twice in your FROM clause with different aliases.
Something like this, perhaps?SELECT DISTINCT a.account_no
,               ani.first_name || ' ' || ani.last_name
,               abp1.name
,               abp2.name
FROM account_nameinfo_t                   ani
,    account_t                            a
,    brio_broadcast.accounts_and_products abp1
,    brio_broadcast.accounts_and_products abp2
WHERE UPPER(abp1.name) LIKE '%PRODUCTS1%'
AND   UPPER(abp2.name) LIKE '%PRODUCTS2%'
AND   a.poid_id0 = ani.obj_id0
AND   a.poid_id0 = abp1.poid_id0
AND   a.poid_id0 = abp2.poid_id0Try taking it from here.
Good luck and hope this helps,
T.

Similar Messages

  • Upgraded to leopard and now finder does not work

    Hi there - I just completed a leopard upgrade. Strangely enough, after installation and the subsequent reboot, i cannot get the finder to work. Upon clicking on the finder it just sits there and gives the 'waiting' signal (rotating multicolor circle). I opened the activity monitor and killed it, clicked again. nothing. Rebooted numerous times.. nothing. I also tried to install the leopard software update. The files download fine but will not install. I assume this has to do with the finder problem. Any ideas on how to fix this? thanks!!

    Scott SV wrote:
    Hi there - I just completed a leopard upgrade. Strangely enough, after installation and the subsequent reboot, i cannot get the finder to work. Upon clicking on the finder it just sits there and gives the 'waiting' signal (rotating multicolor circle). I opened the activity monitor and killed it, clicked again. nothing. Rebooted numerous times.. nothing. I also tried to install the leopard software update. The files download fine but will not install. I assume this has to do with the finder problem. Any ideas on how to fix this? thanks!!
    There are really two "Finders," the one in the dock and the one that actually runs the GUI.
    When you click on your desktop, you see the Finder menu on the top right. Do any of those functions work?
    For example, if you click Go->Home, does the Finder window open as normal?
    If so, you may simply have a corrupted Finder alias in your dock.
    I would first run DU and perform a disk check and repair permissions.
    How to get to DU? Again, if the top right Finder menu works, select Go->Utilities and run DU from there.

  • HT4367 I turned off the power to my apple tv whilst updating and now it will not work, i have tried to restore using usb but it says unable to find. any help please?

    I turned off the power to my apple tv whilst updating and now it will not work, i have tried to restore using usb but it says unable to find. any help please?

    Welcome to the Apple Community.
    Are you following these instructions.
    Remove ALL cables from Apple TV. (if you don't you will not see Apple TV in the iTunes Source list)
    Connect the micro USB cable to the Apple TV and to your computer.
    Reconnect the power cable (only for Apple TV 3)
    Open iTunes.
    Select your Apple TV in the Source list, and then click Restore.

  • HT1222 My mouse pointer in finder is not working by double clicking on the application.I have to double click and select open for opening the application.Can you suggest me some settings to fix this problem?

    My mouse pointer in finder is not working by double clicking on the application.I have to double click and select open for opening the application.Can you suggest me some settings to fix this problem?

    Hi,
    Try this ... reboot your Mac and see if double clicking works again.
    Also, you can just select the Application you like to open and hold down the Command+O to open.
    Also, did you check your setting for the mouse in system preferences.
    Dimaxum

  • Im tryting to install new itunes but says windows installer, you are tring to use is a network resource that is unavailable. find folder itunes.msi  i dont have a folder like that and anything i use that is related does not work. help me?

    "you are tring to use is a network resource that is unavailable. find folder itunes.msi" i dont have a folder like that and anything i use that is related does not work. ive tryed to uninstall but still does the same thing when.

    Should the advice above not fix things for you...
    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    The further information area has direct links to the current and recent builds in case you have problems downloading, need to revert to an older version or want to try the iTunes for Windows (64-bit - for older video cards) release as a workaround for installation or performance issues, or compatibility with QuickTime or third party software.
    Your library should be unaffected by these steps but there are also links to backup and recovery advice should it be needed.
    tt2

  • Trackpad Scrolling and 'Find' does not work

    I'm loving it so far on my Work IBM T43 / Windows XP. I always wished for this to come out and now here it is. I can't say though that it isn't without any issues such as the ones mentioned above [Trackpad Scrolling and 'Find' does not work]. I'm still playing around with but so far so good. Anyone else coming up with these issues?
    Specifically I have to manually select 'Find' from the drop down File Menu under Edit and then once it has been activated, I can use 'Cntl + F' but then once I click on Done, nothing happens. I once again have to use it from the drop down. It's not a major thing but definitely a peave.

    I'm on an IBM T60 on XP Professional and trackpad scrolling doesn't work
    I hope this problem will be solve soon.

  • I have Mac os 10.6.8. And now finder is not answering. I havec

    I have a problem with Finder it will not answer. I have tried to restart using alt com esc. It will not start again. What can I do?

    the problem is that each time i turn on my computer finder is stuck, so my desktop will not load and whenever i move my cursor to my desktop i get the spinning beachball. i have tried to restart finder and i have tried to repair teh hardrive in disk management but that did nt work either. this means taht i can´t save any eord documents and i cant access finder in any way. i belive it started when i downladed i game, but since finder does not work now i cant delete it. if you could help it would be wonderful

  • The message function on my Ipad just quit working.  I was using it while in Mexico and it just quit.  I have come home and synced my Ipad with Itunes and function still does not work.  How do I get this function to work again?

    The message function on my Ipad just quit working.  I was using it while in Mexico and it just quit.  I have come home and synced my Ipad with Itunes and function still does not work.  How do I get this function to work again?

    When I use find file http://www.macupdate.com/app/mac/30073/find-file (which does tend to find files that "Finder" can't), it's not coming up with any other itunes library files that have been modified in the past week, which I know it would have been - unfortunately, I don't have a very recent backup of the hard drive.  It would be a few months old so it wouldn't have the complete library on it....any ideas?  I'm wondering if restarting the computer might help but have been afraid to do so in case it would make it harder to recover anything...I was looking at this thread https://discussions.apple.com/thread/4211589?start=0&tstart=0 in the hopes that it might have a helpful suggestion but it's definitely a different scenario.

  • I have a DVD stock in my Imact and the finder does not recognice it. How can I get it out?

    I have a DVD stock in my Imact and the finder does not recognice it. How can I get it out?

    Hold down the mouse button when shutting down,  If that doesn't work, try holding the Mac sideways and shaking gently, then if you see the edge of the disc, use tweezers to pull it out.

  • Accidentally removed from,sharing and permissions the admin user,and now i do not when i find the home icon at my computer i do not have permmission,and the mac does not works properly,lots of question mark at the dock ,please help

    accidentally removed from,sharing and permissions the admin user,and now i do not when i find the home icon at my computer i do not have permmission,and the mac does not works properly,lots of question mark at the dock ,please help

    I'm going to assume that since you deleted your hard drive and all its files, you had a backup, yes? If the backup has an OS (bootable clone), then you can boot into it by holding down the option key when you start up you iMac and choose the backup drive. Then use Carbon Copy Cloner or Super Duper to copy the files back to your iMac.

  • I can't find isight under the software, also, i tryed to restart  and still  the camra not working. do you have alink to download isight?

    i can't find isight under the software, also, i tryed to restart  and still  the camra not working. do you have alink to download isight?

    Click on the Apple symbol in the top left of the screen and select About this Mac. Click on More Info and scroll down to the USB entry under hardware. Does it list the 'Built in iSight' in the top right hand pane?
    If it does, what happens when you run the Photo Booth application?

  • My lap top name is hp pavilion dv 600. and my micriophon is not working . i am using windows 7.

    My lap top name is hp pavilion dv 600. and my micriophon is not working . i am using windows 7.  before that i was using widows vista. in the cotorl panel in the hardware and sound section . in the sound section  in the recording tab it is written that  microphone is not plugged in while i have microphone in front of my screen . could any one help me.?????

    Try to disable transparency in Windows, see:
    *[[/questions/804050]]
    Right click in a free space on your desktop.<br />
    Left click on Personalization.<br />
    There are four options at the bottom of the screen, choose "Window Color and Appearance".<br />
    Select a border color<br />
    Uncheck: "Enable transparency"<br />
    Try to disable hardware acceleration in Firefox.
    *Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
    *https://hacks.mozilla.org/2010/09/hardware-acceleration/
    *https://support.mozilla.org/kb/how-do-i-upgrade-my-graphics-drivers

  • TS4062 My Iphone won't appear in my devices in Itune.... And the WiFi does not work on my phone.... I seems like there is no solution to update my phone to the new ios on my computer or WiFi without using the 3g because of this!!! help me out

    My Iphone won't appear in my devices in Itune.... And the WiFi does not work on my phone.... I seems like there is no solution to update my phone to the new ios on my computer or WiFi without using the 3g because of this!!! help me out

    Hello there, TempestBelcher.
    It seems you've covered all the bases, but feel free to review the iPhone Troubleshooting Assistant for connectivity here:
    Apple - Support - iPhone - Calls Troubleshooting Assistant
    http://www.apple.com/support/iphone/assistant/calls/#section_0
    If you've followed all the instructions then there are a few good recommendations for what to do next in the last step.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro D.

  • Plugin created using C++ 6 and Acrobat 6 SDK Not Working in Windows

    I have an Acrobat plugin compiled in Visual C++ 6 using Acrobat 6 SDK. The plugin works flawlessly in Acrobat versions 6 to 9 in Windows XP. While the plugin is able to add a menu iterm and tool bar icon in Windows 7, it causes Acrobat to hang everytime when activated in which event I have to close Acrobat. Since Visual C++ 6 is a 32 bit app, I have to believe that Acrobat 6 SDK is responsible for the behavior described herein in attempting to get the plugin to work in Windows 7. Any comments or suggestions regarding what Visual C++ version to use along with the appropriate Acrobat SDK to get the plugin to work in Windows 7 are appreciated. In doing so, I would also be interested in knowing what backward compatibility one may expect w/regard to previous versions of Acrobat in updating the plugin to work in Windows 7. As for the answer, correct me if I am wrong but I'm thinking Acrobat 9.

    Adobe hasn't supported Acrobat 6, VC6 or the Acrobat 6 SDK for at least 5 years.  You will need to move to the Acrobat 9 SDK if you wish support.
    And Acrobat 9 and its SDK are fine with Windows 7.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Thu, 1 Dec 2011 01:15:42 -0800
    To: Leonard Rosenthol
    Subject: Re: Plugin created using C++ 6 and Acrobat 6 SDK Not Working in Windows Plugin created using C++ 6 and Acrobat 6 SDK Not Working in Windows
    Plugin created using C++ 6 and Acrobat 6 SDK Not Working in Windows
    created by gomfp49<http://forums.adobe.com/people/gomfp49> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4056529#4056529

  • Using OS X 10.8.3 and ethernet wire port not working suggestions?

    I plug my ethernet cable in and the port does not work.  I have checked with another computer and the internet is working. 

    When you say you changed your password was that on the gmail site and yet both your phone and pad can still send & receive with the same settings and the original password? That should not happen. If you changed your gmail password no device should be able to connect using the original password.
    As to the problem with mac mail this is a very common problem. Most of the time the only fix is to completely delete the account and recreate it. But then you also need to remove the original smtp server entry as just removing the account doesn't do that.

Maybe you are looking for

  • How to configure number of importing mail?

    hi guys,    I'm adding my yahoo mail account into Mac Mail recently, and I have got around 5000 mails in my yahoo account. When I succesffuly added the yahoo account in Mac Mail, the system imports all mails to Mac (starting from very beginining) It

  • I can't find the site domain file in iWeb 3 and OSX Lion

    I've got iWeb 3.0.4 and am using OS10.7.3 In previous versions of the OS and iWeb the actual file that iWeb creates is stored inside ~User>Library>Application Support>domain.site I can't for the life of me find either the Application Support folder i

  • Spaces and 'is numeric' validation.

    Hello everyone, I'm using a simple application and in one field, i have a ' is numeric ' validation on a text field item. Everything works fine except that when i enter a space ' ' , the validation does not stop the request and i end up with ORA-0650

  • HOLD DOCUMENT NUMBER RANGE

    Hi. Is it possible to maintain the internal no range for Hold documents? Regards, Srini

  • Want to import Edge animation as hover over link reaction, is there a good tutorial for this?

    Hey guys, I just got Edge Animate yesterday, and I understand most of the animation techniques since it's very similar to After Effects. However I am having trouble integrating it with Dreamweaver. So far I can publish is as an .html file and hotlink