2 Measures referencing 1 Dim but on different grains withe second measure having a 2 key collumns

Hi, I need help please - I am stuck
I know how to add 2 measures on different grain but Meas1 joins on DimItem on lowest level but the Meas2
joins the DimItem on higher level combination of 2 collumns (key)
DimItem (level: itemcode -> class -> pack)
Meas1 (grain Itemcode) reference DimItem (itemcode)
Meas2 (grain class + pack) reference DimItem ????
I thought of creating a compositekey(class+pack) on both DimItem & Meas2 with Dim Compositekey type = regular (tried reference)
it just does not work, I want to when selecting class/pack both Measures return results
Please any help, im stuck and need to move forward

Hi,
Thanks for posting the CREATE TABLE and INSERT statements.
Don't forget to post the results you want given that sample data.
There's no problem outer-joining a table to 2 other tables when you use ANSI join syntax, like this:
SELECT    b.col6
,         a.col5
FROM             tablea  a
JOIN             tableb  b  ON   b.col1  = a.col1
                            AND  b.col2  = a.col2
                            AND  b.col3  = a.col3
LEFT OUTER JOIN  tablec  c  ON   c.col4  = a.col4
                            AND  c.col6  = b.col6
ORDER BY  b.col6
,         a.col5
Of course, there's no reason to include tablec at all if you're not going to use any of the data in it.
I recommend ANSI notation for all joins, especially outer joins.

Similar Messages

  • Can I run 2 different domains with same name but on 2 different machines?

    I am trying to setup 2 domains with same name (sharedcds1) on 2 different machines (Machine1 and Machine2).
              When I start the weblogic managed server 1 (sharedcds1managedserver1) on Machine2, it throws an error saying it has some conflicts with the managed server 1 running on Machine1. How did the managed server of one machine know about the other server. Can I run 2 different domains with same name but on 2 different machines?
              Here is the error in the log -
              <Jun 14, 2005 10:53:29 AM EDT> <Error> <Cluster> <BEA-000123> <Conflict start: You tried to bind an
              object under the name weblogic.transaction.coordinators.sharedcds1managedserver1 in the JNDI tree.
              The object from 4596206652609838848S:130.170.61.153:[9505,9505,-1,-1,9505,-1,-1,0,0]:sharedcds1:s
              haredcds1managedserver1 is non-clusterable, and you have tried to bind more than once from two or m
              ore servers. Such objects can only be deployed from one server.>
              <Jun 14, 2005 10:53:29 AM EDT> <Error> <Cluster> <BEA-000123> <Conflict start: You tried to bind an
              object under the name weblogic.transaction.coordinators.sharedcds1managedserver1 in the JNDI tree.
              The object from 8842351474821025197S:130.170.61.154:[9505,9505,-1,-1,9505,-1,-1,0,0]:sharedcds1:s
              haredcds1managedserver1 is non-clusterable, and you have tried to bind more than once from two or m
              ore servers. Such objects can only be deployed from one server.>
              Thanks
              Satish

    Yes you can. Make sure that domains configured to use different multicast address. WLS uses multicast for communications between nodes in domain.
              although your configuration will work, you could have troubles if you going to execute inter-domain calls between domains/servers with the same names.

  • HT1535 I own an iPhone4, an iPod 3rd generation and an iPad 2. I use the same iTunes library but unfortunately synced iPad with a different computer before syncing to my own. Do I risk losing the films/apps I've downloaded onto my iPad if I sync with my i

    I don't want to sync what is on my iPod to my iPad. (I have a 32gb iPod but only 16gb on iPad. The iPod I use mostly for music.) I can't seem to add the films I have downloaded onto iPad to iTunes. If I could do that, I could erase them from iPad to create more storage.
    This is intensely confusing, sorry.

    Question.....
    "I own an iPhone4, an iPod 3rd generation and an iPad 2. I use the same iTunes library but unfortunately synced iPad with a different computer before syncing to my own. Do I risk losing the films/apps I've downloaded onto my iPad if I sync with my iPod?"
    Answer.....
    Yes you will lose the films that you downloaded to the iPad when you sync with your own iTunes unless you transfer the purchases into your own iTunes library. Were these movies that you purchased? If so, you might be able to download them again for free. Do you have multiple computers that you sync from or is this someone else's purchased content?
    You can select whatever you want to sync to all of your devices in iTunes, you do not have to sync the same content to all device.
    iTunes 11 for Windows: Set up syncing for iPod, iPhone, or iPad
    iOS: Syncing with iTunes - Support - Apple

  • How can I register the iTunes without a credit card? No "None" can be selected but only different kinds of credit cards. Thanks!

    How can I register the iTunes without a credit card? No "None" can be selected but only different kinds of credit cards. Thanks!

    Get an iTunes gift card & redeem that in iTunes using your existing Apple ID.
    Then the option for none, regarding a credit card should appear.

  • How can I set up two iPhones with the same contact, photos, music etc... but a different sim card and phone number. They will both be my phones, but one will be for use in other countries.

    How can I set up two iPhones with the same contact, photos, music etc... but a different sim card and phone number. They will both be my phones, but one will be for use in other countries.

    Phone A = phone with information you want duplicated
    Phone B = phone that you want to copy from A
    Backup Phone A.
    Wipe Phone B using these instructions. What to do before selling or giving away your iPhone, iPad, or iPod touch - Apple Support
    Phone B should be on the 'Hello' screen. Do not swipe it. Launch iTunes. Plug in Phone B.
    When iTunes asks if you want to set up as new phone or restore from backup, choose restore from backup of Phone A.
    After this setup, any changes to one phone (i.e. adding a contact, downloading an app) will have to be manually duplicated on the second phone, if that is your desire). Making changes to one phone will not affect the other after setup.

  • HT4356 I have an air-print enabled printer: HP Premium e-all-in-one C310.  Can't print from iPad iOS6.  They're on the same network, but have different IP addresses.  On the iPad it's 192.16.1.126 and on my printer it's 192.168.1.133.  Can I match them? H

    I can't print from my iPad2 to my air-print enabled printer (HP Premium e-all-in-one C310).  They're on the same network, but have differed IP addresses!  The iPad IP is 192-168-1.126 and the printer is 192-168.1.133.  That's the only difference I can see.  Is there a way to fix this?

    fyi:
    you put periods between the numbers.
    Each device needs a unique number.
    for the 192.168.1 the right must number should vary.  192.168.1.x
    the numbers you have look ok.
    Power off all devices: wifi router, printer, ipad.. wait 10 minutes.  poweron router ... wait power on printer wait then power on ipad.
    cross fingers.
    Robert

  • Can you use home share where there are 2 itunes on the same computer but under different user profiles?

    Can you use 'Home Share' where there are 2 itunes on the same computer, but under different user profiles?

    check out method one from this support article -> How to use multiple iPods, iPads, or iPhones with one computer

  • HT5622 Can I have two apple id's on the same iPad. Example me and my spouse want to share the iPad but have different id's

    Can I have two apple id's on the same iPad. Example me and my spouse want to share the iPad but have different id's

    iOS does not support multiple users like a desktop OS does.
    You can use a web interface to your respective email accounts
    to keep things separate; but there is no provision for otherwise
    separating photos, media, etc.
    If you wish, you can contact Apple to let them know of your desire:
         www.apple.com/feedback

  • I have an iPhone 4 on IOS5. I signed up for itunes match. After everything uploaded to the cloud, my songs are messed up. I'll select a song and the title will show with the right art work but a different song will start playing.  Anyone have a solution?

    I have an iPhone 4 on IOS5. I signed up for itunes match. After everything uploaded to the cloud, my songs are messed up. I'll select a song and the title will show with the right art work but a different song will start playing.  Some songs won't play at all even though they do appear in the itunes store. The artwork almost always shows u blank until you turn it to landscape then it will appear. Anyone know what's going on?

    I have found that scrolling through the album list (past albums without art) triggers the progress wheel next to the wifi symbol. You can scroll quickly through the whole collection and then wait! Artwork will appear gradually...
    However, repeat visits to the Music App might initially show no artwork again, but it might spontaneously appear more quickly this time. The bad news is that the whole Music App is now sluggish as ****...

  • HT204407 My wife and I share the same email address but have different iphone numbers.  Is there anyway we can both be on "Find Friends."

    My wife and I share the same email address but have different iphone numbers.  Is there anyway we can both us "Find Friends" apps?  When I try to enter her contact name it won't allow me to do this.  Thanks.

    make seperate appleID's if you wish to be frinds or if you wish to facetime video chat and if you wish to not recieve the samme imessage msg's unless you turn it off
    you can still set both your iphones to use an email address even if both have different appleId's
    the appleID is a handle not a link to an email address

  • ICal and mobile me have same events but on different dates and times

    I am using iCal and have a mobileme account.
    When I publish the calendars their publish sites are fine.
    But when I go to my mobileme calendar, the events are there, but at different times and a day early.
    I have tried changing my (GMT time) but it stays as Pacific Time (US & Canada)
    The 'all day' events are correct, but the events throughout the day are incorrect.
    All the events on my iphone match the calendar on my home phone so I am really confused.
    Any idea what I can do to fix this?

    Thx Bernard,
    You are very helpful
    When you went through the steps, were any of the settings different to those that I suggested?
    ......Yes, Time zone was uncheck in iCal and MM
    I don't think you mentioned importing previously. Where are the events originally created?
    .....I have a large spreadsheet of college athletic games that we keep in Excel and I import to iCal, they are ALWAYS one hour off after imported to iCal. Long before iPhone and MM too!
    I don't see that MobileMe is especially different to dotmac - except that you now have explicit control over the time zone of the calendar (whereas it used to be set to the one from which you originally published).
    ...Honestly the TZ Support is a HUGE pain and causes Much more trouble for all than anything it is suppose to help with..., been that way ever since iCal came out...
    One hour time differences often crop-up on a phone and are usually to do with daylight savings issues, but you don't mention a phone in your set-up so I am assuming this is not the case.
    ...again this one hour problem, has been an issue for me long before the iPhone and MM...
    I have to say that I don't have issues with my calendars and I have these synced across different systems and devices, so for me it really is a non-issue. (I should also say that I travel frequently and don't have problems with events in multiple time zones either.)
    ...glad it works for you, but it appears this is an issue for many. I used Now Up-To-Date for 10+ years and NEVER had trouble with import/export/sync...
    One thing I neglected to ask you is whether you do need to have time zone support - i.e. do you travel with any of the macs to which you sync or do you get invitations that originate in different time zones?
    ...I have no need for TZ Support even if I were and astronaut
    It would also be enormously helpful if you would provide data on what version of OS X and iCal you are using.
    ....I am on 10.5.5 and iCal 3.0.5
    Thx Much

  • Ipod nano 5 resets but won't sync with itunes on two different pc's

    ipod nano 5 resets but won't sync with itunes on two different pc's

    What happens when you try? Does the iPod even appear in iTunes?  Have you tried a different cable or different USB ports on each PC?
    Need a little more information.
    B-rock

  • What can I do if not one but two different supervisors have promised to call me back but have not?

    We had 4 lines and shared 6Gb/1Gb promotional of data.  Bill was appoximately $290 after receiving an employee discount through my employer of
    22% on the plan (does not apply to the individual lines).
    To make a long story short my wife called early in September about adding our oldest daughter back to our plan.  She spoke with a representative by the name of Devin who told her that our bill would NOT go up but instead would go down automatically once we moved to a plan with 10Gb and that the bill would be approximately $225-235 per month for the 5 lines.
    September 15th before adding my daughter we called again to verify the charges and finding out what we had to do to add her back.  This representative also told me the bill would be $235 per month but couldn't explain why - she did see that it was in the notes.   I was also was told that it was best to add her the night after her employer plan stopped covering her phone.
    September 18th before adding her we called to find out what we had to do to add her back.   This rep repeated what the others had said about the upcoming monthly charges.
    The following Monday or Tuesday I called and talked with yet another representative trying to discover what was the reason for the bill dropping so significantly.  The lady I spoke with indicated that we were to get a $22 (NOT $25) discount per line.  I know its an odd figure thats why I remember it.
    Sep 26th - called and spoke with representative who told me that we woud NOT be getting any discounts.  I then spoke with a supervisor (Derrick) who explained that we should have already been getting $25 off for two of the lines and gave us credit for 1 month charges but nothing else.   I asked him to pull the recordings - he said give him a week to investigate and make it right.
    Oct 3rd - a week later - Derrick missed the callback.
    Oct 4th - called and was advised that they had no way to get in touch with Derrick other than sending a message (I have to admit the gentleman was extremely pleasant - one of the better reps I've encountered) - said as much to his supervisor.
    Oct 11th - talked with Priscilla and then her supervisor who said that one of the reps was her employee - would talk with her/pull the recording and call me back in an hour.  She never called back.
    We never asked for any discount - it was a Verizon employee that told my wife that the bill would go down to $230.  Not once but 4 different times.  Two supervisors promised they would pull the recordings and call us back but never did.
    I'm not stupid - If the recordings proved that we made this up or that Verizon had NOT told us that the bill would go down to $230 then they 
    would have called back and rubbed it in my face.   By them not calling back I know that they have discovered that we have stated the facts as
    accurately as we can remember and have not made this up.
    Is there anyone at Verizon that can resolve this situation to our satisfaction?  There's a lot of difference between the promised $110 discount and the $50 indicated by Derrick.

    Don't worry you will not hear back if it's anything like my last few interaction with this company good luck. Oh you may have one of these online CSR tell you they are here to help but that just a smoke screen.

  • TS1559 hi can anyone help my iphone 4s wifi is not working it is grayed out or dim but the is a wifi address on the about  menu.

    hi can anyone help my iphone 4s wifi is not working it is grayed out or dim but the is a wifi address on the about  menu.

    hello Masonti
    I  am not computer expert it happen to me. I think it is not working for a  touch on/ off so you have to push using your finger and  hold and open  to the right (like when you open a door). That worked for me I call it  mannual opening. I did not get any help so I figured out the hard  way.Let me know but I am for sure
    yeee haa

  • 3 Waveform Chart to a Single Excel but in Different Spreadsheet

    I wanted my waveform chart to export the data to excel which I can easily do by right clicking the chart and export to excel. But I have 3 waveform chart and I want to export it to a single excel file but in different spread sheet. How do I do that with the same result with the conventional "right click method and export"?

    For this you probably will need to add some code to your VI to do this instead of right clicking on the chart. You can use the VIs located in the Programming>Report Generation>Excel Specific pane which has tons of stuff for that.
    Attached is an example of a basic VI that populates three waveform charts with random data and creates an excel spreadsheet with each chart's data input into a different workbook. This is rough and you can add a lot more functionality if you want depending on your needs. Just take references to all your charts and put them into an array and feed into the for loop.
    (Also there are probably better/cleaner ways to do it but this is the best I've got )
    Attachments:
    WaveformExcelExample.vi ‏29 KB

Maybe you are looking for

  • EXCEPTION_ACCESS_VIOLATION in native zipping code on Class Load

    Afternoon gents: So I'm kind've excited by this since I'm an undergrad, and I'm hoping this is actually a bug, such that I've actually found a bug in the JVM! So, the scary message that showed up in standard error: # A fatal error has been detected b

  • Problem with contextual menus after 10.9.3 update

    Hello, since the update to 10.9.3 i am experiencing problems with contextual menus. The problem is more frequent when I use an external screen. First problem: I am losing the icons in the top bar of the finder. This happens mostly on external screens

  • Does the mini ipad has sim tray?

    Does the mini ipad has sim tray?

  • variable-class using Generic Collection

    Within my TLDs I would like to use the <variable-class> attribute as much as possible for the sake of JSP authors. I cannot figure out how to specify that a varAttribute will be a generic collection. IE, if I want to return a set of strings, I would

  • Query on adfc-config.xml

    Hi, I have multiple[ex:more than 50] java classes to be registered as managed beans in adfc-config.xml. Is there way to mention all these java classes as managedbeans in one xml [ex:department-config.xml] and refer the same in adfc-config.xml. Please