What is the use of Cartesian Product or Cross join?

Dear friends...
    I have done with inner join, self join and outer join. But I m getting confused with cross join. I know it used to produce Cartesian product of two table. But I wanted to know what is the use of Cartesian product in real life? In
which situation we can use Cartesian product or cross join? I wanted some real life examples on Cartesian product. Please help me.

Sometimes you get requirement stating that all combinations should be considered and in this scenario CROSS JOIN comes in play.
If you have Products and Stores table, by using CROSS JOIN you can get the combination of all stores and all products and then you can JOIN this result set to other tables.
Please refer:  The power of the Cross Join
Cheers,
Vaibhav Chaudhari
[MCTS],
[MCP]

Similar Messages

  • What is the use of production order without material?

    Hi gurus,
    can anyone plz tell what is the use of production order without material?
    n steps involve to perform this task?

    Dear amnpp,
    It's widely used for capturing the rework activities(components and activity cost),both for final rework and inprocess rework
    activities.
    Check these links,
    Rework order manually (not Trigger)
    rework order
    Rework Order Steps
    Re: Coustomization order type for Rework
    Regards
    Mangalraj.S

  • What is the use of transporting BEx query to production from development ?

    Hi !
    if create a query by copying an existing query and make some modification in production and sent it to client..and client is happy as it satisfies all his requirement .
    Then what is the use of creating Bex query in development and transport it in quality and then to production if we can create directly in production ?

    Hi,
    There is something called as SOX compliance..and three system landscape.
    First of all you are not suppose to make changes to standard qeuries.
    You can give it to the client a new copied query wirth required changes and it is very much accepted as well but how will it be tracked for future support.
    Suppose there is a change in the underlying cube...this will affect all the queries and the new copied query which no one knows about will be affected too.How will you test it if its workinf fine with the new flow.
    If you want to do the testing in production as well.... then you are not following SAP guidelines and may be you are violating the contract signed by you and your client.
    Thanks
    Ajeet

  • What is the use of maestro tool &unix in BW (production system)

    Hi SAPBW guru's,
    I have one query regarding .in
    what is the use of maestro tool &unix in BW (production system) - my ponit is i schedule the query in SQ02 in back ground after wards i want to schedule in UNIX &Maestro tool ..
    PLZZZZZZZZ,help me regarding this topic ..if any wrong on my query plzzzzz forgive me..
    regards,
    goodyear..

    Hi Good Year,
    As much as I would like to help you but I think you got an <i>Off Topic</i> here. <b>Unix & Maestro Tools</b>?
    I think the <b>BASIS</b> fanatics may have more idea on this.
    Try this link as well...
    <https://www.sdn.sap.com/sdn/search.sdn?contenttype=url&selected=0&content=/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fSDN!2fiViews!2fWCM!2fcom.sap.sdn..wcm.search.search_adv%3Fprttheme%3DCSIN&SearchPluginName=sdn_all&SelectedCustomProps=resourcetype&QueryString=MaestroTool&sourceid=Mozilla-search&query=MaestroTool>
    Regards,
    --Jkyle

  • What is the use of 'ALTER DATABASE CLOSE'?

    Hello Everybody,
    SQL*Plus: Release 10.1.0.2.0 - Production on Ma Aug 15 21:28:30 2005
    Copyright © 1982, 2004, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> conn / as sysdba
    Connected.
    SQL> startup force
    ORACLE instance started.
    Total System Global Area 171966464 bytes
    Fixed Size 787988 bytes
    Variable Size 145750508 bytes
    Database Buffers 25165824 bytes
    Redo Buffers 262144 bytes
    Database mounted.
    Database opened.
    SQL> select status from v$instance;
    STATUS
    OPEN
    SQL> alter database close;
    Database altered.
    SQL> select status from v$instance;
    STATUS
    MOUNTED
    SQL> alter database open;
    alter database open
    ERROR at line 1:
    ORA-16196: database has been previously opened and closed
    If i have to shutdown the instance and database then
    WHAT IS THE USE OF 'ALTER DATABASE CLOSE' ?
    I need explanation. Why should i shutdown?
    Dont give me this answer.
    ORA-16196: database has been previously opened and closed
    Cause: The instance has already opened and closed the database, which is allowed only once in its lifetime.
    Action: Shut down the instance.

    If you read the documentation you will see that there is no ALTER DATABASE CLOSE command.
    This is an undocumented Oracle command, which we are not supposed to use. Consequently we are not allowed to complain about the way that it works. Instead we're supposed to use SHUTDOWN IMMEDIATE.
    Cheers, APC

  • What is the use of SYSAUX Tablespace in Oracle 10G

    Dear Experts,
    Please Tell me What is the use of SYSAUX Tablespace in Oracle 10G Because
    during Web Load Testing It is going to increase countinuosly.Although i am not using this with any tables.
    How Can I find out the what is gong on in this.
    Can I Remove this tablesspace and other non using Schemas like FLOWS_020100,MDSYS,OUTLN,DIP and TSMSYS etc.

    What is SYSAUX?
    The SYSAUX tablespace provides storage of non-sys-related tables and indexes that traditionally were placed in the SYSTEM tablespace. For example, the tables and indexes that were previously owned by the system user can now be specified for a SYSAUX tablespace. Unfortunately, Oracle still places the SCOTT schema and the other demonstration schemas in the SYSTEM tablespace. Go figure.
    The SYSAUX tablespace is specified with the CREATE DATABASE command. This is demonstrated in the example database creation script in Figure 1.1.
    CREATE DATABASE test
    MAXINSTANCES 1
    MAXLOGHISTORY 1
    MAXLOGFILES 5
    MAXLOGMEMBERS 3
    MAXDATAFILES 100
    DATAFILE '/usr/oracle/OraHome1/oradata/aultdb1/test/system01.dbf' SIZE 300M REUSE AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED
    EXTENT MANAGEMENT LOCAL
    SYSAUX DATAFILE '/usr/oracle/OraHome1/oradata/aultdb1/test/sysaux01.dbf' SIZE 120M REUSE AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED
    DEFAULT TEMPORARY TABLESPACE TEMP TEMPFILE '/usr/oracle/OraHome1/oradata/aultdb1/test/temp01.dbf' SIZE 20M REUSE AUTOEXTEND ON NEXT 640K MAXSIZE UNLIMITED EXTENT MANAGEMENT LOCAL
    UNDO TABLESPACE "UNDOTBS1" DATAFILE '/usr/oracle/OraHome1/oradata/aultdb1/test/undotbs01.dbf' SIZE 200M REUSE AUTOEXTEND ON NEXT 5120K MAXSIZE UNLIMITED
    CHARACTER SET WE8ISO8859P1
    NATIONAL CHARACTER SET AL16UTF16
    LOGFILE GROUP 1 ('/usr/oracle/OraHome1/oradata/aultdb1/test/redo01.log') SIZE 10240K,
    GROUP 2 ('/usr/oracle/OraHome1/oradata/aultdb1/test/redo02.log') SIZE 10240K,
    GROUP 3 ('/usr/oracle/OraHome1/oradata/aultdb1/test/redo03.log') SIZE 10240K
    USER SYS IDENTIFIED BY "password" USER SYSTEM IDENTIFIED BY "password";
    Oracle10g sysaux
    With the new SYSAUX tablespace, Oracle comes closer to providing all the needed tablespaces for a truly OFA-compliant database right out of the box. With just one CREATE DATABASE command we can specify the SYSTEM tablespace, the TEMPORARY tablespace, the AUXSYS tablespace, the default UNDO tablespace, and the redo logs.
    Of course, with the Oracle Managed Files option you can create an entire database with a single command, but the database created is not suitable for production use and is not OFA-compliant.
    The SYSAUX tablespace is required in all new 10g databases. Only the SYSAUX tablespace datafile location is specified. Oracle specifies the remainder of the tablespace properties including:
    online
    permanent
    read write
    extent managment local
    segment space management auto
    If a datafile is specified for the SYSTEM tablespace, then one must be specified for the SYSAUX tablespace as well. If one is not specified, then the CREATE DATABASE command will fail. The only exception is for an Oracle Managed File system.
    During any update of a database to Oracle Database 10g, a SYSAUX tablespace must be created or the upgrade will fail. The SYSAUX tablespace has the same security profile as the SYSTEM tablespace. However, loss of the SYSAUX tablespace will not result in a database crash, only the functional loss of the schemas it contains.
    Can I drop SysAux?
    DROP DATAFILE
    Read this...

  • What is the use of ABC indicator in functional location segment.

    Hi Expert,
    I want to know about ABC indicator in functional location segement actually, what is the use of indicators in master data?
    Regards,
    Ram Rathode

    Hi,
    As per Application help, ABC indicator signifies:
    An indicator that is assigned by the procedure of ABC analysis.
    The following ABC indicators are possible:
    A - Important
    B - Less important
    C - Relatively unimportant
    According to these criteria, "A" materials are those materials that are of greatest importance for the production operations of a company.
    Examples of use for ABC indicators are vendor master records, material master records, and master records of technical objects.
    You can customize the values in ABC indicator as per your requirement
    Thanks

  • What is the use of DataGatherer service ?do i want to start..

    what is the use of DataGatherer service ?do i want to start.in 11.5.9
    and what is the use of metric server &metric client?do i want to start..

    Hi,
    what is the use of DataGatherer service ?do i want to start.in 11.5.9What DataGatherer service you are referring to? Please elaborate more.
    and what is the use of metric server &metric client?do i want to start..Please see these documents.
    Note: 177610.1 - Oracle Forms in Applications FAQ, *1. What are the components of the standalone Oracle Forms product?*
    Note: 797521.1 - Is It Necessary To Run Forms Metrics Client/Server If Not Load Balancing?
    Thanks,
    Hussein

  • What is the use of the SAML2Keystore

    What is the use of the SAML2Keystore and what is the key service passphrase used in Oracle WebCenter Analytics 10.3

    Passphrase should not be changed. If it had been, change it back to the default: saml2keystore
    SAML2Keystore is part of a mechanism used by ALUI Security. ALUI security is built into Analytics and a number of other products, and used for security role lookups and other functions.

  • What is the use of 'division' in sales n distribution

    hi.
    what is the use of 'division' in sales n distribution. can any one explain me with examples

    Hi,
    In SAP, why do we assign division to Sales organisation not to distribution channel?
      In SAP Business Process 
      Sales Area= Sales Org.Dist.ChannelDivision.
      Its Triangular intraction
                                      Sales organization
              Dist.Channel   <----
    >           Division
    Sales Org controls Distribution Channel and Division
    Distribution Channel: The channel that is choosen by the organization to make their product reach the end customer.(Network)
    Division: Ex: HLL----
    >  Detergents, Out of Home,Food Products,Health Care Sectors/Departments 
                  TATA Motars: Trucks/Bus,Cars,Heavy Vechiles Etc...
    Division is an Oragaizational Unit.
    The Division in the Material Master is not an Organizational Unit that can be used to maintain related fields.  It is a field which is used to uniquely assign a material to a Division.
    Regards,
    Mayukh
    Edited by: Mayukh Dhar on Jul 30, 2008 11:08 AM

  • What is the use of guid in CRM?

    Hi ,
    what is the use of guid in crm.
    there is nothing like this in r/3.if the data is to flow in from r/3 to crm or crm - r/3 is do we verify the guid.partner guid or product guid.
    please make me understand this.
    thank you,
    hun

    GUIDs are system generated unique keys which identifies CRM objects (campaigns, sales documents, business partners, products etc.). CRM & MSA works on GUIDs. Most of the table relationships are defined on GUIDs.
    Important CRM tables:
    COMM_PRODUCT : Products
    CRMC_T077D : customer account groups
    CRMD_ORDERADM_H (for header) CRMD_ORDERADM_I (Item data)
    CRMD_ORDERADM_H Business Transactions CRM
    CRMD_ACTIVITY_H Activity
    CRMD_OPPORT_H Opportunity
    BUTOO : Customer details
    BUT001 BP: General data II
    BUT100 BP: Roles
    BUT150 BP relationship: Attribute table (test
    different
    BUT_HIER_TREE Business Partner Group Hierarchy
    CDBC_T_PRODUCTID Mapping: Product Id
    CDBD_ORGMAN Business transaction - organizational unit -
    set
    COMC_PRODUCT General Product Settings
    COMC_R3_FIELDS Assignment of R/3 material master fields to
    CFOP
    COMM_CATEGORY Category
    COMM_CFGMAT Basic Data for Materials
    COMM_HIERARCHY Category Hierarchy
    COMP_TYPES Hierarchy Tool: Comparison Type Check
    Table
    CRMC_CPRICPROC Customer Pricing Procedures
    SMOKVBEZ15 Assignment employees to positions
    All transactions are uniquely identified by their guids internally
    Transaction numbers are not unique
    System calls a function module GUID_CREATE to create a unique GUID everytime you create a transaction.
    Whenever you are creating some transaction programatically you will have to first create a unique GUID for the transaction by calling GUID_CREATE.
    Look at What is GUID in CRM & its significance please? maybe it helps
    <b>Please, Reward Points.....</b>

  • What is the use of version in workflow

    what is the use of versioning in workflow. how can i use it in real time senarios.

    Hi,
    Its the same way as in reports and other areas. You can generate a current version and keep making changes to the latest version so that you can always revert back to the older one in case of problems.
    It is also used when you transport the workflow from one system to other. Assume you have already transported a workflow definition to the production system. Now this workflow also has been instantiated and some instances are running in production. Now if you make some modifications in this workflow and transport (even with the same version number) it will get transported to the production under a new available version number. The previous instances of the workflow (in production) will continue to run referring to the older version available and any new instances will continue with the latest transported workflow definition.
    Thanks,
    Prasath N

  • What is the use  implemention of work flow

    Hi guis,
      can u plz tell me what is the uses, u implement a workflow, and also please give the one scenrio on purchase order or invoice or anything, one scenrio explain me.

    Workflow is a tool for automating the business process so that the process itself flows smoothly, without bottlenecks and without dead ends. Critical parts of the process can be streamlined with deadline monitoring and contingency options. Participants are informed of milestones in the process. The process definition itself is powerful enough to allow business re-engineering with re-training and to eliminate the impact of workforce changes on the basic business process.
    SAP Business Workflow is the R/3 tool for handling the process automation within R/3 or between R/3 systems and other systems involved in the business process. It is flexible enough to handle ad hoc processes such as the circulation of an electronic document. It is robust enough to handle mission critical process in the production system such as the creation of a material master.
    The different R/3 applications supply standard workflows for the commonly occurring processes. Once these workflow templates are activated, they are ready for immediate use. A complete set of workflow tools, including the workflow editor and workflow generation wizard, are provided to enhance these standard workflows or create new workflows. These tools are complemented with transactions for monitoring, tracking and the statistical analysis of the processes.
    Because the business process often does not step at the R/3 boundary, various interfaces and third party tools are available for extending the process across systems.
    Workflow is the technique for automating business processes. It is particularly beneficial
    u2022 when different people are involved in different parts of the process
    u2022 when a process only occurs sporadically and the users need to be reminded of what they need to do
    u2022 when the duration of the process is critical and deadlines have to be met
    u2022 when the process definition is likely to change on the fly and retraining users is not possible.
    By automating the process, you free the users from having to know what to do when. Work items are sent to the participants notifying them of what they have to do, and a single click on the notification calls the correct transaction and navigates to the relevant screen.
    When the workflow runs it creates work items which are like e-mails, but
    u2022 they have the advantage that they contain the intelligence needed to execute the relevant task with the correct data when the operational user executes them,
    u2022 they provide their own functionality so that the operational user has access to everything that is useful to improve the flow of the process,
    u2022 they disappear on their own when they have been executed by someone else or made obsolete.
    These work items can be received in the R/3 business workplace, MS Outlook (or any other MAPI compatible client), Lotus Notes, or work item notifications can be distributed by e-mail.
    SAP Business Workflow:
    u2022 accelerates the workflow across applications, functional areas, organizational units, and time periods,
    u2022 supplements the integrated management of processes in the SAP System with individually tailored options for automating and actively controlling business and communication processes,
    u2022 combines integrated organizational management with flexible assignment of tasks and responsibilities to locations, positions, jobs, groups, or individuals,
    u2022 actively supports a quick implementation of workflow technologies through predefined workflow templates, Workflow Wizards and flexible adjustment options,
    u2022 integrates every employee in the value chain by providing a versatile integrated inbox ("universal inbox") at their work centers that can be configured individually,
    u2022 provides a Workflow Information System that is the foundation for process change management and continuous business engineering,
    u2022 was designed to be a change-management tool,
    u2022 simplifies continuous business engineering and process change management with user-friendly tools for defining and dynamically changing workflow tasks
    u2022 conforms to the workflow standards of the Workflow Management Coalition (WfMC)
    u2022 interfaces to other mail clients such as Lotus Notes and MS Outlook
    Check these links.
    http://www.sapgenie.com/workflow/index.htm
    Link workflow business objects to your collaboration tasks!!
    http://help.sap.com/saphelp_nw04/helpdata/en/92/bc26a6ec2b11d2b4b5006094b9ea0d/content.htm
    http://help.sap.com/saphelp_bw33/helpdata/en/92/bc26a6ec2b11d2b4b5006094b9ea0d/content.htm
    http://help.sap.com/saphelp_bw31/helpdata/en/8d/25f94b454311d189430000e829fbbd/content.htm
    http://www.sap-press.com/product.cfm?account=&product=H950
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
    http://www.workflowing.com/id18.htm
    http://www.e-workflow.org/
    http://www.sap-img.com/workflow/sap-workflow.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
    http://www.sap-img.com/workflow/sap-workflow.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
    Hope this resolves your query.
    raj

  • What is the use of CM relevance field in DMS ?

    Hi DMS gurus,
    What is the use CM relevance field in DMS ?
    Is there any specific scenario ?
    Regards,
    Sunny

    Hi Sunny,
    Usually CM (Configuration Management) is used when lifecycle phases come into picture as in lifecycle phases each phase has its own configuration which has to be maintained.
    During their life, products and projects go through various life-cycle phases such as engineering and design, sales, production, and maintenance. In each life-cycle phase, a product has different configurations. A configuration is made up of multiple different objects that describe the product in the relevant life-cycle phase. For example, these can be documents, materials, BOMs or other objects. The grouping of objects changes over the course of time and is different from life-cycle phase to life-cycle phase.
    Configuration Managment can be very much used when we make use of ECR/ECM (engineering change request/engineering change order) linked with DMS.
    Thank You,
    Manoj

  • What is the use of split valuation Accounting view

    Hi
    What is the use of split valuation Accounting view.is it compulsary to give for every materisl?
    regards
    Ashok

    Hii Ashok,
    The SAP R/3 System allows you to valuate stocks of a material either together or separately, that is, according to different valuation criteria. Split valuation is necessary if, for example:
    1. Stock from in-house production has a different valuation price than externally procured stock.
    2. Stock obtained from one manufacturer is valuated at a different price than stock obtained from another manufacturer.
    3. Different batch stocks of a material have different valuation prices.
    4. Value damaged and repair part differently from a new part.
    To used split valuation, you have to activate it using 'OMW0'.
    To change split material valuation once it has been set, you must
    1. first post out all stocks (for example, to a cost center or with movement type 562)
    2. then change the control parameters
    3. if necessary, change the automatic account determination
    4. finally post the stocks back in again
    In split valuation, you can distinguish between partial stocks of a material according to certain criteria and valuate them separately.
    The material stock is divided according to valuation category and valuation type.
    The valuation category determines how the partial stocks are divided, that is, according to which criteria.
    The valuation type describes the characteristics of the individual stocks.
    With the function "Setting" you can determine:
    which valuation categories exist in your company (global categories)
    which valuation types exist in your company (global types)
    which valuation types belong to which valuation category
    which valuation categories exist in a valuation area (local categories)
    Your entries are only relevant if you set split valuation as active in the function "Global settings".
    In the standard SAP R/3 System, the following valuation categories are default settings :
    B procurement type
    with the valuation types:
    "EIGEN" for in-house production
    "FREMD" for external procurement
    H Origin
    X automatic valuation (only for batch)
    To select split valuation ('OMWC'), proceed as follows:
    1. Determine the valuation categories and valuation types that are allowed for all valuation areas:
    global valuation categories via menu "Goto --> Global Categories"
    global valuation types via menu "Goto --> Global Types"
    2. Allocate the valuation types to the valuation categories.
    a) Select "Goto --> Global Categories".
    b) Position the cursor on a valuation category and select
    "Goto --> Global Categories --> Assignments --> 'Types->Category'".
    c) Activate the valuation types you want.
    3. Determine the local valuation categories for each valuation area.
    a) Select "Goto --> Local definitions".
    b) Position the cursor on a valuation area and select
    "Goto --> Local Definitions --> Allocate Categoires->Org.units (button Cats->(OU)".
    You obtain a list of the global valuation categories.
    c) Activate the categories to be used in this valuation area.
    The system creates the local valuation types based on the allocations under point 2.
    Only now can you create a master record with split valuation.
    Regards,
    Kumar

Maybe you are looking for