What are the key requirements to write a recursive cte?

what are the key requirements to write a recursive cte?
when we will go for a recursive cte.

A common table expression (CTE) can be thought of as a temporary result set that is defined within the execution scope of a single SELECT, INSERT, UPDATE, DELETE, or CREATE VIEW statement. A CTE is similar to a derived table in that it is not stored as an
object and lasts only for the duration of the query. Unlike a derived table, a CTE can be self-referencing and can be referenced multiple times in the same query.
A CTE can be used to:
Create a recursive query. For more information, see https://technet.microsoft.com/en-us/library/ms186243%28v=sql.105%29.aspx
Substitute for a view when the general use of a view is not required; that is, you do not have to store the definition in metadata.
Enable grouping by a column that is derived from a scalar subselect, or a function that is either not deterministic or has external access.
Reference the resulting table multiple times in the same statement.
Source : https://technet.microsoft.com/en-us/library/ms190766%28v=sql.105%29.aspx

Similar Messages

  • What are the settings required for QM in procurement

    Hi Team,
    What are the settings required for QM in procurement. I have  set indicator for QM in procurement in QM view in material master.
    I am not clear about  following fields to be maintained in QM view.
    QM Control Key
    Certificate type
    Target QM system
    Tech. delivery terms Indicator.
    Please suggest me in which case to be used this fiels. Is it relivant to Quality Certificates.
    Thanks

    Hi,
    All meaning are
    QM Control Key :
    If you activate the indicator for QM in procurement in the material master record at the client level, you must also store a control key at the plant level for quality management in procurement.
    Certificate type :
    Certificate types applies to the Certificate processing in procurement  &  Certificate creation
    Target QM system :
    whether the vendor's verified QM system, according to vendor master record or quality info-record (for a combination of vendor/material) meets the requirements for QM systems as specified in the material master
    -  If you activate the indicator for QM in procurement in the material master record at the client level, you must also store a control key at the plant level for quality management in procurement. If you want Procurment control then accordingly define Control Key.
    -  If you want Vendor's perticular certificate for Material then you have to define Certificate type.
    Also, you have to maintain Material, Vendor's Info record at plant level.
    Thanks,
    JM

  • What are the key points to beconsider while upgrading from 4.7 to ECC 6.0

    hai
    What are the key points to beconsider while upgrading from 4.7 to ECC 6.0
    please provide sufficient material
    points will be rewarded
    regards
    v.sridhar

    Hi Sridhar,
    Please visit the following links:
    http://service.sap.com/erp
    http://solutionbrowser.erp.sap.fmpmedia.com/ (Functional perspective)
    http://service.sap.com/instguides --> mySAP Business Suite Applications --> mySAP ERP --> mySAP ERP 2005 --> Upgrade
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/LOVC/LOVC.pdf
    For Functionality Differences pls refer to the below site -
    http://solutionbrowser.erp.sap.fmpmedia.com/
    After opening the site, please select the Source Release Version which is 4.6 b Then Select the Target Release Version which is "mySAP ERP 2005" or ECC 6.0
    Select the Solution Area like Financials, Human Capital Management, Sales....
    Select module like MM, PP, SD, and QM.....
    Click on Search
    then it displays the Release Version and the Delta Functionality. Which can be downloaded to a word document if required.
    And also check the release notes of ECC 6.0 in service.sap.com.
    When you are upgrading from 4.6C to ECC6
    Nothing major, follow the same process you'd follow if you were updating PI service packs in R/3 or enhancing data sources. Empty queues in RSA7 and lbwq. Also empty setup tables through lbwg as the upgrade doesn't like it if these tables contain data. This is all on the R/3 side (although you empty RSA7 by running each delta TWICE in BW).
    To transfer queues from lbwq to rsa7, execute jobs through LO cockpit (lbwe).
    Some of your data sources could also be using sm13 instead of lbwq, so do check it out as well.
    For installing ECC 6.0 you required a solution manager key. With out solution manager key you cannot install ECC6.0.
    For ECC 6.0 is called net weaver component here you have ABAP+JAVA stack.
    ECC6.0 supports UNCODE.
    For installing 4.6 you don't require solution manager key. It only having ABAP stack.
    4.6C supports NONUNICODE.
    Major difference is ECC6 is netwear product having WASJAVA+ABAP
    secondly support unicode apart from this we have other diff. you can get form master guide from service.sap.com/instguides.
    Please go through the link that is shown here and if there is any doubts then feel free to ask.
    Major difference is ECC6 is net weaver  product having WASJAVA+ABAP
    secondly support Unicode apart from this we have other diff. you can get from master guide from service.sap.com/instguides
    For installing ECC 6.0 you required a solution manager key. With out solution manager key you cannot install ECC6.0.
    For ECC 6.0 is called net weaver component here you have ABAP+JAVA stack.
    ECC6.0 supports UNCODE.
    For installing 4.6 you don't required solution manager key. It only having ABAP stack.
    4.6C supports NONUNICODE.
    Please also Refer sdn thread and make a small search where u can find lot of information Reg this
    olution Browser would give the differences (Features):
    http://solutionbrowser.erp.sap.fmpmedia.com/ Give source and target versions.
    Release Info:
    ECC 6.0:
    http://help.sap.com/saphelp_erp2005/helpdata/en/43/68805bb88f297ee10000000a422035/frameset.htm
    Refer below and search for posts on this topic on sdn
    There are so many differences between the version in different objects
    I
    These are the some of the settings that are differed in the two versions and in that two objects
    Please visit the following links:
    http://service.sap.com/erp
    http://solutionbrowser.erp.sap.fmpmedia.com/ (Functional prespective)
    http://service.sap.com/instguides --> mySAP Business Suite Applications --> mySAP ERP --> mySAP ERP 2005 --> Upgrade
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/LOVC/LOVC.pdf
    For Functionality Differences pls refer to the below site -
    http://solutionbrowser.erp.sap.fmpmedia.com/
    Upgrade from 4.6c to 6.0 ECC
    upgrade from 4.7 to ecc 6.0
    Please Do Reward If Really Helpful,
    Thanks and Regards,
    Sateesh.Kandula

  • What are the key steps & order to follow: changes in my flat file structure

    HI,
    I have a Cube which sits on ODS.
    In the ODS,  the are 6 characterisics: Char1, Char2,...., char6; and 3 key figures: kf1, kf2, and kf3.
    The ODS is loaded through a flat file.
    Through an update rule and startup routine, the ODS updates the cube.
    Now, I have a new requirement to add 2 new characteristics (Cha10, char20) and one 2 key figures (KF55, KF66)).i.e. the flat file will now be coming in with these new fields.
    I have an idea but this this is the first time I really have to implement, I need to be sure.
    What are the key steps that I need to go through and in what order?
    Thanks

    What version are you running ?
    Will you need to load history data as for these new fields or is it just going forward ?
    Is it all one to one mapping for the new fields ?
    1. Make sure you know to what dimensions you need to add the new chars ? New dimension for these two ?
    2. New chars to be made keyfields ?
    3. Update Type for keyfigures Overwrite or Additive ?
    Enhance the Cube, DSO, change  TRFN/TR/UR..

  • What are the key benefits and limitations of new pricing model of X5-2?

    What are the key benefits and limitations of new pricing model that started with X5 version?

    1. Elastic Configurations
    Size/price hardware by the number of servers; Fixed configs no longer required
    Start with 2 Database Servers and 3 Storage Servers. Incrementally add database or storage servers online.
    2. Capacity-on-Demand (CoD)
    Upon installation, activate 40-100% of the cores per server and reduce software licenses; Applies to Eighth Rack now too
    Activate and license more cores when needed; Active cores may not be deactivated
    3. OVM and Trusted Partitions
    License software on Virtual CPUs within a VM; Ideal for special-purpose DB options
    You can mix different combination of options for different DB on one Exadata.
    OVM has no License cost; support is included with premier hardware support
    Limitation:
    At least 40% of usable cores on the machine must be licensed for Oracle software
    Cannot use both OVM and CoD to license less than 40% of cores
    A server must be virtualized or non-virtualized – not mixed
    A RAC cluster can mix virtualized and non-virtualized servers
    4. “Flash Drive” License Metric for EF Storage Server Software
    $20K/drive; 8 flash drives/EF server vs 12 disk drives/HC server = 33% higher list
    Can transfer licenses between Flash Drive (2 licenses/drive) and Disk Drive (1 license/drive) – part # is the same

  • What are the key fields used to group double orders in t-code SDD1?

    What are the key fields used to group double orders in t-code SDD1?
    Cheers,
    VT

    Hi,
    You can group the duplicate sales documents with the help of the following fields,
    Sold-To-Party,Document type,date and sales area details.
    Regards,
    Gopal.

  • What are the advantages of varying write speeds and burn speeds?

    What are the advantages of varying write speeds and burn speeds?

    The slower the speed, the fewer burn errors (or, in other words, you'll burn fewer "coasters"). I've always tried to burn at a slower speed, i.e. 2x - 4x. I'd rather wait a few minutes more and I've never had any burn errors.

  • What are the Things required for BI 7.0 Implementation project

    Hi Friends,
                      Can any one suggest me
    1.What are the Things required for BI 7.0 Implementation project?
    2.System Configurations & Hardware Components?
    3. Any additional steps...
    plz suggest me.
    Regards

    Hi lakshmi,
    http://csc-studentweb.lrc.edu/swp/Berg/articles/PM_2006_upgrade_NW2004s_Bjarne_Berg_v12.ppt#426,3,Why Upgrade u2013 end of supportu2026
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b8d163a7-0301-0010-d9b0-98f692ea3c60
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2e8e5288-0b01-0010-2ea8-bcd4df5084a7
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/472443f2-0c01-0010-20ab-fbd380d45881
    https://wiki.sdn.sap.com/wiki/x/JYk
    Check the following links.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33
    check the following
    http://help.sap.com/bp_biv235/BI_EN/html/bw.htm
    business content
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/g-i/how%20to%20co-pa%20extraction%203.0x
    https://websmp203.sap-ag.de/co
    http://help.sap.com/saphelp_nw04/helpdata/en/37/5fb13cd0500255e10000000a114084/frameset.htm

  • What are the versions required for JBOSS,JDK and ORACLE to setup the ATG 10.2.

    Hi Folks,
    Could you please share, What are the versions required for JBOSS, JDK and ORACLE to setup the ATG 10.2.
    Thank you.

    In case you don't have access to MOS :
    JBOSS : 5.1.2 EAP
    JDK : 1.6.0_38
    ORACLE :
    Oracle Exadata5
    Oracle 10gR2 (10.2.0.3)
    Oracle 10gR2 RAC (10.2.0.3)
    Oracle 11gR2 (11.2.0.2.0)
    Oracle 11gR2 RAC (11.2.0.2.0)

  • What are the infotypes required for maintaining benefits....

    Hi
    Please help ...
    What are the ingotypes required for maintaing benefits....

    Hi Srikanth,
    Please find below the list of Infotypes required for maintaining benefits:
    1. General Benefits Information (Infotype 0171)
    2. Adjustment Reasons (Infotype 0378)   
    3. Health Plans (Infotype 0167)  
    4. Insurance Plans (Infotype 0168)  
    5. Savings Plans (Infotype 0169)  
    6. Flexible Spending Account (Infotype 0170)  
    7. Miscellaneous Plans (Infotype 0377)  
    8. Family/Related Person (Infotype 0021)
    There are also other benefits infotypes e.g. Stock Purchase Plans (Infotype 0379), Credit Plans (Infotype 0236) and many COBRA and retirement plan infotypes but these are used based on the company requirement.
    I hope this helps.
    Regards,
    Anand Jalan
    Edited by: Anand Jalan on Jan 6, 2010 9:50 PM
    Edited by: Anand Jalan on Jan 6, 2010 9:52 PM

  • What are the jars required for prepare portlet tool?

    what are the jars required for prepare portlet tool which converts portlets to .portlet.

    HI
    you will  have to create manager as portal role and assigned to them  necessary worksets containing necessary worksets  look into the PCD in migrated content and line *?? folder you will have necessary ESS and Mss packages. and all configs is related to iviews system properties and transactions  and applications you need to do it .please do not forget to give points
    with regards
    subrato kundu

  • What are the roles required for MSS

    What are the roles required for MSS in R/3.
    I have created ESS roles. But need to find for MSS.
    I am able to see the PERNR in ESS on portal which created in R/3.
    I need to get my staff on portal.
    What config is required for this.
    MSS User.

    HI
    you will  have to create manager as portal role and assigned to them  necessary worksets containing necessary worksets  look into the PCD in migrated content and line *?? folder you will have necessary ESS and Mss packages. and all configs is related to iviews system properties and transactions  and applications you need to do it .please do not forget to give points
    with regards
    subrato kundu

  • What are the ports required for the Audio, Video and A/V conferencing when the following end points are enabled for QoS in Lync 2013 server?

    Hi All,
    What are the ports required for the Audio, Video and A/V conferencing when the following clients are enabled for QoS in Lync 2013 server?
    Client Type
    Port range  and Protocol required for Audio
    Port range and Protocol required for
    Video
    Port range and Protocol required for
    A/Vconferencing
    Windows Desktop   Client
    Windows mobile App
    Iphone
    Ipad
    Andriod phone
    Andriod Tablet
    MAC desktop client
    Please advise. Many Thanks.

    Out of the box, 1024-65535 for all of the client ports.  :) 
    https://technet.microsoft.com/en-us/library/gg398833.aspx
    You'll want to tune your client ports a bit
    https://technet.microsoft.com/en-us/library/jj204760.aspx as seen here, and then the client ports would use those ranges which is easier to set QoS markings.  I'm not sure the mobile clients respect that setting.
    Elan's got the best writeup for Windows clients here:
    http://www.shudnow.net/2013/02/16/enabling-qos-for-lync-server-2013-and-various-clients-part-1/
    However, the marking of the packets is the tricky part.  Windows can do it via Group Policy, but for the other clients you'll need to have the network specifically prioritize ports regardless of DSCP markings.  You have to do it based on ports
    as the traffic could be peer to peer.
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question please click "Mark As Answer".
    SWC Unified Communications
    This forum post is based upon my personal experience and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • What are the settings required to maintain consignment storgae location

    Hi, what are the setting required to maintain new consignmnet storgae location for a customer.
    Thank you.

    Here I am giving you over all idea of Consignment:
    Consignment goods are goods which are stored at the customer location but which are owned by your company. The customer is not obliged to pay for these goods until they remove them from consignment stock. Otherwise, the customer can usually return consignment goods which are not required.
    Consignment processing offers the participating partners several advantages. Customers store the consignment goods at their own warehouses. The customer can access the goods in the consignment warehouse at any time. They are only billed for the goods when they are removed from the warehouse and only for the actual quantity taken.
    consignment stock must be
    Managed separately from the rest of your stock so that you know exactly what stock is stored at the customer location
    Managed separately for each customer
    In inventory management, the consignment stock is managed as special stock in your inventory and is assigned to specific customers. This enables you to keep track of returnable packaging stock by customer.
    If the consignment stocks are not managed by the sold-to party but by a central office, you can use the partner function for special stock partner.
    Prerequisites
    Special Stock Partner
    The special stock partner has been defined for carrying out consignment stock processing by means of a third party rather than the customer. This means you can manage all special stock under one partner. It makes sense to use the special stock partner if your customer is using decentralized order processing but manages consignment stock centrally.
    Inventory Management Using the Special Stock Partner
    If you want to process your consignment goods using a special stock partner, proceed as follows:
    Create a customer master record for the special stock partner (account groups 0001 and DEBI are defined for this purpose in the standard system).
    Enter the special stock partner in the relevant customer master record on the partner screen using the partner function SB.
    When you create an order for this customer, the system automatically proposes the partner function SB in the document header and the document items. Consignment goods which have been entered in a consignment fill-up are always posted to the stock of the special stock partner when goods issue is carried out. You can also enter the partner function SB manually in the document header or in the relevant items if a special stock partner is required and is not proposed from the customer master record. If a special stock partner does not exist in the document header, inventory management is carried out using the sold-to party.
    Process Flow
    There are four main transactions for processing consignment stock in the R/3 System, all of which support separate management of stock:
    Creating a Consignment Fill-Up
    Creating Consignment Issue
    Creating a Consignment Pick-Up
    Displaying Consignment Returns
    Consignment fill-up
    Consignment fill up is used to supplement the customer’s consignment stock.
    Goods issue of the appropriate stock is posted from the unrestricted-use stock to consignment stock (special stock). The goods remain in the possession of the vendor.
    When you ship consignment stock to the customer, you record the transaction by creating a consignment fill-up order (order type KB). As a result, the system carries out the following actions:
    If special stock does not yet exist in your inventory for the customer (or special stock partner), the system creates it when goods issue is posted
    The relevant quantity is removed from regular inventory in your plant and is added to the special stock for the customer. The total valuated stock for the plant remains the same.
    The transaction is not relevant for pricing since the consignment stock remains the property of your company.
    Consignment pick-up
    Consignment issue enables the customer to take consignment goods from the special stock for their use or to sell.
    Consignment issue involves removing the goods from the special stock and making it the property of the customer.
    When the customer removes consignment stock to use or sell, you record the transaction in the system by creating a consignment issue order (order type KE). As a result, the system carries out the following actions:
    When goods issue is posted, the relevant quantity is deducted from both the customer’s special stock and your own total valuated stock.
    The transaction is relevant for pricing since the goods now become the property of the customer.
    Consignment issue
    Any consignment goods stored at the customer’s warehouse that haven’t been used can be reposted to your company’s warehouse with a consignment pick-up.
    If the customer returns consignment stock to you, you record the transaction in the system by creating a consignment pick-up order (order type KA). As a result, the system carries out the following actions:
    When goods issue is posted, the relevant quantity is deducted from the customer’s special stock and is added back into your regular stock at the plant where the goods are returned. Your total valuated stock remains the same since the returned stock was regarded as part of your own inventory even while it was at the customer’s premises.
    This transaction is not relevant for billing.
    Consignment return
    Consignment returns are used for when your customer wants to return goods to the consignment stock.
    If the customer wishes to claim on consignment goods which have already been issued, you can record this transaction by creating a consignment return order (order type KR). As a result, the system carries out the following actions:
    When goods issue is posted, the relevant quantity is added to the customer’s special stock at the plant where the goods are returned
    Since the ownership of the goods is passed from the customer back to your company, the transaction is relevant for billing. In this case, the customer receives a credit memo for the returned goods.
    Depending on the settings in Customizing for Sales, you can create consignment returns with direct reference to a consignment issue. The consignment issue appears in the document flow for the consignment return. This function is not supported in the standard version of the SAP R/3 System.
    When you create consignment returns in the standard version of the SAP R/3 System, the system automatically sets a billing block. To credit a return, you must first approve the request for a credit memo by removing the billing block in the return header. You can control the automatic setting of a billing block in Customizing for Sales.
    The following table provides an overview of the order types used in the standard system for processing consignments:
    Transaction
    Sales order type
    Consignment fill-up
    KB
    Consignment issue
    KE
    Consignment pick-up
    KA
    Consignment return
    KR
    Pricing and Availability Check
    Whether pricing is carried out for the individual transactions depends on the item category. The schedule line category controls the availability check and the transfer of requirements in each of the transactions. The schedule line category itself is determined by the item category and the MRP type of the material. The order types KE and KA check against the consignment stock for the customer involved and order type KB checks against your own plant stock. Requirement records for consignment stock are stored as individual requirements, independently of the setting in the material master

  • What are the settings required to block a particular IP to make connection on particular port no running on another IP?

    Problem:
    -   What are the settings required to block a particular IP to make connection on particular port no running on another IP?
    Environment:
    Operating System            : - Windows XP Service
    Pack 1
    System type                     : - 32 – bit Operating System
    Description: - We
    have requirement to block Port access from particular IP. It is specific requirement for a machine.
    We have service which is running on
    Server with IP: - 10.14.15.116 on
    Port Number 3366 and we need to
    block Client Machine IP: - 10.14.15.114 to make
    any connections with server on this port. Not even client machine
    should be able to telnet on server on port 3366.
     I
    will be really thankful.
    For any kind of input which can assist us to complete the requirement.

    Does it allow in same way with firewall setting in Windows Server 2008?
    I will read in details shared link, but as a matter of urgency; kindly let us know, if we can follow some concise instruction to do above activity.
     I
    will be really thankful

Maybe you are looking for

  • If I replace my old iMac with a new one can I burn DVDs on an external drive using Mountain Lion or Toast?

    My 2006 iMac is getting a bit long in the tooth and I was thinking of replacing it with a new one. However, Mac have not included an optical drive and I back up my photographs on DVD as well as external hard drives. I also supply DVDs of my work to f

  • Downloading a file from Database [Blob field]

    I am trying to write an application which can upload and download files [Excel, Word etc.] to/from an Oracle 9i database Blob field. I am using Java/JSP for the same. The upload part works just fine. However, when I try to download the file that I up

  • FEATURE REQUEST:  Preference to "Open Last Document" on launch

    Maybe nobody will hear this - and no action will be taken - but I had to chime in and say, could we PLEASE have the Pages app offer the option to "OPEN LAST DOCUMENT ON LAUNCH"? Thanks! The Abiding Dudester

  • Date rule for current date

    Hi. I have a date type for which I would like to fill DATE FROM field with current date, but the field DATE TO should stay empty for manual entry. I defined the following rule which I assigned to my date type but the problem with this rule is that it

  • [SOLVED] Getting my systemd user service to talk to dbus

    I'm currently trying to set up a nice email workflow with mbsync, msmtp and notmuch. My passwords are saved in the Gnome keyring "login", and I've configured mbsync to use secret-tool to retrieve them. Unfortunately when secret-tool is invoked from t