<?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: Difference in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/3815051#M917625</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;primary key&lt;/P&gt;&lt;P&gt;Each database table has a primary key. The primary key is either defined by the database user or generated internally. A user-defined primary key can consist of multiple columns.&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;/P&gt;&lt;P&gt;secondary key&lt;/P&gt;&lt;P&gt;You are able to define secondary keys for each table in order to optimize data access using SQL statements. Secondary keys can refer to any combination of columns, and they help to prevent sequential scans of the table. Like the primary key, the secondary key can consist of multiple columns. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A secondary key is often called an index (not to be confused with the B* index).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;palak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 May 2008 11:02:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-22T11:02:21Z</dc:date>
    <item>
      <title>Difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/3815046#M917620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys ,&lt;/P&gt;&lt;P&gt;               I have an idea about the primary key.. but why do we use the secondary key ..... May i know the exact difference between primary and secondary key&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2008 10:31:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/3815046#M917620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-22T10:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/3815047#M917621</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;difference between primary and secondary key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both primary key and unique enforce uniqueness of the column on which they are defined. But by default primary key creates a clustered index on the column, where are unique creates a nonclustered index by default. Another major difference is that, primary key doesnu2019t allow NULLs, but unique key allows one NULL only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondary keys can be defined for each table to optimize the data access via SQL statements. They can refer to any column combination and they help to prevent sequential scans over the table. Like the primary key, the secondary key can consist of multiple columns. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A secondary key is often called an index (not to be confused with B* index).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jagadish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2008 10:34:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/3815047#M917621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-22T10:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/3815048#M917622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An index can be considered a copy of a database table that has been reduced to certain fields. This copy is always in sorted form. Sorting provides faster access to the data records of the table, for example using a binary search. The index also contains a pointer to the corresponding record of the actual table so that the fields not contained in the index can also be read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The primary index is distinguished from the secondary indexes of a table.&lt;/STRONG&gt; The primary index contains the key fields of the table and a pointer to the non-key fields of the table. The primary index is created automatically when the table is created in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also create further indexes on a table in the ABAP Dictionary. These are called secondary indexes. &lt;STRONG&gt;This is necessary if the table is frequently accessed in a way that does not take advantage of the sorting of the primary index for the access.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at below link for details:&lt;/P&gt;&lt;P&gt;[Indexes|http://help.sap.com/saphelp_nw70/helpdata/en/cf/21eb20446011d189700000e8322d00/frameset.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vibha &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2008 10:34:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/3815048#M917622</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-22T10:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/3815049#M917623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi there...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondary indices or secondary databases are used to access &lt;/P&gt;&lt;P&gt;a primary database by a key other than the primary key. &lt;/P&gt;&lt;P&gt;Recall that the Supplier Number field is the primary key of &lt;/P&gt;&lt;P&gt;the Supplier database. In this section, the Supplier City &lt;/P&gt;&lt;P&gt;field will be used as a secondary lookup key. Given a city &lt;/P&gt;&lt;P&gt;value, we would like to be able to find the Suppliers in &lt;/P&gt;&lt;P&gt;that city. Note that more than one Supplier may be in the &lt;/P&gt;&lt;P&gt;same city. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both primary and secondary databases contain key-value &lt;/P&gt;&lt;P&gt;records. The key of an index record is the secondary key, &lt;/P&gt;&lt;P&gt;and its value is the key of the associated record in the &lt;/P&gt;&lt;P&gt;primary database. When lookups by secondary key are &lt;/P&gt;&lt;P&gt;performed, the associated record in the primary database is &lt;/P&gt;&lt;P&gt;transparently retrieved by its primary key and returned to &lt;/P&gt;&lt;P&gt;the caller.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do reward if helpful or get back with further queries.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2008 10:38:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/3815049#M917623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-22T10:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/3815050#M917624</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;&lt;STRONG&gt;Primary Key :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Field on which a record can be uniquely identified in a data base table is called a primary key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Secondary Key :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When a records is searched based on other primary key then the performance is hit badly so secondary key is formed which has group of field on which we can create a index for searching. There is a button called indexes which is used to create secondary key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Biswanath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2008 10:41:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/3815050#M917624</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-22T10:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/3815051#M917625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;primary key&lt;/P&gt;&lt;P&gt;Each database table has a primary key. The primary key is either defined by the database user or generated internally. A user-defined primary key can consist of multiple columns.&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;/P&gt;&lt;P&gt;secondary key&lt;/P&gt;&lt;P&gt;You are able to define secondary keys for each table in order to optimize data access using SQL statements. Secondary keys can refer to any combination of columns, and they help to prevent sequential scans of the table. Like the primary key, the secondary key can consist of multiple columns. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A secondary key is often called an index (not to be confused with the B* index).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;palak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2008 11:02:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/3815051#M917625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-22T11:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/3815052#M917626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sanu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;1. SECONDARY INDEX.&lt;/P&gt;&lt;P&gt;They are generally used for faster access.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EG.&lt;/P&gt;&lt;P&gt;In a table there are 10 fields.&lt;/P&gt;&lt;P&gt;1,2 are primary fields (primary index)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. But the table is queried many times&lt;/P&gt;&lt;P&gt;on field number 6 (eg).&lt;/P&gt;&lt;P&gt;So we can create a NEW Index&lt;/P&gt;&lt;P&gt;(Secondary index)&lt;/P&gt;&lt;P&gt;only on that 6th field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Due to this,&lt;/P&gt;&lt;P&gt;the sql will become faster &lt;/P&gt;&lt;P&gt;because NOW&lt;/P&gt;&lt;P&gt;the database will search on the&lt;/P&gt;&lt;P&gt;basis of secnodary index (made on 6th field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Primary key is to guarantee UNIQUE records.&lt;/P&gt;&lt;P&gt;    It also helps in fast access, if we use those fields&lt;/P&gt;&lt;P&gt;    in where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2008 11:30:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/3815052#M917626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-22T11:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/3815053#M917627</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;Primary index: the primary index contains key fields a table and a pointer to non-key fields of the table. The primary index is created automatically when a table is created in database and moreover you can further define reference to the primary index which are known as Secondary index.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 10:35:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/3815053#M917627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-23T10:35:08Z</dc:date>
    </item>
  </channel>
</rss>

