Why logical column in terms of other logical columns and not physical sourc

Hello
Can someone shed some light that in what scenario ..defining a logical column in terms of other logical column is beneficial compared to defining logical column in terms of physical sources?
I found something on google that said defining in terms of logical columns is like one time thing. I dont understand, even if you define in terms of physical source that' too one time.
In both the case we build an expression specifying which logical or physical columns.
Thank you

well logical columns from physical source, if in logical fact table you can set aggr rules. Logical columns based on other logical columns you can not. Logical columns based on other logical columns will inherit the aggr rules. So for instance, if you create col1 and col2. Both based off physical and both having sum aggr rule. If you create logical column col3 based off these two as such "col1"/"col2" it will produce the following sum(col1)/cum(col2). Now if you really wanted sum(col1/col2) then you should have made col3 based off physical as col1/col2 with aggr rule of sum.
Also of some note, all logical columns based off physical will be performed in the inner most query. So for my example above to get col3 where it is logical col1/logical col2 or sum(col1)/sum(col2) the physical query will be:
select D1.c1/D1.c2
from (
select sum(col1) as c1,
sum(col2) as c2
from tableA
) D1
So my short summary of this, is what or how do you want your sql to be created. Based on this can you lead you to your answer of whether to use logical col based on physical or other logical columns. And unltimately, check the sql generated from your work to ensure the sql queries generated are what you want and expect.
I hope this helps!

Similar Messages

  • Why does my php export feature work in IE and not firefox?

    Why does my php export feature work in IE and not Firefox? I've written a web application which contains a SigmaGrid. The grid controls reload, add update delete, print and export to csv all work in IE8. The export feature does not work in Firefox.

    I'm not sure what's going on for you. I've had 4 other developers - two on Comcast and two on Fios review my work and they get the control and export action in the IE8 version but not the FF10 version.
    Thanks for looking into this for me, though. I appreciate the effort. '' The operation was a success doctor, but the patient died.''

  • Order types, why do we need to create our order types and not use the stand

    HI
    Order types, why do we need to create our order types and not use the standard ones during implementation.

    Hi Raj,
    Well there is no hard and fast rule that you have to copy nad create a new order type. Its just to meet our own requirements that we copy the standard and make the changes if required to meet our business needs.
    And by this way we keep unchanged the standard order type for further use.
    If you are sure that the standard order type satisfies your need you can directly use that only.
    I hope this clarifies the issue.
    Do reward if find useful
    Regards,
    Abhi

  • Why does the English keep defaulting back to US and not British

    Why does the English keep defaulting back to US and not British.
    This is clear enough it does what it says in English British English

    Where do you get this problem?
    Is this with the spell checking dictionary or with the language setting?
    *Tools > Options > Content > Languages
    If you do not keep changes after a restart or otherwise have problems with preferences, see:
    *http://kb.mozillazine.org/Preferences_not_saved

  • HT4597 Why can I only see new mail in icloud and not in my normal in box

    Why can I only see new mail in icloud and not in my usual mail in box

    sonnay, are you also in South Africa like the original poster whose message you tacked onto?
    A lot of countries only have app store, no music or video stores. Because of copyright laws that are different between every nation. Stupid, that the laws are different, but that's the way it is.

  • I bought and downloaded a movie to my macair and it showed in my library yesterday. Today however i can not find it. Any idea why that would be? I did buy it and not rent FYI

    I bought and downloaded a movie to my macair and it showed in my library yesterday. Today however i can not find it. Any idea why that would be? I did buy it and not rent FYI

    OK, I think I understand what's happening.
    Movies are now stored in iCloud: see http://www.apple.com/itunes/inside-itunes/2012/03/movies-now-available-on-icloud .html
    So they may take a while to download to your Mac.  Movies are big, after all.
    I believe you can guarantee the movie stays on your Mac by going to Preferences (in the iTunes menu at the top), and going to the "Advanced" tab, and checking "Copy files to iTunes media folder when adding to library".
    Hope that helps!

  • Hello, sent me the email canceling my account creative cloud, and I did not cancel the account, I do not understand the reason for the cancellation was because term option than 1 year and not yet completed.

    Hello, sent me the email canceling my account creative cloud, and I did not cancel the account, I do not understand the reason for the cancellation was because term option than 1 year and not yet completed.

    There is payment related issue, I have send you a personal message, please respond as requested.
    I shall raise a request to the digital river store from where it was purchased.
    I am from the Customer care Team.
    Regards
    Rajshree

  • Why are my emails getting caught in my outbox and not sending?

    Why are my emails getting caught in my outbox and not sending?

    This started happening to me immediately after updating to 10.9.3. None of the suggestions that I could find through Google (orotherwise) helped at all. Mail.app simply does not try to empty the outbox. I would call AppleCare, but they'll just tell me that the software is fine and that it's unreasonable for me to expect to be able to send email.
    Apple support is a dim shadow of it's former self, but it correctly reflects teh state of Apple development. I picked a horrible time to switch to Mac.

  • Why do my text messages go to my iPad and not my iPhone please

    Why do my text messages go to the iPad and not iPhone when they are both switched on?

    Hello Margey,
    Thanks for using Apple Support Communities.
    Without doing any troubleshooting it's difficult to say what could be causing the issue of your iPhone not receiving iMessages.  Please follow the troubleshooting in the article below:
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/ts2755
    Take care,
    Alex H.

  • HT4059 Why ibooks on iphone5 share button only allows print and not, copy - mail or dropbox?

    Why ibooks on iphone5 share button only allows print and not, copy - mail or dropbox?

    Why ibooks on iphone5 share button only allows print and not, copy - mail or dropbox?

  • HT204053 Why does my apple id work on my phone and not my ipad?

    Why does my apple id work on my phone and not my ipad?

    Try resetting the iPad and try again >  iPhone, iPad, iPod touch: Turning off and on (restarting) and resetting

  • Why does the tab button in Safari close safari and not open a new tab?

    Why does the tab button in Safari close Safari and not open a new tab?

    Try a reset: Simultaneously hold down the Home and On buttons until the device shuts down. Ignore the off slider if it appears. Once shut down is complete, if it doesn't restart on it own, turn the device back on using the On button. In some cases it also helps to double click the Home button and close all apps BEFORE doing the reset.

  • WHY FREE ITUNES PRODUCTS ARE AVAILABLE ONLY FOR USA AND NOT FOR OTHER USERS OUTSIDE USA

    I am so impressed wit the welcome page saying "Join the conversation. Share tips and solutions with fellow Apple product users from all around the world."
    Apple mentioned for their products users around the world but many of their free itunes products are available only for USA and not for the users from the other side of the globe?
    Is this Apple a fair and customer oriented company or full of bias and Only money oriented company.
    If apple could not make thier other FREE stuffs available outside US territory then better for thsi company to just sell their products in USA. its just so disgusting...  If we need a certain apps (FREE APPS) available only for US based users.
    If you think US users and other country users are paying the same prices for their iPad 3G/4G WIFI 64GB and iPhone 3G/4G 64 GB like hat I did having the 2 gadgets altogether but my investment ends to disgusting as the apple company cound not treat people equal then.....  I want to return all this **** stuffs

    iTunes for Different Countries
    iTunes Store: Which types of items can I buy in my country?

  • Why is Merge into single pdf using InDesign CS3 and not CS4 ?

    I'm new to this so the question may be trivial, but it beats me:
    I've created some InDesign files in CS4 and want to combine them into one PDF. So I opened Acrobat 9 Pro and
    navigated to "Merge files into single pdf". I chose the CS4 InDesign files to Add and clicked the Combine Files button.
    BUT, this starts up InDesign CS3 and not InDesign CS4 and returns a pop-up saying "unidentified error".
    Why is starting CS3 InDesign and not CS4, and what is the "unidentified" error ! ?
    As background I intially installed CS3 and then updated to CS4, leaving the CS3 applications intact. When I initially
    bought CS3, just before CS4 was released I may have created pdfs from InDesign as an experiment, but it is possible I have not done this
    since upgrading to CS4.
    Thanks for any help

    Thanks Michael, I was not aware of quality issues. Actually this is not really significant for my usage this time. What I'm doing is just using ID to capture notes/images/links etc in several free format ID documents. I then planned to merge them quickly into one pdf using Acrobat. I can easily shuffle the file order around to create a handy portable pdf reference document with the Merge feature.
    Doing something similar from ID seemed to me to require me to create pdfs for each ID doc and them to merge them in Acrobat. I did start to write a simple script to do this in ID, but I then realised that I wanted the ordering to vary and the ID files would likely to change. Then I found the merge and bingo, that solved it..... Well it solved it on another CS4 installation that had never seen CS3, but not on my machine which had been upgraded from CS3.
    I tried looking in the registry for obvious entries that might point Acrobat to use ID CS3 rather than CS4, but couldn't spot anything. I wonder if there is something buried in there ?
    Thanks again for helping
    Regards.

  • TS1368 Why can I only download from the apps store and not itunes

    Why can I only download from apps store and not iTunes.

    Try logging out of your account on the iPad by tapping on your id in Settings > Store and then log back in and see if it then works.

Maybe you are looking for