• ABAP Online Training @ $50

    Now you can learn ABAP by watching and listening video classes by experienced consultant.

  • ABAP Tutorials N Materials

    Read, Surf and Download useful ABAP tips, tutorials, code and download many eBooks and documents free

  • Latest ABAP Job in India

    Get all latest opening for SAP ABAP and related jobs, vaccancies across India and apply for the same.

    Wednesday, July 25, 2012

    Selecting data from a database table is very easy. We can write many types of select. But the tough part here is to choose the right select statement as per requirement. But always we have to think the performance for long term.

    So we have to be cautious while writing SELECT query and need to remember the below points

    • Specify by all Key fields of tables while selection
    • For single record if all primary keys matches, use SELECT SINGLE
    • Otherwise use up to 1 rows
    • Avoid select within loops / select .. Endselect
    • Inner join / views better than nested selects / multiple selects
    • Take care ‘For All Entries in Table’initial or Not
    • Avoid fetching large number of records by SELECT *. Use specific fields
    • Avoid Into Corresponding Fields into Table
    These best practice rules are applicable in almost every project now a days to make the code safe for long term.


    Easy2learnabap.co.in @ 2012 All product names on this web site are trademarks of the companies that own them .

    Easy2learnabap.co.in is not affiliated with SAP AG in any way. SAP AG is the registered trademark holder of SAP, SAP R/3, mySAP, ABAP, xApps, NetWeaver, and other proprietary terms.

    The technical information on this site is verified to the greatest extent possible, however, any information found on this site is used at the site visitor's own risk. All the tutorials are collected from various sources, if anyone is having problem with the content, report this to us. We will take action accordingly.

    Easy2learnabap.co.in reserves the right to correct any errors or omissions in any portion of this site at any time without obligation.

    This website is created to teach people about ABAP technology. The Video contents provided in Premium service are completely owned by us and copyrighted.