What is a cartesian product why we need it and where we need it

Hi,
One of my interview they asked this question
Can any one please tell detail about it.
Thanks
Kalpana

>
what is a cartesian product
>
A cartesian join is when you do not specify any join condition between tables.
So for two tables A and B the result is that every row of table B is appended to every row of table A.
If there are 10 rows in Table A and 20 rows in Table b there will be 200 rows in the result set and each row will contain every column from table A and every column from table b unless you specify specific columns.
See Cartesian Products in the SQL Language doc
http://docs.oracle.com/cd/B28359_01/server.111/b28286/queries006.htm
>
Cartesian Products
If two tables in a join query have no join condition, then Oracle Database returns their Cartesian product. Oracle combines each row of one table with each row of the other. A Cartesian product always generates many rows and is rarely useful. For example, the Cartesian product of two tables, each with 100 rows, has 10,000 rows. Always include a join condition unless you specifically need a Cartesian product. If a query joins three or more tables and you do not specify a join condition for a specific pair, then the optimizer may choose a join order that avoids producing an intermediate Cartesian product.
>
As for when? In earlier versions of Oracle I would use a cartesian join when creating report ready data tables and there needed to be data for every report period. One example is writing a Crystal Report (now business objects) to report sales for 2011 and you want the report to have a section for each month even if there was no data for that month.
Then we would use a cartesian join on a date table that had 12 records (one for each month) with totals of zero. This would make sure that there was at lease one summary record for each month so that every month would show up on the report even if we only had data for March.

Similar Messages

  • What is variants...why we need to create these in bw for processchains run

    what is variants...why we need to create these in bw for processchains run

    Process Variant lets u select on what all Objects the process type need to process on.
    http://help.sap.com/saphelp_nw04/helpdata/en/6e/192756029db54192427cf6853c77a7/content.htm
    Ex : Create Index Variant will have the Cube name for which( Load ) the Indexes are created.

  • What version of UPK win 32  runs on XP , and where do i find a copy ?

    What version of UPK win 32  runs on XP , and where do i find a copy ?
    Thanks

    The last version of UPK to support being run on Windows XP, is 11.1 service pack 2.  Technical specifications for this version can be seen here: 
    http://www.oracle.com/us/products/applications/tutor-upk/upk-it-techspecs-11-102-1945897.pdf
    This version of UPK is no longer available from the http://edelivery.oracle.com site, but can be downloaded with the proper patch number.  To obtain this, please log a support case so we can provide this to you.
    Thanks

  • HT1391 All the music in my itunes library has vanished apart from the purchased items? why has this happened and where has it gone? It is no longer on my iphone or on my computer??

    All my music in my itunes library has vanished apart from the purchased items! It is not in the music > itunes > itunes media folder, I've searched the entire system for mp3 and nothing.  Why has this happened and where has it all gone?

    http://support.apple.com/kb/HT1329

  • Can you tell me what is a pass code for re setting program and where can I find it?

    Can you tell me what is a pass code for re setting program and where can I find it?

    For resetting what program? What are you trying to do? When you have a problem, please provide enough info to answer.
     Cheers, Tom

  • Was gonna by myself 160gb ipod for christmas...not gonna now...backing up music today... what mp3 players out there are good besides apple and where should i store my music now?

    was gonna by myself 160gb ipod for christmas...not gonna now...backing up music today... what mp3 players out there are good besides apple and where should i store my music now?

    Content acquired with an Apple ID is permanently tied to that ID.
    There is no reason to create a new Apple ID, frankly that will just create more issues.
    It is possible to load content from multiple Apple ID's onto a single device.  If the content is in the computer that the device syncs with, simply select the content and sync it.

  • What is the iPhone 4S packaging made out of and where does apple get its materials for it. Also where is the packaging manufactured?

    I need to know what the iPhone 4S packaging is made of and where the materials are brought from to make that packaging. And I would also like to know where this is all manufactured. And please dont just send me links...thnx

    You don't want links, but I'm giving you links. Do your own research.
    http://images.apple.com/environment/reports/docs/iPhone_4_Product_Environmental_ Report.pdf
    http://en.wikipedia.org/wiki/Foxconn

  • What is the best product for my needs ?

    I am getting confused with what product i should use ?
    What we have is web big scale application (lots of concurrent users), while it's web tier is written in ASP.
    I need the ability to preview reports, does RDC is the right answer for me and if it is Crystal Reports XI Developer Edition is the best version?

    I would recommend moving away from the RDC period. This is an old technology and has been retired in the currently shipping version of CR (CR 2008). Moving forward, consider either the .NET or Java SDKs. As to what will be best for your requirements regarding loads, users, etc., see this:
    Choose the right SDK (ppt)
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40bccdfd-88a6-2b10-1da1-c47a54b625a7
    Choosing the Right Business Objects SDK for Your Needs (article)
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/7025839b-00d4-2b10-33b4-cf0aa9e08412
    Optimizing Reports for the Web (article)
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/701c069c-271f-2b10-c780-dacbd90b2dd8
    Crystal Reports 2008 Component Engine Scalability (article)
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/7025839b-00d4-2b10-33b4-cf0aa9e08412
    Ludek

  • My Mac is asking me for keychain password. Don't know what the password is or why I need to enter it.

    Keep getting asked to supply keychain password. I don't know the password. If I click on cancel the arrow becomes a color wheel and spins around. Unable to figure out how to correct this so I can use the computer.

    OS X version?
    Asking for "Local items keychain"?
    Mail asking for keychain password?

  • What is the Ideal Production Setup For One Admin and 4 Managed Servers

    Dear Experts
    I will be starting with production setup including one Admin server and 4 managed servers in one single domain.
    I am thinking of creating a single node environment(no clusters) as the machine has following configuration
    OS : Windows Server 2008 R2 Datacenter
    RAM : 48 GB
    System Type : 64 bit
    Processor : Intel(Xenon) 4 processors [email protected]
    Can you please let me know if this configuration would suffice for the 4 managed servers if i assign Xmx and Xms as 4096 and Heap Space as 1024 to all the Managed Servers.
    It is very urgent and i need to convey to the Infrastructure team if harware procurement is required.
    We are looking at somewhere around 300 concurrent users(maximum load) and 100(minimum load) at a given point of time.
    Please reply ASAP.
    Thanks in advance
    Edited by: Abhinav Mittal on Apr 23, 2013 7:58 PM
    Edited by: Abhinav Mittal on Apr 23, 2013 8:03 PM

    Heap size must be calculated according to the applications that are been deployed on each JVM.
    With no deployments, you dont need more than 256k for managed servers heap size and 512k for adminserver. As biggest its your heap size, longer will take your garbage collection. And if you can prevent it, better do it.
    Kinds,
    Gabriel Abelha

  • What is java proxy, why its is used and where can i get more info abt this?

    Hi all!
    My current scenario is File->XI->j2ee appl.
    <b>Can XI sends file to my J2EE application using java server proxy.</b> If so how to develop that?
    what are the requisites that my SAP system should have?
    I have jdk1.5,Tomact5.0,eclipse3.1.2, NWDS2.0.9
    Where can i get full step by step procedure to develop that. Please help me
    Thanks

    Hi
    Go through these link:
    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/97/7d5e3c754e476ee10000000a11405a/frameset.htm">Java Proxy</a>
    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/5b/12b7e6a466456aa71ef852af033b34/frameset.htm">Configuring the Channel for Java Proxy Receivers</a>
    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/c5/7d5e3c754e476ee10000000a11405a/frameset.htm">Java Proxy Objects</a>
    Hope this will help.
    Rgards
    DhanyaR Nair

  • What with the revolutionary icloud why is this app and i movie not available to ipad 1 users as a editting app

    If i can photo stream photos from iphone 4s to ipad1 i think it would make sense to be able to edit the photos with ipad1..

    troubleshooting messae http://support.apple.com/kb/ts2755

  • What a dumb customer service!!!! and where the heck is my payment?!!!!!!!!!!!!!!!!!!!!!!

    I am so furious right now to the point my whole body is shaking and I feel dizzy!
    I've been mailing out the check for $55 every month on 1st or 2nd of each month for past 2, 3 years now. 
    I don't get statements in mail, so I typed one page with the accountholder's name, address, account number and payment address. This check for $55 is issued by my work, so what I do every month is that as soon as I receive the check, I print out this little page with all the information, I staple the check to the page and mail out to the payment address listed under Contact Us on Verizon wireless website. 
    My due date is 21st of each month. As I mentioned above, I mail out the check either on 1st or 2nd of each month, which means the check should be arrived, processed, cleared from the bank, and credited to my account before my due date. 
    I don't have the entire record, but I can see the payment history for past 12 month from my verizon wireless online and this check for $55, although I've been mailng out on a very regular basis, it has been posted to my account very irregularly. 
    Sometimes, it gets credited to my account before the 10th. Sometimes, it gets credited sometime before my due date. Sometimes, it gets credited way after my  due date. Sometimes, it gets cleared from the bank, but doesn't even get credited to my account. Every month, I have to closely monitor whether this month's check has been cleared and credited for this account. 
    If this happens to many accountholders, I would not be this frustrated. 
    I have a coworker who gets the same check from the work and mail out on the same day to VERIZON WIRELESS. Okay? Mark this. Same amount of check issued by the same bank goes to the same payment address by mail (same postal service). Difference? Her due date is 11th and mine is 21st. Another difference? Her payment gets credited in few days and well before her due date. Mine takes forever and ever and sometimes lands on a wrong account.
    I called the customer service today to see where my check is and why it has not been cleared yet. The customer service, Jose, was so rude and raising his voice saying that it might have been the post office at fault. And then, he was asking if I wrote a wrong address or anything. Hello~ I TYPED the freaking payment address and my account number and saved in my computer. You've been getting my check with no problem for the past 2, 3 years now, so I'M SO SURE THAT IT'S NOT THE POST OFFICE WHO'S AT FAULT!!!! On top of it, I'm not calling to figure out whom to blame. 
    Then, I talked to the supervisor, Eric. Hey, if you are the supervisor, you should be able to give me more than the same lame lines that JOSE was giving me.  Don't say that I've been mailing my check to the lockbox and you don't have the contact number. I've been sending my check to the freaking lousy lockbox and so have my coworker. She doesn't have the same problem that I have. Even if the lockbox doesn't have the contact number and a live person in, there is the department in which they process the payment, right? You should contact them to figure something out! You should provide a CUSTOMER SERVICE. What part of CUSTOMER SERVICE don't you get as a SUPERVISOR? I am YOUR CUSTOMER! and I, the CUSTOMER, hereby request a  SERVICE that I am entitled to! 
    What did you just say? SUPPRESSING the late charges? Hey, Eric, Look!. I  mailed out the check on 1st of August! I'm sure it doesn't take more than three days to be delivered from Los Angeles to Dallas. When I mailed out the check even before you generated my bill, how dare you to even mention the LATE CHARGE? It is NOT my ****** problem that you have a lousy system to process the check. You better fix the **bleep** problem. 
    You'd better keep your word and call me back with answers to all the questions (about irregular postings to my account, what's been causing the delay, etc) by TUESDAY. 
    What? Suppressing the late charges is all you can do for me? I just wasted my 40 minutes holding the call, and not getting all the answers I wanted, and dealing with non-sense ridiculous customer service and that's all you can do? You should waive my payment. You should give me like 1000 min credit. 
    I've been using the Verizon Wireless for almost 5 years and I'm seriously disappointed at the level of customer service you provided and the way you are handling this matter and not providing a good reason why you are messing up with my payment. 

    I can understand that the situation is infuriating, but the anger is misplaced. To start, it is very bad practice to not have a direct way to view whether the check you are sending had been cashed. While it gives the appearance of being convenient, you are setting yourself up for a nightmare when you do not, first, deposit the funds and issue your own method of payment. Secondly, the fact that it was not applied to the account does not necessarily mean that Verizon Wireless is at fault. You cannot determine this absolutely until you confirm that the check had been cashed by VZW, which, again, is going to be difficult to impossible because you are sending a check from a third party. The likelihood that it was lost in the mail should not seem shockingly preposterous. Matter of fact, people use this excuse because it is a very plausible scenario. It is essential to know whether the check was cashed by VZW, if it was, then they can go through the steps to find it; if, however, it was not, then it is something you will want to get reissued.
    My advice is to follow the approach listed above, but, more so, eliminate the overly emotional reactions so that the matter can be addressed in a logical way.

  • What's the Latest Actiontec MI-424-WR Firmware and where can I find it

    I'm currently running Firmware Verison: 4.0.16.1.56.0.10.11.3 and want to know if there's a firmware upgrade out there? 

    binaryops wrote:
    I'm currently running Firmware Verison: 4.0.16.1.56.0.10.11.3 and want to know if there's a firmware upgrade out there? 
    My level is 4.0.16.1.56.0.10.11.6, which I think is supposed to be the latest. I know I got it within the last 2 or 3 months. As to where to get it, I can't help, it was just installed automatically; I don't understand why yours has not automatically upgraded, have you done something to prevent automatic update?
    Since you just registered here today, are you a new FiOS user? If so, your router will probably update soon. Or you could go into the router dialog and try to force an upgrade.
    I have a fairly simple installation for my FiOS TV, internet, and phone service, but I did not see any improvement (or new problems) when I got the new level, pretty much the same. 
    Justin
    Verizon FiOS TV, Internet, and phone
    IMG 1.6.2, Build 08.58
    Keller, TX 76248

  • What are the authorities listed in the certificate manager and where did they come from?

    I am being blocked from some websites and cannnot figure out how. I am not a student nor am I trying to access sites from work. This is occurring at my home. While trying to fix things I stumbled upon the Authorities list in the Certificate Manager. What is this list for? And also, where did the items in the list come from?

    That are the build-in root certificates and intermediate certificates from servers that you have visited.
    See http://en.wikipedia.org/wiki/Root_certificate

Maybe you are looking for

  • Error message into a Variable.

    Dear users, I have a rather usual (unusual from the weekend beers for me though!!) query which I can't figure out a proper way to implement. My requirement is like this: I have a message class in which I want to define a text 'Employee number & not f

  • Unable to Install Creative Cloud App

    I just tried creative cloud and tried installing creative cloud application. The installation is consistently failing. I get a popup alert saying We've encountered the following issues: Sorry, there seems to be a problem with the installation process

  • Printing to a Printer connected to a Windows PC no longer works

    I have been printing to an HP LaserJet 6L Printer connected to a Windows XP PC for quite some time now. But now when I try to print I get this error: Connection Failed with error NTSTATUSUNSUCCESSFUL My Mac is running Tiger 10.4.11 and is up-to-date

  • Failure to Boot

    I have just tried to start up my Pavilion dv9535nr, and it brought up the boot screen that has the option to use a different boot method. It then paused here for about 2 min, then then shut down. A the time, I had an external harddrive and an externa

  • Found secret hidden Firefox browsed screenshots

    I primarily use Firefox as my browser on my newer iMac with mountain lion. I had accidentally deleted some family photos from my desktop and used a recovery tool program to scrub my hard drive for recently deleted images. The program worked very good