How to get some of the records but not all of them in a query
Hi there I have a query which returns the events that do not have the mrreceived as 'Y'. Am trying to find a way how we can rewrite the query that gives the events without mrreceived as 'Y" or mrreceived as null but the events with both of the combined?
{code}
select c.client_id,
e.event_id,
e.mrreceived,
e.event_status_code,
e.proj_batch_id,
p.providername,
p.clientproviderid
from event e, client c, clientprovider p
where e.client_id = c.client_id
and e.clientproviderid = p.clientproviderid
and c.client_id = 1250
and p.clientproviderid not in
(select distinct b.clientproviderid from clientprovider b, event x
where b.clientproviderid = p.clientproviderid
and b.clientproviderid = x.clientproviderid
and x.mrreceived = 'Y'
and e.client_id = 1250)
{code}
user11961230 wrote:
i just want to see the id 10371.OK. So you want to see id that has both Y and NULL, right? If so:
select c.client_id,
e.event_id,
e.mrreceived,
e.event_status_code,
e.proj_batch_id,
p.providername,
p.clientproviderid
from event e, client c, clientprovider p
where e.client_id = c.client_id
and e.clientproviderid = p.clientproviderid
and c.client_id = 1250
and p.clientproviderid in
(select b.clientproviderid from clientprovider b, event x
where b.clientproviderid = p.clientproviderid
and b.clientproviderid = x.clientproviderid
and (x.mrreceived = 'Y' or x.mrreceived IS NULL)
and e.client_id = 1250
group by b.clientproviderid
having count(distinct nvl(x.mrreceived,'X')) = 2
/SY.
Similar Messages
-
I take a .NEF file and a .JPG file with every click. When I transfer the files using a flash drive to another computer I never get all of the files to transfer. I get some of the .NEF and some of the .JPGs but not all. How come?
If you're exporting a project then you'll only get the images in that project. Also if any of the masters are referenced then you won't get those masters unless you check Consolidate masters into exported library
It might be best if you started from the beginning and explained what it is your are trying to do and how you're going about doing it. Also a description of you're hardware/software setup would be helpful. -
My Iphone 4, to which all my outlook email is forwarded to. is only receivng some of the emails but not all. It has worked beautifully in the past but no longer. What can I do to get all emails?
I would just explain that this just started happening, that nothing has changed on the phone, that it is an original iPhone and I wondered if they are implementing a change in coverage with their Edge network in my area.
If you restore your phone, you will be given an option to back up your phone at the beginning of the process (see step 6 here: http://support.apple.com/kb/HT1414). You will be given the option to restore to that backup at the end of the restore process. Your messages are stored in the backup so restoring to the backup will return the messages to your phone. Be sure to import your photos and videos to your computer (see http://support.apple.com/kb/HT4083) and back up your contacts somewhere before restoring your phone as these sometimesget lost in the restore process. -
i want to add music to my new ipod nano but i don't want to sync all the music onto the nano from my mac. how do i transfer some of the music but not all? thank you.
Hello,
It is 2015 and iTunes still wants to tell me what to listen to. This problem still persists. The only solution I have found is to select "Manual ..." and pick one by one the items to sync.
When I select items to sync by artist or genre they do copy to the device. Then iTunes continues randomly selecting music until the device is full. When I want to load the Nano for a road trip I don't want 20% of the tracks to be Chakra meditation. When little Nano is docked on the nightstand alarm clock I DON'T want to hear Motorhead, Ministry, etc.
For all the effort aPple puts into seamless integration and ease of use ... Why the heck is it so hard to say NO? Sync these tracks and NOT those. Stop asking me to log in to your cloud service BTW. I do not want it.
Thanks,
Disgruntled Sour aPple User -
I have some of the features but not all of them. It seems that the download did not complete.
Where are you looking for Siri voice selection? It should be in Settings/General/Siri. You must also choose a language that has a choice of voices. US English and Canadian English do, UK and Australian do not.
What do you see in Settings/Wallpapers & Brightness? You need to tap one of the 2 images to see the selections available.
As I said, it is impossible that the installation is incomplete; you just aren't finding the new features. If you want to reinstall anyway, upgrade iTunes on your computer to 11.1, then connect the phone using a USB cable directly to the computer (not a hub), click on the iPhone's name in iTunes, then click the Restore iPhone button. -
My iTunes password will update some of my Apps but not all of them. When I try to update the remaining ones, my password expires. I've just created 5th PW. Does anyone else experience this?
- Try going to Setings>Store and sign out of the account and then sign back in.
- Reset the iPod. Nothing will be lost
Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears -
I have an iPhone 4 and getting a iPod touch for my child, my question is whether to create separate account or have a shared account? I want to share some music and apps but not all and I also want her to be able to iMessage and face time with her own iPod and own account . What's the best way to go?
You can use one Apple ID for purchasing (App Store & iTunes Store) and shared with your child whereas your child uses a different Apple ID for Game Center, e-mail, FaceTime, iMessage. Even on iCloud there you'll get an extra 5GB free.
-
How do I create both endnotes and footnotes in same doc in Pages? I have iWork 2008. I understand how to create one or the other, but not both.
You have to select one or the other.
Try making two documents and see if you can merge the .pdfs, but their will be problems with page flow, making the pages shift. Can't see it working really.
Pages is not the only solution out there or the best for most jobs (let alone the safest). Try Word for Mac, LibreOffice (free) or any App that has the features you need.
Peter -
I have programmed iCal and Address book to sync via MobileMe. The info I type in iCal on the MacBook Pro get updated on the iPad, but not the other way around. Any hints?
Levi G B ... Also found another thread by Davidfromsurfside on 10/14/11 0703A with the same problem. I responded on his thread "I have the same problem. IOS5 on iPad1, iPad2 and iPhone4S all with iCloud on. Lion 10.7.2 installed on my MacBookPro and iCloud set up/on. Any new iCal entry on either iPad or on the iPhone ends up via iCloud on both iPads and iPhone. BUT NOT ON THE MacBookPro. And iCal entry on the MacBookPro does NOT GET SENT to iCloud.com or to either iPad or the iPhone. This is a huge problem for me because I do all my office scheduling on the iPad or iPhone but rely on the MakeBookPro to print out daily client lists. I REALLY need to get this fixed...it is causing major business issues. " No one so far has had a fix.... :(
-
Indesign master page putting the images on the master in teh middle of some of my pages but not all
indesign master page putting the images on the master in teh middle of some of my pages but not all =[
We'll need some more information, and probably a few screen shots, like the master page and one of your pages where the image is not showing.
-
certain events in iPhoto will not sync to my iPad. No Error messages comes up and the photos themselves are ok. its like my ipad doesn't see them. Cause i can get some photos on there just not all. Photos are from the same camera and should all be in the same format.
What is the file name of the video(s) you want to sync?
Another way. You can use a USB flash drive & the camera connection kit.
Plug the USB flash drive into your computer & create a new folder titled DCIM. Then put your movie/photo files into the folder. The files must have a filename with exactly 8 characters long (no spaces) plus the file extension (i.e., my-movie.mov; DSCN0164.jpg).
Now plug the flash drive into the iPad using the camera connection kit. Open the Photos app, the movie/photo files should appear & you can import. (You can not export using the camera connection kit.)
Secrets of the iPad Camera Connection Kit
http://howto.cnet.com/8301-11310_39-57401068-285/secrets-of-the-ipad-camera-conn ection-kit/
Cheers, Tom -
So recenlty I went to my Itunes library and realized a number of my playlists have been deleted but not all of them. I never deleted them myself just one day they weren't there? How do I recover these?
Do you have a backup you could restore them from?
-
Can sync some of my music but not all of it
Ever since I updated to iOS 7, whenever I try to sync my iPhone 5s with my MacBook, some of the songs will go onto my phone, but not all of them. In iTunes under the "On this iPhone" tab, it shows all my music, but the majority of the songs are greyed out with a circle next to them. I have no problem syncing my iPods and iPad, all my music shows up and plays on them. I restored my phone and my phone and iTunes are both updated, but that didn't help. Any ideas about what's causing this and how to fix it?
Un-sync all your music to remove it from the device, then restart (hold down the home button along with the sleep/wake button until you see the apple, then let go). Now re-sync your music.
-
Turned on sharing in iPhoto on my iMac. My MacBook sees all the photos but not all events or albums appear. I have many albums in several folders. Any suggestions?
Hvaing the same problem on my iPad since iTunes and ios5 upgrade - hoping for some updates from Apple to resolve problem - research has shown we are not alone!
-
HT3529 I can text some of my contacts, but not all...why?
I can text some of my contacts, but not all...why?
excellent question. maybe you could give us some more information such as
what happens when you try?
is there anything in common with all the people you can't text (like they all own iphones or they all don't)?
Maybe you are looking for
-
Network Manager keeps asking for WPA passphrase
Hi, I finally managed to install arch on my netbook, everything seems to be in working order apart from my wireless connection.. I've installed and configured the broadcom drivers for my card from the AUR and both the access points I usually connect
-
How to calculate revenue vs taget in obiee11g (running every day)
hallo masters, i have problem, i have target in 1 year (january until dec) e.g 1000 and then there is revenue every day that calculate until reach 1 year how can i calculate revenue vs target current day (i only have 1 year target, not target daily o
-
I have LR5 installed on my MacBook Pro (16GB Retina, 2.6 i7, 1TB SST), where I store all the pictures as well. Back in my office I connect the MBP to my iMac by thethering the MBP as a harddisk. I then start the LR catalogue through the iMac using th
-
Osdm error 'could not create the Java virtual machine.'
Running on Windows XP. SQL Developer reports Java(TM) Platform=1.5.0_06 I downloaded and unzipped the osdm early adopter release,but when I double click on the osdm.exe, I get a dialog box titled"Java Virtual Machine Launcher" with the error: could n
-
Hi again, Purchased MBA'2012 last month, its amazing and faster than my old MBP.... Wanted to know how to get access to iLife'11 on App store!! talk to support or there is direct link to register...yadayada. Help appreciated. Cheers