<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: What is SQL Query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-sql-query/m-p/3172963#M755035</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL stands for  Structured Querry Language.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we write SQL query to retrieve the data from Database Tables and present it in  a report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in SAP we can write 'open SQL / native SQL ' querries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uasually there will be no name for any query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.,&lt;/P&gt;&lt;P&gt;Chandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Dec 2007 06:35:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-18T06:35:33Z</dc:date>
    <item>
      <title>What is SQL Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-sql-query/m-p/3172961#M755033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;what is meant by SQL Query?&lt;/P&gt;&lt;P&gt;I have a report which is directly in production and not in development.its a user created program.&lt;/P&gt;&lt;P&gt;some one said that it is SQL query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is meant by it ?&lt;/P&gt;&lt;P&gt;Is there any name for that SQL query?&lt;/P&gt;&lt;P&gt;If yes,how can I find it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2007 06:23:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-sql-query/m-p/3172961#M755033</guid>
      <dc:creator>rahul2000</dc:creator>
      <dc:date>2007-12-18T06:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: What is SQL Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-sql-query/m-p/3172962#M755034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  SQL Query means select statement u r getting the data from the database table.&lt;/P&gt;&lt;P&gt;Standard SQL&lt;/P&gt;&lt;P&gt;SQL (Structured Query Language) is a largely standardized language for accessing relational databases.  It can be divided into three areas: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·         Data Manipulation Language (DML)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Statements for reading and changing data in database tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·         Data Definition Language (DDL)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Statements for creating and administering database tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·         Data Control Language (DCL)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Statements for authorization and consistency checks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each database has a programming interface that allows you to access the database tables using SQL statements.  The SQL statements in these programming interfaces are not fully standardized. To access a specific database system, you must refer to the documentation of that system for a list of the SQL statements available and their correct syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Database Interface&lt;/P&gt;&lt;P&gt;To make the R/3 System independent of the database system with which you use it despite the differences in the SQL syntax between various databases, each work process on an application server has a database interface. The R/3 System communicates with the database by means of this interface.  The database interface converts all of the database requests from the R/3 System into the correct Standard SQL statements for the database system. To do this, it uses a database-specific component that shields the differences between database systems from the rest of the database interface.  You choose the appropriate layer when you install the R/3 System.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;There are two ways of accessing the database from a program - with Open SQL or Native SQL.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Open SQL&lt;/P&gt;&lt;P&gt;Open SQL statements are a subset of Standard SQL that is fully integrated in ABAP. They allow you to access data irrespective of the database system that the R/3 installation is using. Open SQL consists of the Data Manipulation Language (DML) part of Standard SQL; in other words, it allows you to read (SELECT) and change (INSERT, UPDATE, DELETE) data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open SQL also goes beyond Standard SQL to provide statements that, in conjunction with other ABAP constructions, can simplify or speed up database access. It also allows you to buffer certain tables on the application server, saving excessive database access. In this case, the database interface is responsible for comparing the buffer with the database. Buffers are partly stored in the working memory of the current work process, and partly in the shared memory for all work processes on an application server. Where an R/3 System is distributed across more than one application server, the data in the various buffers is synchronized at set intervals by the buffer management. When buffering the database, you must remember that data in the buffer is not always up to date. For this reason, you should only use the buffer for data which does not often change. You specify whether a table can be buffered in its definition in the ABAP Dictionary.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Native SQL&lt;/P&gt;&lt;P&gt;Native SQL is only loosely integrated into ABAP, and allows access to all of the functions contained in the programming interface of the respective database system. Unlike Open SQL statements, Native SQL statements are not checked and converted, but instead are sent directly to the database system. When you use Native SQL, the function of the database-dependent layer is minimal. Programs that use Native SQL are specific to the database system for which they were written. When writing R/3 applications, you should avoid using Native SQL wherever possible. It is used, however, in some parts of the R/3 Basis System - for example, for creating or changing table definitions in the ABAP Dictionary. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ABAP Dictionary &lt;/P&gt;&lt;P&gt;The ABAP Dictionary, part of the ABAP Workbench, allows you to create and administer database tables.  Open SQL contains no statements from the DDL part of Standard SQL. Normal application programs should not create or change their own database tables.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ABAP Dictionary uses the DDL part of Open SQL to create and change database tables. It also administers the ABAP Dictionary in the database.  The ABAP Dictionary contains metadescriptions of all database tables in the R/3 System. Only database tables that you create using the ABAP Dictionary appear in the Dictionary. Open SQL statements can only access tables that exist in the ABAP Dictionary. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Authorization and Consistency Checks&lt;/P&gt;&lt;P&gt;The DCL part of Standard SQL is not used in R/3 programs. The work processes within the R/3 System are logged onto the database system as users with full rights.  The authorizations of programs or users to read or change database tables is administered within the R/3 System using the R/3 authorization concept.  Equally, transactions must ensure their own data consistency using the R/3 locking concept.  For more information, refer to Authorization Concept and Programming Database Updates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Plzz reward points if it helps.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: manjari kotta on Dec 18, 2007 7:29 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2007 06:28:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-sql-query/m-p/3172962#M755034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-18T06:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: What is SQL Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-sql-query/m-p/3172963#M755035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL stands for  Structured Querry Language.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we write SQL query to retrieve the data from Database Tables and present it in  a report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in SAP we can write 'open SQL / native SQL ' querries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uasually there will be no name for any query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.,&lt;/P&gt;&lt;P&gt;Chandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2007 06:35:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-sql-query/m-p/3172963#M755035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-18T06:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: What is SQL Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-sql-query/m-p/3172964#M755036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Updating records in the database table from an internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table: personel.&lt;/P&gt;&lt;P&gt;data: itab like personel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read records from the database table where name is space, into an internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;select * from personal into table itab&lt;/P&gt;&lt;P&gt;where name = space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Update name in the internal table to Unknown&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;itab-name = 'Unknown'&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Modify records in the database table. Only records with the same key values as then&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;internal table is modified&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;MODIFY personel from table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Updating a single entry &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example the entry with the key value Customerno = 1 is changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;customer-customerno = 1.&lt;/P&gt;&lt;P&gt;customer-customnavme = 'John'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE customer.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;..... No entry with the customerno = 1, add error handling&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Updating multiple entries&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Examlpe updating the field zchecked to 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE zcostcheck set zchecked = 'X'&lt;/P&gt;&lt;P&gt;WHERE zcostcheck-zaar = zaar and&lt;/P&gt;&lt;P&gt;zcostcheck-zmaaned = zmaaned and&lt;/P&gt;&lt;P&gt;zcostcheck-zbukrs = zbukrs and&lt;/P&gt;&lt;P&gt;zcostcheck-zsaknr = zsaknr2 and&lt;/P&gt;&lt;P&gt;zcostcheck-zgsber = zgsber.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2007 06:42:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-sql-query/m-p/3172964#M755036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-18T06:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: What is SQL Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-sql-query/m-p/3172965#M755037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;SQL Trace is a tool useful  for performance analysis.&lt;/P&gt;&lt;P&gt;In this case SQL Trace can be used to show the issued SQL statements and their duration, thus helping to identify inefficient SQL statements.&lt;/P&gt;&lt;P&gt;you can use the SQL Trace when you need to check the behavior of a particular application. This is the following scenario:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You launch the SQL Trace application using ST05 or Test -&amp;gt; Performance Trace in the ABAP Workbench.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;You activate the SQL Trace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You run the application in new session that you want to trace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You deactivate the SQL Trace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You set filters optionally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You evaluate the trace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also evaluate a trace that already exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initial Screen &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calling&lt;/P&gt;&lt;P&gt;You can call the initial screen of the test tool using transaction code ST05 or by choosing Test ® Performance Trace in the ABAP Workbench.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Functions&lt;/P&gt;&lt;P&gt;The following functions are available on the initial screen:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select trace:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Select the trace mode SQL Trace, Enqueue Trace, RFC Trace, or Table Buffer Trace. You can select mutliple trace modes simultaneously.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select trace function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Start the trace recording.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Stop the trace recording.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Branch to trace list, detailed list, or time-sorted list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Branch to Explain SQL to analyze an SQL statement without an explicit trace file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trace Status&lt;/P&gt;&lt;P&gt;A trace can only be activated once on any application server. The Trace Status display informs you whether another user in the system has already activated a particular trace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Analyzing Performance Data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prerequisites&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you have switched off the performance trace, you can analyze the data  The data is analyzed, even repeatedly, until its trace records are overwritten in the trace file. The trace files are managed by the SAP system. You can therefore keep a trace file for editing and delete it later through the menu Performance Trace-&amp;gt;Save Trace, Display Saved Trace, and Delete Saved Trace. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Procedure: Overview&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before you start analyzing the trace records, you must first switch off the Performance Trace. (It is also possible to display a trace without switching it off beforehand. In this case, however, the display procedure is also recorded in the trace file, in accordance with the set filter criteria for the trace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information, refer to:&lt;/P&gt;&lt;P&gt;Stopping the Trace Recording.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before displaying the trace records, you can use a display filter to specify the records to be edited and the information that you want to look at.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information, refer to: &lt;/P&gt;&lt;P&gt;Display Filters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you display the trace records, you can choose between a basic list and an extended list. Both lists display an overview of the logged actions and performance data. In addition, you can display a trace list sorted by time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information, refer to:&lt;/P&gt;&lt;P&gt;Displaying Lists of Trace Records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In both lists &amp;#150; the simple trace list and the extended list &amp;#150; you have the same range of functions for analyzing the listed statements and other performance data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The time-sorted trace lists is only slightly different from the trace lists mentioned above.  For more information on the transaction, process type, client, and user, call up the function Display-&amp;gt;User, Transaction and so on&amp;#133;&amp;#133; in the Goto menu.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward me if you feel this useful to you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;suresh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2007 06:49:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-sql-query/m-p/3172965#M755037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-18T06:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: What is SQL Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-sql-query/m-p/3172966#M755038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;sql is nothing but the structure query language,which is use in the database. to retrive the partcular data in this case the sql is used . it is noting but the rule to access the perticular data in specific format.&lt;/P&gt;&lt;P&gt;thats set.&lt;/P&gt;&lt;P&gt;the advance of sql is the pl/sql that is nothing but the procedural language /structure query language.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2007 07:38:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-sql-query/m-p/3172966#M755038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-18T07:38:32Z</dc:date>
    </item>
  </channel>
</rss>

