<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7205115418491271533</id><updated>2024-11-01T03:42:14.237-07:00</updated><title type='text'>SelectSql</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://selectinsql.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://selectinsql.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Vijay Maurya</name><uri>http://www.blogger.com/profile/00459112937519229095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAq0unsQRC0g7q8LCCjOU5NUrCuyXX5vMfcWbPl5cNsojKH_YS1rJIQL3mxLSTxPXCdJ90rCGzSmU-cFJ9vqjHSMbOxvOb1NaDkURBdhKasrpOq9yuoNpW9_XfPk_1qWU/s220/clip_image001.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>46</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7205115418491271533.post-4404548285617189105</id><published>2012-12-09T21:09:00.001-08:00</published><updated>2012-12-09T21:09:27.551-08:00</updated><title type='text'>What&#39;s the difference between a temp table and table variable in SQL Server?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; background-position: initial initial; background-repeat: initial initial; border: 0px; clear: both; color: black; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; margin: 0px 0px 1em; orphans: 2; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: 2; word-spacing: 0px; word-wrap: break-word;&quot;&gt;
As a rule of thumb, for small to medium volumes of data and simple usage scenarios you should use table variables. (This is an overly broad guideline with of course lots of exceptions - see below and following articles.)&lt;/div&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; background-position: initial initial; background-repeat: initial initial; border: 0px; clear: both; color: black; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; margin: 0px 0px 1em; orphans: 2; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: 2; word-spacing: 0px; word-wrap: break-word;&quot;&gt;
Some points to consider when choosing between them:&lt;/div&gt;
&lt;ul style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; background-position: initial initial; background-repeat: initial initial; border: 0px; color: black; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; list-style: disc; margin: 0px 0px 1em 30px; orphans: 2; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;li style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; clear: both; font-size: 14px; margin: 0px 0px 1em; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
Temporary Tables are real tables so you can do things like CREATE INDEXes, etc. If you have large amounts of data for which accessing by index will be faster then temporary tables are a good option.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; clear: both; font-size: 14px; margin: 0px 0px 1em; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
Table variables can have indexes by using PRIMARY KEY or UNIQUE constraints. (If you want a non-unique index just include the primary key column as the last column in the unique constraint. If you don&#39;t have a unique column, you can use an identity column.)&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; clear: both; font-size: 14px; margin: 0px 0px 1em; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
Table variables don&#39;t participate in transactions, logging or locking. This means they&#39;re faster as they don&#39;t require the overhead, but conversely you don&#39;t get those features. So for instance if you want to ROLLBACK midway through a procedure then table variables populated during that transaction will still be populated!&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; clear: both; font-size: 14px; margin: 0px 0px 1em; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
Temp tables might result in stored procedures being recompiled, perhaps often. Table variables will not.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; clear: both; font-size: 14px; margin: 0px 0px 1em; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
You can create a temp table using SELECT INTO, which can be quicker to write (good for ad-hoc querying) and may allow you to deal with changing datatypes over time, since you don&#39;t need to define your temp table structure upfront.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; clear: both; font-size: 14px; margin: 0px 0px 1em; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
You can pass table variables back from functions, enabling you to encapsulate and reuse logic much easier (eg make a function to split a string into a table of values on some arbitrary delimiter).&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; clear: both; font-size: 14px; margin: 0px 0px 1em; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
Using Table Variables within user-defined functions enables those functions to be used more widely (see CREATE FUNCTION documentation for details). If you&#39;re writing a function you should use table variables over temp tables unless there&#39;s a compelling need otherwise.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; clear: both; font-size: 14px; margin: 0px 0px 1em; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
Both table variables and temp tables are stored in tempdb. This means you should be aware of issues such as COLLATION problems if your database collation is different to your server collation; temp tables and table variables will by default inherit the collation of the server, causing problems if you want to compare data in them with data in your database.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;&lt;div style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; clear: both; font-size: 14px; margin: 0px 0px 1em; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
Global Temp Tables (##tmp) are another type of temp table available to all sessions and users.&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://selectinsql.blogspot.com/feeds/4404548285617189105/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://selectinsql.blogspot.com/2012/12/whats-difference-between-temp-table-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/4404548285617189105'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/4404548285617189105'/><link rel='alternate' type='text/html' href='http://selectinsql.blogspot.com/2012/12/whats-difference-between-temp-table-and.html' title='What&#39;s the difference between a temp table and table variable in SQL Server?'/><author><name>Vijay Maurya</name><uri>http://www.blogger.com/profile/00459112937519229095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAq0unsQRC0g7q8LCCjOU5NUrCuyXX5vMfcWbPl5cNsojKH_YS1rJIQL3mxLSTxPXCdJ90rCGzSmU-cFJ9vqjHSMbOxvOb1NaDkURBdhKasrpOq9yuoNpW9_XfPk_1qWU/s220/clip_image001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7205115418491271533.post-7733123078167339521</id><published>2012-11-09T03:00:00.001-08:00</published><updated>2012-11-09T03:00:17.811-08:00</updated><title type='text'>Introduction to Locking in SQL Server</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h2 style=&quot;color: blue; font-family: Verdana, Arial, Helvetica; font-size: 14pt;&quot;&gt;
Introduction&lt;/h2&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;In this article, I want to tell you about SQL Server 7.0/2000 Transaction Isolation Levels, what kinds of Transaction Isolation Levels exist, and how you can set the appropriate Transaction Isolation Level, about Lock types and Locking optimizer hints, about deadlocks, and about how you can view locks by using the&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;sp_lock&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;&amp;nbsp;stored procedure.&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;h2 style=&quot;color: blue; font-family: Verdana, Arial, Helvetica; font-size: 14pt;&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=7205115418491271533&quot; name=&quot;part_2&quot;&gt;&lt;/a&gt;Transaction Isolation Levels&lt;/h2&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;There are four isolation levels:&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;br /&gt;
&lt;li style=&quot;font-family: Verdana; font-size: small;&quot;&gt;READ UNCOMMITTED&lt;/li&gt;
&lt;li style=&quot;font-family: Verdana; font-size: small;&quot;&gt;READ COMMITTED&lt;/li&gt;
&lt;li style=&quot;font-family: Verdana; font-size: small;&quot;&gt;REPEATABLE READ&lt;/li&gt;
&lt;li style=&quot;font-family: Verdana; font-size: small;&quot;&gt;SERIALIZABLE&lt;/li&gt;
&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;Microsoft SQL Server supports all of these Transaction Isolation Levels and can separate&lt;/span&gt;&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;REPEATABLE READ&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;&amp;nbsp;and&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;SERIALIZABLE&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;Let me to describe each isolation level.&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;h3 style=&quot;color: blue; font-family: san-serif, arial, verdana; font-size: 12pt;&quot;&gt;
READ UNCOMMITTED&lt;/h3&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;When it&#39;s used, SQL Server not issue shared locks while reading data. So, you can read an uncommitted transaction that might get rolled back later. This isolation level is also called dirty read. This is the lowest isolation level. It ensures only that a physically corrupt data will not be read.&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;h3 style=&quot;color: blue; font-family: san-serif, arial, verdana; font-size: 12pt;&quot;&gt;
READ COMMITTED&lt;/h3&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;This is the default isolation level in SQL Server. When it&#39;s used, SQL Server will use shared locks while reading data. It ensures that a physically corrupt data will not be read and will never read data that another application has changed and not yet committed, but it not ensures that the data will not be changed before the end of the transaction.&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;h3 style=&quot;color: blue; font-family: san-serif, arial, verdana; font-size: 12pt;&quot;&gt;
REPEATABLE READ&lt;/h3&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;When it&#39;s used, the dirty reads and nonrepeatable reads cannot occur. It means that locks will be placed on all data that is used in a query, and another transactions cannot update the data.&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;This is the definition of nonrepeatable read from SQL Server Books Online:&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;table style=&quot;font-family: Verdana; width: 100%px;&quot;&gt;&lt;tbody&gt;
&lt;tr bgcolor=&quot;dcdcdc&quot;&gt;&lt;td style=&quot;font-family: Verdana, Arial, Helvetica; font-size: 8pt;&quot;&gt;&lt;pre&gt;nonrepeatable read
When a transaction reads the same row more than one time, and between the
two (or more) reads, a separate transaction modifies that row. Because the
row was modified between reads within the same transaction, each read
produces different values, which introduces inconsistency.
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;h3 style=&quot;color: blue; font-family: san-serif, arial, verdana; font-size: 12pt;&quot;&gt;
SERIALIZABLE&lt;/h3&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;Most restrictive isolation level. When it&#39;s used, the phantom values cannot occur. It prevents other users from updating or inserting rows into the data set until the transaction will be completed.&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;This is the definition of phantom from SQL Server Books Online:&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;table style=&quot;font-family: Verdana; width: 100%px;&quot;&gt;&lt;tbody&gt;
&lt;tr bgcolor=&quot;dcdcdc&quot;&gt;&lt;td style=&quot;font-family: Verdana, Arial, Helvetica; font-size: 8pt;&quot;&gt;&lt;pre&gt;phantom
Phantom behavior occurs when a transaction attempts to select a row that
does not exist and a second transaction inserts the row before the first
transaction finishes. If the row is inserted, the row appears as a phantom
to the first transaction, inconsistently appearing and disappearing.
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;You can set the appropriate isolation level for an entire SQL Server session by using the&lt;/span&gt;&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;SET TRANSACTION ISOLATION LEVEL&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;&amp;nbsp;statement.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;This is the syntax from SQL Server Books Online:&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;table style=&quot;font-family: Verdana; width: 100%px;&quot;&gt;&lt;tbody&gt;
&lt;tr bgcolor=&quot;dcdcdc&quot;&gt;&lt;td style=&quot;font-family: Verdana, Arial, Helvetica; font-size: 8pt;&quot;&gt;&lt;pre&gt;SET TRANSACTION ISOLATION LEVEL 
    {
        READ COMMITTED 
        | READ UNCOMMITTED 
        | REPEATABLE READ 
        | SERIALIZABLE
    }
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;You can use the&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;DBCC USEROPTIONS&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;&amp;nbsp;statement to determine the Transaction Isolation Level currently set. This command returns the set options that are active for the current connection. This is the example:&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;table style=&quot;font-family: Verdana; width: 100%px;&quot;&gt;&lt;tbody&gt;
&lt;tr bgcolor=&quot;dcdcdc&quot;&gt;&lt;td style=&quot;font-family: Verdana, Arial, Helvetica; font-size: 8pt;&quot;&gt;&lt;pre&gt;SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED
GO
DBCC USEROPTIONS
GO
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;h2 style=&quot;color: blue; font-family: Verdana, Arial, Helvetica; font-size: 14pt;&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=7205115418491271533&quot; name=&quot;part_3&quot;&gt;&lt;/a&gt;Lock types&lt;/h2&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;There are three main types of locks that SQL Server 7.0/2000 uses:&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;br /&gt;
&lt;li style=&quot;font-family: Verdana; font-size: small;&quot;&gt;Shared locks&lt;/li&gt;
&lt;li style=&quot;font-family: Verdana; font-size: small;&quot;&gt;Update locks&lt;/li&gt;
&lt;li style=&quot;font-family: Verdana; font-size: small;&quot;&gt;Exclusive locks&lt;/li&gt;
&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;Shared&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;&amp;nbsp;locks are used for operations that do not change or update data, such as a SELECT statement.&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;Update&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;&amp;nbsp;locks are used when SQL Server intends to modify a page, and later promotes the update page lock to an exclusive page lock before actually making the changes.&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;Exclusive&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;&amp;nbsp;locks are used for the data modification operations, such as UPDATE, INSERT, or DELETE.&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;Shared&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;&amp;nbsp;locks are compatible with other&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;Shared&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;&amp;nbsp;locks or&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;Update&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;&amp;nbsp;locks.&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;Update&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;&amp;nbsp;locks are compatible with&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;Shared&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;&amp;nbsp;locks only.&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;Exclusive&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;&amp;nbsp;locks are not compatible with other lock types.&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;Let me to describe it on the real example. There are four processes, which attempt to lock the same page of the same table. These processes start one after another, so Process1 is the first process, Process2 is the second process and so on.&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;Process1 : SELECT&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;Process2 : SELECT&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;Process3 : UPDATE&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;Process4 : SELECT&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;Process1 sets the&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;Shared&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;&amp;nbsp;lock on the page, because there are no another locks on this page.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;Process2 sets the&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;Shared&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;&amp;nbsp;lock on the page, because&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;Shared&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;&amp;nbsp;locks are compatible with other&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;Shared&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;&amp;nbsp;locks.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;Process3 wants to modify data and wants to set&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;Exclusive&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;&amp;nbsp;lock, but it cannot make it before Process1 and Process2 will be finished, because&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;Exclusive&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;&amp;nbsp;lock is not compatible with other lock types. So, Process3 sets&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;Update&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;&amp;nbsp;lock.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;Process4 cannot set&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;Shared&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;&amp;nbsp;lock on the page before Process3 will be finished. So, there is no&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;Lock starvation&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;.&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;Lock starvation&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;&amp;nbsp;occurs when read transactions can monopolize a table or page, forcing a write transaction to wait indefinitely. So, Process4 waits before Process3 will be finished.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;After Process1 and Process2 were finished, Process3 transfer&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;Update&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;&amp;nbsp;lock into&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;Exclusive&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;lock to modify data. After Process3 was finished, Process4 sets the&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;Shared&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;&amp;nbsp;lock on the page to select data.&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;h2 style=&quot;color: blue; font-family: Verdana, Arial, Helvetica; font-size: 14pt;&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=7205115418491271533&quot; name=&quot;part_4&quot;&gt;&lt;/a&gt;Locking optimizer hints&lt;/h2&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;SQL Server 7.0/2000 supports the following Locking optimizer hints:&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;br /&gt;
&lt;li style=&quot;font-family: Verdana; font-size: small;&quot;&gt;NOLOCK&lt;/li&gt;
&lt;li style=&quot;font-family: Verdana; font-size: small;&quot;&gt;HOLDLOCK&lt;/li&gt;
&lt;li style=&quot;font-family: Verdana; font-size: small;&quot;&gt;UPDLOCK&lt;/li&gt;
&lt;li style=&quot;font-family: Verdana; font-size: small;&quot;&gt;TABLOCK&lt;/li&gt;
&lt;li style=&quot;font-family: Verdana; font-size: small;&quot;&gt;PAGLOCK&lt;/li&gt;
&lt;li style=&quot;font-family: Verdana; font-size: small;&quot;&gt;TABLOCKX&lt;/li&gt;
&lt;li style=&quot;font-family: Verdana; font-size: small;&quot;&gt;READCOMMITTED&lt;/li&gt;
&lt;li style=&quot;font-family: Verdana; font-size: small;&quot;&gt;READUNCOMMITTED&lt;/li&gt;
&lt;li style=&quot;font-family: Verdana; font-size: small;&quot;&gt;REPEATABLEREAD&lt;/li&gt;
&lt;li style=&quot;font-family: Verdana; font-size: small;&quot;&gt;SERIALIZABLE&lt;/li&gt;
&lt;li style=&quot;font-family: Verdana; font-size: small;&quot;&gt;READPAST&lt;/li&gt;
&lt;li style=&quot;font-family: Verdana; font-size: small;&quot;&gt;ROWLOCK&lt;/li&gt;
&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;NOLOCK&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;&amp;nbsp;is also known as &quot;dirty reads&quot;. This option directs SQL Server not to issue shared locks and not to honor exclusive locks. So, if this option is specified, it is possible to read an uncommitted transaction. This results in higher concurrency and in lower consistency.&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;HOLDLOCK&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;&amp;nbsp;directs SQL Server to hold a shared lock until completion of the transaction in which HOLDLOCK is used. You cannot use HOLDLOCK in a SELECT statement that includes the FOR BROWSE option. HOLDLOCK is equivalent to SERIALIZABLE.&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;UPDLOCK&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;&amp;nbsp;instructs SQL Server to use update locks instead of shared locks while reading a table and holds them until the end of the command or transaction.&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;TABLOCK&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;&amp;nbsp;takes a shared lock on the table that is held until the end of the command. If you also specify HOLDLOCK, the lock is held until the end of the transaction.&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;PAGLOCK&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;&amp;nbsp;is used by default. Directs SQL Server to use shared page locks.&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;TABLOCKX&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;&amp;nbsp;takes an exclusive lock on the table that is held until the end of the command or transaction.&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;READCOMMITTED&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;Perform a scan with the same locking semantics as a transaction running at the READ COMMITTED isolation level. By default, SQL Server operates at this isolation level.&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;READUNCOMMITTED&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;Equivalent to NOLOCK.&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;REPEATABLEREAD&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;Perform a scan with the same locking semantics as a transaction running at the REPEATABLE READ isolation level.&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;SERIALIZABLE&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;Perform a scan with the same locking semantics as a transaction running at the SERIALIZABLE isolation level. Equivalent to HOLDLOCK.&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;READPAST&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;Skip locked rows. This option causes a transaction to skip over rows locked by other transactions that would ordinarily appear in the result set, rather than block the transaction waiting for the other transactions to release their locks on these rows. The READPAST lock hint applies only to transactions operating at READ COMMITTED isolation and will read only past row-level locks. Applies only to the SELECT statement.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;You can only specify the READPAST lock in the READ COMMITTED or REPEATABLE READ isolation levels.&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;ROWLOCK&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;Use row-level locks rather than use the coarser-grained page- and table-level locks.&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;You can specify one of these locking options in a SELECT statement.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;This is the example:&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;i style=&quot;font-family: Verdana; font-size: small;&quot;&gt;SELECT au_fname FROM pubs..authors (holdlock)&lt;/i&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;h2 style=&quot;color: blue; font-family: Verdana, Arial, Helvetica; font-size: 14pt;&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=7205115418491271533&quot; name=&quot;part_5&quot;&gt;&lt;/a&gt;Deadlocks&lt;/h2&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;Deadlock occurs when two users have locks on separate objects and each user wants a lock on the other&#39;s object. For example, User1 has a lock on object &quot;A&quot; and wants a lock on object &quot;B&quot; and User2 has a lock on object &quot;B&quot; and wants a lock on object &quot;A&quot;. In this case, SQL Server ends a deadlock by choosing the user, who will be a deadlock victim. After that, SQL Server rolls back the breaking user&#39;s transaction, sends message number 1205 to notify the user&#39;s application about breaking, and then allows the nonbreaking user&#39;s process to continue.&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;You can decide which connection will be the candidate for deadlock victim by using&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;SET DEADLOCK_PRIORITY&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;. In other case, SQL Server selects the deadlock victim by choosing the process that completes the circular chain of locks.&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;So, in a multiuser situation, your application should check the error 1205 to indicate that the transaction was rolled back, and if it&#39;s so, restart the transaction.&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;Note.&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;&amp;nbsp;To reduce the chance of a deadlock, you should minimize the size of transactions and transaction times.&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;h2 style=&quot;color: blue; font-family: Verdana, Arial, Helvetica; font-size: 14pt;&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=7205115418491271533&quot; name=&quot;part_6&quot;&gt;&lt;/a&gt;View locks (sp_lock)&lt;/h2&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;Sometimes you need a reference to information about locks. Microsoft recommends using the&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;sp_lock&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;&amp;nbsp;system stored procedure to report locks information. This very useful procedure returns the information about SQL Server process ID, which lock the data, about locked database, about locked table ID, about locked page and about type of locking (locktype column).&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;This is the example of using the&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;sp_lock&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;&amp;nbsp;system stored procedure:&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;table style=&quot;font-family: Verdana; width: 100%px;&quot;&gt;&lt;tbody&gt;
&lt;tr bgcolor=&quot;dcdcdc&quot;&gt;&lt;td style=&quot;font-family: Verdana, Arial, Helvetica; font-size: 8pt;&quot;&gt;&lt;pre&gt;spid   locktype                            table_id    page        dbname
------ ----------------------------------- ----------- ----------- ---------------
11     Sh_intent                           688005482   0           master
11     Ex_extent                           0           336         tempdb
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;The information, returned by&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: Verdana; font-size: small;&quot;&gt;sp_lock&lt;/b&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;&amp;nbsp;system stored procedure needs in some clarification, because it&#39;s difficult to understand database name, object name and index name by their ID numbers.&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: Verdana; font-size: small;&quot; /&gt;
&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;Check the link below if you need to get user name, host name, database name, index name object name and object owner instead of their ID numbers:&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://selectinsql.blogspot.com/feeds/7733123078167339521/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://selectinsql.blogspot.com/2012/11/introduction-to-locking-in-sql-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/7733123078167339521'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/7733123078167339521'/><link rel='alternate' type='text/html' href='http://selectinsql.blogspot.com/2012/11/introduction-to-locking-in-sql-server.html' title='Introduction to Locking in SQL Server'/><author><name>Vijay Maurya</name><uri>http://www.blogger.com/profile/00459112937519229095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAq0unsQRC0g7q8LCCjOU5NUrCuyXX5vMfcWbPl5cNsojKH_YS1rJIQL3mxLSTxPXCdJ90rCGzSmU-cFJ9vqjHSMbOxvOb1NaDkURBdhKasrpOq9yuoNpW9_XfPk_1qWU/s220/clip_image001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7205115418491271533.post-8434102262246869353</id><published>2012-11-04T22:37:00.001-08:00</published><updated>2012-11-04T22:37:31.601-08:00</updated><title type='text'>Retrieve Last Inserted Identity of Record</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Shanti; font-size: 14px; line-height: 24px;&quot;&gt;SELECT @@IDENTITY&lt;/span&gt;&lt;br style=&quot;font-family: Shanti; font-size: 14px; line-height: 24px; margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Shanti; font-size: 14px; line-height: 24px;&quot;&gt;SELECT SCOPE_IDENTITY()&lt;/span&gt;&lt;br style=&quot;font-family: Shanti; font-size: 14px; line-height: 24px; margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Shanti; font-size: 14px; line-height: 24px;&quot;&gt;SELECT IDENT_CURRENT(‘TableName’)&lt;/span&gt;&lt;br style=&quot;font-family: Shanti; font-size: 14px; line-height: 24px; margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;font-family: Shanti; font-size: 14px; line-height: 24px; margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Shanti; font-size: 14px; line-height: 24px;&quot;&gt;All of the abouve three will get the identity value but in different approches.&lt;/span&gt;&lt;br style=&quot;font-family: Shanti; font-size: 14px; line-height: 24px; margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;font-family: Shanti; font-size: 14px; line-height: 24px; margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Shanti; font-size: 14px; line-height: 24px;&quot;&gt;The variable @@IDENTITY will return the last generated identity value produced on a connection, without based on the table that produced the value. While @@IDENTITY is limited to the current session, it is not limited to the current scope. This means that if we insert some record in Table1 which has a trigger on the insert and the trigger inserts a record in some other table2 then the @@IDENTITY will return the identity value inserted in Table2.&lt;/span&gt;&lt;br style=&quot;font-family: Shanti; font-size: 14px; line-height: 24px; margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;font-family: Shanti; font-size: 14px; line-height: 24px; margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Shanti; font-size: 14px; line-height: 24px;&quot;&gt;SCOPE_IDENTITY() will return the last IDENTITY value produced on a connection and by a statement in the same scope, without based on the table that produced the value. So we can say that this function is some identical to @@IDENTITY with one exception. like @@IDENTITY will return the last identity value created in the current session, but it will also limit it to your current scope as well . So that means it will return identity value inserted in Table1.&lt;/span&gt;&lt;br style=&quot;font-family: Shanti; font-size: 14px; line-height: 24px; margin: 0px; padding: 0px;&quot; /&gt;&lt;br style=&quot;font-family: Shanti; font-size: 14px; line-height: 24px; margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Shanti; font-size: 14px; line-height: 24px;&quot;&gt;Use SCOPE_IDENTITY() to return the identity of the recently added row in your T SQL Statement or Stored Procedure.&lt;/span&gt;&lt;br style=&quot;font-family: Shanti; font-size: 14px; line-height: 24px; margin: 0px; padding: 0px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Shanti; font-size: 14px; line-height: 24px;&quot;&gt;IDENT_CURRENT will reutrn returns the last IDENTITY value produced in a table, Without based on the connection that created the value, and Without based on the scope of the statement that produced the value. IDENT_CURRENT is not limited by scope and session., So it will retrieve the last generated table identity value.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Shanti; font-size: 14px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;pre id=&quot;pre0&quot; lang=&quot;sql&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;CREATE&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;TABLE&lt;/span&gt; Parent(id &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;int&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;IDENTITY&lt;/span&gt;);

&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;CREATE&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;TABLE&lt;/span&gt; Child(id &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;int&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;IDENTITY&lt;/span&gt;(&lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;100&lt;/span&gt;,&lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt;));

&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;GO&lt;/span&gt;

&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;CREATE&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;TRIGGER&lt;/span&gt; Parentins &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;ON&lt;/span&gt; Parent &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;FOR&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;INSERT&lt;/span&gt;

&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;AS&lt;/span&gt;

&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;BEGIN&lt;/span&gt;

   &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;INSERT&lt;/span&gt; Child &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;DEFAULT&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;VALUES&lt;/span&gt;

END;

&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;GO&lt;/span&gt;

&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;End of trigger definition
&lt;/span&gt;
&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;SELECT&lt;/span&gt; id &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;FROM&lt;/span&gt; Parent;
&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;id is empty.
&lt;/span&gt;
&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;SELECT&lt;/span&gt; id &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;FROM&lt;/span&gt; Child;
&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;ID is empty. 
&lt;/span&gt;
&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;Do the following in Session 1
&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;INSERT&lt;/span&gt; Parent &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;DEFAULT&lt;/span&gt; VALUES;
&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;SELECT&lt;/span&gt; @@IDENTITY;
&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;/*&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;Returns the value 100. This was inserted by the trigger.*/&lt;/span&gt;

&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;SELECT&lt;/span&gt; SCOPE_IDENTITY();
&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;/*&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; Returns the value 1. This was inserted by the
INSERT statement two statements before this query.*/&lt;/span&gt; 

&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;SELECT&lt;/span&gt; IDENT_CURRENT(&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;Child&#39;&lt;/span&gt;);

&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;/*&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; Returns value inserted into Child, that is in the trigger.*/&lt;/span&gt;

&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;SELECT&lt;/span&gt; IDENT_CURRENT(&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;Parent&#39;&lt;/span&gt;);

&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;/*&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; Returns value inserted into Parent. 
This was the INSERT statement four statements before this query.*/&lt;/span&gt; 

&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; Do the following in Session 2.
&lt;/span&gt;
&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;SELECT&lt;/span&gt; @@IDENTITY;

&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;/*&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; Returns NULL because there has been no INSERT action
up to this point in this session.*/&lt;/span&gt; 

&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;SELECT&lt;/span&gt; SCOPE_IDENTITY();

&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;/*&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; Returns NULL because there has been no INSERT action
up to this point in this scope in this session.*/&lt;/span&gt;

&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;SELECT&lt;/span&gt; IDENT_CURRENT(&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;Child&#39;&lt;/span&gt;);

&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;/*&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; Returns the last value inserted into Child.*/&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://selectinsql.blogspot.com/feeds/8434102262246869353/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://selectinsql.blogspot.com/2012/11/retrieve-last-inserted-identity-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/8434102262246869353'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/8434102262246869353'/><link rel='alternate' type='text/html' href='http://selectinsql.blogspot.com/2012/11/retrieve-last-inserted-identity-of.html' title='Retrieve Last Inserted Identity of Record'/><author><name>Vijay Maurya</name><uri>http://www.blogger.com/profile/00459112937519229095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAq0unsQRC0g7q8LCCjOU5NUrCuyXX5vMfcWbPl5cNsojKH_YS1rJIQL3mxLSTxPXCdJ90rCGzSmU-cFJ9vqjHSMbOxvOb1NaDkURBdhKasrpOq9yuoNpW9_XfPk_1qWU/s220/clip_image001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7205115418491271533.post-7098962133786467045</id><published>2012-10-17T22:07:00.002-07:00</published><updated>2012-10-17T22:27:07.296-07:00</updated><title type='text'>Getting started with SQL Server Reporting Services links</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Nice One for startup...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.codeproject.com/Articles/13725/Getting-started-with-SQL-Server-Reporting-Services&quot;&gt;http://www.codeproject.com/Articles/13725/Getting-started-with-SQL-Server-Reporting-Services&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.katieandemil.com/ssrs-create-reports-a-simple-example-of-ssrs-report&quot;&gt;http://www.katieandemil.com/ssrs-create-reports-a-simple-example-of-ssrs-report&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://selectinsql.blogspot.com/feeds/7098962133786467045/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://selectinsql.blogspot.com/2012/10/getting-started-with-sql-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/7098962133786467045'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/7098962133786467045'/><link rel='alternate' type='text/html' href='http://selectinsql.blogspot.com/2012/10/getting-started-with-sql-server.html' title='Getting started with SQL Server Reporting Services links'/><author><name>Vijay Maurya</name><uri>http://www.blogger.com/profile/00459112937519229095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAq0unsQRC0g7q8LCCjOU5NUrCuyXX5vMfcWbPl5cNsojKH_YS1rJIQL3mxLSTxPXCdJ90rCGzSmU-cFJ9vqjHSMbOxvOb1NaDkURBdhKasrpOq9yuoNpW9_XfPk_1qWU/s220/clip_image001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7205115418491271533.post-2885618750430064682</id><published>2012-10-11T21:32:00.001-07:00</published><updated>2012-10-11T21:32:45.744-07:00</updated><title type='text'> Constraints sql server</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;A Constraint is a property that we can assign to column in table. By assigning constraint property on column we can prevent the users to enter inconsistent of data in columns. We can assign these Constraint properties during the time of creation of table (By Using CREATE TABLE statement) or during the time of changing the existing table structure (By Using ALTER TABLE statement).&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;In SQL we have different types of constraints are available those are&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;1.&lt;span style=&quot;border: 0px; font-family: &#39;Times New Roman&#39;; font-size: 7pt; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Primary Key Constraint&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;2.&lt;span style=&quot;border: 0px; font-family: &#39;Times New Roman&#39;; font-size: 7pt; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Unique Key Constraint&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;3.&lt;span style=&quot;border: 0px; font-family: &#39;Times New Roman&#39;; font-size: 7pt; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Foreign Key Constraint&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;4.&lt;span style=&quot;border: 0px; font-family: &#39;Times New Roman&#39;; font-size: 7pt; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Not Null Constraint&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; text-indent: -0.25in; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;5.&lt;span style=&quot;border: 0px; font-family: &#39;Times New Roman&#39;; font-size: 7pt; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Check Constraint&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Now I will explain about each constraint clearly&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Primary key constraint is used to uniquely identify each record in database table. It won’t allow repetition or duplication of data. Each table is having only one primary key constraint and it contains only unique values. Primary key constraint doesn’t accept null values.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Example of creating Primary Key constraint during the time of CREATE TABLE&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;background-color: #f6f4ef; border-spacing: 0px; border: 1pt dashed rgb(165, 42, 42); color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; line-height: 20px; margin: 0px 0px 0.5em; padding: 0px; text-align: left; vertical-align: middle; width: 708px;&quot;&gt;&lt;tbody style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;tr style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border: medium none; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; color: blue; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Create&lt;/span&gt;&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Table&lt;/span&gt;&amp;nbsp;SampleUserDetail&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; color: grey; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;UserID&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;integer&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;PRIMARY&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;KEY&lt;/span&gt;&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;UserName&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;varchar&lt;/span&gt;&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;50&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;),&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;FirstName&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;varchar&lt;/span&gt;&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;50&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;),&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;LastName&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;varchar&lt;/span&gt;&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;50&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; color: grey; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Example of creating Primary Key constraint during the time of ALTER TABLE&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;background-color: #f6f4ef; border-spacing: 0px; border: 1pt dashed rgb(165, 42, 42); color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; line-height: 20px; margin: 0px 0px 0.5em; padding: 0px; text-align: left; vertical-align: middle; width: 708px;&quot;&gt;&lt;tbody style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;tr style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border: medium none; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; color: blue; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;ALTER&lt;/span&gt;&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;TABLE&lt;/span&gt;&amp;nbsp;SampleUserDetail&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;ADD&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;PRIMARY&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;KEY&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;UserID&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;To Drop Primary Key constraint on table use the below statement&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;background-color: #f6f4ef; border-spacing: 0px; border: 1pt dashed rgb(165, 42, 42); color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; line-height: 20px; margin: 0px 0px 0.5em; padding: 0px; text-align: left; vertical-align: middle; width: 708px;&quot;&gt;&lt;tbody style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;tr style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border: medium none; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; color: blue; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;ALTER&lt;/span&gt;&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;TABLE&lt;/span&gt;&amp;nbsp;SampleUserDetail&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;DROP&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Constraint&lt;/span&gt;&amp;nbsp;UserID&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;u&gt;SQL Unique Key Constraint&lt;/u&gt;:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Unique key constraint is same as Primary key Constraint it doesn’t allow duplication or repetition of data in column and we can uniquely identify records in table. The main difference is Primary Key constraint won’t allow null values but unique key constraint allows null values. We have a chance to define only one primary key on table but we can define many unique key constraints on table.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Example of creating Unique Key constraint during the time of table creation&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;background-color: #f6f4ef; border-spacing: 0px; border: 1pt dashed rgb(165, 42, 42); color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; line-height: 20px; margin: 0px 0px 0.5em; padding: 0px; text-align: left; vertical-align: middle; width: 708px;&quot;&gt;&lt;tbody style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;tr style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border: medium none; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; color: blue; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Create&lt;/span&gt;&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Table&lt;/span&gt;&amp;nbsp;SampleUserDetail&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; color: grey; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;UserID&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;integer&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;UserName&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;varchar&lt;/span&gt;&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;50&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;),&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;FirstName&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;varchar&lt;/span&gt;&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;50&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;),&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;LastName&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;varchar&lt;/span&gt;&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;50&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; color: blue; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;CONSTRAINT&lt;/span&gt;&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;us_UserId&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;UNIQUE&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;UserID&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; color: grey; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Example of creating Unique Key constraint during the time of ALTER TABLE&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;background-color: #f6f4ef; border-spacing: 0px; border: 1pt dashed rgb(165, 42, 42); color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; line-height: 20px; margin: 0px 0px 0.5em; padding: 0px; text-align: left; vertical-align: middle; width: 708px;&quot;&gt;&lt;tbody style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;tr style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border: medium none; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; color: blue; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;ALTER&lt;/span&gt;&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;TABLE&lt;/span&gt;&amp;nbsp;SampleUserDetail&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;ADD&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;CONSTRAINT&lt;/span&gt;&amp;nbsp;us_UserId&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;UNIQUE&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;UserID&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;To Drop Unique Key constraint on table use the below statement&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;background-color: #f6f4ef; border-spacing: 0px; border: 1pt dashed rgb(165, 42, 42); color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; line-height: 20px; margin: 0px 0px 0.5em; padding: 0px; text-align: left; vertical-align: middle; width: 708px;&quot;&gt;&lt;tbody style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;tr style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border: medium none; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; color: blue; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;ALTER&lt;/span&gt;&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;TABLE&lt;/span&gt;&amp;nbsp;SampleUserDetail&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;DROP&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Constraint&lt;/span&gt;&amp;nbsp;us_UserId&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Example of Foreign key constraint&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Create one table with primary key and give name as UserDetails&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;background-color: #f6f4ef; border-collapse: collapse; border-spacing: 0px; border: medium none; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; line-height: 20px; margin: 0px 0px 0.5em; padding: 0px; text-align: left; vertical-align: middle; width: 709px;&quot;&gt;&lt;tbody style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;tr style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; height: 16.6pt; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;background-attachment: scroll; background-color: #e36c0a; background-image: none; background-position: 0% 0%; background-repeat: repeat repeat; border: 1pt solid windowtext; font-family: inherit; font-size: 14px; font-style: inherit; height: 16.6pt; margin: 0px; padding: 0in 5.4pt; vertical-align: middle; width: 81.9pt;&quot; valign=&quot;top&quot; width=&quot;109&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;border: 0px; color: white; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;UserID&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;background-attachment: scroll; background-color: #e36c0a; background-image: none; background-position: 0% 0%; background-repeat: repeat repeat; border: 1pt solid windowtext; font-family: inherit; font-size: 14px; font-style: inherit; height: 16.6pt; margin: 0px; padding: 0in 5.4pt; vertical-align: middle; width: 157.5pt;&quot; valign=&quot;top&quot; width=&quot;210&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;border: 0px; color: white; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;UserName&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;background-attachment: scroll; background-color: #e36c0a; background-image: none; background-position: 0% 0%; background-repeat: repeat repeat; border: 1pt solid windowtext; font-family: inherit; font-size: 14px; font-style: inherit; height: 16.6pt; margin: 0px; padding: 0in 5.4pt; vertical-align: middle; width: 119.7pt;&quot; valign=&quot;top&quot; width=&quot;160&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;border: 0px; color: white; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;FirstName&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;background-attachment: scroll; background-color: #e36c0a; background-image: none; background-position: 0% 0%; background-repeat: repeat repeat; border: 1pt solid windowtext; font-family: inherit; font-size: 14px; font-style: inherit; height: 16.6pt; margin: 0px; padding: 0in 5.4pt; vertical-align: middle; width: 119.7pt;&quot; valign=&quot;top&quot; width=&quot;160&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;border: 0px; color: white; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;LastName&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border: 1pt solid windowtext; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0in 5.4pt; vertical-align: middle; width: 81.9pt;&quot; valign=&quot;top&quot; width=&quot;109&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-style: none solid solid none; border-width: medium 1pt 1pt medium; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0in 5.4pt; vertical-align: middle; width: 157.5pt;&quot; valign=&quot;top&quot; width=&quot;210&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;SureshDasari&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-style: none solid solid none; border-width: medium 1pt 1pt medium; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0in 5.4pt; vertical-align: middle; width: 119.7pt;&quot; valign=&quot;top&quot; width=&quot;160&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Suresh&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-style: none solid solid none; border-width: medium 1pt 1pt medium; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0in 5.4pt; vertical-align: middle; width: 119.7pt;&quot; valign=&quot;top&quot; width=&quot;160&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Dasari&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border: 1pt solid windowtext; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0in 5.4pt; vertical-align: middle; width: 81.9pt;&quot; valign=&quot;top&quot; width=&quot;109&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-style: none solid solid none; border-width: medium 1pt 1pt medium; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0in 5.4pt; vertical-align: middle; width: 157.5pt;&quot; valign=&quot;top&quot; width=&quot;210&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;PrasanthiDonthi&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-style: none solid solid none; border-width: medium 1pt 1pt medium; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0in 5.4pt; vertical-align: middle; width: 119.7pt;&quot; valign=&quot;top&quot; width=&quot;160&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Prasanthi&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-style: none solid solid none; border-width: medium 1pt 1pt medium; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0in 5.4pt; vertical-align: middle; width: 119.7pt;&quot; valign=&quot;top&quot; width=&quot;160&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Donthi&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border: 1pt solid windowtext; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0in 5.4pt; vertical-align: middle; width: 81.9pt;&quot; valign=&quot;top&quot; width=&quot;109&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-style: none solid solid none; border-width: medium 1pt 1pt medium; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0in 5.4pt; vertical-align: middle; width: 157.5pt;&quot; valign=&quot;top&quot; width=&quot;210&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;MaheshDasari&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-style: none solid solid none; border-width: medium 1pt 1pt medium; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0in 5.4pt; vertical-align: middle; width: 119.7pt;&quot; valign=&quot;top&quot; width=&quot;160&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Mahesh&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-style: none solid solid none; border-width: medium 1pt 1pt medium; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0in 5.4pt; vertical-align: middle; width: 119.7pt;&quot; valign=&quot;top&quot; width=&quot;160&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Dasari&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;After create another table with Foreign Key and give name as SalaryDetails&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;background-color: #f6f4ef; border-collapse: collapse; border-spacing: 0px; border: medium none; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; line-height: 20px; margin: 0px 0px 0.5em; padding: 0px; text-align: left; vertical-align: middle; width: 709px;&quot;&gt;&lt;tbody style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;tr style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;background-attachment: scroll; background-color: #e36c0a; background-image: none; background-position: 0% 0%; background-repeat: repeat repeat; border: 1pt solid windowtext; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0in 5.4pt; vertical-align: middle; width: 159.6pt;&quot; valign=&quot;top&quot; width=&quot;213&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;border: 0px; color: white; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;SalID&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;background-attachment: scroll; background-color: #e36c0a; background-image: none; background-position: 0% 0%; background-repeat: repeat repeat; border: 1pt solid windowtext; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0in 5.4pt; vertical-align: middle; width: 159.6pt;&quot; valign=&quot;top&quot; width=&quot;213&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;border: 0px; color: white; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Salary&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;background-attachment: scroll; background-color: #e36c0a; background-image: none; background-position: 0% 0%; background-repeat: repeat repeat; border: 1pt solid windowtext; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0in 5.4pt; vertical-align: middle; width: 159.6pt;&quot; valign=&quot;top&quot; width=&quot;213&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;border: 0px; color: white; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;UserID&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border: 1pt solid windowtext; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0in 5.4pt; vertical-align: middle; width: 159.6pt;&quot; valign=&quot;top&quot; width=&quot;213&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-style: none solid solid none; border-width: medium 1pt 1pt medium; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0in 5.4pt; vertical-align: middle; width: 159.6pt;&quot; valign=&quot;top&quot; width=&quot;213&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;10000&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-style: none solid solid none; border-width: medium 1pt 1pt medium; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0in 5.4pt; vertical-align: middle; width: 159.6pt;&quot; valign=&quot;top&quot; width=&quot;213&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;1&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border: 1pt solid windowtext; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0in 5.4pt; vertical-align: middle; width: 159.6pt;&quot; valign=&quot;top&quot; width=&quot;213&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-style: none solid solid none; border-width: medium 1pt 1pt medium; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0in 5.4pt; vertical-align: middle; width: 159.6pt;&quot; valign=&quot;top&quot; width=&quot;213&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;20000&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-style: none solid solid none; border-width: medium 1pt 1pt medium; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0in 5.4pt; vertical-align: middle; width: 159.6pt;&quot; valign=&quot;top&quot; width=&quot;213&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;2&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border: 1pt solid windowtext; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0in 5.4pt; vertical-align: middle; width: 159.6pt;&quot; valign=&quot;top&quot; width=&quot;213&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-style: none solid solid none; border-width: medium 1pt 1pt medium; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0in 5.4pt; vertical-align: middle; width: 159.6pt;&quot; valign=&quot;top&quot; width=&quot;213&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;30000&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-style: none solid solid none; border-width: medium 1pt 1pt medium; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0in 5.4pt; vertical-align: middle; width: 159.6pt;&quot; valign=&quot;top&quot; width=&quot;213&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;3&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;The column “UserID” is a primary key in UserDetails table&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;The column “SalID” is a foreign key in SalaryDetails tables&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;If you observe above two tables UserID in “UserDetails” table points to UserID in “SalaryDetails”&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Example of creating Foreign Key constraint during the time of table creation&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;background-color: #f6f4ef; border-spacing: 0px; border: 1pt dashed rgb(165, 42, 42); color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; line-height: 20px; margin: 0px 0px 0.5em; padding: 0px; text-align: left; vertical-align: middle; width: 708px;&quot;&gt;&lt;tbody style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;tr style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border: medium none; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; color: blue; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Create&lt;/span&gt;&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Table&lt;/span&gt;&amp;nbsp;SalaryDetails&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; color: grey; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;SalaryID&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;integer&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Salary&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;integer&lt;/span&gt;&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;UserID&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;varchar&lt;/span&gt;&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;50&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;),&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; color: blue; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;PRIMARY&lt;/span&gt;&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;KEY&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;SalaryID&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;),&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; color: blue; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;CONSTRAINT&lt;/span&gt;&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;fk_SalaryID&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;FOREIGN&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;KEY&lt;/span&gt;&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;UserID&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; color: blue; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;REFERENCES&lt;/span&gt;&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;UserDetails&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;UserID&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; color: grey; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Example of creating Foreign Key constraint during the time of ALTER TABLE&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;background-color: #f6f4ef; border-spacing: 0px; border: 1pt dashed rgb(165, 42, 42); color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; line-height: 20px; margin: 0px 0px 0.5em; padding: 0px; text-align: left; vertical-align: middle; width: 708px;&quot;&gt;&lt;tbody style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;tr style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border: medium none; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; color: blue; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;ALTER&lt;/span&gt;&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;TABLE&lt;/span&gt;&amp;nbsp;SalaryDetails&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;ADD&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;CONSTRAINT&lt;/span&gt;&amp;nbsp;fk_SalaryID&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;FOREIGN&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;KEY&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;UserID&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;REFERENCES&lt;/span&gt;UserDetails&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;UserID&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;To Drop Foreign Key constraint on table use the below statement&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;background-color: #f6f4ef; border-spacing: 0px; border: 1pt dashed rgb(165, 42, 42); color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; line-height: 20px; margin: 0px 0px 0.5em; padding: 0px; text-align: left; vertical-align: middle; width: 708px;&quot;&gt;&lt;tbody style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;tr style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border: medium none; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; color: blue; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;ALTER&lt;/span&gt;&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;TABLE&lt;/span&gt;&amp;nbsp;SampleUserDetail&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;DROP&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Constraint&lt;/span&gt;&amp;nbsp;fk_SalaryID&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;border: 0px; color: #984806; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;SQL Not NULL Constraint:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;If we set Not Null constraint property on any column in table that column won’t accept NULL or Empty values. If you want enforce any column not to accept NULL or empty value just set Not NULL Constraint property for that particular column&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Example of creating NOT NULL constraint during the time of table creation&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;background-color: #f6f4ef; border-spacing: 0px; border: 1pt dashed rgb(165, 42, 42); color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; line-height: 20px; margin: 0px 0px 0.5em; padding: 0px; text-align: left; vertical-align: middle; width: 708px;&quot;&gt;&lt;tbody style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;tr style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border: medium none; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; color: blue; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Create&lt;/span&gt;&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Table&lt;/span&gt;&amp;nbsp;SampleUserDetail&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; color: grey; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;UserID&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;integer&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;NOT&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;NULL,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;UserName&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;varchar&lt;/span&gt;&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;50&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;NOT&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;NULL,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;FirstName&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;varchar&lt;/span&gt;&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;50&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;),&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;LastName&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;varchar&lt;/span&gt;&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;50&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; color: grey; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;u&gt;SQL Check Constraint&lt;/u&gt;:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;The check constraint is used to limit the value range that can be placed in a column. If we set Check constraint property on particular column the values in particular column must satisfy condition set by check constraint. &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Example of creating Check constraint during the time of CREATE TABLE&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;background-color: #f6f4ef; border-spacing: 0px; border: 1pt dashed rgb(165, 42, 42); color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; line-height: 20px; margin: 0px 0px 0.5em; padding: 0px; text-align: left; vertical-align: middle; width: 708px;&quot;&gt;&lt;tbody style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;tr style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border: medium none; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; color: blue; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Create&lt;/span&gt;&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Table&lt;/span&gt;&amp;nbsp;SampleUserDetail&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; color: grey; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;UserID&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;integer&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;NOT&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;NULL&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;CHECK&lt;/span&gt;&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;UserID&amp;nbsp;&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&lt;/span&gt;&amp;nbsp;0&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;),&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;UserName&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;varchar&lt;/span&gt;&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;50&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;),&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;FirstName&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;varchar&lt;/span&gt;&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;50&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;),&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;LastName&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;varchar&lt;/span&gt;&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;50&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; color: grey; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Example of creating Check constraint during the time of ALTER TABLE&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;background-color: #f6f4ef; border-spacing: 0px; border: 1pt dashed rgb(165, 42, 42); color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; line-height: 20px; margin: 0px 0px 0.5em; padding: 0px; text-align: left; vertical-align: middle; width: 708px;&quot;&gt;&lt;tbody style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;tr style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border: medium none; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; color: blue; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;ALTER&lt;/span&gt;&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;TABLE&lt;/span&gt;&amp;nbsp;SampleUserDetails&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;ADD&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;CONSTRAINT&lt;/span&gt;&amp;nbsp;chk_UserID&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;CHECK&lt;/span&gt;&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;UserID&amp;nbsp;&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&lt;/span&gt;&amp;nbsp;0&lt;span style=&quot;border: 0px; color: grey; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;To Drop Check constraint on table use the below statement&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;background-color: #f6f4ef; border-spacing: 0px; border: 1pt dashed rgb(165, 42, 42); color: #222222; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; line-height: 20px; margin: 0px 0px 0.5em; padding: 0px; text-align: left; vertical-align: middle; width: 708px;&quot;&gt;&lt;tbody style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;tr style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td style=&quot;border: medium none; font-family: inherit; font-size: 14px; font-style: inherit; margin: 0px; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;border: 0px; font-family: inherit; font-size: 14px; font-style: inherit; line-height: normal; margin: 0px 0px 0in; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; color: blue; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;ALTER&lt;/span&gt;&lt;span style=&quot;border: 0px; font-family: Verdana, sans-serif; font-size: 10pt; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;TABLE&lt;/span&gt;&amp;nbsp;SampleUserDetails&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;DROP&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;border: 0px; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;CONSTRAINT&lt;/span&gt;&amp;nbsp;chk_UserID&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;a href=&quot;&quot; name=&quot;more&quot; style=&quot;background-color: #f6f4ef; border: 0px; color: #d1580d; font-family: Georgia, Times, &#39;Times New Roman&#39;; font-size: 14px; line-height: 20px; margin: 0px; padding: 0px; text-decoration: underline; vertical-align: baseline;&quot;&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://selectinsql.blogspot.com/feeds/2885618750430064682/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://selectinsql.blogspot.com/2012/10/constraints-sql-server.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/2885618750430064682'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/2885618750430064682'/><link rel='alternate' type='text/html' href='http://selectinsql.blogspot.com/2012/10/constraints-sql-server.html' title=' Constraints sql server'/><author><name>Vijay Maurya</name><uri>http://www.blogger.com/profile/00459112937519229095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAq0unsQRC0g7q8LCCjOU5NUrCuyXX5vMfcWbPl5cNsojKH_YS1rJIQL3mxLSTxPXCdJ90rCGzSmU-cFJ9vqjHSMbOxvOb1NaDkURBdhKasrpOq9yuoNpW9_XfPk_1qWU/s220/clip_image001.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7205115418491271533.post-4277356443217098149</id><published>2012-08-29T00:14:00.000-07:00</published><updated>2012-08-29T00:14:49.381-07:00</updated><title type='text'>SQL Server  Stored Procedure Coding Standard</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white;&quot;&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Liberation Sans, DejaVu Sans, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 17.999998092651367px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;
&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;Must read before start writing stored procedure in SQL server 2005&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;
&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;
&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 13.63636302947998px; font-weight: bold; line-height: 17.999998092651367px;&quot;&gt;Best practices&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;
&lt;/div&gt;
&lt;ul style=&quot;border: 0px; color: black; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 18px; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1em 30px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;capitalize reserved words&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;main keywords on new line&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;can&#39;t get used to commas before columns&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;always use short meaningful table aliases&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;prefix views with v&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;prefix stored procs with sp (however don&#39;t use &quot;sp_&quot; which is reserved for built in procs)&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;don&#39;t prefix tables&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;table names singular&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 14px; line-height: 18px;&quot;&gt;Use the brackets around objects, so the query engine excplicitly knows a field when it sees it&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;
&lt;/div&gt;
&lt;ul style=&quot;border: 0px; color: black; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 18px; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1em 30px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;Use THE SAME CASE as table object names and field names&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;When calling SPs from application, use the fully qualified [dbo].[procName] with correct owner AND case. Not Kidding! Read the articles above!&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;Reference the owner of the object so security is explicitly known and doesn&#39;t have to be figured out&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;Use SET NOCOUNT ON and SET NOCOUNT OFF to eliminate the extra overhead to keep track of how many records are updated in the stored proc unless you need them. Normally, you don&#39;t and you can gain a huge increase in performance.&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;border: 0px; clear: both; color: black; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 18px; margin-bottom: 1em; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
&lt;strong style=&quot;background-color: transparent; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Preferences&lt;/strong&gt;&lt;/div&gt;
&lt;ul style=&quot;border: 0px; color: black; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 18px; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1em 30px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;Prefix stored procs with proc&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;Suffix every stored proc with SEL, UPD, DEL, INS (or SELECT, UPDATE, DELETE, INSERT)&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;Capitalize reserved words&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;Main keywords on new line (scripting)&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;Use commas before columns (scripting)&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;Prefix views with vw&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;Don&#39;t prefix tables&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;Table names singular&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;Add a suffix to the standard names like &quot;_ByPK&quot;, &quot;_OrderByLastName&quot;, or &quot;_Top15Orders&quot; for variations on the stock SP&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;
&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;Example&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; line-height: 20px;&quot;&gt;
&lt;span style=&quot;color: maroon; font-family: verdana;&quot;&gt;&lt;span style=&quot;font-size: 12.727272033691406px;&quot;&gt;&lt;b&gt;&lt;u&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: darkblue; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 18px;&quot;&gt;SELECT&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;lang-sql prettyprint&quot; style=&quot;background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; column1
&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; column2
&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; column3
&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; color: darkblue; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;COALESCE&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;column4&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; color: maroon; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;foo&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; column4&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; color: darkblue; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;FROM&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&amp;nbsp; &amp;nbsp; tablename&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; color: darkblue; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;WHERE&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&amp;nbsp; &amp;nbsp; column1 &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; color: maroon; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;bar&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; color: darkblue; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;ORDER&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; color: darkblue; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;BY&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; 
&amp;nbsp; &amp;nbsp; &amp;nbsp; column1
&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; column2&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;
&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;Do&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 13px;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Section1&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;
&lt;ol style=&quot;margin-top: 0in;&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Write&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;SET NOCOUNT ON&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&amp;nbsp;in top of the procedure&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Every SELECT statement should return with&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;WITH NOLOCK&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&amp;nbsp;key word.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Procedure should be rerunnable, Use&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;IF EXISTS&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&amp;nbsp;statement …&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;span class=&quot;subhead11&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;procedure always should have return value or&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;subhead11&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;return parameter&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;subhead11&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;subhead11&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px; font-weight: normal;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;span class=&quot;subhead11&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Use&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;subhead11&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;output parameter&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;subhead11&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&amp;nbsp;wherever necessary&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;subhead11&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px; font-weight: normal;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Each code (for loop, If else etc) should be in&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;BEGIN .. END&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&amp;nbsp;block&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;. For conditional checks( if else), please follow the same.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;Use&amp;nbsp;&lt;b&gt;&#39;Derived tables&lt;/b&gt;&#39; wherever possible, as they perform better. Consider the following query to find the second highest salary from the Employees table:&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;SELECT&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: magenta;&quot;&gt;MIN&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;Amount&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt;&amp;nbsp;Department&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;WHERE&lt;/span&gt;&amp;nbsp;DeptID&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;IN&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: grey; font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;TOP&lt;/span&gt;&amp;nbsp;2 DeptID&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;span style=&quot;color: #3333ff;&quot;&gt;FROM&lt;/span&gt;&amp;nbsp;Department&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;ORDER&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;BY&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;Amount&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;Desc&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;
&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;The same query can be re-written using a derived table, as shown&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;
&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;below,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;and it performs twice as fast as the above query:&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;SELECT&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: magenta;&quot;&gt;MIN&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;Amount&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;color: grey; font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;(&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;TOP&lt;/span&gt;&amp;nbsp;2 Amount&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt;&amp;nbsp;Department&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;ORDER&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;BY&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;Amount&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;DESC&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;span style=&quot;color: grey; font-family: &#39;Courier New&#39;;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt;&amp;nbsp;D&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: maroon; font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;Don’t&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol start=&quot;8&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; margin-top: 0in;&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;Do not include any&amp;nbsp;&lt;b&gt;business logics&lt;/b&gt;&amp;nbsp;in your stored procedures, build a Business Logic Layer for that. Keep to what SQL was made for, inserting, deleting and selecting data.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;Do not use&amp;nbsp;&lt;b&gt;reserved words&lt;/b&gt;, if you can’t avoid the use square brackets like: [event]&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;Do not use&amp;nbsp;&lt;b&gt;‘SP_’ or ‘SYS_’&lt;/b&gt;&amp;nbsp;as a prefix in the stored procedure name.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;subhead11&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px; font-weight: normal;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;Do proper Error handling in the procedure : use&amp;nbsp;&lt;b&gt;sp_addmessage&lt;/b&gt;&amp;nbsp;to create user defined messages and&amp;nbsp;&lt;b&gt;raiserror&lt;/b&gt;&amp;nbsp;for raising and passing the error code and description back to calling application.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Try to avoid wildcard characters at the beginning of a word while searching using the&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;LIKE&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&amp;nbsp;keyword&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;, as that results in an index scan, which defeats the purpose of an index. The following statement results in an index scan, while the second statement results in an index seek:&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;SELECT&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;Ename&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt;&amp;nbsp;Employee&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;WHERE&lt;/span&gt;&amp;nbsp;Ename&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;LIKE&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;&#39;%han&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; margin-left: 0.25in; text-indent: 0.25in;&quot;&gt;
&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;SELECT&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;Ename&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt;&amp;nbsp;Employee&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;WHERE&lt;/span&gt;&amp;nbsp;Ename&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;LIKE&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;&#39;A%n&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; margin-left: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;Also avoid searching using not equals operators (&lt;b&gt;&amp;lt;&amp;gt; and NOT&lt;/b&gt;) as they result in table and index scans.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol start=&quot;13&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; margin-top: 0in;&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;Avoid the&amp;nbsp;&lt;b&gt;creation of temporary&lt;/b&gt;&amp;nbsp;tables while processing data as much as possible, creating a temporary table means more disk I/O.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;Consider using advanced SQL, views, SQL Server 2000 table variable, or derived tables, instead of temporary tables.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;
&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;14. Do not use&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;SELECT&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;*&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;in your queries. Always write the required Column names&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;
&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;after&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;the&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;SELECT&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&amp;nbsp;statement, like:&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; margin-left: 0.25in; text-indent: 0.25in;&quot;&gt;
&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;SELECT&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;CustomerID&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&amp;nbsp;CustomerFirstName&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&amp;nbsp;City&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; margin-left: 0.25in; text-indent: 0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;This technique results in reduced disk I/O and better performance.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol start=&quot;15&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; margin-top: 0in;&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;Do not wtite insert statement without defining the column name like below&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;INSERT&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;INTO&lt;/span&gt;&amp;nbsp;LMS_ERROR_LOG&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;VALUES&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;span style=&quot;color: grey; font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;@pProspectId&lt;span style=&quot;color: grey;&quot;&gt;,&amp;nbsp;&lt;/span&gt;@pMethodName&lt;span style=&quot;color: grey;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;@pErrorMsg&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;getdate&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;()&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;Always define the column name in the insert statement like below&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;INSERT&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;INTO&lt;/span&gt;&amp;nbsp;LMS_ERROR_LOG&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;( PROSPECT_ID&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;METHOD_NAME&lt;span style=&quot;color: grey;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;EXCEPTION&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;DATE_TIME&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;VALUES&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;@&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;ProspectId&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;@pMethodName&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;@pErrorMsg&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;getdate&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;()&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol start=&quot;16&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; margin-top: 0in;&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;Do not write multiple declare statement inside the procedure like&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;Declare&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;@Fname&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;nvarchar&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;100&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Declare&lt;/span&gt;&amp;nbsp;@Mname&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;nvarchar&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;100&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; margin-left: 0.25in; text-indent: 0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;Instead of that you can write like below&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; margin-left: 0.25in; text-indent: 0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;Declare&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; margin-left: 0.25in; text-indent: 0.25in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;@Fname&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;nvarchar&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;100&lt;span style=&quot;color: grey;&quot;&gt;),&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; margin-left: 0.25in; text-indent: 0.25in;&quot;&gt;
&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;@Mname&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;nvarchar&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;100&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: maroon; font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;I normally follow below guidelines too for consitancy&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol start=&quot;17&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; margin-top: 0in;&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;Stored procedure name should be in CAPS latters for consistancy&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;Do Proper indenting ( 2 tabs for start and same for next levels)&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;Stored procedure name should follow some standrad to identify as below&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;PROJECT_NAME_&amp;lt;SELECT OR INSERT OR UPDATE OR DELETE&amp;gt;_&amp;lt;OPERATION or TABLE_NAME&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0px 0px 0.25em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;Global parameter start with &quot;p&quot; and local parameter start with &quot;v&quot; . and for&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;OUT&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&amp;nbsp;parameter name should @pOut&amp;lt;ParameterName&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0px 0px 0.25em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;Created By/Date and purpose must be in the procedure as comment&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;All key word should be in the CAPITAL latters&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://selectinsql.blogspot.com/feeds/4277356443217098149/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://selectinsql.blogspot.com/2012/08/sql-server-stored-procedure-coding.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/4277356443217098149'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/4277356443217098149'/><link rel='alternate' type='text/html' href='http://selectinsql.blogspot.com/2012/08/sql-server-stored-procedure-coding.html' title='SQL Server  Stored Procedure Coding Standard'/><author><name>Vijay Maurya</name><uri>http://www.blogger.com/profile/00459112937519229095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAq0unsQRC0g7q8LCCjOU5NUrCuyXX5vMfcWbPl5cNsojKH_YS1rJIQL3mxLSTxPXCdJ90rCGzSmU-cFJ9vqjHSMbOxvOb1NaDkURBdhKasrpOq9yuoNpW9_XfPk_1qWU/s220/clip_image001.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7205115418491271533.post-2007249033321052730</id><published>2012-06-05T22:12:00.001-07:00</published><updated>2012-06-05T22:17:53.584-07:00</updated><title type='text'>Use Sysobjects in SQL Server to Find Useful Database Information</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #37414b; font-family: &#39;Helvetica Neue&#39;, Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
Everything about your SQL Server database is stored in its system tables. I doubt that you spend a lot of time inspecting the system tables since you are too busy with your user tables. However, you may need to do something unusual once in a while, such as list all the triggers in your database. You could inspect your tables one by one, but that can become quite labor intensive if you have 500 tables.&lt;/div&gt;
&lt;div style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #37414b; font-family: &#39;Helvetica Neue&#39;, Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
This is where knowledge of the sysobjects table comes in handy. While it is not recommended that you update this table, you are certainly allowed to interrogate it.&lt;/div&gt;
&lt;div style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #37414b; font-family: &#39;Helvetica Neue&#39;, Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
In most cases, the two columns most useful to you will be sysobjects.name and sysobjects.xtype. The former lists the names of the objects in question, while the latter identifies the type of object, using the following codes:&lt;/div&gt;
&lt;ul style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #37414b; font-family: &#39;Helvetica Neue&#39;, Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 20px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot; type=&quot;disc&quot;&gt;
&lt;li style=&quot;border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-style: inherit; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b&gt;C:&lt;/b&gt;&amp;nbsp;Check constraint&lt;/li&gt;
&lt;li style=&quot;border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-style: inherit; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b&gt;D:&lt;/b&gt;&amp;nbsp;Default constraint&lt;/li&gt;
&lt;li style=&quot;border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-style: inherit; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b&gt;F:&lt;/b&gt;&amp;nbsp;Foreign Key constraint&lt;/li&gt;
&lt;li style=&quot;border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-style: inherit; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b&gt;L:&lt;/b&gt;&amp;nbsp;Log&lt;/li&gt;
&lt;li style=&quot;border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-style: inherit; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b&gt;P:&lt;/b&gt;&amp;nbsp;Stored procedure&lt;/li&gt;
&lt;li style=&quot;border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-style: inherit; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b&gt;PK:&lt;/b&gt;&amp;nbsp;Primary Key constraint&lt;/li&gt;
&lt;li style=&quot;border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-style: inherit; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b&gt;RF:&lt;/b&gt;&amp;nbsp;Replication Filter stored procedure&lt;/li&gt;
&lt;li style=&quot;border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-style: inherit; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b&gt;S:&lt;/b&gt;&amp;nbsp;System table&lt;/li&gt;
&lt;li style=&quot;border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-style: inherit; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b&gt;TR:&lt;/b&gt;&amp;nbsp;Trigger&lt;/li&gt;
&lt;li style=&quot;border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-style: inherit; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b&gt;U:&lt;/b&gt;&amp;nbsp;User table&lt;/li&gt;
&lt;li style=&quot;border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-style: inherit; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b&gt;UQ:&lt;/b&gt;&amp;nbsp;Unique constraint&lt;/li&gt;
&lt;li style=&quot;border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-style: inherit; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b&gt;V:&lt;/b&gt;&amp;nbsp;View&lt;/li&gt;
&lt;li style=&quot;border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-style: inherit; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b&gt;X:&lt;/b&gt;&amp;nbsp;Extended stored procedure&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #37414b; font-family: &#39;Helvetica Neue&#39;, Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
In the case of triggers, three other columns that identify the type of trigger are of interest: deltrig, instrig, and uptrig.&lt;/div&gt;
&lt;div style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #37414b; font-family: &#39;Helvetica Neue&#39;, Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
You can list all the objects of any type of interest using the following:&lt;/div&gt;
&lt;pre style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #345220; font-family: consolas, &#39;Courier New&#39;, courier, monospace; font-size: 14px; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;SELECT * FROM sysobjects WHERE xtype = &amp;lt;type of interest&amp;gt;&lt;/pre&gt;
&lt;div style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #37414b; font-family: &#39;Helvetica Neue&#39;, Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
In the special case of triggers, which are owned by their parent table, you might want to interrogate the database using a self-join, like this:&lt;/div&gt;
&lt;pre style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #345220; font-family: consolas, &#39;Courier New&#39;, courier, monospace; font-size: 14px; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;SELECT 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sys2.[name] TableName, 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sys1.[name] TriggerName, 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CASE 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN Sys1.deltrig &amp;gt; 0 THEN&#39;Delete&#39; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN Sys1.instrig &amp;gt; 0 THEN&#39;Insert&#39; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN Sys1.updtrig &amp;gt; 0 THEN&#39;Update&#39; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; END&#39;TriggerType&#39; 
FROM 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sysobjects Sys1 JOIN sysobjects Sys2 ON Sys1.parent_obj = Sys2.[id] 
WHERE Sys1.xtype=&#39;TR&#39;
ORDERBY TableName&lt;/pre&gt;
&lt;div style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #37414b; font-family: &#39;Helvetica Neue&#39;, Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
In SQL Server 2005, the preferred technique is to use the system views. This approach will insulate your queries from any changes that Microsoft might choose to make to the system tables.&lt;/div&gt;
&lt;div style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #37414b; font-family: &#39;Helvetica Neue&#39;, Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
Here is a simple example, using the INFORMATION_SCHEMA_TABLES view:&lt;/div&gt;
&lt;pre style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #345220; font-family: consolas, &#39;Courier New&#39;, courier, monospace; font-size: 14px; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;SELECT TABLE_SCHEMA, TABLE_NAME, TABLE_TYPE 
FROMINFORMATION_SCHEMA.TABLES
ORDERBY TABLE_SCHEMA, TABLE_NAME&lt;/pre&gt;
&lt;div style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #37414b; font-family: &#39;Helvetica Neue&#39;, Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
Run this query against&amp;nbsp;the AdventureWorks database&amp;nbsp;or any of your own databases to produce a quick list of the tables.&lt;/div&gt;
&lt;div style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #37414b; font-family: &#39;Helvetica Neue&#39;, Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
In order to illustrate the power of these schema queries, look at the following statement, which will list all functions and procedures within the selected database:&lt;/div&gt;
&lt;pre style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #345220; font-family: consolas, &#39;Courier New&#39;, courier, monospace; font-size: 14px; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;SELECT*FROMINFORMATION_SCHEMA.ROUTINES
ORDERBY ROUTINE_TYPE, ROUTINE_NAME&lt;/pre&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://selectinsql.blogspot.com/feeds/2007249033321052730/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://selectinsql.blogspot.com/2012/06/use-sysobjects-in-sql-server-to-find.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/2007249033321052730'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/2007249033321052730'/><link rel='alternate' type='text/html' href='http://selectinsql.blogspot.com/2012/06/use-sysobjects-in-sql-server-to-find.html' title='Use Sysobjects in SQL Server to Find Useful Database Information'/><author><name>Vijay Maurya</name><uri>http://www.blogger.com/profile/00459112937519229095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAq0unsQRC0g7q8LCCjOU5NUrCuyXX5vMfcWbPl5cNsojKH_YS1rJIQL3mxLSTxPXCdJ90rCGzSmU-cFJ9vqjHSMbOxvOb1NaDkURBdhKasrpOq9yuoNpW9_XfPk_1qWU/s220/clip_image001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7205115418491271533.post-5092102614633881482</id><published>2012-06-05T22:07:00.000-07:00</published><updated>2012-06-05T22:07:02.685-07:00</updated><title type='text'>sys.procedure in   sql server</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;/div&gt;
&amp;nbsp;if you want to search for specific information about stored procedures in your database. Rather than look one by one through the code, you can query the SQL Server&amp;nbsp;&lt;strong&gt;sys.objects&lt;/strong&gt;&amp;nbsp;and&lt;strong&gt;&amp;nbsp;sys.procedures&lt;/strong&gt;&amp;nbsp;tables to find exactly what you are looking for.&lt;br /&gt;
To search for stored procedures that were created or modified on a specific date, you can directly search either the&amp;nbsp;&lt;strong&gt;sys.objects&lt;/strong&gt;&amp;nbsp;and&lt;strong&gt;&amp;nbsp;sys.procedures&lt;/strong&gt;&amp;nbsp;tables.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
You can run exactly the same query against the&amp;nbsp;&lt;strong&gt;sys.procedures&lt;/strong&gt;&amp;nbsp;table. Since this table is dedicated to storing detailed information about your database’s stored procedures you do not need to include a type filter with your query.&lt;/div&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain1&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;&quot; width=&quot;100%&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id=&quot;pre1&quot; lang=&quot;sql&quot; style=&quot;background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(251, 237, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(251, 237, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(251, 237, 187); border-top-style: solid; border-top-width: 1px; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 9pt; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; text-align: -webkit-auto; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;USE&lt;/span&gt; DatabaseName
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;GO&lt;/span&gt; 
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; modify_date,name,create_date
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt; sys.procedures
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;ORDER&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;BY&lt;/span&gt; modify_date &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;DESC&lt;/span&gt;
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;GO&lt;/span&gt;&lt;/pre&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
As you can see, the sys.procedures table is quite useful, but you can use it to query more than just the name and create/modify dates.&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
For example, you can query the sys.prodedures table for&amp;nbsp;&lt;strong&gt;stored procedures that contain specific text&lt;/strong&gt;. This is really a handy function that can be useful if you are combing through an unfamiliar database or want to find very specific code quickly. You can even return the text of the procedure directly in your query so that you can quickly analyze each of the returned results quickly without having to find and open the procedure in SSMS.&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
Here is an example query that filters stored procedures to return only ones that contain the SQL CHARINDEX function:&lt;/div&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain2&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;&quot; width=&quot;100%&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id=&quot;pre2&quot; lang=&quot;sql&quot; style=&quot;background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(251, 237, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(251, 237, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(251, 237, 187); border-top-style: solid; border-top-width: 1px; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 9pt; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; text-align: -webkit-auto; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;USE&lt;/span&gt; DatabaseName
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;GO&lt;/span&gt;
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; modify_date,name,create_date
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt; sys.procedures
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;WHERE&lt;/span&gt; OBJECT_DEFINITION(OBJECT_ID) &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;LIKE&lt;/span&gt; &lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;%charindex%&#39;&lt;/span&gt;
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;ORDER&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;BY&lt;/span&gt; modify_date &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;DESC&lt;/span&gt;
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;GO&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://selectinsql.blogspot.com/feeds/5092102614633881482/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://selectinsql.blogspot.com/2012/06/sysprocedure-in-sql-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/5092102614633881482'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/5092102614633881482'/><link rel='alternate' type='text/html' href='http://selectinsql.blogspot.com/2012/06/sysprocedure-in-sql-server.html' title='sys.procedure in   sql server'/><author><name>Vijay Maurya</name><uri>http://www.blogger.com/profile/00459112937519229095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAq0unsQRC0g7q8LCCjOU5NUrCuyXX5vMfcWbPl5cNsojKH_YS1rJIQL3mxLSTxPXCdJ90rCGzSmU-cFJ9vqjHSMbOxvOb1NaDkURBdhKasrpOq9yuoNpW9_XfPk_1qWU/s220/clip_image001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7205115418491271533.post-967004157407784554</id><published>2012-05-28T22:49:00.002-07:00</published><updated>2012-05-28T22:49:40.093-07:00</updated><title type='text'>INFORMATION_SCHEMA.COLUMNS</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;
The INFORMATION_SCHEMA.COLUMNS view allows you to get information about all columns for all tables and views within a database. By default it will show you this information for every single table and view that is in the database.&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;
&lt;u&gt;&lt;b&gt;Explanation&lt;/b&gt;&lt;/u&gt;This view can be called from any of the databases in an instance of SQL Server and will return the results for the data within that particular database.&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;
The columns that this view returns are as follows:&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;4&quot; cellspacing=&quot;0&quot; style=&quot;background-color: white; color: black; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;th bgcolor=&quot;#c0c0c0&quot; style=&quot;background-color: silver; font-size: 10pt;&quot;&gt;Column name&lt;/th&gt;&lt;th bgcolor=&quot;#c0c0c0&quot; style=&quot;background-color: silver; font-size: 10pt;&quot;&gt;Data type&lt;/th&gt;&lt;th bgcolor=&quot;#c0c0c0&quot; style=&quot;background-color: silver; font-size: 10pt;&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;TABLE_CATALOG&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;nvarchar(&lt;/b&gt;128&lt;b&gt;)&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;Table qualifier.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;TABLE_SCHEMA&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;nvarchar(&lt;/b&gt;128&lt;b&gt;)&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;Name of schema that contains the table.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;TABLE_NAME&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;nvarchar(&lt;/b&gt;128&lt;b&gt;)&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;Table name.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;COLUMN_NAME&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;nvarchar(&lt;/b&gt;128&lt;b&gt;)&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;Column name.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;ORDINAL_POSITION&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;int&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;Column identification number.&lt;div style=&quot;font-size: 10pt;&quot;&gt;
&lt;i&gt;Note: In SQL Server 2005, these column IDs are consecutive numbers.&lt;/i&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;COLUMN_DEFAULT&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;nvarchar(&lt;/b&gt;4000&lt;b&gt;)&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;Default value of the column.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;IS_NULLABLE&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;varchar(&lt;/b&gt;3&lt;b&gt;)&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;Nullability of the column. If this column allows for NULL, this column returns YES. Otherwise, NO is returned.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;DATA_TYPE&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;nvarchar(&lt;/b&gt;128&lt;b&gt;)&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;System-supplied data type.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;CHARACTER_MAXIMUM_LENGTH&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;int&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;Maximum length, in characters, for binary data, character data, or text and image data.&lt;div style=&quot;font-size: 10pt;&quot;&gt;
-1 for&amp;nbsp;&lt;b&gt;xml&lt;/b&gt;&amp;nbsp;and large-value type data. Otherwise, NULL is returned. For more information, see&amp;nbsp;&lt;a href=&quot;ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/tsqlref9/html/a54f7373-b247-4d61-8fb8-7f2ec7a8d0a4.htm&quot;&gt;Data Types (Transact-SQL)&lt;/a&gt;.&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;CHARACTER_OCTET_LENGTH&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;int&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;Maximum length, in bytes, for binary data, character data, or text and image data.&lt;div style=&quot;font-size: 10pt;&quot;&gt;
-1 for&amp;nbsp;&lt;b&gt;xml&lt;/b&gt;&amp;nbsp;and large-value type data. Otherwise, NULL is returned.&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;NUMERIC_PRECISION&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;tinyint&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;Precision of approximate numeric data, exact numeric data, integer data, or monetary data. Otherwise, NULL is returned.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;NUMERIC_PRECISION_RADIX&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;smallint&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;Precision radix of approximate numeric data, exact numeric data, integer data, or monetary data. Otherwise, NULL is returned.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;NUMERIC_SCALE&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;int&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;Scale of approximate numeric data, exact numeric data, integer data, or monetary data. Otherwise, NULL is returned.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;DATETIME_PRECISION&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;smallint&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;Subtype code for&amp;nbsp;&lt;b&gt;datetime&lt;/b&gt;&amp;nbsp;and SQL-92&amp;nbsp;&lt;b&gt;interval&lt;/b&gt;&amp;nbsp;data types. For other data types, NULL is returned.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;CHARACTER_SET_CATALOG&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;nvarchar(&lt;/b&gt;128&lt;b&gt;)&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;Returns&amp;nbsp;&lt;b&gt;master&lt;/b&gt;. This indicates the database in which the character set is located, if the column is character data or&lt;b&gt;text&lt;/b&gt;&amp;nbsp;data type. Otherwise, NULL is returned.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;CHARACTER_SET_SCHEMA&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;nvarchar(&lt;/b&gt;128&lt;b&gt;)&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;Always returns NULL.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;CHARACTER_SET_NAME&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;nvarchar(&lt;/b&gt;128&lt;b&gt;)&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;Returns the unique name for the character set if this column is character data or&amp;nbsp;&lt;b&gt;text&lt;/b&gt;&amp;nbsp;data type. Otherwise, NULL is returned.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;COLLATION_CATALOG&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;nvarchar(&lt;/b&gt;128&lt;b&gt;)&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;Always returns NULL.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;COLLATION_SCHEMA&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;nvarchar(&lt;/b&gt;128&lt;b&gt;)&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;Always returns NULL.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;COLLATION_NAME&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;nvarchar(&lt;/b&gt;128&lt;b&gt;)&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;Returns the unique name for the collation if the column is character data or&amp;nbsp;&lt;b&gt;text&lt;/b&gt;&amp;nbsp;data type. Otherwise, NULL is returned.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;DOMAIN_CATALOG&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;nvarchar(&lt;/b&gt;128&lt;b&gt;)&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;If the column is an alias data type, this column is the database name in which the user-defined data type was created. Otherwise, NULL is returned.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;DOMAIN_SCHEMA&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;nvarchar(&lt;/b&gt;128&lt;b&gt;)&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;If the column is a user-defined data type, this column returns the name of the schema of the user-defined data type. Otherwise, NULL is returned.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;DOMAIN_NAME&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;nvarchar(&lt;/b&gt;128&lt;b&gt;)&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;If the column is a user-defined data type, this column is the name of the user-defined data type. Otherwise, NULL is returned.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;(Source: SQL Server 2005 Books Online)&lt;/span&gt;&lt;/div&gt;
&lt;hr style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot; /&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;
Here is an example of data that was pulled from the AdventureWorks database.&amp;nbsp; This data was pulled using this query:&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;4&quot; cellspacing=&quot;0&quot; style=&quot;background-color: white; color: black; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;SELECT&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: green; font-family: &#39;Courier New&#39;; font-size: x-small;&quot;&gt;INFORMATION_SCHEMA.COLUMNS&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;
&lt;i&gt;To be able to show the output the results were broken into multiple pieces.&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;
&lt;img border=&quot;0&quot; src=&quot;http://www.mssqltips.com/tutorialimages/183_in1.gif&quot; style=&quot;border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;
&lt;img border=&quot;0&quot; src=&quot;http://www.mssqltips.com/tutorialimages/183_in2.gif&quot; style=&quot;border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;
&lt;img border=&quot;0&quot; src=&quot;http://www.mssqltips.com/tutorialimages/183_in3.gif&quot; style=&quot;border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;
&lt;img border=&quot;0&quot; src=&quot;http://www.mssqltips.com/tutorialimages/183_in4.gif&quot; style=&quot;border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;
&lt;img border=&quot;0&quot; src=&quot;http://www.mssqltips.com/tutorialimages/183_in5.gif&quot; style=&quot;border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px;&quot; /&gt;&lt;/div&gt;
&lt;hr style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot; /&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;
To query for just one table you can use a query like this:&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;4&quot; cellspacing=&quot;0&quot; style=&quot;background-color: white; color: black; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;SELECT&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: green; font-size: x-small;&quot;&gt;INFORMATION_SCHEMA.COLUMNS&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;br /&gt;WHERE&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;TABLE_NAME&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&#39;Address&#39;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br class=&quot;Apple-interchange-newline&quot; /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://selectinsql.blogspot.com/feeds/967004157407784554/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://selectinsql.blogspot.com/2012/05/informationschemacolumns.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/967004157407784554'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/967004157407784554'/><link rel='alternate' type='text/html' href='http://selectinsql.blogspot.com/2012/05/informationschemacolumns.html' title='INFORMATION_SCHEMA.COLUMNS'/><author><name>Vijay Maurya</name><uri>http://www.blogger.com/profile/00459112937519229095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAq0unsQRC0g7q8LCCjOU5NUrCuyXX5vMfcWbPl5cNsojKH_YS1rJIQL3mxLSTxPXCdJ90rCGzSmU-cFJ9vqjHSMbOxvOb1NaDkURBdhKasrpOq9yuoNpW9_XfPk_1qWU/s220/clip_image001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7205115418491271533.post-3689366838027356164</id><published>2012-05-28T22:47:00.002-07:00</published><updated>2012-05-28T22:47:54.825-07:00</updated><title type='text'>INFORMATION_SCHEMA.TABLES</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;
The INFORMATION_SCHEMA.TABLES view allows you to get information about all tables and views within a database. By default it will show you this information for every single table and view that is in the database.&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;
&lt;u&gt;&lt;b&gt;Explanation&lt;/b&gt;&lt;/u&gt;This view can be called from any of the databases in an instance of SQL Server and will return the results for the data within that particular database.&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;
The columns that this view returns are as follows:&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;4&quot; cellspacing=&quot;0&quot; style=&quot;background-color: white; color: black; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;th bgcolor=&quot;#c0c0c0&quot; style=&quot;background-color: silver; font-size: 10pt;&quot;&gt;Column name&lt;/th&gt;&lt;th bgcolor=&quot;#c0c0c0&quot; style=&quot;background-color: silver; font-size: 10pt;&quot;&gt;Data type&lt;/th&gt;&lt;th bgcolor=&quot;#c0c0c0&quot; style=&quot;background-color: silver; font-size: 10pt;&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;TABLE_CATALOG&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;nvarchar(&lt;/b&gt;128&lt;b&gt;)&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;Table qualifier.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;TABLE_SCHEMA&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;nvarchar(&lt;/b&gt;128&lt;b&gt;)&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;Name of schema that contains the table.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;TABLE_NAME&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;sysname&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;Table name.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;TABLE_TYPE&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;varchar(&lt;/b&gt;10&lt;b&gt;)&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;Type of table. Can be VIEW or BASE TABLE.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;(Source: SQL Server 2005 Books Online)&lt;/span&gt;&lt;/div&gt;
&lt;hr style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot; /&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;
Here is an example of data that was pulled from the AdventureWorks database.&amp;nbsp; This data was pulled using this query:&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;4&quot; cellspacing=&quot;0&quot; style=&quot;background-color: white; color: black; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;SELECT&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: green; font-family: &#39;Courier New&#39;; font-size: x-small;&quot;&gt;INFORMATION_SCHEMA.TABLES&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;
&lt;img border=&quot;0&quot; src=&quot;http://www.mssqltips.com/tutorialimages/196_in7.gif&quot; style=&quot;border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px;&quot; /&gt;&lt;/div&gt;
&lt;hr style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot; /&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;
To only show a list of tables you would use this query:&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;4&quot; cellspacing=&quot;0&quot; style=&quot;background-color: white; color: black; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;SELECT&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: green; font-size: x-small;&quot;&gt;INFORMATION_SCHEMA.TABLES&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;br /&gt;WHERE&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;TABLE_TYPE&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&#39;BASE TABLE&#39;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;hr style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot; /&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;
To only show a list of only the view you would use this query:&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;4&quot; cellspacing=&quot;0&quot; style=&quot;background-color: white; color: black; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;SELECT&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: green; font-size: x-small;&quot;&gt;INFORMATION_SCHEMA.TABLES&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;br /&gt;WHERE&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;TABLE_TYPE&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&#39;VIEW&#39;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://selectinsql.blogspot.com/feeds/3689366838027356164/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://selectinsql.blogspot.com/2012/05/informationschematables.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/3689366838027356164'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/3689366838027356164'/><link rel='alternate' type='text/html' href='http://selectinsql.blogspot.com/2012/05/informationschematables.html' title='INFORMATION_SCHEMA.TABLES'/><author><name>Vijay Maurya</name><uri>http://www.blogger.com/profile/00459112937519229095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAq0unsQRC0g7q8LCCjOU5NUrCuyXX5vMfcWbPl5cNsojKH_YS1rJIQL3mxLSTxPXCdJ90rCGzSmU-cFJ9vqjHSMbOxvOb1NaDkURBdhKasrpOq9yuoNpW9_XfPk_1qWU/s220/clip_image001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7205115418491271533.post-4384623656646185000</id><published>2012-05-28T22:08:00.001-07:00</published><updated>2012-05-28T22:08:10.557-07:00</updated><title type='text'>INFORMATION_SCHEMA VIEW</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;
The INFORMATION_SCHEMA views allow you to retrieve metadata about the objects within a database.&amp;nbsp; These views can be found in the master database under Views / System Views and be called from any database in your SQL Server instance.&amp;nbsp; The reason these were developed was so that they are standard across all database platforms.&amp;nbsp; In SQL 2005 and SQL 2008 these Information Schema views comply with the ISO standard.&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;
Following is a list of each of the views that exist.&lt;/div&gt;
&lt;ul style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;
&lt;li&gt;INFORMATION_SCHEMA.CHECK_CONSTRAINTS&lt;/li&gt;
&lt;li&gt;INFORMATION_SCHEMA.COLUMN_DOMAIN_USAGE&lt;/li&gt;
&lt;li&gt;INFORMATION_SCHEMA.COLUMN_PRIVILEGES&lt;/li&gt;
&lt;li&gt;INFORMATION_SCHEMA.COLUMNS&lt;/li&gt;
&lt;li&gt;INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE&lt;/li&gt;
&lt;li&gt;INFORMATION_SCHEMA.CONSTRAINT_TABLE_USAGE&lt;/li&gt;
&lt;li&gt;INFORMATION_SCHEMA.DOMAIN_CONSTRAINTS&lt;/li&gt;
&lt;li&gt;INFORMATION_SCHEMA.DOMAINS&lt;/li&gt;
&lt;li&gt;INFORMATION_SCHEMA.KEY_COLUMN_USAGE&lt;/li&gt;
&lt;li&gt;INFORMATION_SCHEMA.PARAMETERS&lt;/li&gt;
&lt;li&gt;INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS&lt;/li&gt;
&lt;li&gt;INFORMATION_SCHEMA.ROUTINE_COLUMNS&lt;/li&gt;
&lt;li&gt;INFORMATION_SCHEMA.ROUTINES&lt;/li&gt;
&lt;li&gt;INFORMATION_SCHEMA.SCHEMATA&lt;/li&gt;
&lt;li&gt;INFORMATION_SCHEMA.TABLE_CONSTRAINTS&lt;/li&gt;
&lt;li&gt;INFORMATION_SCHEMA.TABLE_PRIVILEGES&lt;/li&gt;
&lt;li&gt;INFORMATION_SCHEMA.TABLES&lt;/li&gt;
&lt;li&gt;INFORMATION_SCHEMA.VIEW_COLUMN_USAGE&lt;/li&gt;
&lt;li&gt;INFORMATION_SCHEMA.VIEW_TABLE_USAGE&lt;/li&gt;
&lt;li&gt;INFORMATION_SCHEMA.VIEWS&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;
These views can be used from any of your databases.&amp;nbsp; So if you want to gather data about Tables from the AdventureWorks database you would issue the following in that database.&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;4&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-size: 10pt; text-align: left;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: x-small;&quot;&gt;USE&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;AdventureWorks&lt;br /&gt;GO&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;br /&gt;SELECT&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: green; font-family: &#39;Courier New&#39;; font-size: x-small;&quot;&gt;INFORMATION_SCHEMA.TABLES&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;
FOR MORE DETAILS &amp;nbsp;GO...&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;
&lt;a href=&quot;http://www.mssqltips.com/sqlservertutorial/179/sql-server-informationschema-views/&quot;&gt;http://www.mssqltips.com/sqlservertutorial/179/sql-server-informationschema-views/&lt;/a&gt;&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://selectinsql.blogspot.com/feeds/4384623656646185000/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://selectinsql.blogspot.com/2012/05/informationschema-view.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/4384623656646185000'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/4384623656646185000'/><link rel='alternate' type='text/html' href='http://selectinsql.blogspot.com/2012/05/informationschema-view.html' title='INFORMATION_SCHEMA VIEW'/><author><name>Vijay Maurya</name><uri>http://www.blogger.com/profile/00459112937519229095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAq0unsQRC0g7q8LCCjOU5NUrCuyXX5vMfcWbPl5cNsojKH_YS1rJIQL3mxLSTxPXCdJ90rCGzSmU-cFJ9vqjHSMbOxvOb1NaDkURBdhKasrpOq9yuoNpW9_XfPk_1qWU/s220/clip_image001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7205115418491271533.post-1426248108598329888</id><published>2012-04-26T01:23:00.000-07:00</published><updated>2012-04-26T01:23:21.803-07:00</updated><title type='text'>Temporary table vs Table variable vs derived Table</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px;&quot;&gt;Four options available for temporary matrix storage: Derived Table and Temporary Table are the oldest, followed by Table Variable and the latest is CTE which can also be recursive.&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Temp tables,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IO Operation - HIGH&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Explicit Indexing is allowed&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Constraints are allowed&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Need not create or declare, we can use the INTO clause to create this object. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Reusable across the batch but with current session&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Recommended when the data is huge &amp;amp; if there is any manipulation on the result&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Supports concurrency users&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Bit slower than table variables.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Table variables,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IO Operation – LOW or NA&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Explicit Indexing not allowed – (Primary/Unique key can create index)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Constraints are allowed&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Have to declare the variable&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Only used by the current batch scope&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Recommended when the data is less &amp;amp; if there is any manipulation on the result&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Supports concurrency users&lt;br /&gt;
Faster when the number of records is less&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Derived tables,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IO Operation – NA&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Declaration – NA&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Explicit Indexing – NA&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Constraints - NA&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Only on the current query(line)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If it is not reusable data then we can go for it&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Recommended for inline quires&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Supports concurrency users&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://selectinsql.blogspot.com/feeds/1426248108598329888/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://selectinsql.blogspot.com/2012/04/temporary-table-vs-table-variable-vs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/1426248108598329888'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/1426248108598329888'/><link rel='alternate' type='text/html' href='http://selectinsql.blogspot.com/2012/04/temporary-table-vs-table-variable-vs.html' title='Temporary table vs Table variable vs derived Table'/><author><name>Vijay Maurya</name><uri>http://www.blogger.com/profile/00459112937519229095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAq0unsQRC0g7q8LCCjOU5NUrCuyXX5vMfcWbPl5cNsojKH_YS1rJIQL3mxLSTxPXCdJ90rCGzSmU-cFJ9vqjHSMbOxvOb1NaDkURBdhKasrpOq9yuoNpW9_XfPk_1qWU/s220/clip_image001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7205115418491271533.post-1618484530489712936</id><published>2012-04-26T00:08:00.000-07:00</published><updated>2012-04-26T00:08:58.561-07:00</updated><title type='text'>What is  Derived Tables in SQL</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Helvetica, sans-serif; font-size: 12px; line-height: 18px; text-align: -webkit-auto;&quot;&gt;
The power of SQL Server never fails to amaze me; it literally seems that you can do just about anything in SQL. All you need is a little creativity and knowledge of the syntax, and you can put the power of SQL behind your web application. One of the neatest things I&#39;ve yet done with SQL Server is using derived tables.&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Helvetica, sans-serif; font-size: 12px; line-height: 18px; text-align: -webkit-auto;&quot;&gt;
If you&#39;ve used a&amp;nbsp;&lt;code&gt;VIEW&lt;/code&gt;&amp;nbsp;before, you&#39;ve used a more formal, more correct form of a derived table. For example, we could do the following:&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Helvetica, sans-serif; font-size: 12px; line-height: 18px; text-align: -webkit-auto;&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;background-color: white; font-size: 12px; line-height: 18px; text-align: -webkit-auto;&quot;&gt; CREATE VIEW vwEmployeesFromNewYork AS
  SELECT * FROM Employee
  WHERE State = &quot;NY&quot;
 GO
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Helvetica, sans-serif; font-size: 12px; line-height: 18px; text-align: -webkit-auto;&quot;&gt;
Then if we wanted to see all of the Employees from New York with the last name Smith, ordered alphabetically, we could write:&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Helvetica, sans-serif; font-size: 12px; line-height: 18px; text-align: -webkit-auto;&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;background-color: white; font-size: 12px; line-height: 18px; text-align: -webkit-auto;&quot;&gt; SELECT LastName, FirstName
 FROM vwEmployeesFromNewYork
 WHERE LastName = &quot;Smith&quot;
 ORDER BY FirstName
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Helvetica, sans-serif; font-size: 12px; line-height: 18px; text-align: -webkit-auto;&quot;&gt;
However, using derived tables, we could eliminate the view entirely. (Of course the view could be eliminated by simply adding an &quot;AND State = &quot;NY&quot;&quot; to the above WHERE clause, but what&#39;s important here is the concept, not the example!) Here is the same resultset as above but with the use of a derived table in place of a veiw:&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Helvetica, sans-serif; font-size: 12px; line-height: 18px; text-align: -webkit-auto;&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;background-color: white; font-size: 12px; line-height: 18px; text-align: -webkit-auto;&quot;&gt; SELECT LastName, FirstName
 FROM
  (SELECT * FROM Employee
   WHERE State = &quot;NY&quot;) AS EmployeeDerivedTable
 WHERE LastName = &quot;Smith&quot;
 ORDER BY FirstName
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Helvetica, sans-serif; font-size: 12px; line-height: 18px; text-align: -webkit-auto;&quot;&gt;
Isn&#39;t that neat? What we are doing is first getting the result set from our derived table (the SELECT statement in the FROM clause). Once we have that resultset, it is as though it was a table in itself. We then perform the SELECT on the derived table, returning our results!&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://selectinsql.blogspot.com/feeds/1618484530489712936/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://selectinsql.blogspot.com/2012/04/what-is-derived-tables-in-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/1618484530489712936'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/1618484530489712936'/><link rel='alternate' type='text/html' href='http://selectinsql.blogspot.com/2012/04/what-is-derived-tables-in-sql.html' title='What is  Derived Tables in SQL'/><author><name>Vijay Maurya</name><uri>http://www.blogger.com/profile/00459112937519229095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAq0unsQRC0g7q8LCCjOU5NUrCuyXX5vMfcWbPl5cNsojKH_YS1rJIQL3mxLSTxPXCdJ90rCGzSmU-cFJ9vqjHSMbOxvOb1NaDkURBdhKasrpOq9yuoNpW9_XfPk_1qWU/s220/clip_image001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7205115418491271533.post-42084251576226050</id><published>2012-04-20T04:14:00.003-07:00</published><updated>2012-04-20T04:14:31.454-07:00</updated><title type='text'>Pivots with Dynamic Columns in SQL Server 2005</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h4 class=&quot;BlogPostHeader&quot; style=&quot;color: #5b7255; font-family: Tahoma, Arial, Helvetica; font-size: 20px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 4px; padding-left: 0px; padding-right: 4px; padding-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/h4&gt;
&lt;br style=&quot;color: #666666; font-family: Tahoma, Arial, Helvetica; font-size: 13px;&quot; /&gt;&lt;div class=&quot;BlogPostContent&quot; style=&quot;font-family: Tahoma, Arial, Helvetica; font-size: 13px; line-height: 20px; margin-left: 1px;&quot;&gt;
Pivots in SQL Server 2005 can rotate a table, i.e. they can turn rows into columns. PIVOTs are frequently used in reports, and they are reasonably simple to work with. However, I&#39;ve seen quite a few questions about this operator. Most questions were about the column list in the PIVOT statement. This list is fixed, but many times the new columns are determined by the report at a later stage. This problem is easily solved when we mix pivots with dynamic SQL, so here is a very simple example about how to dynamically generate the pivot statement:&lt;br /&gt;
PIVOT allows you to turn data rows into columns. For example, if you have a table like this (I use only three months here for simplicity):&lt;br /&gt;
&lt;div&gt;
&lt;div dir=&quot;ltr&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;padding-bottom: 5px; padding-left: 10px; padding-right: 10px; padding-top: 5px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;CREATE&amp;nbsp;TABLE&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Sales&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;[Month]&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;VARCHAR&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;20&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)&amp;nbsp;,&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;SaleAmount&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)

&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;INSERT&amp;nbsp;INTO&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Sales&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;VALUES&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;January&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;INSERT&amp;nbsp;INTO&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Sales&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;VALUES&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;February&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;200&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;INSERT&amp;nbsp;INTO&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Sales&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;VALUES&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;March&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;300&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)

&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SELECT&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;*&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;FROM&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;SALES
&amp;nbsp;
&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;
Month&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SaleAmount
----------------&amp;nbsp;&amp;nbsp;-----------
January&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;100
February&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;200
March&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;300&amp;nbsp;

&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
Suppose we wanted to convert the above into this:&lt;br /&gt;
&lt;pre style=&quot;padding-bottom: 5px; padding-left: 10px; padding-right: 10px; padding-top: 5px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;
January&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;February&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;March
&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;-----------&amp;nbsp;----------&amp;nbsp;&amp;nbsp;----------
&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;100&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;200&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;300

&lt;/span&gt;&lt;/pre&gt;
We can do this using the PIVOT operator, as follows:&lt;br /&gt;
&lt;pre style=&quot;padding-bottom: 5px; padding-left: 10px; padding-right: 10px; padding-top: 5px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;SELECT&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;[January]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;[February]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;[March]
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;FROM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SELECT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;[Month]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;SaleAmount
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;FROM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Sales
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;p&amp;nbsp;PIVOT&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;SUM&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;SaleAmount&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;FOR&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;[Month]&amp;nbsp;
                      &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;IN&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;[January]&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;[February]&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;[March]&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;AS&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;pvt

&lt;/span&gt;&lt;/pre&gt;
However, in the above example, I have the column names fixed as the first three months. If I want to create a result in which the columns are dynamic (for example, they are read from a table), then I need to construct the above query dynamically. To demonstrate this let’s look at the following example:&lt;br /&gt;
In the first table I have the column names I want to use:&lt;br /&gt;
&lt;pre style=&quot;padding-bottom: 5px; padding-left: 10px; padding-right: 10px; padding-top: 5px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;CREATE&amp;nbsp;TABLE&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Table1&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;ColId&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;ColName&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;VARCHAR&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;))
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;INSERT&amp;nbsp;INTO&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Table1&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;VALUES&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;Country&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;INSERT&amp;nbsp;INTO&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Table1&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;VALUES&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;Month&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;INSERT&amp;nbsp;INTO&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Table1&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;VALUES&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;Day&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)

&lt;/span&gt;&lt;/pre&gt;
In the second table I have the data. This consists of a row identifier (tID), a column ID (ColID) that refers to the column type in Table1, and a value:&lt;br /&gt;
&lt;pre style=&quot;padding-bottom: 5px; padding-left: 10px; padding-right: 10px; padding-top: 5px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;CREATE&amp;nbsp;TABLE&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Table2 &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;tID&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;ColID&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Txt&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;VARCHAR&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;))

&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;INSERT&amp;nbsp;INTO&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Table2&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;VALUES&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;US&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;INSERT&amp;nbsp;INTO&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Table2&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;VALUES&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;July&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;INSERT&amp;nbsp;INTO&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Table2&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;VALUES&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;4&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;INSERT&amp;nbsp;INTO&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Table2&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;VALUES&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;US&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;INSERT&amp;nbsp;INTO&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Table2&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;VALUES&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;Sep&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;INSERT&amp;nbsp;INTO&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Table2&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;VALUES&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;11&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;INSERT&amp;nbsp;INTO&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Table2&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;VALUES&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;US&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;INSERT&amp;nbsp;INTO&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Table2&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;VALUES&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;Dec&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;INSERT&amp;nbsp;INTO&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Table2&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;VALUES&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;25&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)

&lt;/span&gt;&lt;/pre&gt;
Now I would like to retrieve data from these two tables, in the following format:&lt;br /&gt;
&lt;pre style=&quot;padding-bottom: 5px; padding-left: 10px; padding-right: 10px; padding-top: 5px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;
tID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Country&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Day&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Month
-----------&amp;nbsp;----------&amp;nbsp;----------&amp;nbsp;----------
1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;US&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;July
2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;US&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;11&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Sep
3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;US&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;25&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Dec&amp;nbsp;

&lt;/span&gt;&lt;/pre&gt;
In other words I want to turn the data rows in Table2 into columns. If I had a fixed set of columns for the result, i.e. the columns Country, Day, and Month were fixed, I could use SQL Server 2005’s PIVOT operator in a query like:&lt;br /&gt;
&lt;pre style=&quot;padding-bottom: 5px; padding-left: 10px; padding-right: 10px; padding-top: 5px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;SELECT&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;tID
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;[Country]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;[Day]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;[Month]
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;FROM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SELECT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;t2.tID
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;t1.ColName
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;t2.Txt
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;FROM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Table1&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;AS&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;t1
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;JOIN&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Table2&amp;nbsp;
                       &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;AS&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;t2&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;ON&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;t1.ColId&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;t2.ColID
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;p&amp;nbsp;PIVOT&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;MAX&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;[Txt]&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;FOR&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;ColName&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;IN&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;[Country]&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;[Day]&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;[Month]&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)&amp;nbsp;)&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;AS&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;pvt
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;ORDER&amp;nbsp;BY&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;tID&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;;

&lt;/span&gt;&lt;/pre&gt;
However I need to construct this query dynamically, because the column names Country, Day, and Month are specified in a table, and can be changed independently from my query. In our case these columns are given in Table1.&lt;br /&gt;
In the first step to generate the final pivot query I need to create the list of columns, in this case [Country], [Day], [Month].&lt;br /&gt;
Since there is no string concatenation aggregator in SQL (a concatenation aggregator would not be deterministic without some order restriction), and since the column names are stored in rows of a table, I need to flatten these columns into a single row or variable. There are various solutions to achieve this. One solution would be to use a query like:&lt;br /&gt;
&lt;pre style=&quot;padding-bottom: 5px; padding-left: 10px; padding-right: 10px; padding-top: 5px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;DECLARE&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #434343;&quot;&gt;@cols&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;NVARCHAR&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;2000&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SELECT&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #434343;&quot;&gt;@cols&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;COALESCE&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #434343;&quot;&gt;@cols&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;+&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;,[&#39;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;+&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;colName&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;+&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;]&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;[&#39;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;+&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;colName&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;+&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;]&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;FROM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Table1
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;ORDER&amp;nbsp;BY&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;colName

&lt;/span&gt;&lt;/pre&gt;
This query works both on SQL Server 2000 and 2005. It is efficient, but some may not like it because it uses the same variable (@cols) on both sides of an assignment. Another solution that works on SQL Server 2005 only is to use XML PATH.&lt;br /&gt;
&lt;pre style=&quot;padding-bottom: 5px; padding-left: 10px; padding-right: 10px; padding-top: 5px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;DECLARE&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #434343;&quot;&gt;@cols&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;NVARCHAR&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;2000&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SELECT&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #434343;&quot;&gt;@cols&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;STUFF&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;((&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SELECT&amp;nbsp;DISTINCT&amp;nbsp;TOP&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;100&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;PERCENT
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;],[&#39;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;+&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;t2.ColName
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;FROM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Table1&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;AS&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;t2
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;ORDER&amp;nbsp;BY&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;],[&#39;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;+&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;t2.ColName
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;FOR&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;XML&amp;nbsp;PATH&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;),&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)&amp;nbsp;+&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;]&#39;

&lt;/span&gt;&lt;/pre&gt;
This second query (I’ve seen this posted by Peter Larsson) has the advantage that it does not use the @cols variable on the right hand side. I like this solution more, since this can be extended as a general string concatenation aggregate in more complex queries.&lt;br /&gt;
Both of the above queries generate, from&amp;nbsp;&lt;strong&gt;Table1,&lt;/strong&gt;&amp;nbsp;the string:&amp;nbsp;&lt;strong&gt;‘[Country],[Day], [Month]’.&lt;/strong&gt;&amp;nbsp;This column list is used twice in the pivot query that we aim to construct. Once it is use in the list of columns that we want to retrieve, and once it is used as the list of values that should become columns. Having constructed this list of columns above, we can just concatenate it with the missing parts of the pivot query like:&lt;br /&gt;
&lt;pre style=&quot;padding-bottom: 5px; padding-left: 10px; padding-right: 10px; padding-top: 5px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;DECLARE&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #434343;&quot;&gt;@query&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;NVARCHAR&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;4000&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SET&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #434343;&quot;&gt;@query&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;N&#39;SELECT&amp;nbsp;tID,&amp;nbsp;&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;+
&lt;/span&gt;&lt;span style=&quot;color: #434343;&quot;&gt;@cols&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;
FROM
(SELECT&amp;nbsp;&amp;nbsp;t2.tID
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,&amp;nbsp;t1.ColName
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,&amp;nbsp;t2.Txt
FROM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Table1&amp;nbsp;AS&amp;nbsp;t1
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;JOIN&amp;nbsp;Table2&amp;nbsp;AS&amp;nbsp;t2&amp;nbsp;ON&amp;nbsp;t1.ColId&amp;nbsp;=&amp;nbsp;t2.ColID)&amp;nbsp;p
PIVOT
(
MAX([Txt])
FOR&amp;nbsp;ColName&amp;nbsp;IN
(&amp;nbsp;&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;+
&lt;/span&gt;&lt;span style=&quot;color: #434343;&quot;&gt;@cols&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;&amp;nbsp;)
)&amp;nbsp;AS&amp;nbsp;pvt
ORDER&amp;nbsp;BY&amp;nbsp;tID;&#39;
&lt;/span&gt;&lt;/pre&gt;
Executing this with&lt;br /&gt;
&lt;pre style=&quot;padding-bottom: 5px; padding-left: 10px; padding-right: 10px; padding-top: 5px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;EXECUTE&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #434343;&quot;&gt;@query&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;/pre&gt;
will give us the expected result: a table that is pivoted and shows columns that were specified in a table:&lt;br /&gt;
&lt;pre style=&quot;padding-bottom: 5px; padding-left: 10px; padding-right: 10px; padding-top: 5px;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;tID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Country&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Day&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Month
-----------&amp;nbsp;----------&amp;nbsp;----------&amp;nbsp;----------
1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;US&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;July
2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;US&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;11&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Sep
3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;US&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;25&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Dec&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://selectinsql.blogspot.com/feeds/42084251576226050/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://selectinsql.blogspot.com/2012/04/pivots-with-dynamic-columns-in-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/42084251576226050'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/42084251576226050'/><link rel='alternate' type='text/html' href='http://selectinsql.blogspot.com/2012/04/pivots-with-dynamic-columns-in-sql.html' title='Pivots with Dynamic Columns in SQL Server 2005'/><author><name>Vijay Maurya</name><uri>http://www.blogger.com/profile/00459112937519229095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAq0unsQRC0g7q8LCCjOU5NUrCuyXX5vMfcWbPl5cNsojKH_YS1rJIQL3mxLSTxPXCdJ90rCGzSmU-cFJ9vqjHSMbOxvOb1NaDkURBdhKasrpOq9yuoNpW9_XfPk_1qWU/s220/clip_image001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7205115418491271533.post-8347538573076587666</id><published>2012-04-11T01:26:00.007-07:00</published><updated>2012-04-11T01:26:58.198-07:00</updated><title type='text'>What are master, msdb, tempdb databases in Sql Server?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span id=&quot;ContentPlaceHolder1_lblDescription&quot; style=&quot;background-color: white; color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 21px; text-align: -webkit-auto;&quot;&gt;&lt;span itemprop=&quot;articleBody&quot;&gt;Microsoft® SQL Server 2000 systems have four system databases:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 21px; text-align: -webkit-auto;&quot;&gt;&lt;span itemprop=&quot;articleBody&quot;&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;color: orange;&quot;&gt;• master&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333;&quot;&gt; - The master database records all of the system level information for a SQL Server system. It records all login accounts and all system configuration settings. master is the database that records the existence of all other databases, including the location of the database files.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;color: orange;&quot;&gt;• tempdb &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333;&quot;&gt;- tempdb holds all temporary tables and temporary stored procedures. It also fills any other temporary storage needs such as work tables generated by SQL Server. tempdb is re-created every time SQL Server is started so the system starts with a clean copy of the database.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #333333;&quot;&gt;By default, tempdb autogrows as needed while SQL Server is running. If the size defined for tempdb is small, part of your system processing load may be taken up with autogrowing tempdb to the size needed to support your workload each time to restart SQL Server. You can avoid this overhead by using ALTER DATABASE to increase the size of tempdb.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: orange;&quot;&gt;&lt;b&gt;• model &lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;- The model database is used as the template for all databases created on a system. When a CREATE DATABASE statement is issued, the first part of the database is created by copying in the contents of the model database, then the remainder of the new database is filled with empty pages. Because tempdb is created every time SQL Server is started, the model database must always exist on a SQL Server system.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;color: orange;&quot;&gt;• msdb &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333;&quot;&gt;- The msdb database is used by SQL Server Agent for scheduling alerts and jobs, and recording operators.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 21px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&lt;/span&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://selectinsql.blogspot.com/feeds/8347538573076587666/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://selectinsql.blogspot.com/2012/04/what-are-master-msdb-tempdb-databases.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/8347538573076587666'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/8347538573076587666'/><link rel='alternate' type='text/html' href='http://selectinsql.blogspot.com/2012/04/what-are-master-msdb-tempdb-databases.html' title='What are master, msdb, tempdb databases in Sql Server?'/><author><name>Vijay Maurya</name><uri>http://www.blogger.com/profile/00459112937519229095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAq0unsQRC0g7q8LCCjOU5NUrCuyXX5vMfcWbPl5cNsojKH_YS1rJIQL3mxLSTxPXCdJ90rCGzSmU-cFJ9vqjHSMbOxvOb1NaDkURBdhKasrpOq9yuoNpW9_XfPk_1qWU/s220/clip_image001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7205115418491271533.post-1522663452254674302</id><published>2012-04-09T01:48:00.001-07:00</published><updated>2012-04-09T01:48:52.958-07:00</updated><title type='text'>what is collations in sql server</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; font-family: verdana, arial, helvetica; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;strong&gt;What is collation?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: verdana, arial, helvetica; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
Collation refers to a set of rules that determine how data is sorted and compared. Character data is sorted using rules that define the correct character sequence, with options for specifying case-sensitivity, accent marks, kana character types and character width.&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: verdana, arial, helvetica; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;strong&gt;Case sensitivity&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: verdana, arial, helvetica; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
If&amp;nbsp;&lt;strong&gt;A&lt;/strong&gt;&amp;nbsp;and&amp;nbsp;&lt;strong&gt;a&lt;/strong&gt;,&amp;nbsp;&lt;strong&gt;B&amp;nbsp;&lt;/strong&gt;and&amp;nbsp;&lt;strong&gt;b&lt;/strong&gt;, etc. are treated in the same way then it is case-insensitive. A computer treats&amp;nbsp;&lt;strong&gt;A&lt;/strong&gt;&amp;nbsp;and&amp;nbsp;&lt;strong&gt;a&lt;/strong&gt;&amp;nbsp;differently because it uses ASCII code to differentiate the input. The ASCII value of&amp;nbsp;&lt;strong&gt;A&lt;/strong&gt;&amp;nbsp;is&amp;nbsp;&lt;strong&gt;65,&lt;/strong&gt;&amp;nbsp;while&amp;nbsp;&lt;strong&gt;a&amp;nbsp;&lt;/strong&gt;is&amp;nbsp;&lt;strong&gt;97&lt;/strong&gt;. The ASCII value of&amp;nbsp;&lt;strong&gt;B&lt;/strong&gt;&amp;nbsp;is&lt;strong&gt;66&lt;/strong&gt;&amp;nbsp;and&amp;nbsp;&lt;strong&gt;b&amp;nbsp;&lt;/strong&gt;is&amp;nbsp;&lt;strong&gt;98&lt;/strong&gt;.&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: verdana, arial, helvetica; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;strong&gt;Accent sensitivity&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: verdana, arial, helvetica; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
If&amp;nbsp;&lt;strong&gt;a&lt;/strong&gt;&amp;nbsp;and&amp;nbsp;&lt;strong&gt;á&lt;/strong&gt;,&amp;nbsp;&lt;strong&gt;o&lt;/strong&gt;&amp;nbsp;and&amp;nbsp;&lt;strong&gt;ó&lt;/strong&gt;&amp;nbsp;are treated in the same way, then it is accent-insensitive. A computer treats&amp;nbsp;&lt;strong&gt;a&lt;/strong&gt;&amp;nbsp;and&amp;nbsp;&lt;strong&gt;á&lt;/strong&gt;&amp;nbsp;differently because it uses ASCII code for differentiating the input. The ASCII value of&amp;nbsp;&lt;strong&gt;a&lt;/strong&gt;&amp;nbsp;is&amp;nbsp;&lt;strong&gt;97&lt;/strong&gt;&amp;nbsp;and&amp;nbsp;&lt;strong&gt;á&lt;/strong&gt;is&amp;nbsp;&lt;strong&gt;225&lt;/strong&gt;. The ASCII value of&amp;nbsp;&lt;strong&gt;o&lt;/strong&gt;is&amp;nbsp;&lt;strong&gt;111&lt;/strong&gt;&amp;nbsp;and ó&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;is&amp;nbsp;&lt;strong&gt;243&lt;/strong&gt;.&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: verdana, arial, helvetica; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;strong&gt;Kana Sensitivity&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: verdana, arial, helvetica; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
When Japanese kana characters Hiragana and Katakana are treated differently, it is called Kana sensitive.&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: verdana, arial, helvetica; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;strong&gt;Width sensitivity&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: verdana, arial, helvetica; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
When a single-byte character (half-width) and the same character when represented as a double-byte character (full-width) are treated differently then it is width sensitive.&lt;/div&gt;
&lt;h3 style=&quot;background-color: white; font-family: verdana, arial, helvetica; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
Database, Tables and columns with different collation&lt;/h3&gt;
&lt;div style=&quot;background-color: white; font-family: verdana, arial, helvetica; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
SQL Server 2000 allows the users to create databases, tables and columns in different collations.&lt;/div&gt;
&lt;h4 style=&quot;background-color: white; font-family: verdana, arial, helvetica; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
Databases with different collation&lt;/h4&gt;
&lt;pre style=&quot;background-color: white; font-family: verdana, arial, helvetica; font-size: 13px; max-width: 95%; overflow-x: auto; text-align: -webkit-auto; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;use master
go
create database BIN collate Latin1_General_BIN
go
create database CI_AI_KS collate Latin1_General_CI_AI_KS
go
create database CS_AS_KS_WS collate Latin1_General_CS_AS_KS_WS
go
&lt;/pre&gt;
&lt;h4 style=&quot;background-color: white; font-family: verdana, arial, helvetica; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
Tables and columns with different collation&lt;/h4&gt;
&lt;pre style=&quot;background-color: white; font-family: verdana, arial, helvetica; font-size: 13px; max-width: 95%; overflow-x: auto; text-align: -webkit-auto; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;Create table Mytable (
[colu] char(10) COLLATE Albanian_CI_AI_KS_WS NULL,
[Maydate] [char] (8) COLLATE Korean_Wansung_Unicode_CS_AS_KS NOT NULL ,
[Risk_Rating] [char] (2) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL 
)
&lt;/pre&gt;
&lt;h3 style=&quot;background-color: white; font-family: verdana, arial, helvetica; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
Comparing characters on the databases with different collation&lt;/h3&gt;
&lt;div style=&quot;background-color: white; font-family: verdana, arial, helvetica; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
When we run the below code in&amp;nbsp;&lt;a href=&quot;&quot; name=&quot;OLE_LINK3&quot;&gt;CI_AI_KS and CS_AS_KS_WS&lt;/a&gt;&amp;nbsp;the results will be completely different.&lt;/div&gt;
&lt;pre style=&quot;background-color: white; font-family: verdana, arial, helvetica; font-size: 13px; max-width: 95%; overflow-x: auto; text-align: -webkit-auto; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;declare @Accentvar1 char(1)
declare @Accentvar2 char(1)
declare @Casevar1 char(1)
declare @Casevar2 char(1)
set @casevar1 =&#39;A&#39;
set @casevar2 =&#39;a&#39;
set @Accentvar1 =&#39;a&#39;
set @Accentvar2 =&#39;á&#39;

if @casevar1 = @casevar2
 begin
  print &quot;A and a are treated same&quot;
 end
 else
 begin
  print &quot;A and a are not treated same&quot;
 end

if @Accentvar1 = @Accentvar2 
 begin
  print &quot;A and á are treated same&quot;
 end
 else
 begin
  print &quot;A and á are not  treated same&quot;
 end
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; font-family: verdana, arial, helvetica; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
When we execute these statements on a CI_AI_KS database, the results are similar to those shown below.&lt;/div&gt;
&lt;pre style=&quot;background-color: white; font-family: verdana, arial, helvetica; font-size: 13px; max-width: 95%; overflow-x: auto; text-align: -webkit-auto; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;
 A and a are treated same
 A and á are treated same

&lt;/span&gt;&lt;/pre&gt;
&lt;div style=&quot;background-color: white; font-family: verdana, arial, helvetica; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
When we execute these statements on a CS_AS_KS_WS database, the results are similar to those shown below.&lt;/div&gt;
&lt;pre style=&quot;background-color: white; font-family: verdana, arial, helvetica; font-size: 13px; max-width: 95%; overflow-x: auto; text-align: -webkit-auto; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;
 A and a are not treated same
 A and á are not treated same
&lt;/span&gt;&lt;/pre&gt;
&lt;h4 style=&quot;background-color: white; font-family: verdana, arial, helvetica; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
Simulating case sensitivity in a case in-sensitive database&lt;/h4&gt;
&lt;div style=&quot;background-color: white; font-family: verdana, arial, helvetica; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
It is often necessary to simulate case sensitivity in a case insensitive database. The example below shows how you can achieve that.&lt;/div&gt;
&lt;pre style=&quot;background-color: white; font-family: verdana, arial, helvetica; font-size: 13px; max-width: 95%; overflow-x: auto; text-align: -webkit-auto; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;Use CI_AI_KS
go
declare @var1 varchar(10)
declare @var2 varchar(10)
set @var1 =&#39;A&#39;
set @var2 =&#39;a&#39;
if ASCII(@var1) = ASCII(@var2)
print &quot;A and a are treated same&quot;
else
print &quot;A and a are not same&quot;
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; font-family: verdana, arial, helvetica; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
However, the function ASCII cannot be used for words. In order to achieve the same functionality of simulating case sensitiveness, we can use the varbinary data type.&lt;/div&gt;
&lt;pre style=&quot;background-color: white; font-family: verdana, arial, helvetica; font-size: 13px; max-width: 95%; overflow-x: auto; text-align: -webkit-auto; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;Use CI_AI_KS
go
declare @var1 varchar(10)
declare @var2 varchar(10)
set @var1 =&#39;Good&#39;
set @var2 =&#39;gooD&#39;
if cast(@var1 as varbinary) = cast(@var2 as varbinary) 
print &quot;Good and gooD are treated same&quot;
else
print &quot;Good and gooD are not treated same&quot;&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; font-family: verdana, arial, helvetica; font-size: 13px; max-width: 95%; overflow-x: auto; text-align: -webkit-auto; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;h4 style=&quot;white-space: normal;&quot;&gt;
Simulating case insensitivity in a case sensitive database&lt;/h4&gt;
&lt;div style=&quot;white-space: normal;&quot;&gt;
It is often necessary to simulate case insensitivity in a case sensitive database. The example below displays how you can achieve that.&lt;/div&gt;
&lt;pre style=&quot;font-family: verdana, arial, helvetica; max-width: 95%; overflow-x: auto; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;Use CS_AS_KS_WS
go
declare @var1 varchar(10)
declare @var2 varchar(10)
set @var1 =&#39;A&#39;
set @var2 =&#39;a&#39;
if upper(@var1) = upper(@var2)
print &quot;A and a are treated same&quot;
else
print &quot;A and a are not same&quot;
go
Use CS_AS_KS_WS
go
declare @var1 varchar(10)
declare @var2 varchar(10)
set @var1 =&#39;Good&#39;
set @var2 =&#39;gooD&#39;
if upper(@var1) = upper(@var2 )
print &quot;Good and gooD are treated same&quot;
else
print &quot;Good and gooD are not treated same&quot;
&lt;/pre&gt;
&lt;h4 style=&quot;white-space: normal;&quot;&gt;
Simulating Accent sensitivity in a Accent insensitive database&lt;/h4&gt;
&lt;div style=&quot;white-space: normal;&quot;&gt;
It is often necessary to simulate case sensitivity in a case insensitive database:&lt;/div&gt;
&lt;pre style=&quot;font-family: verdana, arial, helvetica; max-width: 95%; overflow-x: auto; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;Use CI_AI_KS
go
declare @var1 varchar(10)
declare @var2 varchar(10)
set @var1 =&#39;A&#39;
set @var2 = &#39;á&#39;
if ASCII(@var1) = ASCII(@var2)
print &quot;A and á are treated same&quot;
else
print &quot;A and á are not treated same&quot;
&lt;/pre&gt;
&lt;div style=&quot;white-space: normal;&quot;&gt;
Again, the function ASCII cannot be used for words. In order to achieve the same functionality of simulating case sensitiveness, we can use the varbinary data type:&lt;/div&gt;
&lt;pre style=&quot;font-family: verdana, arial, helvetica; max-width: 95%; overflow-x: auto; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;Use CI_AI_KS
go
declare @var1 varchar(10)
declare @var2 varchar(10)
set @var1 =&#39;Gold&#39;
set @var2 =&#39;Góld&#39;
if cast(@var1 as varbinary) = cast(@var2 as varbinary) 
print &quot; Gold  and Góld  are treated same&quot;
else
print &quot; Gold  and Góld  are not treated same&quot;
&lt;/pre&gt;
&lt;h4 style=&quot;white-space: normal;&quot;&gt;
Change the collation&lt;/h4&gt;
&lt;div style=&quot;white-space: normal;&quot;&gt;
In SQL Server 7.0, Collation can be setup only on the server level during installation. In order to change the collation, you have to rebuild the master. This is located in the Program Files\Microsoft SQL Server\80\Tools\Binn directory.&lt;/div&gt;
&lt;div style=&quot;white-space: normal;&quot;&gt;
In SQL Sever 2000, you can change collation on the database level and column level just by using alter statements.&lt;/div&gt;
&lt;pre style=&quot;font-family: verdana, arial, helvetica; max-width: 95%; overflow-x: auto; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;Create database testNorwegian collate Danish_Norwegian_CI_AI_KS
go
Alter database testNorwegian collate Danish_Norwegian_CI_AI
go

Create table Mytable (
[colu] char(10) COLLATE Albanian_CI_AI_KS_WS NULL,
[Maydate] [char] (8) COLLATE Korean_Wansung_Unicode_CS_AS_KS NOT NULL ,
[Risk_Rating] [char] (2) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL 
)
go
Alter table Mytable alter column [colu] char(10) COLLATE Korean_Wansung_Unicode_CS_AS_KS NULL
go
&lt;/pre&gt;
&lt;h4 style=&quot;white-space: normal;&quot;&gt;
Find the collation of the current server&lt;/h4&gt;
&lt;pre style=&quot;font-family: verdana, arial, helvetica; max-width: 95%; overflow-x: auto; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;select SERVERPROPERTY (&#39;collation&#39;)&lt;/pre&gt;
&lt;h4 style=&quot;white-space: normal;&quot;&gt;
Find the collation of a particular database&lt;/h4&gt;
&lt;pre style=&quot;font-family: verdana, arial, helvetica; max-width: 95%; overflow-x: auto; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;select convert(sysname,DatabasePropertyEx(&#39;CS_AS_KS_WS&#39;,&#39;Collation&#39;))&lt;/pre&gt;
&lt;h4 style=&quot;white-space: normal;&quot;&gt;
Find the collation of the current database&lt;/h4&gt;
&lt;pre style=&quot;font-family: verdana, arial, helvetica; max-width: 95%; overflow-x: auto; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;select convert(sysname,DatabasePropertyEx(db_name(),&#39;Collation&#39;))&lt;/pre&gt;
&lt;h4 style=&quot;white-space: normal;&quot;&gt;
Find collation of all columns in a table&lt;/h4&gt;
&lt;pre style=&quot;font-family: verdana, arial, helvetica; max-width: 95%; overflow-x: auto; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;select name, collation from syscolumns where [id]=object_id(&#39;Mytable&#39;)&lt;/pre&gt;
&lt;h4 style=&quot;white-space: normal;&quot;&gt;
Find all collation available in SQL Server&lt;/h4&gt;
&lt;pre style=&quot;font-family: verdana, arial, helvetica; max-width: 95%; overflow-x: auto; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;select * from ::fn_helpcollations()&lt;/pre&gt;
&lt;h3 style=&quot;font-size: 13px; white-space: normal;&quot;&gt;
Conclusion&lt;/h3&gt;
&lt;div style=&quot;white-space: normal;&quot;&gt;
This article explains the basic concept of collation and its uses. You can create functions for simulating accent insensitive in an accent sensitive database by mapping&amp;nbsp;&lt;strong&gt;a&lt;/strong&gt;&amp;nbsp;for&amp;nbsp;&lt;strong&gt;á&lt;/strong&gt;. Kana sensitivity and Width sensitivity are focused mainly on Asian languages.&lt;/div&gt;
&lt;/pre&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://selectinsql.blogspot.com/feeds/1522663452254674302/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://selectinsql.blogspot.com/2012/04/what-is-collations-in-sql-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/1522663452254674302'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/1522663452254674302'/><link rel='alternate' type='text/html' href='http://selectinsql.blogspot.com/2012/04/what-is-collations-in-sql-server.html' title='what is collations in sql server'/><author><name>Vijay Maurya</name><uri>http://www.blogger.com/profile/00459112937519229095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAq0unsQRC0g7q8LCCjOU5NUrCuyXX5vMfcWbPl5cNsojKH_YS1rJIQL3mxLSTxPXCdJ90rCGzSmU-cFJ9vqjHSMbOxvOb1NaDkURBdhKasrpOq9yuoNpW9_XfPk_1qWU/s220/clip_image001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7205115418491271533.post-273467266312871596</id><published>2012-04-04T00:05:00.000-07:00</published><updated>2012-04-04T00:16:54.621-07:00</updated><title type='text'>Improving SQL Performance</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: verdana, tahoma, arial, sans-serif; font-size: 12px; line-height: 19px; margin-bottom: 0.7em; margin-top: 0.7em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;strong style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Twelve Tips For Optimizing Sql Server 2005 Query Performance&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: verdana, tahoma, arial, sans-serif; font-size: 12px; line-height: 19px; margin-bottom: 0.7em; margin-top: 0.7em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
1. Turn on the execution plan, and statistics&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;2. Use Clustered Indexes&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;3. Use Indexed Views&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;4. Use Covering Indexes&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;5. Keep your clustered index small.&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;6. Avoid cursors&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;7. Archive old data&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;8. Partition your data correctly&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;9. Remove user-defined inline scalar functions&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;10. Use APPLY&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;11. Use computed columns&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;12. Use the correct transaction isolation level&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #010100; font-family: Helvetica, Arial; font-size: 13px; text-align: -webkit-auto;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #010100; font-family: Helvetica, Arial; font-size: 13px; text-align: -webkit-auto;&quot;&gt;To increase the speed of SQL SELECT query, you can analyze the following issues:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background-color: white; font-family: Helvetica, Arial;&quot;&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;14&quot;&gt;&lt;/td&gt;&lt;td width=&quot;14&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: black; font-family: Symbol; font-size: x-small;&quot;&gt;·&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;RequestLive&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&amp;nbsp;property value &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background-color: white; font-family: Helvetica, Arial;&quot;&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;14&quot;&gt;&lt;/td&gt;&lt;td width=&quot;14&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: black; font-family: Symbol; font-size: x-small;&quot;&gt;·&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;Available indexes for conditions from WHERE clause &amp;nbsp;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background-color: white; font-family: Helvetica, Arial;&quot;&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;14&quot;&gt;&lt;/td&gt;&lt;td width=&quot;14&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: black; font-family: Symbol; font-size: x-small;&quot;&gt;·&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;Rewriting a query with OR conditions as a UNION &amp;nbsp;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background-color: white; font-family: Helvetica, Arial;&quot;&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;14&quot;&gt;&lt;/td&gt;&lt;td width=&quot;14&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: black; font-family: Symbol; font-size: x-small;&quot;&gt;·&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;Available indexes for JOIN conditions &amp;nbsp;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background-color: white; font-family: Helvetica, Arial;&quot;&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;14&quot;&gt;&lt;/td&gt;&lt;td width=&quot;14&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: black; font-family: Symbol; font-size: x-small;&quot;&gt;·&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;Available indexes for ORDER BY clause &amp;nbsp;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background-color: white; font-family: Helvetica, Arial;&quot;&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;14&quot;&gt;&lt;/td&gt;&lt;td width=&quot;14&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: black; font-family: Symbol; font-size: x-small;&quot;&gt;·&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;Available indexes for GROUP BY clause &amp;nbsp;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background-color: white; font-family: Helvetica, Arial;&quot;&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;14&quot;&gt;&lt;/td&gt;&lt;td width=&quot;14&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: black; font-family: Symbol; font-size: x-small;&quot;&gt;·&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;Select from in-memory tables &amp;nbsp;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background-color: white; font-family: Helvetica, Arial;&quot;&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;14&quot;&gt;&lt;/td&gt;&lt;td width=&quot;14&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: black; font-family: Symbol; font-size: x-small;&quot;&gt;·&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;SELECT INTO vs INSERT SELECT &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;b&gt;RequestLive property value&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;br /&gt;The first important option which can be used for a speed optimization is the TABSQuery.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;RequestLive&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&amp;nbsp;property.&lt;br /&gt;If selection query is simple and involves a single table only, try to set&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;i&gt;RequestLive&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&amp;nbsp;value to&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;b&gt;True and&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&amp;nbsp;to&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;b&gt;False&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&amp;nbsp;before opening a query. Some queries run faster with the&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;i&gt;RequestLive=True,&amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;others&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;i&gt;&amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;will perform much better with the&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;i&gt;RequestLive=False&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;b&gt;Available indexes for conditions from WHERE clause&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;br /&gt;It is recommended to make sure that optimal indexes for conditions from WHERE clause are available.&lt;br /&gt;See the topic &quot;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;Speeding up Searches and Filters&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&quot; for more details on how to check search conditions and create appropriate indexes.&lt;br /&gt;For example if you would like to get a better performance for the query:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;14&quot;&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;&lt;b&gt;SELECT&lt;/b&gt;&amp;nbsp;*&amp;nbsp;&lt;b&gt;FROM&lt;/b&gt;&amp;nbsp;customer&amp;nbsp;&lt;b&gt;WHERE&lt;/b&gt;&amp;nbsp;City=&#39;Kapaa&amp;nbsp;Kauai&#39;&amp;nbsp;&lt;b&gt;AND&lt;/b&gt;&amp;nbsp;State=&#39;HI&#39; &amp;nbsp;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;14&quot;&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 4pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;the best way to speed it up is to create the following case-sensitive index:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;br /&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;14&quot;&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;ABSTable1.AddIndex(&lt;span style=&quot;color: navy; font-size: 8pt;&quot;&gt;&#39;idxCityState&#39;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;,&amp;nbsp;&lt;span style=&quot;color: navy; font-size: 8pt;&quot;&gt;&#39;City;State&#39;,&amp;nbsp;[]&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;); &amp;nbsp;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;14&quot;&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;br /&gt;If you need to get a better performance for the query:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;br /&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;14&quot;&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;&lt;b&gt;SELECT&lt;/b&gt;&amp;nbsp;*&amp;nbsp;&lt;b&gt;FROM&lt;/b&gt;&amp;nbsp;customer&amp;nbsp;&lt;b&gt;WHERE&lt;/b&gt;&amp;nbsp;Upper(City)=&#39;KAPAA&amp;nbsp;KAUAI&#39; &amp;nbsp;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;14&quot;&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 4pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;the best way to speed it up is to create the following case-insensitive index:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;br /&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;14&quot;&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;ABSTable1.AddIndex(&lt;span style=&quot;color: navy; font-size: 8pt;&quot;&gt;&#39;idxCity_nocase&#39;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;,&amp;nbsp;&lt;span style=&quot;color: navy; font-size: 8pt;&quot;&gt;&#39;City&#39;,&amp;nbsp;[ixCaseInsensitive]&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;); &amp;nbsp;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;14&quot;&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;b&gt;Available indexes for JOIN conditions&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;br /&gt;To improve a JOIN query, please check that each field from JOIN conditions has an index.&lt;br /&gt;For example if you would like to improve the performance of the query:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;br /&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;14&quot;&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;&lt;b&gt;SELECT&amp;nbsp;Event_Name,Venue&amp;nbsp;FROM&amp;nbsp;Events&amp;nbsp;e&amp;nbsp;JOIN&amp;nbsp;Venues&amp;nbsp;v&amp;nbsp;ON&amp;nbsp;(e.VenueNo&amp;nbsp;=&amp;nbsp;v.VenueNo)&lt;/b&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;14&quot;&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 4pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;you can create the following indexes:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;br /&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;14&quot;&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;VenuesTable.AddIndex(&lt;span style=&quot;color: navy; font-size: 8pt;&quot;&gt;&#39;idxVenueNo&#39;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;,&amp;nbsp;&lt;span style=&quot;color: navy; font-size: 8pt;&quot;&gt;&#39;VenueNo&#39;,&amp;nbsp;[ixPrimary]&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;); &amp;nbsp;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;14&quot;&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;EventsTable.AddIndex(&lt;span style=&quot;color: navy; font-size: 8pt;&quot;&gt;&#39;idxVenueNo&#39;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;,&amp;nbsp;&lt;span style=&quot;color: navy; font-size: 8pt;&quot;&gt;&#39;VenueNo&#39;,&amp;nbsp;[]&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;); &amp;nbsp;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;14&quot;&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;b&gt;Rewriting query with OR conditions as a UNION&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;br /&gt;Absolute DB cannot use indexes to improve performance of a query with OR conditions. You can speedup your&lt;br /&gt;query&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;br /&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;14&quot;&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;&lt;b&gt;SELECT&amp;nbsp;*&amp;nbsp;FROM&amp;nbsp;table&amp;nbsp;WHERE&amp;nbsp;(Field1&amp;nbsp;=&amp;nbsp;&#39;Value1&#39;)&amp;nbsp;OR&amp;nbsp;(Field2&amp;nbsp;=&amp;nbsp;&#39;Value2&#39;)&lt;/b&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;14&quot;&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 4pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;by creating indexes on each field in the above conditions and by using a UNION operator instead&lt;br /&gt;of using OR:&lt;br /&gt;&lt;br /&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;14&quot;&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;&lt;b&gt;SELECT&lt;/b&gt;&amp;nbsp;...&amp;nbsp;&lt;b&gt;WHERE&lt;/b&gt;&amp;nbsp;&lt;b&gt;Field1&amp;nbsp;=&amp;nbsp;&#39;Value1&#39;&lt;/b&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;14&quot;&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;&lt;b&gt;UNION&lt;/b&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;14&quot;&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;&lt;b&gt;SELECT&lt;/b&gt;&amp;nbsp;...&amp;nbsp;&lt;b&gt;WHERE&lt;/b&gt;&amp;nbsp;&lt;b&gt;Field2&amp;nbsp;=&amp;nbsp;&#39;Value2&#39;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;14&quot;&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;b&gt;Available indexes for ORDER BY clause&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;br /&gt;If you want to speed up a &quot;live&quot; SELECT from a single table with ORDER BY clause, you can create a compound index for ORDER BY fields.&lt;br /&gt;For example if you would like to increase the speed of the query:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;br /&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;14&quot;&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;&lt;b&gt;SELECT&lt;/b&gt;&amp;nbsp;*&amp;nbsp;&lt;b&gt;FROM&lt;/b&gt;&amp;nbsp;Employee&amp;nbsp;&lt;b&gt;ORDER&lt;/b&gt;&amp;nbsp;&lt;b&gt;BY&lt;/b&gt;&amp;nbsp;LastName,&amp;nbsp;FirstName &amp;nbsp;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;14&quot;&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 4pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;you can do it by creating the following compound index:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;br /&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;14&quot;&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;ABSTable1.AddIndex(&lt;span style=&quot;color: navy; font-size: 8pt;&quot;&gt;&#39;idxLastNameFirstName&#39;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;,&amp;nbsp;&#39;&lt;span style=&quot;color: navy; font-size: 8pt;&quot;&gt;LastName;FirstName&#39;,&amp;nbsp;[]&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;); &amp;nbsp;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;14&quot;&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;b&gt;Available indexes for GROUP BY clause&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;To get a better performance for SELECT from a single table with GROUP BY clause, you can create a compound index for GROUP BY fields.&lt;br /&gt;For example if you want to speed up the query:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;br /&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;14&quot;&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;&lt;b&gt;SELECT&lt;/b&gt;&amp;nbsp;*&amp;nbsp;&lt;b&gt;FROM&lt;/b&gt;&amp;nbsp;Employee&amp;nbsp;&lt;b&gt;GROUP&lt;/b&gt;&amp;nbsp;&lt;b&gt;BY&lt;/b&gt;&amp;nbsp;FirstName &amp;nbsp;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;14&quot;&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 4pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;you can create the following index:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;br /&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;14&quot;&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;ABSTable1.AddIndex(&lt;span style=&quot;color: navy; font-size: 8pt;&quot;&gt;&#39;idxFirstName&#39;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;,&amp;nbsp;&#39;&lt;span style=&quot;color: navy; font-size: 8pt;&quot;&gt;FirstName&#39;,&amp;nbsp;[]&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;); &amp;nbsp;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;14&quot;&gt;&lt;/td&gt;&lt;td&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 8pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;b&gt;Select from in-memory tables&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;Your query perofrmance could be increased also if you will move all data from disk tables to&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;in-memory tables&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&amp;nbsp;and you will perform a query using in-memory copies of the disk tables (Set TABSQuery.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;InMemory&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&amp;nbsp;property to True before query execution).&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;b&gt;SELECT INTO vs INSERT SELECT&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;br /&gt;In some cases&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;b&gt;SELECT ... INTO&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;b&gt;&lt;i&gt;some_table&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&amp;nbsp;query runs faster than&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;b&gt;INSERT INTO some_table (SELECT ...)&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;i&gt;,&amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;in another cases&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;i&gt;&amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;INSERT INTO is faster. Please note that the&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;RequestLive&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;i&gt;&amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;property could have an impact on a performance of these queries.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: black; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: black; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: black; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: black; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: black; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: black; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: black; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: black; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: black; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: black; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: black; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: black; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: black; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: black; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: black; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: black; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: black; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: black; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: black; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: black; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 4pt;&quot;&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #010100; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://selectinsql.blogspot.com/feeds/273467266312871596/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://selectinsql.blogspot.com/2012/04/improving-sql-performance.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/273467266312871596'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/273467266312871596'/><link rel='alternate' type='text/html' href='http://selectinsql.blogspot.com/2012/04/improving-sql-performance.html' title='Improving SQL Performance'/><author><name>Vijay Maurya</name><uri>http://www.blogger.com/profile/00459112937519229095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAq0unsQRC0g7q8LCCjOU5NUrCuyXX5vMfcWbPl5cNsojKH_YS1rJIQL3mxLSTxPXCdJ90rCGzSmU-cFJ9vqjHSMbOxvOb1NaDkURBdhKasrpOq9yuoNpW9_XfPk_1qWU/s220/clip_image001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7205115418491271533.post-5596779605333309141</id><published>2012-03-30T02:33:00.000-07:00</published><updated>2012-03-30T02:33:04.309-07:00</updated><title type='text'>Coalesce in Sql server example</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: &#39;Helvetica Neue&#39;, Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: orange;&quot;&gt;Introduction&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #37414b; font-family: &#39;Helvetica Neue&#39;, Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;COALESCE() accepts a series of values and a value to use in the event that all items in the list are null; then, it returns the first not-null value. This tip describes two creative uses of the COALESCE() function in SQL Server.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Helvetica Neue&#39;, Helvetica, sans-serif; font-size: 14px; line-height: 19px; text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #37414b; font-family: &#39;Helvetica Neue&#39;, Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
Here is a simple example: You have a table of persons whose columns include FirstName, MiddleName and LastName. The table contains these values:&lt;/div&gt;
&lt;ul style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #37414b; font-family: &#39;Helvetica Neue&#39;, Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 20px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot; type=&quot;disc&quot;&gt;
&lt;li style=&quot;border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-style: inherit; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;John A. MacDonald&lt;/li&gt;
&lt;li style=&quot;border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-style: inherit; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;Franklin D. Roosevelt&lt;/li&gt;
&lt;li style=&quot;border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-style: inherit; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;Madonna&lt;/li&gt;
&lt;li style=&quot;border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-style: inherit; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;Cher&lt;/li&gt;
&lt;li style=&quot;border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-style: inherit; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;Mary Weilage&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #37414b; font-family: &#39;Helvetica Neue&#39;, Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
If you want to print their complete names as single strings, here&#39;s how to do it with COALESCE():&lt;/div&gt;
&lt;pre style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #345220; font-family: consolas, &#39;Courier New&#39;, courier, monospace; font-size: 14px; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;SELECT&amp;nbsp; FirstName + &#39; &#39; +COALESCE(MiddleName,&#39;&#39;)+ &#39; &#39; +COALESCE(LastName,&#39;&#39;)&lt;/pre&gt;
&lt;div style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #37414b; font-family: &#39;Helvetica Neue&#39;, Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
If you don&#39;t want to write that for every query,&amp;nbsp;&lt;b&gt;Listing A&lt;/b&gt;&amp;nbsp;shows how you can turn it into a function. Now whenever you need this script (regardless of what the columns are actually named) just call the function and pass the three columns. In the examples below, I&#39;m passing literals, but you can substitute column names and achieve the same results:&lt;/div&gt;
&lt;pre style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #345220; font-family: consolas, &#39;Courier New&#39;, courier, monospace; font-size: 14px; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;SELECT dbo.WholeName(&#39;James&#39;,NULL,&#39;Bond&#39;)
UNION
 SELECT dbo.WholeName(&#39;Cher&#39;,NULL,NULL)
UNION
 SELECT dbo.WholeName(&#39;John&#39;,&#39;F.&#39;,&#39;Kennedy&#39;)&lt;/pre&gt;
&lt;div style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #37414b; font-family: &#39;Helvetica Neue&#39;, Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
Here is the result set:&lt;/div&gt;
&lt;pre style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #345220; font-family: consolas, &#39;Courier New&#39;, courier, monospace; font-size: 14px; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;Cher&amp;nbsp; 
 James&amp;nbsp; Bond
 John F. Kennedy&lt;/pre&gt;
&lt;div style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #37414b; font-family: &#39;Helvetica Neue&#39;, Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
You&#39;ll notice a hole in our thinking -- there are two spaces in James Bond&#39;s name. It&#39;s easy to fix this by changing the @result line to the following:&lt;/div&gt;
&lt;pre style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #345220; font-family: consolas, &#39;Courier New&#39;, courier, monospace; font-size: 14px; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;SELECT @Result = LTRIM(@first + &#39; &#39; + COALESCE(@middle,&#39;&#39;) + &#39; &#39;) + COALESCE(@last,&#39;&#39;)&lt;/pre&gt;
&lt;div style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #37414b; font-family: &#39;Helvetica Neue&#39;, Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
Here&#39;s another use of COALESCE(). In this example, I will produce a list of monies paid to employees. The problem is there are different payment arrangements for different employees (e.g., some employees are paid by the hour, by piece work, with a weekly salary, or by commission).&lt;/div&gt;
&lt;div style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #37414b; font-family: &#39;Helvetica Neue&#39;, Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
&lt;b&gt;Listing B&lt;/b&gt;&amp;nbsp;contains the code to create a sample table. Here are a few sample rows, one of each type:&lt;/div&gt;
&lt;pre style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #345220; font-family: consolas, &#39;Courier New&#39;, courier, monospace; font-size: 14px; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 18.0040&amp;nbsp;&amp;nbsp;&amp;nbsp; NULL&amp;nbsp; NULL&amp;nbsp; NULL&amp;nbsp; NULL
 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NULL&amp;nbsp; NULL&amp;nbsp; 4.00&amp;nbsp; 400&amp;nbsp;&amp;nbsp; NULL&amp;nbsp; NULL
 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NULL&amp;nbsp; NULL&amp;nbsp; NULL&amp;nbsp; NULL&amp;nbsp; 800.00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NULL
 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NULL&amp;nbsp; NULL&amp;nbsp; NULL&amp;nbsp; NULL&amp;nbsp; 500.00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 600&lt;/pre&gt;
&lt;div style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #37414b; font-family: &#39;Helvetica Neue&#39;, Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
Use the following code to list the amount paid to employees (regardless of how they are paid) in a single column:&lt;/div&gt;
&lt;pre style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #345220; font-family: consolas, &#39;Courier New&#39;, courier, monospace; font-size: 14px; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;SELECT 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EmployeeID,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COALESCE(HourlyWage * HoursPerWeek,0)+
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COALESCE(AmountPerPiece * PiecesThisWeek,0)+
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COALESCE(WeeklySalary + CommissionThisWeek,0)AS Payment
FROM [Coalesce_Demo].[PayDay]&lt;/pre&gt;
&lt;div style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #37414b; font-family: &#39;Helvetica Neue&#39;, Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
Here is the result set:&lt;/div&gt;
&lt;pre style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #345220; font-family: consolas, &#39;Courier New&#39;, courier, monospace; font-size: 14px; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;EmployeeID&amp;nbsp; Payment
 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 720.00
 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1600.00
 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 800.00
 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1100.00&lt;/pre&gt;
&lt;div style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #37414b; font-family: &#39;Helvetica Neue&#39;, Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
You might need that expression in several places in your application and, although it works, it isn&#39;t very graceful. This is how you can create a calculated column to do it:&lt;/div&gt;
&lt;pre style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #345220; font-family: consolas, &#39;Courier New&#39;, courier, monospace; font-size: 14px; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;ALTER TABLE Coalesce_Demo.PayDay
ADD Payment AS
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COALESCE(HourlyWage * HoursPerWeek,0)+
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COALESCE(AmountPerPiece * PiecesThisWeek,0)+
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COALESCE(WeeklySalary + CommissionThisWeek,0)&lt;/pre&gt;
&lt;div style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #37414b; font-family: &#39;Helvetica Neue&#39;, Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
Now a simple SELECT * displays the pre-calculated results.&lt;/div&gt;
&lt;h2 style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #37414b; font-family: &#39;Helvetica Neue&#39;, Helvetica, sans-serif; font-size: 1.43em; line-height: 1.23em; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
Summary&lt;/h2&gt;
&lt;div style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #37414b; font-family: &#39;Helvetica Neue&#39;, Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
This tip demonstrates some unusual ways and places to apply the power of COALESCE(). In my experience, COALESCE() most often appears within a very specific content, such as in a query or view or stored procedure.&lt;/div&gt;
&lt;div style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #37414b; font-family: &#39;Helvetica Neue&#39;, Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
You can generalize the use of COALESCE() by placing it in a function. You can also optimize its performance and make its results constantly available by placing it in a calculated column.&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://selectinsql.blogspot.com/feeds/5596779605333309141/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://selectinsql.blogspot.com/2012/03/coalesce-in-sql-server-example.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/5596779605333309141'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/5596779605333309141'/><link rel='alternate' type='text/html' href='http://selectinsql.blogspot.com/2012/03/coalesce-in-sql-server-example.html' title='Coalesce in Sql server example'/><author><name>Vijay Maurya</name><uri>http://www.blogger.com/profile/00459112937519229095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAq0unsQRC0g7q8LCCjOU5NUrCuyXX5vMfcWbPl5cNsojKH_YS1rJIQL3mxLSTxPXCdJ90rCGzSmU-cFJ9vqjHSMbOxvOb1NaDkURBdhKasrpOq9yuoNpW9_XfPk_1qWU/s220/clip_image001.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7205115418491271533.post-3202543164719851211</id><published>2012-03-30T02:17:00.000-07:00</published><updated>2012-03-30T02:42:47.368-07:00</updated><title type='text'>Alternatives To SQL Server Cursors</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h4 style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva; margin-bottom: 0.13em; padding-bottom: 0.2em; text-align: -webkit-auto;&quot;&gt;

&lt;span style=&quot;color: orange;&quot;&gt;Introduction&lt;/span&gt;&lt;/h4&gt;
&lt;span style=&quot;background-color: white; color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva; text-align: -webkit-auto;&quot;&gt;Anyone with more than a little exposure to SQL Server will soon come to the conclusion that the use of cursors is best avoided. SQL Server is a&amp;nbsp;&lt;/span&gt;Relational Database Management System&lt;span class=&quot;externalLinkIcon&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva; text-align: -webkit-auto;&quot;&gt;, and as such is very proficient at processing sets of data. &lt;b&gt;The use of a cursor effectively repeats an operation once for each row being processed, &lt;/b&gt;thereby consuming far more server resources than would be necessitated by a set-based operation. In addition, since&lt;b&gt; SQL cursors are processed much more slowly&lt;/b&gt; than set-based operations, any locks generated by the use of said cursor are held longer than would otherwise be necessary. In this way, the use of a cursor can affect not only the performance of a given batch of work, but also the performance of any other batches which need to make use of the same data resources.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva; text-align: -webkit-auto;&quot;&gt;In order to effectively avoid using a SQL cursor, one must know why a cursor is being used in the first place. The list below details the most common reasons why people use cursors, and some possible solutions for each problem.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Problem: The Developer or Designer is new to SQL Server&lt;br style=&quot;background-color: white; color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva; text-align: -webkit-auto;&quot; /&gt;Problem: Need to update a table with incrementing column values for records already in the table&lt;br style=&quot;background-color: white; color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva; text-align: -webkit-auto;&quot; /&gt;Problem: Need to use a custom identity function to perform an insert&lt;br style=&quot;background-color: white; color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva; text-align: -webkit-auto;&quot; /&gt;Problem: Need to compare a row to adjacent rows in a table&lt;/b&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h5 style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva; margin-bottom: 0.13em; text-align: -webkit-auto;&quot;&gt;

&lt;span style=&quot;color: orange; font-size: small;&quot;&gt;Problem: The Developer or Designer is New to SQL Server&lt;/span&gt;&lt;/h5&gt;
&lt;span style=&quot;background-color: white; color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva; text-align: -webkit-auto;&quot;&gt;By far, this is the most common reason for cursor usage. If a programmer is already well versed in an event-driven programming language such as Visual Basic, they will possess a great wealth of experience in dealing with data items one at a time. As such, their natural inclination when moving into SQL is to do the same. Unfortunately, what is appropriate in one language may be (and in this case is) entirely inappropriate in another.&lt;/span&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h5 style=&quot;background-color: white; color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva; margin-bottom: 0.13em; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;
Resolution&lt;/span&gt;&lt;/h5&gt;
&lt;span style=&quot;background-color: white; color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva; text-align: -webkit-auto;&quot;&gt;The primary weapon against cursor usage in this scenario is to develop a strong understanding of the basics of Transact-SQL. There are countless courses, books, and websites dedicated to the topic. In addition, you can review the examples below, which present set-based solutions to problems which may otherwise necessitate a cursor.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva; text-align: -webkit-auto;&quot;&gt;If you’re still struggling with finding a set-based solution, post a question in the&amp;nbsp;&lt;/span&gt;MSDN Transact-SQL Forum
&lt;br /&gt;
&lt;br /&gt;
&lt;h5 style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva; margin-bottom: 0.13em; text-align: -webkit-auto;&quot;&gt;

&lt;span style=&quot;color: orange; font-size: small;&quot;&gt;Problem: Need to update a table with incrementing column values for records already in the table&lt;/span&gt;&lt;/h5&gt;
&lt;span style=&quot;background-color: white; color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva; text-align: -webkit-auto;&quot;&gt;This problem is most often encountered when importing data from an external data source. The external data source may not have a key field, for instance, and for one of various reasons, an identity column cannot be used while importing.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h5 style=&quot;background-color: white; color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva; margin-bottom: 0.13em; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;
Resolution&lt;/span&gt;&lt;/h5&gt;
&lt;span style=&quot;background-color: white; color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva; text-align: -webkit-auto;&quot;&gt;A number of methods may be employed to resolve this issue. The most efficient and straightforward method, available in SQL 2005 and greater, is to use the&lt;/span&gt;ROW_NUMBER()&lt;span class=&quot;externalLinkIcon&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;function.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva; text-align: -webkit-auto;&quot;&gt;Using the&amp;nbsp;&lt;/span&gt;AdventureWorks&lt;span class=&quot;externalLinkIcon&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;database:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #ececec; border-bottom-color: rgb(62, 98, 166); border-bottom-style: dashed; border-bottom-width: 0.1em; border-image: initial; border-left-color: rgb(62, 98, 166); border-left-style: dashed; border-left-width: 0.1em; border-right-color: rgb(62, 98, 166); border-right-style: dashed; border-right-width: 0.1em; border-top-color: rgb(62, 98, 166); border-top-style: dashed; border-top-width: 0.1em; color: #080808; font-family: Consolas, &#39;Courier New&#39;, Courier, monospace; height: auto; overflow-x: auto; overflow-y: hidden; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; text-align: -webkit-auto;&quot;&gt;SELECT LoginID, ROW_NUMBER() OVER (ORDER BY LoginID ASC) AS RowKey
FROM  HumanResources.EmployeeLogins
&lt;/pre&gt;
&lt;pre style=&quot;background-color: #ececec; border-bottom-color: rgb(62, 98, 166); border-bottom-style: dashed; border-bottom-width: 0.1em; border-image: initial; border-left-color: rgb(62, 98, 166); border-left-style: dashed; border-left-width: 0.1em; border-right-color: rgb(62, 98, 166); border-right-style: dashed; border-right-width: 0.1em; border-top-color: rgb(62, 98, 166); border-top-style: dashed; border-top-width: 0.1em; color: #080808; font-family: Consolas, &#39;Courier New&#39;, Courier, monospace; height: auto; overflow-x: auto; overflow-y: hidden; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; text-align: -webkit-auto;&quot;&gt;WITH RowKeys (LoginID, RowKey) AS 
  (SELECT LoginID, 
    ROW_NUMBER() OVER (ORDER BY LoginID ASC) AS RowKey
  FROM HumanResources.EmployeeLogins)
UPDATE HumanResources.EmployeeLogins
SET  RowKey = rk.RowKey
FROM  HumanResources.EmployeeLogins el
JOIN  RowKeys rk ON el.LoginID = rk.LoginID
&lt;/pre&gt;
&lt;span style=&quot;background-color: white; color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva; text-align: -webkit-auto;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva; text-align: -webkit-auto;&quot;&gt;ROW_NUMBER() can also be used to number rows based upon logical groupings, or partitions in data, although this is less applicable to cursor replacement. For instance, the test data contains logins from multiple domains, and you may want to number the rows in the table based upon their position within a grouping of rows from the same domain.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #ececec; border-bottom-color: rgb(62, 98, 166); border-bottom-style: dashed; border-bottom-width: 0.1em; border-image: initial; border-left-color: rgb(62, 98, 166); border-left-style: dashed; border-left-width: 0.1em; border-right-color: rgb(62, 98, 166); border-right-style: dashed; border-right-width: 0.1em; border-top-color: rgb(62, 98, 166); border-top-style: dashed; border-top-width: 0.1em; color: #080808; font-family: Consolas, &#39;Courier New&#39;, Courier, monospace; height: auto; overflow-x: auto; overflow-y: hidden; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; text-align: -webkit-auto;&quot;&gt;--Use ROW_NUMBER in conjunction with PARTITION to create row numbers grouped by domain
SELECT LoginID, 
  ROW_NUMBER() OVER 
   (PARTITION BY LEFT(LoginID, CHARINDEX(&#39;\&#39;, LoginID) - 1) 
   ORDER BY LoginID ASC) AS RowKey
FROM  HumanResources.EmployeeLogins
&lt;/pre&gt;
&lt;span style=&quot;background-color: white; color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva; text-align: -webkit-auto;&quot;&gt;Also worth noting is that the sort order of the OVER clause does not have to match the sort order of the outermost query.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva; text-align: -webkit-auto;&quot;&gt;In the event that the numbering has to start at a number other than zero, that number can be added to ROW_NUMBER() in order to obtain the desired row numbers.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva; text-align: -webkit-auto;&quot;&gt;For instance:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #ececec; border-bottom-color: rgb(62, 98, 166); border-bottom-style: dashed; border-bottom-width: 0.1em; border-image: initial; border-left-color: rgb(62, 98, 166); border-left-style: dashed; border-left-width: 0.1em; border-right-color: rgb(62, 98, 166); border-right-style: dashed; border-right-width: 0.1em; border-top-color: rgb(62, 98, 166); border-top-style: dashed; border-top-width: 0.1em; color: #080808; font-family: Consolas, &#39;Courier New&#39;, Courier, monospace; height: auto; overflow-x: auto; overflow-y: hidden; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; text-align: -webkit-auto;&quot;&gt;SELECT LoginID, 
  100 + ROW_NUMBER() OVER 
   (PARTITION BY LEFT(LoginID, CHARINDEX(&#39;\&#39;, LoginID) - 1) 
   ORDER BY LoginID ASC) AS RowKey
FROM  HumanResources.EmployeeLogins
&lt;/pre&gt;
&lt;span style=&quot;background-color: white; color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva; text-align: -webkit-auto;&quot;&gt;The same function can be performed, albeit far less efficiently, in SQL 2000. The following solution uses an inline subquery in order to COUNT the number of rows on or before a given LoginID:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #ececec; border-bottom-color: rgb(62, 98, 166); border-bottom-style: dashed; border-bottom-width: 0.1em; border-image: initial; border-left-color: rgb(62, 98, 166); border-left-style: dashed; border-left-width: 0.1em; border-right-color: rgb(62, 98, 166); border-right-style: dashed; border-right-width: 0.1em; border-top-color: rgb(62, 98, 166); border-top-style: dashed; border-top-width: 0.1em; color: #080808; font-family: Consolas, &#39;Courier New&#39;, Courier, monospace; height: auto; overflow-x: auto; overflow-y: hidden; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; text-align: -webkit-auto;&quot;&gt;SELECT el1.LoginID,
  (SELECT COUNT(LoginID)
  FROM HumanResources.EmployeeLogins el2
  WHERE el2.LoginID &amp;lt;= el1.LoginID) AS RowKey
FROM HumanResources.EmployeeLogins el1
&lt;/pre&gt;
&lt;span style=&quot;background-color: white; color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva; text-align: -webkit-auto;&quot;&gt;This solution is subject to error if duplicate values are present in the columns being used for comparison. If there were two identical LoginIDs, they would both be granted the same RowKey. When dealing with duplicate fields such as this, a local temporary table can be used in order to ensure unique row numbering:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #ececec; border-bottom-color: rgb(62, 98, 166); border-bottom-style: dashed; border-bottom-width: 0.1em; border-image: initial; border-left-color: rgb(62, 98, 166); border-left-style: dashed; border-left-width: 0.1em; border-right-color: rgb(62, 98, 166); border-right-style: dashed; border-right-width: 0.1em; border-top-color: rgb(62, 98, 166); border-top-style: dashed; border-top-width: 0.1em; color: #080808; font-family: Consolas, &#39;Courier New&#39;, Courier, monospace; height: auto; overflow-x: auto; overflow-y: hidden; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; text-align: -webkit-auto;&quot;&gt;CREATE TABLE #EmployeeLoginsTemp
 (RowKey int IDENTITY(1,1) NOT NULL,
 LoginID nvarchar(256))
 
INSERT #EmployeeLoginsTemp (LoginID)
SELECT LoginID FROM HumanResources.EmployeeLogins
 
SELECT * FROM #EmployeeLoginsTemp
&lt;/pre&gt;
&lt;h5 style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva; margin-bottom: 0.13em; text-align: -webkit-auto;&quot;&gt;

&lt;span style=&quot;color: orange; font-size: small;&quot;&gt;Problem: Need to use a custom identity function to perform an insert&lt;/span&gt;&lt;/h5&gt;
&lt;span style=&quot;background-color: white; color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva; text-align: -webkit-auto;&quot;&gt;Many databases employ custom identity generation functions. There are VERY FEW good reasons for using custom identity functions in SQL Server, given the presence of&amp;nbsp;&lt;/span&gt;IDENTITY&lt;span class=&quot;externalLinkIcon&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;columns and the&amp;nbsp;&lt;/span&gt;UniqueIdentifier&lt;span class=&quot;externalLinkIcon&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;data type. That is not to say that you will never encounter such a situation - just that all possible alternatives should be vetted prior to deciding upon a custom identity solution.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva; text-align: -webkit-auto;&quot;&gt;A custom identity function commonly resembles the following:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #ececec; border-bottom-color: rgb(62, 98, 166); border-bottom-style: dashed; border-bottom-width: 0.1em; border-image: initial; border-left-color: rgb(62, 98, 166); border-left-style: dashed; border-left-width: 0.1em; border-right-color: rgb(62, 98, 166); border-right-style: dashed; border-right-width: 0.1em; border-top-color: rgb(62, 98, 166); border-top-style: dashed; border-top-width: 0.1em; color: #080808; font-family: Consolas, &#39;Courier New&#39;, Courier, monospace; height: auto; overflow-x: auto; overflow-y: hidden; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; text-align: -webkit-auto;&quot;&gt;CREATE TABLE Identities (TableName sysname PRIMARY KEY CLUSTERED,
      NextKey int NOT NULL)
 
CREATE PROC GetNextKey( @TableName sysname,
      @NextKey int OUTPUT)
AS
BEGIN
 --Fetch the NextID, if there is a row for the passed-in TableName in the Identities.
 SELECT @NextKey = NextKey
 FROM Identities
 WHERE TableName = @TableName
 
 --If there wasn&#39;t a row, @NextID will be NULL.
 IF @NextKey IS NULL
 BEGIN
  INSERT Identities (TableName, NextKey)
  SELECT @TableName, 1
 
  SELECT @NextKey = NextKey
  FROM Identities
  WHERE TableName = @TableName
 END
 
 --Advance the NextID value in Identities
 UPDATE Identities
 SET  NextKey = NextKey + 1
 WHERE TableName = @TableName
END
&lt;/pre&gt;
&lt;br /&gt;
&lt;h5 style=&quot;background-color: white; color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva; margin-bottom: 0.13em; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;
Resolution&lt;/span&gt;&lt;/h5&gt;
&lt;span style=&quot;background-color: white; color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva; text-align: -webkit-auto;&quot;&gt;The biggest problem with custom identity functions is that they serialize inserts. While the following solution (for SQL 2000 and greater) does not use a cursor, it does use a WHILE loop to call the GetNextKey proc once for each row in HumanResources.EmployeeLogins:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #ececec; border-bottom-color: rgb(62, 98, 166); border-bottom-style: dashed; border-bottom-width: 0.1em; border-image: initial; border-left-color: rgb(62, 98, 166); border-left-style: dashed; border-left-width: 0.1em; border-right-color: rgb(62, 98, 166); border-right-style: dashed; border-right-width: 0.1em; border-top-color: rgb(62, 98, 166); border-top-style: dashed; border-top-width: 0.1em; color: #080808; font-family: Consolas, &#39;Courier New&#39;, Courier, monospace; height: auto; overflow-x: auto; overflow-y: hidden; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; text-align: -webkit-auto;&quot;&gt;WHILE EXISTS (SELECT 1 FROM HumanResources.EmployeeLogins WHERE RowKey IS NULL)
BEGIN
 DECLARE @NextKey int
 EXEC dbo.GetNextKey &#39;HumanResources.EmployeeLogins&#39;, @NextKey OUTPUT
 
 UPDATE HumanResources.EmployeeLogins
 SET  RowKey = @NextKey
 WHERE LoginID = (SELECT TOP 1 LoginID FROM HumanResources.EmployeeLogins WHERE RowKey IS NULL)
END
&lt;/pre&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=7205115418491271533&quot; name=&quot;CompareAdjacentRows&quot; style=&quot;background-color: white; color: #0033cc; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva; text-align: -webkit-auto;&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h5 style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva; margin-bottom: 0.13em; text-align: -webkit-auto;&quot;&gt;

&lt;span style=&quot;color: orange; font-size: small;&quot;&gt;Problem: Need to compare a row to adjacent rows in a table&lt;/span&gt;&lt;/h5&gt;
&lt;span style=&quot;background-color: white; color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva; text-align: -webkit-auto;&quot;&gt;A typical example of this type of problem is “I need to know by how much the latest price increase changed the price of each item”. The programmer often resorts to a cursor because they cannot understand how to compare each row with the previous row for the same item, where the previous row’s price was not equal to the current row’s price.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h5 style=&quot;background-color: white; color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva; margin-bottom: 0.13em; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;
Resolution&lt;/span&gt;&lt;/h5&gt;
&lt;span style=&quot;background-color: white; color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva; text-align: -webkit-auto;&quot;&gt;In this situation, an inline query can be very useful. The following solution works for SQL 2000 and higher, and uses a different AdventureWorks table for illustration. In AdventureWorks, the Production.ProductListPriceHistory table stores pricing history for each item. The current row is identified by a NULL EndDate, so we must compare the current row to the most recent row for the same item.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #ececec; border-bottom-color: rgb(62, 98, 166); border-bottom-style: dashed; border-bottom-width: 0.1em; border-image: initial; border-left-color: rgb(62, 98, 166); border-left-style: dashed; border-left-width: 0.1em; border-right-color: rgb(62, 98, 166); border-right-style: dashed; border-right-width: 0.1em; border-top-color: rgb(62, 98, 166); border-top-style: dashed; border-top-width: 0.1em; color: #080808; font-family: Consolas, &#39;Courier New&#39;, Courier, monospace; height: auto; overflow-x: auto; overflow-y: hidden; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em; text-align: -webkit-auto;&quot;&gt;SELECT plph1.ProductID,  plph1.ListPrice - 
  COALESCE((SELECT  TOP 1 ListPrice
    FROM  Production.ProductListPriceHistory plph2
    WHERE  EndDate IS NOT NULL
    AND   plph2.ProductID = plph1.ProductID
    ORDER BY EndDate DESC), 
    plph1.ListPrice) AS LastPriceChangeAmount
FROM Production.ProductListPriceHistory plph1
WHERE plph1.EndDate IS NULL
&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br class=&quot;Apple-interchange-newline&quot; /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://selectinsql.blogspot.com/feeds/3202543164719851211/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://selectinsql.blogspot.com/2012/03/alternatives-to-sql-server-cursors.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/3202543164719851211'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/3202543164719851211'/><link rel='alternate' type='text/html' href='http://selectinsql.blogspot.com/2012/03/alternatives-to-sql-server-cursors.html' title='Alternatives To SQL Server Cursors'/><author><name>Vijay Maurya</name><uri>http://www.blogger.com/profile/00459112937519229095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAq0unsQRC0g7q8LCCjOU5NUrCuyXX5vMfcWbPl5cNsojKH_YS1rJIQL3mxLSTxPXCdJ90rCGzSmU-cFJ9vqjHSMbOxvOb1NaDkURBdhKasrpOq9yuoNpW9_XfPk_1qWU/s220/clip_image001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7205115418491271533.post-7490075714368101756</id><published>2012-03-26T21:40:00.000-07:00</published><updated>2012-03-26T21:40:10.471-07:00</updated><title type='text'>SQL Server Transactions and Error Handling</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h2 style=&quot;background-color: white; color: #ff9900; font-family: Verdana, Arial, sans-serif; font-size: 13pt; text-align: -webkit-auto;&quot;&gt;
Transactions&lt;/h2&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
Transactions group a set of tasks into a single execution unit. Each transaction begins with a specific task and ends when all the tasks in the group successfully complete. If any of the tasks fails, the transaction fails. Therefore, a transaction has only two results: success or failure. Incomplete steps result in the failure of the transaction.&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
Users can group two or more Transact-SQL statements into a single transaction using the following statements:&lt;/div&gt;
&lt;ul style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;Begin Transaction&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;Rollback Transaction&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;Commit Transaction&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
If anything goes wrong with any of the grouped statements, all changes need to be aborted. The process of reversing changes is called&amp;nbsp;&lt;b&gt;rollback&lt;/b&gt;&amp;nbsp;in SQL Server terminology. If everything is in order with all statements within a single transaction, all changes are recorded together in the database. In SQL Server terminology, we say that these changes are&amp;nbsp;&lt;b&gt;committed&lt;/b&gt;&amp;nbsp;to the database.&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
Here is an example of a transaction :&lt;/div&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain2&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;&quot; width=&quot;100%&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id=&quot;pre2&quot; lang=&quot;sql&quot; style=&quot;background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(251, 237, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(251, 237, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(251, 237, 187); border-top-style: solid; border-top-width: 1px; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 9pt; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; text-align: -webkit-auto; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;USE&lt;/span&gt; pubs

&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;DECLARE&lt;/span&gt; @intErrorCode &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;INT&lt;/span&gt;

&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;BEGIN&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;TRAN&lt;/span&gt;
    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;UPDATE&lt;/span&gt; Authors
    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;SET&lt;/span&gt; Phone = &lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;415 354-9866&#39;&lt;/span&gt;
    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;WHERE&lt;/span&gt; au_id = &lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;724-80-9391&#39;&lt;/span&gt;

    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; @intErrorCode = &lt;span class=&quot;code-preprocessor&quot; style=&quot;color: navy;&quot;&gt;@@ERROR&lt;/span&gt;
    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;IF&lt;/span&gt; (@intErrorCode &amp;lt;&amp;gt; &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;0&lt;/span&gt;) &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;GOTO&lt;/span&gt; PROBLEM

    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;UPDATE&lt;/span&gt; Publishers
    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;SET&lt;/span&gt; city = &lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;Calcutta&#39;&lt;/span&gt;, country = &lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;India&#39;&lt;/span&gt;
    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;WHERE&lt;/span&gt; pub_id = &lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;9999&#39;&lt;/span&gt;

    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; @intErrorCode = &lt;span class=&quot;code-preprocessor&quot; style=&quot;color: navy;&quot;&gt;@@ERROR&lt;/span&gt;
    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;IF&lt;/span&gt; (@intErrorCode &amp;lt;&amp;gt; &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;0&lt;/span&gt;) &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;GOTO&lt;/span&gt; PROBLEM
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;COMMIT&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;TRAN&lt;/span&gt;

PROBLEM:
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;IF&lt;/span&gt; (@intErrorCode &amp;lt;&amp;gt; &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;0&lt;/span&gt;) &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;BEGIN&lt;/span&gt;
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;PRINT&lt;/span&gt; &lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;Unexpected error occurred!&#39;&lt;/span&gt;
    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;ROLLBACK&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;TRAN&lt;/span&gt;
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;END&lt;/span&gt;&lt;/pre&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
Before the real processing starts, the&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;BEGIN TRAN&amp;nbsp;&lt;/code&gt;statement notifies SQL Server to treat all of the following actions as a single transaction. It is followed by two&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;UPDATE&amp;nbsp;&lt;/code&gt;statements. If no errors occur during the updates, all changes are committed to the database when SQL Server processes the&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;COMMIT TRAN&amp;nbsp;&lt;/code&gt;statement, and finally the stored procedure finishes. If an error occurs during the updates, it is detected by if statements and execution is continued from the&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;PROBLEM&amp;nbsp;&lt;/code&gt;label. After displaying a message to the user, SQL Server rolls back any changes that occurred during processing. Note: Be sure to match&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;BEGIN TRAN&amp;nbsp;&lt;/code&gt;with either&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;COMMIT&amp;nbsp;&lt;/code&gt;or&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;ROLLBACK&lt;/code&gt;.&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;/div&gt;
&lt;h2 style=&quot;color: #ff9900; font-size: 13pt;&quot;&gt;
Nested Transactions&lt;/h2&gt;
SQL Server allows you to nest transactions. Basically, this feature means that a new transaction can start even though the previous one is not complete. Transact-SQL allows you to nest transaction operations by issuing nested&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;BEGIN TRAN&amp;nbsp;&lt;/code&gt;commands. The&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;@@TRANCOUNT&amp;nbsp;&lt;/code&gt;automatic variable can be queried to determine the level of nesting - 0 indicates no nesting , 1 indicates nesting one level deep, and so fourth.&lt;br /&gt;
A&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;COMMIT&amp;nbsp;&lt;/code&gt;issued against any transaction except the outermost one doesn&#39;t commit any changes to disk - it merely decrements the&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;@@TRANCOUNT&amp;nbsp;&lt;/code&gt;automatic variable. A&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;ROLLBACK&lt;/code&gt;, on the other hand, works regardless of the level at which it is issued, but rolls back all transactions, regardless of the nesting level. Though this is counterintuitive, there&#39;s a very good reason for it. If a nested&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;COMMIT&amp;nbsp;&lt;/code&gt;actually wrote changes permanently to disk, an outer&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;ROLLBACK&amp;nbsp;&lt;/code&gt;wouldn&#39;t be able to reverse those changes since they would already be recorded permanently.&lt;br /&gt;
When you explicitly begin a transaction, the&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;@@TRANCOUNT&amp;nbsp;&lt;/code&gt;automatic variable count increases from 0 to 1; when you&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;COMMIT&lt;/code&gt;, the count decreases by one; when you&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;ROLLBACK&lt;/code&gt;, the count is reduced to 0. As you see, the behavior of&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;COMMIT&amp;nbsp;&lt;/code&gt;and&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;ROLLBACK&amp;nbsp;&lt;/code&gt;is not symmetric. If you nest transactions,&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;COMMIT&amp;nbsp;&lt;/code&gt;always decreases the nesting level by 1, as you can see illustrated in Figure 1. The&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;ROLLBACK&amp;nbsp;&lt;/code&gt;command, on the other hand, rolls back the entire transaction, illustrated in Figure 2. This asymmetry between&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;COMMIT&amp;nbsp;&lt;/code&gt;and&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;ROLLBACK&amp;nbsp;&lt;/code&gt;is the key to handling errors in nested transactions.&lt;br /&gt;
&lt;table style=&quot;color: black; font-size: 13px;&quot;&gt;&lt;tbody&gt;
&lt;tr style=&quot;font-size: 10pt;&quot;&gt;&lt;td align=&quot;middle&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;241&quot; src=&quot;http://www.codeproject.com/KB/database/SQLServerTransactions/pic1.jpg&quot; style=&quot;overflow-x: auto; overflow-y: auto;&quot; width=&quot;349&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;font-size: 10pt;&quot;&gt;&lt;td align=&quot;middle&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;Figure 1:&lt;/b&gt;&amp;nbsp;A COMMIT always balances a BEGIN TRANSACTION by reducing the transaction count by one.&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;font-size: 10pt;&quot;&gt;&lt;td style=&quot;font-size: 10pt;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;font-size: 10pt;&quot;&gt;&lt;td align=&quot;middle&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;241&quot; src=&quot;http://www.codeproject.com/KB/database/SQLServerTransactions/pic2.jpg&quot; style=&quot;overflow-x: auto; overflow-y: auto;&quot; width=&quot;349&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;font-size: 10pt;&quot;&gt;&lt;td align=&quot;middle&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;Figure 2:&lt;/b&gt;&amp;nbsp;A single ROLLBACK always rolls back the entire transaction.&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
As you can see from Figure 1 and Figure 2, you can nest transactions and use the&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;@@TRANCOUNT&amp;nbsp;&lt;/code&gt;automatic variable to detect the level. You also learned that&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;COMMIT&amp;nbsp;&lt;/code&gt;and&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;ROLLBACK&amp;nbsp;&lt;/code&gt;do not behave symmetrically;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;COMMIT&amp;nbsp;&lt;/code&gt;just decreases the value of&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;@@TRANCOUNT&lt;/code&gt;, while&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;ROLLBACK&amp;nbsp;&lt;/code&gt;resets it to 0. The implication is that a transaction is never fully committed until the last&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;COMMIT&amp;nbsp;&lt;/code&gt;is issued. No matter how deeply you nest a set of transactions, only the last&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;COMMIT&amp;nbsp;&lt;/code&gt;has any effect.&lt;br /&gt;
Here is an example of a nested transaction :&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain3&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-size: 0.8em; text-align: right;&quot; width=&quot;100%&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id=&quot;pre3&quot; lang=&quot;sql&quot; style=&quot;background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(251, 237, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(251, 237, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(251, 237, 187); border-top-style: solid; border-top-width: 1px; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 9pt; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;USE&lt;/span&gt; pubs
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; &lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;Before BEGIN TRAN&#39;&lt;/span&gt;, &lt;span class=&quot;code-preprocessor&quot; style=&quot;color: navy;&quot;&gt;@@TRANCOUNT&lt;/span&gt;  &lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt; The value of @@TRANCOUNT is 0
&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;BEGIN&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;TRAN&lt;/span&gt;
    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; &lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;After BEGIN TRAN&#39;&lt;/span&gt;, &lt;span class=&quot;code-preprocessor&quot; style=&quot;color: navy;&quot;&gt;@@TRANCOUNT&lt;/span&gt;  &lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt; The value of @@TRANCOUNT is 1
&lt;/span&gt;    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;DELETE&lt;/span&gt; sales
    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;BEGIN&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;TRAN&lt;/span&gt; nested
        &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; &lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;After BEGIN TRAN nested&#39;&lt;/span&gt;, &lt;span class=&quot;code-preprocessor&quot; style=&quot;color: navy;&quot;&gt;@@TRANCOUNT&lt;/span&gt;
                   &lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt; The value of @@TRANCOUNT is 2
&lt;/span&gt;        &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;DELETE&lt;/span&gt; titleauthor
    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;COMMIT&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;TRAN&lt;/span&gt; nested
                   &lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt; Does nothing except decrement the value of @@TRANCOUNT
&lt;/span&gt;
    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; &lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;After COMMIT TRAN nested&#39;&lt;/span&gt;, &lt;span class=&quot;code-preprocessor&quot; style=&quot;color: navy;&quot;&gt;@@TRANCOUNT&lt;/span&gt;
                   &lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt; The value of @@TRANCOUNT is 1
&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;ROLLBACK&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;TRAN&lt;/span&gt;

&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; &lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;After ROLLBACK TRAN&#39;&lt;/span&gt;, &lt;span class=&quot;code-preprocessor&quot; style=&quot;color: navy;&quot;&gt;@@TRANCOUNT&lt;/span&gt;  &lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt; The value of @@TRANCOUNT is 0 
&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt; because ROLLBACK TRAN always rolls back all transactions and sets 
&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt; @@TRANCOUNT to 0.
&lt;/span&gt;
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;TOP&lt;/span&gt; &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;5&lt;/span&gt; au_id &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt; titleauthor
&lt;/pre&gt;
In this example we see that despite the nested&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;COMMIT TRAN&lt;/code&gt;, the outer&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;ROLLBACK&amp;nbsp;&lt;/code&gt;still reverses the effects of the&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;DELETE&amp;nbsp;&lt;/code&gt;titleauthor command.&lt;br /&gt;
Here is another similar example of nested transaction :&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain4&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-size: 0.8em; text-align: right;&quot; width=&quot;100%&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id=&quot;pre4&quot; lang=&quot;sql&quot; style=&quot;background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(251, 237, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(251, 237, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(251, 237, 187); border-top-style: solid; border-top-width: 1px; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 9pt; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;USE&lt;/span&gt; pubs
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; &lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;Before BEGIN TRAN&#39;&lt;/span&gt;, &lt;span class=&quot;code-preprocessor&quot; style=&quot;color: navy;&quot;&gt;@@TRANCOUNT&lt;/span&gt;  &lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt; The value of @@TRANCOUNT is 0
&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;BEGIN&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;TRAN&lt;/span&gt;
    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; &lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;After BEGIN TRAN&#39;&lt;/span&gt;, &lt;span class=&quot;code-preprocessor&quot; style=&quot;color: navy;&quot;&gt;@@TRANCOUNT&lt;/span&gt;  &lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt; The value of @@TRANCOUNT is 1
&lt;/span&gt;    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;DELETE&lt;/span&gt; sales
    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;BEGIN&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;TRAN&lt;/span&gt; nested
        &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; &lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;After BEGIN TRAN nested&#39;&lt;/span&gt;, &lt;span class=&quot;code-preprocessor&quot; style=&quot;color: navy;&quot;&gt;@@TRANCOUNT&lt;/span&gt;
               &lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt; The value of @@TRANCOUNT is 2
&lt;/span&gt;        &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;DELETE&lt;/span&gt; titleauthor
    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;ROLLBACK&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;TRAN&lt;/span&gt;
  
    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; &lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;After COMMIT TRAN nested&#39;&lt;/span&gt;, &lt;span class=&quot;code-preprocessor&quot; style=&quot;color: navy;&quot;&gt;@@TRANCOUNT&lt;/span&gt;
    &lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt; The value of @@TRANCOUNT is 0 because 
&lt;/span&gt;    &lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt; ROLLBACK TRAN always rolls back all transactions and sets @@TRANCOUNT 
&lt;/span&gt;    &lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt; to 0.
&lt;/span&gt;
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;IF&lt;/span&gt; (&lt;span class=&quot;code-preprocessor&quot; style=&quot;color: navy;&quot;&gt;@@TRANCOUNT&lt;/span&gt; &amp;gt; &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;0&lt;/span&gt;) &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;BEGIN&lt;/span&gt;
    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;COMMIT&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;TRAN&lt;/span&gt; &lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt; Never makes it here cause of the ROLLBACK
&lt;/span&gt;    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; &lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;After COMMIT TRAN&#39;&lt;/span&gt;, &lt;span class=&quot;code-preprocessor&quot; style=&quot;color: navy;&quot;&gt;@@TRANCOUNT&lt;/span&gt;
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;END&lt;/span&gt;

&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;TOP&lt;/span&gt; &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;5&lt;/span&gt; au_id &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt; titleauthor
&lt;/pre&gt;
In this example, execution never reaches the out&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;COMMIT TRAN&amp;nbsp;&lt;/code&gt;because the&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;ROLLBACK&amp;nbsp;&lt;/code&gt;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;TRAN&amp;nbsp;&lt;/code&gt;reverses all transactions currently in progress and sets&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;@@TRANCOUNT&amp;nbsp;&lt;/code&gt;to 0. Unless&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;ROLLBACK TRAN&amp;nbsp;&lt;/code&gt;is called with a save point,&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;ROLLBACK TRAN&amp;nbsp;&lt;/code&gt;always rolls back all transactions and sets&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;@@TRANCOUNT&amp;nbsp;&lt;/code&gt;to 0, regardless of the context in which it&#39;s called.&lt;br /&gt;
&lt;h2 style=&quot;color: #ff9900; font-size: 13pt;&quot;&gt;
SAVE TRAN and Save Points&lt;/h2&gt;
Savepoints offer a mechanism to roll back portions of transactions. A user can set a savepoint, or marker, within a transaction. The savepoint defines a location to which a transaction can return if part of the transaction is conditionally canceled. SQL Server allows you to use savepoints via the&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;SAVE TRAN&amp;nbsp;&lt;/code&gt;statement, which doesn&#39;t affect the&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;@@TRANCOUNT&amp;nbsp;&lt;/code&gt;value. A rollback to a savepoint (not a transaction) doesn&#39;t affect the value returned by&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;@@TRANCOUNT&lt;/code&gt;, either. However, the rollback must explicitly name the savepoint: using&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;ROLLBACK TRAN&lt;/code&gt;without a specific name will always roll back the entire transaction.&lt;br /&gt;
The following script demonstrates how savepoints can be used :&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain5&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-size: 0.8em; text-align: right;&quot; width=&quot;100%&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id=&quot;pre5&quot; lang=&quot;sql&quot; style=&quot;background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(251, 237, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(251, 237, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(251, 237, 187); border-top-style: solid; border-top-width: 1px; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 9pt; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;USE&lt;/span&gt; pubs
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; &lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;Before BEGIN TRAN main&#39;&lt;/span&gt;, &lt;span class=&quot;code-preprocessor&quot; style=&quot;color: navy;&quot;&gt;@@TRANCOUNT&lt;/span&gt;
   &lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt; The value of @@TRANCOUNT is 0
&lt;/span&gt;
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;BEGIN&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;TRAN&lt;/span&gt; main
    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; &lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;After BEGIN TRAN main&#39;&lt;/span&gt;, &lt;span class=&quot;code-preprocessor&quot; style=&quot;color: navy;&quot;&gt;@@TRANCOUNT&lt;/span&gt;
   &lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt; The value of @@TRANCOUNT is 1
&lt;/span&gt;    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;DELETE&lt;/span&gt; sales
    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;SAVE&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;TRAN&lt;/span&gt; sales  &lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt; Mark a save point
&lt;/span&gt;    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; &lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;After SAVE TRAN sales&#39;&lt;/span&gt;, &lt;span class=&quot;code-preprocessor&quot; style=&quot;color: navy;&quot;&gt;@@TRANCOUNT&lt;/span&gt;
   &lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt; The value of @@TRANCOUNT is still 1
&lt;/span&gt;
    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;BEGIN&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;TRAN&lt;/span&gt; nested
        &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; &lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;After BEGIN TRAN nested&#39;&lt;/span&gt;, &lt;span class=&quot;code-preprocessor&quot; style=&quot;color: navy;&quot;&gt;@@TRANCOUNT&lt;/span&gt;
        &lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt; The value of @@TRANCOUNT is 2
&lt;/span&gt;        &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;DELETE&lt;/span&gt; titleauthor
        &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;SAVE&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;TRAN&lt;/span&gt; titleauthor  &lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt; Mark a save point
&lt;/span&gt;        &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; &lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;After SAVE TRAN titleauthor&#39;&lt;/span&gt;, &lt;span class=&quot;code-preprocessor&quot; style=&quot;color: navy;&quot;&gt;@@TRANCOUNT&lt;/span&gt;
        &lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt; The value of @@TRANCOUNT is still 2
&lt;/span&gt;    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;ROLLBACK&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;TRAN&lt;/span&gt; sales

    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; &lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;After ROLLBACK TRAN sales&#39;&lt;/span&gt;, &lt;span class=&quot;code-preprocessor&quot; style=&quot;color: navy;&quot;&gt;@@TRANCOUNT&lt;/span&gt;
     &lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt; The value of @@TRANCOUNT is still 2
&lt;/span&gt;
    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;TOP&lt;/span&gt; &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;5&lt;/span&gt; au_id &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt; titleauthor

&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;IF&lt;/span&gt; (&lt;span class=&quot;code-preprocessor&quot; style=&quot;color: navy;&quot;&gt;@@TRANCOUNT&lt;/span&gt; &amp;gt; &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;0&lt;/span&gt;) &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;BEGIN&lt;/span&gt;
    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;ROLLBACK&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;TRAN&lt;/span&gt;
    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; &lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;AFTER ROLLBACK TRAN&#39;&lt;/span&gt;, &lt;span class=&quot;code-preprocessor&quot; style=&quot;color: navy;&quot;&gt;@@TRANCOUNT&lt;/span&gt;
    &lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt; The value of @@TRANCOUNT is 0 because 
&lt;/span&gt;    &lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt; ROLLBACK TRAN always rolls back all transactions and sets @@TRANCOUNT 
&lt;/span&gt;    &lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;color: green; font-style: italic;&quot;&gt; to 0.
&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;END&lt;/span&gt;
    
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;TOP&lt;/span&gt; &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;5&lt;/span&gt; au_id &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt; titleauthor
&lt;/pre&gt;
&lt;h2 style=&quot;color: #ff9900; font-size: 13pt;&quot;&gt;
Error Handling&lt;/h2&gt;
The examples presented here are specific to stored procedures as they are the desired method of interacting with a database. When an error is encountered within a stored procedure, the best you can do is halt the sequential processing of the code and either branch to another code segment in the procedure or return processing to the calling application. The&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;@@ERROR&amp;nbsp;&lt;/code&gt;automatic variable is used to implement error handling code. It contains the error ID produced by the last SQL statement executed during a client’s connection. When a statement executes successfully,&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;@@ERROR&amp;nbsp;&lt;/code&gt;contains 0. To determine if a statement executes successfully, an IF statement is used to check the value of&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;@@ERROR&amp;nbsp;&lt;/code&gt;immediately after the target statement executes. It is imperative that&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;@@ERROR&amp;nbsp;&lt;/code&gt;be checked immediately after the target statement, because its value is reset to 0 when the next statement executes successfully. If a trappable error occurs,&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;@@ERROR&amp;nbsp;&lt;/code&gt;will have a value greater than 0. SQL Server resets the&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;@@ERROR&amp;nbsp;&lt;/code&gt;value after every successful command, so you must immediately capture the&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;@@ERROR&amp;nbsp;&lt;/code&gt;value. Most of the time, you&#39;ll want to test for changes in&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;@@ERROR&amp;nbsp;&lt;/code&gt;right after any&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;INSERT&lt;/code&gt;,&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;UPDATE&lt;/code&gt;, or&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;DELETE&amp;nbsp;&lt;/code&gt;statement.&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain6&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-size: 0.8em; text-align: right;&quot; width=&quot;100%&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id=&quot;pre6&quot; lang=&quot;sql&quot; style=&quot;background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(251, 237, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(251, 237, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(251, 237, 187); border-top-style: solid; border-top-width: 1px; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 9pt; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;CREATE&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;PROCEDURE&lt;/span&gt; addTitle(@title_id &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;VARCHAR&lt;/span&gt;(&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;6&lt;/span&gt;), @au_id &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;VARCHAR&lt;/span&gt;(&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;11&lt;/span&gt;), 
                          @title &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;VARCHAR&lt;/span&gt;(&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;20&lt;/span&gt;), @title_type &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;CHAR&lt;/span&gt;(&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;12&lt;/span&gt;))
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt;

&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;BEGIN&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;TRAN&lt;/span&gt;
    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;INSERT&lt;/span&gt; titles(title_id, title, type)
    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;VALUES&lt;/span&gt; (@title_id, @title, @title_type)

    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;IF&lt;/span&gt; (&lt;span class=&quot;code-preprocessor&quot; style=&quot;color: navy;&quot;&gt;@@ERROR&lt;/span&gt; &amp;lt;&amp;gt; &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;0&lt;/span&gt;) &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;BEGIN&lt;/span&gt;
        &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;PRINT&lt;/span&gt; &lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;Unexpected error occurred!&#39;&lt;/span&gt;
        &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;ROLLBACK&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;TRAN&lt;/span&gt;
        &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;RETURN&lt;/span&gt; &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;1&lt;/span&gt;
    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;END&lt;/span&gt;

    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;INSERT&lt;/span&gt; titleauthor(au_id, title_id)
    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;VALUES&lt;/span&gt; (@au_id, @title_id)

    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;IF&lt;/span&gt; (&lt;span class=&quot;code-preprocessor&quot; style=&quot;color: navy;&quot;&gt;@@ERROR&lt;/span&gt; &amp;lt;&amp;gt; &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;0&lt;/span&gt;) &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;BEGIN&lt;/span&gt;
        &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;PRINT&lt;/span&gt; &lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;Unexpected error occurred!&#39;&lt;/span&gt;
        &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;ROLLBACK&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;TRAN&lt;/span&gt;
        &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;RETURN&lt;/span&gt; &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;1&lt;/span&gt;
    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;END&lt;/span&gt;

&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;COMMIT&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;TRAN&lt;/span&gt;

&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;RETURN&lt;/span&gt; &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;0&lt;/span&gt;
&lt;/pre&gt;
This kind of solution contains substantial repetition especially if your business logic requires more than two Transact-SQL statements to be implemented. A more elegant solution is to group codes into a generic error handling procedure:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain7&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-size: 0.8em; text-align: right;&quot; width=&quot;100%&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id=&quot;pre7&quot; lang=&quot;sql&quot; style=&quot;background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(251, 237, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(251, 237, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(251, 237, 187); border-top-style: solid; border-top-width: 1px; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 9pt; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;CREATE&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;PROCEDURE&lt;/span&gt; addTitle(@title_id &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;VARCHAR&lt;/span&gt;(&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;6&lt;/span&gt;), @au_id &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;VARCHAR&lt;/span&gt;(&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;11&lt;/span&gt;),
                          @title &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;VARCHAR&lt;/span&gt;(&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;20&lt;/span&gt;), @title_type &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;CHAR&lt;/span&gt;(&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;12&lt;/span&gt;))
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt;

&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;BEGIN&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;TRAN&lt;/span&gt;
    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;INSERT&lt;/span&gt; titles(title_id, title, type)
    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;VALUES&lt;/span&gt; (@title_id, @title, @title_type)

    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;IF&lt;/span&gt; (&lt;span class=&quot;code-preprocessor&quot; style=&quot;color: navy;&quot;&gt;@@ERROR&lt;/span&gt; &amp;lt;&amp;gt; &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;0&lt;/span&gt;) &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;GOTO&lt;/span&gt; ERR_HANDLER

    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;INSERT&lt;/span&gt; titleauthor(au_id, title_id)
    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;VALUES&lt;/span&gt; (@au_id, @title_id)

    &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;IF&lt;/span&gt; (&lt;span class=&quot;code-preprocessor&quot; style=&quot;color: navy;&quot;&gt;@@ERROR&lt;/span&gt; &amp;lt;&amp;gt; &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;0&lt;/span&gt;) &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;GOTO&lt;/span&gt; ERR_HANDLER

&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;COMMIT&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;TRAN&lt;/span&gt;

&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;RETURN&lt;/span&gt; &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;0&lt;/span&gt;

ERR_HANDLER:
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;PRINT&lt;/span&gt; &lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;Unexpected error occurred!&#39;&lt;/span&gt;
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;ROLLBACK&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;TRAN&lt;/span&gt;
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;RETURN&lt;/span&gt; &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;1&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://selectinsql.blogspot.com/feeds/7490075714368101756/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://selectinsql.blogspot.com/2012/03/sql-server-transactions-and-error.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/7490075714368101756'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/7490075714368101756'/><link rel='alternate' type='text/html' href='http://selectinsql.blogspot.com/2012/03/sql-server-transactions-and-error.html' title='SQL Server Transactions and Error Handling'/><author><name>Vijay Maurya</name><uri>http://www.blogger.com/profile/00459112937519229095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAq0unsQRC0g7q8LCCjOU5NUrCuyXX5vMfcWbPl5cNsojKH_YS1rJIQL3mxLSTxPXCdJ90rCGzSmU-cFJ9vqjHSMbOxvOb1NaDkURBdhKasrpOq9yuoNpW9_XfPk_1qWU/s220/clip_image001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7205115418491271533.post-1384794597115424598</id><published>2012-03-26T21:27:00.000-07:00</published><updated>2012-03-26T21:27:08.934-07:00</updated><title type='text'>Transaction in SQL Server</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Verdana, Arial, Tahoma; font-size: 13px; text-align: justify;&quot;&gt;A transaction must follows this properties:-&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;font-family: Verdana, Arial, Tahoma; font-size: 13px; text-align: justify;&quot; /&gt;&lt;br style=&quot;font-family: Verdana, Arial, Tahoma; font-size: 13px; text-align: justify;&quot; /&gt;&lt;span style=&quot;font-family: Verdana, Arial, Tahoma; font-size: 13px; text-align: justify;&quot;&gt;In a perfect transaction world, a transaction must contain a series of properties known as ACID. These properties are:&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;font-family: Verdana, Arial, Tahoma; font-size: 13px; text-align: justify;&quot; /&gt;&lt;br style=&quot;font-family: Verdana, Arial, Tahoma; font-size: 13px; text-align: justify;&quot; /&gt;&lt;u style=&quot;font-family: Verdana, Arial, Tahoma; font-size: 13px; text-align: justify;&quot;&gt;&lt;b&gt;Atomicity&lt;/b&gt;&amp;nbsp;&lt;/u&gt;&lt;span style=&quot;font-family: Verdana, Arial, Tahoma; font-size: 13px; text-align: justify;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;font-family: Verdana, Arial, Tahoma; font-size: 13px; text-align: justify;&quot; /&gt;&lt;span style=&quot;font-family: Verdana, Arial, Tahoma; font-size: 13px; text-align: justify;&quot;&gt;A transaction is an atomic unit of work or collection of separate operations. So, a transaction succeeds and is committed to the database only when all the separate operations succeed. On the other hand, if any single operations fail during the transaction, everything will be considered as failed and must be rolled back if it is already taken place. Thus, Atomicity helps to avoid data inconsistencies in database by eliminating the chance of processing a part of operations only.&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;font-family: Verdana, Arial, Tahoma; font-size: 13px; text-align: justify;&quot; /&gt;&lt;br style=&quot;font-family: Verdana, Arial, Tahoma; font-size: 13px; text-align: justify;&quot; /&gt;&lt;u style=&quot;font-family: Verdana, Arial, Tahoma; font-size: 13px; text-align: justify;&quot;&gt;&lt;b&gt;Consistency&lt;/b&gt;&amp;nbsp;&lt;/u&gt;&lt;span style=&quot;font-family: Verdana, Arial, Tahoma; font-size: 13px; text-align: justify;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;font-family: Verdana, Arial, Tahoma; font-size: 13px; text-align: justify;&quot; /&gt;&lt;span style=&quot;font-family: Verdana, Arial, Tahoma; font-size: 13px; text-align: justify;&quot;&gt;A transaction must leave the database into a consistent state whether or not it is completed successfully. The data modified by the transaction must comply with all the constraints in order to maintain integrity.&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;font-family: Verdana, Arial, Tahoma; font-size: 13px; text-align: justify;&quot; /&gt;&lt;br style=&quot;font-family: Verdana, Arial, Tahoma; font-size: 13px; text-align: justify;&quot; /&gt;&lt;u style=&quot;font-family: Verdana, Arial, Tahoma; font-size: 13px; text-align: justify;&quot;&gt;&lt;b&gt;Isolation&lt;/b&gt;&amp;nbsp;&lt;/u&gt;&lt;span style=&quot;font-family: Verdana, Arial, Tahoma; font-size: 13px; text-align: justify;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;font-family: Verdana, Arial, Tahoma; font-size: 13px; text-align: justify;&quot; /&gt;&lt;span style=&quot;font-family: Verdana, Arial, Tahoma; font-size: 13px; text-align: justify;&quot;&gt;Every transaction has a well defined boundary. One transaction will never affect another transaction running at the same time. Data modifications made by one transaction must be isolated from the data modification made by all other transactions. A transaction sees data in the state as it was before the second transaction modification takes place or in the state as the second transaction completed, but under any circumstance a transaction can not be in any intermediate state.&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;font-family: Verdana, Arial, Tahoma; font-size: 13px; text-align: justify;&quot; /&gt;&lt;br style=&quot;font-family: Verdana, Arial, Tahoma; font-size: 13px; text-align: justify;&quot; /&gt;&lt;u style=&quot;font-family: Verdana, Arial, Tahoma; font-size: 13px; text-align: justify;&quot;&gt;&lt;b&gt;Durability&lt;/b&gt;&amp;nbsp;&lt;/u&gt;&lt;span style=&quot;font-family: Verdana, Arial, Tahoma; font-size: 13px; text-align: justify;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;font-family: Verdana, Arial, Tahoma; font-size: 13px; text-align: justify;&quot; /&gt;&lt;span style=&quot;font-family: Verdana, Arial, Tahoma; font-size: 13px; text-align: justify;&quot;&gt;If a transaction succeeds, the updates are stored in permanent media even if the database crashes immediately after the application performs a commit operation. Transaction logs are maintained so that the database can be restored to its original position before failure takes place.&amp;nbsp;&lt;/span&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://selectinsql.blogspot.com/feeds/1384794597115424598/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://selectinsql.blogspot.com/2012/03/transaction-in-sql-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/1384794597115424598'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/1384794597115424598'/><link rel='alternate' type='text/html' href='http://selectinsql.blogspot.com/2012/03/transaction-in-sql-server.html' title='Transaction in SQL Server'/><author><name>Vijay Maurya</name><uri>http://www.blogger.com/profile/00459112937519229095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAq0unsQRC0g7q8LCCjOU5NUrCuyXX5vMfcWbPl5cNsojKH_YS1rJIQL3mxLSTxPXCdJ90rCGzSmU-cFJ9vqjHSMbOxvOb1NaDkURBdhKasrpOq9yuoNpW9_XfPk_1qWU/s220/clip_image001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7205115418491271533.post-8301562361298791840</id><published>2012-03-23T02:21:00.001-07:00</published><updated>2012-03-23T02:21:29.635-07:00</updated><title type='text'>Using OUTPUT Parameters in Stored Procedures</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;background-color: #e0e0e0; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 19px; text-align: left;&quot;&gt;One way to retrieve scalar data in addition to a standard resultset from a stored procedure is to use one or more output parameters. An output parameter is a parameter that is passed into the SQL stored procedure, but whose value can be set in the stored procedure. This assigned parameter, then, is readable back from the application that called the stored procedure.&lt;/span&gt;&lt;br style=&quot;background-color: #e0e0e0; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 19px; text-align: left;&quot; /&gt;&lt;span style=&quot;background-color: #e0e0e0; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 19px; text-align: left;&quot;&gt;To use an output parameter you need to indicate that the parameter is intended for output via the OUTPUT keyword. The following snippet shows a stored procedure that returns the set of inventory items through a SELECT statement and uses an output parameter to return the average price:&lt;/span&gt;&lt;br style=&quot;background-color: #e0e0e0; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 19px; text-align: left;&quot; /&gt;&lt;br style=&quot;background-color: #e0e0e0; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 19px; text-align: left;&quot; /&gt;&lt;span style=&quot;background-color: #e0e0e0; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 19px; text-align: left;&quot;&gt;CREATE PROCEDURE store_GetInventoryWithAveragePrice&lt;/span&gt;&lt;br style=&quot;background-color: #e0e0e0; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 19px; text-align: left;&quot; /&gt;&lt;span style=&quot;background-color: #e0e0e0; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 19px; text-align: left;&quot;&gt;(&lt;/span&gt;&lt;br style=&quot;background-color: #e0e0e0; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 19px; text-align: left;&quot; /&gt;&lt;span style=&quot;background-color: #e0e0e0; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 19px; text-align: left;&quot;&gt;@AveragePrice money OUTPUT&lt;/span&gt;&lt;br style=&quot;background-color: #e0e0e0; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 19px; text-align: left;&quot; /&gt;&lt;span style=&quot;background-color: #e0e0e0; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 19px; text-align: left;&quot;&gt;)&lt;/span&gt;&lt;br style=&quot;background-color: #e0e0e0; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 19px; text-align: left;&quot; /&gt;&lt;span style=&quot;background-color: #e0e0e0; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 19px; text-align: left;&quot;&gt;AS&lt;/span&gt;&lt;br style=&quot;background-color: #e0e0e0; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 19px; text-align: left;&quot; /&gt;&lt;span style=&quot;background-color: #e0e0e0; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 19px; text-align: left;&quot;&gt;SET @AveragePrice = (SELECT AVG(Price) FROM store_Inventory)&lt;/span&gt;&lt;br style=&quot;background-color: #e0e0e0; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 19px; text-align: left;&quot; /&gt;&lt;span style=&quot;background-color: #e0e0e0; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 19px; text-align: left;&quot;&gt;SELECT InventoryID, ProductName, Price, UnitsOnStock&lt;/span&gt;&lt;br style=&quot;background-color: #e0e0e0; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 19px; text-align: left;&quot; /&gt;&lt;span style=&quot;background-color: #e0e0e0; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 19px; text-align: left;&quot;&gt;FROM store_Inventory&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;background-color: #e0e0e0; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 19px; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;background-color: #e0e0e0; color: #333333; font-family: Verdana, sans-serif; font-size: 13px; line-height: 19px; text-align: left;&quot;&gt;or&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
According to MS-BOL, SQL Server Stored-Procedures can return data in 4 forms:&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;strong style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;1. Return Code:&lt;/strong&gt;&amp;nbsp;which are always an integer value.&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;strong style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;2. OUTPUT Parameter:&lt;/strong&gt;&amp;nbsp;which can return either data (such as an integer or character value) or a cursor variable (cursors are result sets that can be retrieved one row at a time).&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;strong style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;3. A result set&lt;/strong&gt;&amp;nbsp;for each&amp;nbsp;&lt;strong style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;SELECT&amp;nbsp;&lt;/strong&gt;statement contained in the stored procedure or any other stored procedures called by the stored procedure.&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;strong style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;4. A global cursor&lt;/strong&gt;&amp;nbsp;that can be referenced outside the stored procedure.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
Specifying&amp;nbsp;&lt;strong style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;OUTPUT keyword&lt;/strong&gt;&amp;nbsp;to the parameters in the Stored Procedures can return the values of the parameters to the calling program. Lets check this with a simple example by using AdventureWorks database:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #555555; font-family: Verdana, &#39;BitStream vera Sans&#39;, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;syntaxhighlighter  &quot; id=&quot;highlighter_228646&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: rgb(255, 255, 255) !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(224, 224, 224) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; border-color: initial !important; border-image: initial !important; border-left-color: rgb(224, 224, 224) !important; border-left-style: solid !important; border-left-width: 1px !important; border-right-color: rgb(224, 224, 224) !important; border-right-style: solid !important; border-right-width: 1px !important; border-style: initial !important; border-top-color: rgb(224, 224, 224) !important; border-top-style: solid !important; border-top-width: 1px !important; bottom: auto !important; color: #555555; direction: ltr !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 11px !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 1em !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 1em !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: relative !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 589px;&quot;&gt;
&lt;div class=&quot;bar                                           show&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;div class=&quot;toolbar&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: rgb(248, 248, 248) !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(238, 238, 238) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; border-color: initial !important; border-image: initial !important; border-left-color: rgb(238, 238, 238) !important; border-left-style: solid !important; border-left-width: 1px !important; border-right-color: rgb(238, 238, 238) !important; border-right-style: solid !important; border-right-width: 1px !important; border-style: initial !important; border-top-color: rgb(238, 238, 238) !important; border-top-style: solid !important; border-top-width: 1px !important; bottom: auto !important; direction: ltr !important; float: none !important; font-size: 1px !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 8px !important; padding-left: 0px !important; padding-right: 8px !important; padding-top: 8px !important; position: absolute !important; right: 0px !important; text-shadow: none !important; top: 0px !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
view source&lt;div class=&quot;item copyToClipboard&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: left !important; font-size: 11px !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 8px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;embed allowscriptaccess=&quot;always&quot; flashvars=&quot;highlighterId=highlighter_228646&quot; height=&quot;16&quot; id=&quot;highlighter_228646_clipboard&quot; menu=&quot;false&quot; src=&quot;http://s2.wp.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter/scripts/clipboard.swf?m=1302985933g&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; title=&quot;copy to clipboard&quot; type=&quot;application/x-shockwave-flash&quot; width=&quot;16&quot; wmode=&quot;transparent&quot;&gt;&lt;/embed&gt;&lt;/div&gt;
print?&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;lines&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;div class=&quot;line alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;01&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;code class=&quot;plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;USE [AdventureWorks]&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: rgb(248, 248, 248) !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;02&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;code class=&quot;plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;GO&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;03&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: rgb(248, 248, 248) !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;04&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;code class=&quot;comments&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial; background-position: 0px -96px; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block; float: right; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: 16px; left: auto !important; line-height: 16px; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 22px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;span style=&quot;color: orange;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 130, 0) !important;&quot;&gt;-// Create Stored Prcedure with OUTPUT parameter&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;05&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;code class=&quot;keyword&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;CREATE&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;keyword&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;PROCEDURE&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;getContactName&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: rgb(248, 248, 248) !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;06&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;code class=&quot;spaces&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;@ContactID&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;keyword&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;INT&lt;/code&gt;&lt;code class=&quot;plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;,&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;07&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;code class=&quot;spaces&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;@FirstName&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;keyword&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;VARCHAR&lt;/code&gt;&lt;code class=&quot;plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;(50)&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;keyword&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;OUTPUT&lt;/code&gt;&lt;code class=&quot;plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;,&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: rgb(248, 248, 248) !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;08&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;code class=&quot;spaces&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;@LastName&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;keyword&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;VARCHAR&lt;/code&gt;&lt;code class=&quot;plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;(50)&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;keyword&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;OUTPUT&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;09&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;code class=&quot;keyword&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;AS&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: rgb(248, 248, 248) !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;10&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;code class=&quot;keyword&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;BEGIN&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;11&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;code class=&quot;spaces&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;keyword&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;SELECT&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;@FirstName = FirstName, @LastName = LastName&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: rgb(248, 248, 248) !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;12&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;code class=&quot;spaces&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;keyword&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;FROM&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;Person.Contact&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;13&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;code class=&quot;spaces&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;keyword&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;WHERE&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;ContactID = @ContactID&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: rgb(248, 248, 248) !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;14&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;code class=&quot;keyword&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;end&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;15&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;code class=&quot;plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;GO&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: rgb(248, 248, 248) !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;16&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;17&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;code class=&quot;comments&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://s2.wp.com/wp-content/themes/pub/inove/img/icons.gif); background-origin: initial; background-position: 0px -96px; background-repeat: no-repeat no-repeat; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 130, 0) !important; direction: ltr !important; display: block; float: right; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: 16px; left: auto !important; line-height: 16px; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 22px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;--// Test the Procedure&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: rgb(248, 248, 248) !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;18&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;code class=&quot;keyword&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;DECLARE&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;@CID&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;keyword&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;INT&lt;/code&gt;&lt;code class=&quot;plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;, @FName&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;keyword&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;VARCHAR&lt;/code&gt;&lt;code class=&quot;plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;(50), @LName&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;keyword&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;VARCHAR&lt;/code&gt;&lt;code class=&quot;plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;(50)&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;19&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: rgb(248, 248, 248) !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;20&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;code class=&quot;comments&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://s2.wp.com/wp-content/themes/pub/inove/img/icons.gif); background-origin: initial; background-position: 0px -96px; background-repeat: no-repeat no-repeat; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 130, 0) !important; direction: ltr !important; display: block; float: right; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: 16px; left: auto !important; line-height: 16px; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 22px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;--/ Test# 1&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;21&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;code class=&quot;keyword&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;SET&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;@CID = 100&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: rgb(248, 248, 248) !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;22&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;code class=&quot;keyword&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;EXEC&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;getContactName @ContactID=@CID,&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;23&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;code class=&quot;spaces&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;@FirstName=@FName&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;keyword&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;OUTPUT&lt;/code&gt;&lt;code class=&quot;plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;,&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: rgb(248, 248, 248) !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;24&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;code class=&quot;spaces&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;@LastName=@LName&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;keyword&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;OUTPUT&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;25&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: rgb(248, 248, 248) !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;26&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;code class=&quot;keyword&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;SELECT&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;@FName&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;keyword&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;as&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;string&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&#39;First Name&#39;&lt;/code&gt;&lt;code class=&quot;plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;, @LName&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;keyword&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;as&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;string&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&#39;Last Name&#39;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;27&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;code class=&quot;comments&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://s2.wp.com/wp-content/themes/pub/inove/img/icons.gif); background-origin: initial; background-position: 0px -96px; background-repeat: no-repeat no-repeat; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 130, 0) !important; direction: ltr !important; display: block; float: right; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: 16px; left: auto !important; line-height: 16px; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 22px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;--/ Output&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: rgb(248, 248, 248) !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;28&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;code class=&quot;comments&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://s2.wp.com/wp-content/themes/pub/inove/img/icons.gif); background-origin: initial; background-position: 0px -96px; background-repeat: no-repeat no-repeat; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 130, 0) !important; direction: ltr !important; display: block; float: right; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: 16px; left: auto !important; line-height: 16px; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 22px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;-- ContactID&amp;nbsp;&amp;nbsp;&amp;nbsp; First Name&amp;nbsp; Last Name&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;29&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;code class=&quot;comments&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://s2.wp.com/wp-content/themes/pub/inove/img/icons.gif); background-origin: initial; background-position: 0px -96px; background-repeat: no-repeat no-repeat; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 130, 0) !important; direction: ltr !important; display: block; float: right; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: 16px; left: auto !important; line-height: 16px; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 22px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;-- 100&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jackie&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Blackwell&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: rgb(248, 248, 248) !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;30&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;31&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;code class=&quot;comments&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://s2.wp.com/wp-content/themes/pub/inove/img/icons.gif); background-origin: initial; background-position: 0px -96px; background-repeat: no-repeat no-repeat; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 130, 0) !important; direction: ltr !important; display: block; float: right; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: 16px; left: auto !important; line-height: 16px; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 22px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;--/ Test# 2&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: rgb(248, 248, 248) !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;32&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;code class=&quot;keyword&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;SET&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;@CID = 200&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;33&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;code class=&quot;keyword&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;EXEC&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;getContactName @ContactID=@CID,&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: rgb(248, 248, 248) !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;34&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;code class=&quot;spaces&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;@FirstName=@FName&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;keyword&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;OUTPUT&lt;/code&gt;&lt;code class=&quot;plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;,&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;35&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;code class=&quot;spaces&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;@LastName=@LName&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;keyword&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;OUTPUT&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: rgb(248, 248, 248) !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;36&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;37&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;code class=&quot;keyword&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;SELECT&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;@FName&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;keyword&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;as&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;string&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&#39;First Name&#39;&lt;/code&gt;&lt;code class=&quot;plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;, @LName&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;keyword&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;as&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;string&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&#39;Last Name&#39;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: rgb(248, 248, 248) !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;38&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;code class=&quot;comments&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://s2.wp.com/wp-content/themes/pub/inove/img/icons.gif); background-origin: initial; background-position: 0px -96px; background-repeat: no-repeat no-repeat; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 130, 0) !important; direction: ltr !important; display: block; float: right; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: 16px; left: auto !important; line-height: 16px; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 22px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;--/ Output&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;39&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;code class=&quot;comments&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://s2.wp.com/wp-content/themes/pub/inove/img/icons.gif); background-origin: initial; background-position: 0px -96px; background-repeat: no-repeat no-repeat; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 130, 0) !important; direction: ltr !important; display: block; float: right; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: 16px; left: auto !important; line-height: 16px; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 22px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;-- ContactID&amp;nbsp;&amp;nbsp;&amp;nbsp; First Name&amp;nbsp; Last Name&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: rgb(248, 248, 248) !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;40&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;code class=&quot;comments&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://s2.wp.com/wp-content/themes/pub/inove/img/icons.gif); background-origin: initial; background-position: 0px -96px; background-repeat: no-repeat no-repeat; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 130, 0) !important; direction: ltr !important; display: block; float: right; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: 16px; left: auto !important; line-height: 16px; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 22px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;-- 200&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Martin&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chisholm&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;41&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;code class=&quot;plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;GO&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: rgb(248, 248, 248) !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;42&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;43&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;code class=&quot;comments&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://s2.wp.com/wp-content/themes/pub/inove/img/icons.gif); background-origin: initial; background-position: 0px -96px; background-repeat: no-repeat no-repeat; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 130, 0) !important; direction: ltr !important; display: block; float: right; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: 16px; left: auto !important; line-height: 16px; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 22px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;--// Final Cleanup&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: rgb(248, 248, 248) !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;44&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;code class=&quot;keyword&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;DROP&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;keyword&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;PROCEDURE&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;getContactName&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse !important; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 2px; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;number&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 3px; padding-left: 10px; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: 3em !important;&quot;&gt;&lt;code style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: block !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0.3em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: 2.7em !important;&quot;&gt;45&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;content&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial; border-left-color: rgb(204, 204, 204) !important; border-left-style: solid !important; border-left-width: 3px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; bottom: auto !important; color: rgb(0, 0, 0) !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: hidden; overflow-y: hidden; padding-bottom: 3px; padding-left: 0.5em !important; padding-right: 10px; padding-top: 3px; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;code class=&quot;plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; height: auto !important; left: auto !important; line-height: 1.3em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-shadow: none !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;GO&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://selectinsql.blogspot.com/feeds/8301562361298791840/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://selectinsql.blogspot.com/2012/03/using-output-parameters-in-stored.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/8301562361298791840'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/8301562361298791840'/><link rel='alternate' type='text/html' href='http://selectinsql.blogspot.com/2012/03/using-output-parameters-in-stored.html' title='Using OUTPUT Parameters in Stored Procedures'/><author><name>Vijay Maurya</name><uri>http://www.blogger.com/profile/00459112937519229095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAq0unsQRC0g7q8LCCjOU5NUrCuyXX5vMfcWbPl5cNsojKH_YS1rJIQL3mxLSTxPXCdJ90rCGzSmU-cFJ9vqjHSMbOxvOb1NaDkURBdhKasrpOq9yuoNpW9_XfPk_1qWU/s220/clip_image001.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7205115418491271533.post-464339505252631103</id><published>2012-03-20T21:42:00.002-07:00</published><updated>2012-03-20T21:43:03.719-07:00</updated><title type='text'>What is normalization</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #2a2a2a; line-height: 19px; margin-bottom: 0.3em; margin-top: 0.3em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;font-family: &#39;trebuchet ms&#39;, geneva;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #2a2a2a; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 0.3em; margin-top: 0.3em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Defination&lt;/span&gt;&amp;nbsp;:&lt;/strong&gt;&amp;nbsp;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &#39;trebuchet ms&#39;, geneva;&quot;&gt;Normalization is the process of efficiently organizing data in a database. There are two goals of the normalization process: eliminating redundant data (for example, storing the same data in more than one table) and ensuring data dependencies make sense (only storing related data in a table). Both of these are worthy goals as they reduce the amount of space a database consumes and ensure that data is logically stored. There are several benefits for using Normalization in Database.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #2a2a2a; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 0.3em; margin-top: 0.3em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;strong&gt;Benefits :&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #2a2a2a; font-family: Arial, Helvetica, sans-serif; font-size: small; text-align: -webkit-auto;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ol mce_style=&quot;MARGIN-TOP: 0in&quot; start=&quot;1&quot; style=&quot;margin-top: 0in;&quot; type=&quot;a&quot;&gt;&lt;span style=&quot;background-color: white; color: #2a2a2a; font-family: Arial, Helvetica, sans-serif; font-size: small; text-align: -webkit-auto;&quot;&gt;
&lt;li class=&quot;MsoNormalCxSpFirst&quot; mce_style=&quot;LINE-HEIGHT: normal; MARGIN: auto auto 0pt; mso-add-space: auto; mso-list: l0 level1 lfo1&quot; style=&quot;margin-bottom: 0pt; margin-left: auto; margin-right: auto; margin-top: auto;&quot;&gt;&lt;span style=&quot;font-family: &#39;trebuchet ms&#39;, geneva;&quot;&gt;Eliminate data redundancy&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormalCxSpMiddle&quot; mce_style=&quot;LINE-HEIGHT: normal; MARGIN: auto auto 0pt; mso-add-space: auto; mso-list: l0 level1 lfo1&quot; style=&quot;margin-bottom: 0pt; margin-left: auto; margin-right: auto; margin-top: auto;&quot;&gt;&lt;span style=&quot;font-family: &#39;trebuchet ms&#39;, geneva;&quot;&gt;Improve performance&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormalCxSpMiddle&quot; mce_style=&quot;LINE-HEIGHT: normal; MARGIN: auto auto 0pt; mso-add-space: auto; mso-list: l0 level1 lfo1&quot; style=&quot;margin-bottom: 0pt; margin-left: auto; margin-right: auto; margin-top: auto;&quot;&gt;&lt;span style=&quot;font-family: &#39;trebuchet ms&#39;, geneva;&quot;&gt;Query optimization&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormalCxSpMiddle&quot; mce_style=&quot;LINE-HEIGHT: normal; MARGIN: auto auto 0pt; mso-add-space: auto; mso-list: l0 level1 lfo1&quot; style=&quot;margin-bottom: 0pt; margin-left: auto; margin-right: auto; margin-top: auto;&quot;&gt;&lt;span style=&quot;font-family: &#39;trebuchet ms&#39;, geneva;&quot;&gt;Faster update due to less number of columns in one table&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormalCxSpMiddle&quot; mce_style=&quot;LINE-HEIGHT: normal; MARGIN: auto auto 0pt; mso-add-space: auto; mso-list: l0 level1 lfo1&quot; style=&quot;margin-bottom: 0pt; margin-left: auto; margin-right: auto; margin-top: auto;&quot;&gt;&lt;span style=&quot;font-family: &#39;trebuchet ms&#39;, geneva;&quot;&gt;Index improvement&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/span&gt;&lt;/ol&gt;
&lt;span style=&quot;background-color: white; color: #2a2a2a; font-family: Arial, Helvetica, sans-serif; font-size: small; text-align: -webkit-auto;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2a2a2a; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; text-align: -webkit-auto;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #2a2a2a; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 0.3em; margin-top: 0.3em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;font-family: &#39;trebuchet ms&#39;, geneva; font-size: small;&quot;&gt;There are diff. - diff. types of Normalizations form available in the Database. Lets see one by one.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #2a2a2a; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 0.3em; margin-top: 0.3em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;1. First Normal Form (1NF)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #2a2a2a; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 0.3em; margin-top: 0.3em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&lt;span style=&quot;font-family: &#39;trebuchet ms&#39;, geneva; font-size: small;&quot;&gt;First normal form (1NF) sets the very basic rules for an organized database:&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;background-color: white; color: #2a2a2a; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; list-style-position: outside; margin-bottom: 0.3em; margin-left: 0px; margin-right: 0px; margin-top: 0.3em; padding-left: 1.3em; text-align: -webkit-auto;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &#39;trebuchet ms&#39;, geneva; font-size: small;&quot;&gt;Eliminate duplicative&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #3366cc; font-family: &#39;trebuchet ms&#39;, geneva; font-size: small;&quot;&gt;columns&lt;/span&gt;&lt;span style=&quot;font-family: &#39;trebuchet ms&#39;, geneva; font-size: small;&quot;&gt;&amp;nbsp;from the same table.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &#39;trebuchet ms&#39;, geneva; font-size: small;&quot;&gt;Create separate tables for each group of related data and identify each&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #3366cc; font-family: &#39;trebuchet ms&#39;, geneva; font-size: small;&quot;&gt;row&lt;/span&gt;&lt;span style=&quot;font-family: &#39;trebuchet ms&#39;, geneva; font-size: small;&quot;&gt;&amp;nbsp;with a unique column or set of columns (the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #3366cc; font-family: &#39;trebuchet ms&#39;, geneva; font-size: small;&quot;&gt;primary key&lt;/span&gt;&lt;span style=&quot;font-family: &#39;trebuchet ms&#39;, geneva; font-size: small;&quot;&gt;).&lt;/span&gt;&lt;/li&gt;
&lt;ul mce_style=&quot;MARGIN-TOP: 0in&quot; style=&quot;list-style-position: outside; margin-bottom: 0.3em; margin-left: 0px; margin-right: 0px; margin-top: 0in; padding-left: 1.3em;&quot; type=&quot;a&quot;&gt;
&lt;li class=&quot;MsoNormalCxSpFirst&quot; mce_style=&quot;LINE-HEIGHT: normal; MARGIN: auto auto 0pt; mso-add-space: auto; mso-list: l0 level1 lfo1&quot; style=&quot;line-height: normal; margin-bottom: 0pt; margin-left: auto; margin-right: auto; margin-top: auto;&quot;&gt;Remove repetative groups&lt;/li&gt;
&lt;li class=&quot;MsoNormalCxSpFirst&quot; mce_style=&quot;LINE-HEIGHT: normal; MARGIN: auto auto 0pt; mso-add-space: auto; mso-list: l0 level1 lfo1&quot; style=&quot;line-height: normal; margin-bottom: 0pt; margin-left: auto; margin-right: auto; margin-top: auto;&quot;&gt;Create Primary Key&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; color: #2a2a2a; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 0.3em; margin-top: 0.3em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;mceItemTable&quot; mce_style=&quot;WIDTH: 339pt; BORDER-COLLAPSE: collapse&quot; style=&quot;background-color: white; border-collapse: collapse; color: #2a2a2a; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; text-align: -webkit-auto; width: 453px;&quot;&gt;&lt;colgroup&gt;&lt;col mce_style=&quot;WIDTH: 48pt&quot; span=&quot;3&quot; style=&quot;width: 48pt;&quot; width=&quot;64&quot;&gt;&lt;/col&gt;&lt;col mce_style=&quot;WIDTH: 65pt; mso-width-source: userset; mso-width-alt: 3181&quot; span=&quot;3&quot; style=&quot;width: 65pt;&quot; width=&quot;87&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl65&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 48pt; HEIGHT: 15pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt; height: 15pt; width: 48pt;&quot; width=&quot;64&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl66&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt; width: 48pt;&quot; width=&quot;64&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl66&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt; width: 48pt;&quot; width=&quot;64&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl66&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 65pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt; width: 65pt;&quot; width=&quot;87&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl66&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 65pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt; width: 65pt;&quot; width=&quot;87&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl67&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 65pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt; width: 65pt;&quot; width=&quot;87&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl79&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt; height: 15pt;&quot;&gt;&lt;strong&gt;Name&lt;/strong&gt;&lt;/td&gt;&lt;td class=&quot;xl79&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt;&quot;&gt;&lt;strong&gt;State&lt;/strong&gt;&lt;/td&gt;&lt;td class=&quot;xl79&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt;&quot;&gt;&lt;strong&gt;Country&lt;/strong&gt;&lt;/td&gt;&lt;td class=&quot;xl79&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; PADDING-LEFT: 30px; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt; padding-left: 30px;&quot;&gt;&lt;strong&gt;Phone1&lt;/strong&gt;&lt;/td&gt;&lt;td class=&quot;xl79&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; PADDING-LEFT: 30px; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt; padding-left: 30px;&quot;&gt;&lt;strong&gt;Phone2&lt;/strong&gt;&lt;/td&gt;&lt;td class=&quot;xl79&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; PADDING-LEFT: 30px; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt; padding-left: 30px;&quot;&gt;&lt;strong&gt;Phone3&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl78&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; height: 15pt;&quot;&gt;John&lt;/td&gt;&lt;td class=&quot;xl78&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;101&lt;/td&gt;&lt;td class=&quot;xl78&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;1&lt;/td&gt;&lt;td class=&quot;xl78&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;488-511-3258&lt;/td&gt;&lt;td class=&quot;xl78&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;781-896-9897&lt;/td&gt;&lt;td class=&quot;xl78&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;425-983-9812&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl78&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; height: 15pt;&quot;&gt;Bob&lt;/td&gt;&lt;td class=&quot;xl78&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;102&lt;/td&gt;&lt;td class=&quot;xl78&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;1&lt;/td&gt;&lt;td class=&quot;xl78&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;861-856-6987&lt;/td&gt;&lt;td class=&quot;xl78&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl78&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl78&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; height: 15pt;&quot;&gt;Rob&lt;/td&gt;&lt;td class=&quot;xl78&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;201&lt;/td&gt;&lt;td class=&quot;xl78&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;2&lt;/td&gt;&lt;td class=&quot;xl78&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;587-963-8425&lt;/td&gt;&lt;td class=&quot;xl78&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;425-698-9684&lt;/td&gt;&lt;td class=&quot;xl78&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl68&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial; height: 15pt;&quot;&gt;&lt;strong&gt;&amp;nbsp;PK&lt;/strong&gt;&lt;/td&gt;&lt;td class=&quot;xl76&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/td&gt;&lt;td mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl73&quot; colspan=&quot;3&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: black 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: solid; border-right-width: 0.5pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt;&quot;&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [ Phone Nos ]&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl77&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial; height: 15pt;&quot;&gt;&amp;nbsp;&amp;nbsp; ?&lt;/td&gt;&lt;td mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl75&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;?&lt;/td&gt;&lt;td class=&quot;xl69&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl79&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt; height: 15pt;&quot;&gt;&lt;strong&gt;ID&lt;/strong&gt;&lt;/td&gt;&lt;td class=&quot;xl79&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt;&quot;&gt;&lt;strong&gt;Name&lt;/strong&gt;&lt;/td&gt;&lt;td class=&quot;xl79&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt;&quot;&gt;&lt;strong&gt;State&lt;/strong&gt;&lt;/td&gt;&lt;td class=&quot;xl79&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt;&quot;&gt;&lt;strong&gt;Country&lt;/strong&gt;&lt;/td&gt;&lt;td class=&quot;xl79&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt;&quot;&gt;&lt;strong&gt;Phone&lt;/strong&gt;&lt;/td&gt;&lt;td class=&quot;xl69&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl78&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; height: 15pt;&quot;&gt;1&lt;/td&gt;&lt;td class=&quot;xl78&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;John&lt;/td&gt;&lt;td class=&quot;xl78&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;101&lt;/td&gt;&lt;td class=&quot;xl78&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;1&lt;/td&gt;&lt;td class=&quot;xl78&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;488-511-3258&lt;/td&gt;&lt;td class=&quot;xl69&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl78&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; height: 15pt;&quot;&gt;2&lt;/td&gt;&lt;td class=&quot;xl78&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;John&lt;/td&gt;&lt;td class=&quot;xl78&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;101&lt;/td&gt;&lt;td class=&quot;xl78&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;1&lt;/td&gt;&lt;td class=&quot;xl78&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;781-896-9897&lt;/td&gt;&lt;td class=&quot;xl69&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl78&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; height: 15pt;&quot;&gt;3&lt;/td&gt;&lt;td class=&quot;xl78&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;John&lt;/td&gt;&lt;td class=&quot;xl78&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;101&lt;/td&gt;&lt;td class=&quot;xl78&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;1&lt;/td&gt;&lt;td class=&quot;xl78&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;425-983-9812&lt;/td&gt;&lt;td class=&quot;xl69&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl78&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; height: 15pt;&quot;&gt;4&lt;/td&gt;&lt;td class=&quot;xl78&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;Bob&lt;/td&gt;&lt;td class=&quot;xl78&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;102&lt;/td&gt;&lt;td class=&quot;xl78&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;1&lt;/td&gt;&lt;td class=&quot;xl78&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;861-856-6987&lt;/td&gt;&lt;td class=&quot;xl69&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl78&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; height: 15pt;&quot;&gt;5&lt;/td&gt;&lt;td class=&quot;xl78&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;Rob&lt;/td&gt;&lt;td class=&quot;xl78&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;201&lt;/td&gt;&lt;td class=&quot;xl78&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;2&lt;/td&gt;&lt;td class=&quot;xl78&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;587-963-8425&lt;/td&gt;&lt;td class=&quot;xl69&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl78&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; height: 15pt;&quot;&gt;6&lt;/td&gt;&lt;td class=&quot;xl78&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;Rob&lt;/td&gt;&lt;td class=&quot;xl78&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;201&lt;/td&gt;&lt;td class=&quot;xl78&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;2&lt;/td&gt;&lt;td class=&quot;xl78&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;425-698-9684&lt;/td&gt;&lt;td class=&quot;xl69&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl70&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial; height: 15pt;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl71&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl71&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl71&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl71&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style=&quot;background-color: white; color: #2a2a2a; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 0.3em; margin-top: 0.3em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;font-family: &#39;trebuchet ms&#39;, geneva;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;2.&amp;nbsp;&lt;b&gt;&lt;span mce_style=&quot;FONT-FAMILY: &#39;Verdana&#39;, &#39;sans-serif&#39;; COLOR: #333333; FONT-SIZE: 9pt&quot; style=&quot;color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;Second Normal Form (2NF)&lt;/span&gt;&lt;/b&gt;&lt;span mce_style=&quot;FONT-FAMILY: &#39;Verdana&#39;, &#39;sans-serif&#39;; COLOR: #333333; FONT-SIZE: 9pt&quot; style=&quot;color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;Second normal form (2NF) further addresses the concept of removing duplicative data:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; mce_style=&quot;TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 13.5pt; BACKGROUND: white; mso-list: l0 level1 lfo1; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; tab-stops: list .5in&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #2a2a2a; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 0pt; margin-left: 13.5pt; margin-right: 0in; margin-top: 0in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;trebuchet ms&#39;, geneva;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span mce_style=&quot;FONT-FAMILY: Symbol; COLOR: #333333; FONT-SIZE: 10pt; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol; mso-bidi-font-size: 9.0pt&quot; style=&quot;color: #333333; font-family: Symbol; font-size: 10pt;&quot;&gt;&lt;span mce_style=&quot;mso-list: Ignore&quot;&gt;·&lt;span mce_style=&quot;FONT: 7pt &#39;Times New Roman&#39;&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span mce_style=&quot;FONT-FAMILY: &#39;Verdana&#39;, &#39;sans-serif&#39;; COLOR: #333333; FONT-SIZE: 9pt&quot; style=&quot;color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;Meet all the requirements of the first normal form.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; mce_style=&quot;TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 13.5pt; BACKGROUND: white; mso-list: l0 level1 lfo1; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; tab-stops: list .5in&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #2a2a2a; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 0pt; margin-left: 13.5pt; margin-right: 0in; margin-top: 0in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;trebuchet ms&#39;, geneva;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span mce_style=&quot;FONT-FAMILY: Symbol; COLOR: #333333; FONT-SIZE: 10pt; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol; mso-bidi-font-size: 9.0pt&quot; style=&quot;color: #333333; font-family: Symbol; font-size: 10pt;&quot;&gt;&lt;span mce_style=&quot;mso-list: Ignore&quot;&gt;·&lt;span mce_style=&quot;FONT: 7pt &#39;Times New Roman&#39;&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span mce_style=&quot;FONT-FAMILY: &#39;Verdana&#39;, &#39;sans-serif&#39;; COLOR: #333333; FONT-SIZE: 9pt&quot; style=&quot;color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;Remove subsets of data that apply to multiple rows of a table and place them in separate tables.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; mce_style=&quot;TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 13.5pt; BACKGROUND: white; mso-list: l0 level1 lfo1; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; tab-stops: list .5in&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #2a2a2a; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 0pt; margin-left: 13.5pt; margin-right: 0in; margin-top: 0in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span mce_style=&quot;FONT-FAMILY: Symbol; COLOR: #333333; FONT-SIZE: 10pt; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol; mso-bidi-font-size: 9.0pt&quot; style=&quot;color: #333333; font-family: Symbol; font-size: 10pt;&quot;&gt;&lt;span mce_style=&quot;mso-list: Ignore&quot;&gt;&lt;span style=&quot;font-family: &#39;trebuchet ms&#39;, geneva;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;·&lt;span mce_style=&quot;FONT: 7pt &#39;Times New Roman&#39;&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span mce_style=&quot;FONT-FAMILY: &#39;Verdana&#39;, &#39;sans-serif&#39;; COLOR: #333333; FONT-SIZE: 9pt&quot; style=&quot;color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;span style=&quot;font-family: &#39;trebuchet ms&#39;, geneva; font-size: small;&quot;&gt;Create relationships between these new tables and their predecessors through the use of&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #330099; font-family: &#39;trebuchet ms&#39;, geneva; font-size: small;&quot;&gt;foreign keys&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-family: &#39;trebuchet ms&#39;, geneva; font-size: small;&quot;&gt;.&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpFirst&quot; mce_style=&quot;LINE-HEIGHT: normal; MARGIN: auto auto 0pt; mso-add-space: auto; mso-list: l0 level1 lfo1&quot; style=&quot;background-color: white; color: #2a2a2a; font-family: Arial, Helvetica, sans-serif; font-size: 13px; margin-bottom: 0pt; margin-left: auto; margin-right: auto; margin-top: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &#39;trebuchet ms&#39;, geneva;&quot;&gt;Remove columns which create duplicate data in a table and related a new table with Primary Key – Foreign Key relationship&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpFirst&quot; mce_style=&quot;LINE-HEIGHT: normal; MARGIN: auto auto 0pt; mso-add-space: auto; mso-list: l0 level1 lfo1&quot; style=&quot;background-color: white; color: #2a2a2a; font-family: Arial, Helvetica, sans-serif; font-size: 13px; margin-bottom: 0pt; margin-left: auto; margin-right: auto; margin-top: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;mceItemTable&quot; mce_style=&quot;WIDTH: 452pt; BORDER-COLLAPSE: collapse&quot; style=&quot;background-color: white; border-collapse: collapse; color: #2a2a2a; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; text-align: -webkit-auto; width: 604px;&quot;&gt;&lt;colgroup&gt;&lt;col mce_style=&quot;WIDTH: 48pt&quot; span=&quot;3&quot; style=&quot;width: 48pt;&quot; width=&quot;64&quot;&gt;&lt;/col&gt;&lt;col mce_style=&quot;WIDTH: 65pt; mso-width-source: userset; mso-width-alt: 3181&quot; span=&quot;3&quot; style=&quot;width: 65pt;&quot; width=&quot;87&quot;&gt;&lt;/col&gt;&lt;col mce_style=&quot;WIDTH: 48pt&quot; style=&quot;width: 48pt;&quot; width=&quot;64&quot;&gt;&lt;/col&gt;&lt;col mce_style=&quot;WIDTH: 65pt; mso-width-source: userset; mso-width-alt: 3181&quot; style=&quot;width: 65pt;&quot; width=&quot;87&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl66&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 48pt; HEIGHT: 15pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt; height: 15pt; width: 48pt;&quot; width=&quot;64&quot;&gt;ID&lt;/td&gt;&lt;td class=&quot;xl66&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt; width: 48pt;&quot; width=&quot;64&quot;&gt;Name&lt;/td&gt;&lt;td class=&quot;xl66&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt; width: 48pt;&quot; width=&quot;64&quot;&gt;State&lt;/td&gt;&lt;td class=&quot;xl66&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 65pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt; width: 65pt;&quot; width=&quot;87&quot;&gt;Country&lt;/td&gt;&lt;td class=&quot;xl67&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #b7dee8; WIDTH: 65pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: #b7dee8; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt; width: 65pt;&quot; width=&quot;87&quot;&gt;Phone&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 65pt; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial; width: 65pt;&quot; width=&quot;87&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial; width: 48pt;&quot; width=&quot;64&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 65pt; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial; width: 65pt;&quot; width=&quot;87&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl65&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; height: 15pt;&quot;&gt;1&lt;/td&gt;&lt;td class=&quot;xl65&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;John&lt;/td&gt;&lt;td class=&quot;xl65&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;101&lt;/td&gt;&lt;td class=&quot;xl65&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;1&lt;/td&gt;&lt;td class=&quot;xl68&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #b7dee8; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: #b7dee8; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;488-511-3258&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl65&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; height: 15pt;&quot;&gt;2&lt;/td&gt;&lt;td class=&quot;xl65&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;John&lt;/td&gt;&lt;td class=&quot;xl65&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;101&lt;/td&gt;&lt;td class=&quot;xl65&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;1&lt;/td&gt;&lt;td class=&quot;xl68&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #b7dee8; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: #b7dee8; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;781-896-9897&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl65&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; height: 15pt;&quot;&gt;3&lt;/td&gt;&lt;td class=&quot;xl65&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;John&lt;/td&gt;&lt;td class=&quot;xl65&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;101&lt;/td&gt;&lt;td class=&quot;xl65&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;1&lt;/td&gt;&lt;td class=&quot;xl68&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #b7dee8; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: #b7dee8; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;425-983-9812&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl65&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; height: 15pt;&quot;&gt;4&lt;/td&gt;&lt;td class=&quot;xl65&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;Bob&lt;/td&gt;&lt;td class=&quot;xl65&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;102&lt;/td&gt;&lt;td class=&quot;xl65&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;1&lt;/td&gt;&lt;td class=&quot;xl68&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #b7dee8; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: #b7dee8; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;861-856-6987&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl65&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; height: 15pt;&quot;&gt;5&lt;/td&gt;&lt;td class=&quot;xl65&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;Rob&lt;/td&gt;&lt;td class=&quot;xl65&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;201&lt;/td&gt;&lt;td class=&quot;xl65&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;2&lt;/td&gt;&lt;td class=&quot;xl68&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #b7dee8; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: #b7dee8; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;587-963-8425&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl65&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; height: 15pt;&quot;&gt;6&lt;/td&gt;&lt;td class=&quot;xl65&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;Rob&lt;/td&gt;&lt;td class=&quot;xl65&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;201&lt;/td&gt;&lt;td class=&quot;xl65&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;2&lt;/td&gt;&lt;td class=&quot;xl68&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #b7dee8; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: #b7dee8; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;425-698-9684&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl72&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial; height: 15pt;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl72&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial; height: 15pt;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl73&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: #92d050; HEIGHT: 15pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: #92d050; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt; height: 15pt;&quot;&gt;ID&lt;/td&gt;&lt;td class=&quot;xl66&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt;&quot;&gt;Name&lt;/td&gt;&lt;td class=&quot;xl66&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt;&quot;&gt;State&lt;/td&gt;&lt;td class=&quot;xl74&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: red; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: red; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt;&quot;&gt;Country&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl66&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt;&quot;&gt;PhoneID&lt;/td&gt;&lt;td class=&quot;xl73&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #92d050; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: #92d050; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt;&quot;&gt;ID&lt;/td&gt;&lt;td class=&quot;xl67&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #b7dee8; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: #b7dee8; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt;&quot;&gt;Phone&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl75&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: #92d050; HEIGHT: 15pt; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: #92d050; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; height: 15pt;&quot;&gt;1&lt;/td&gt;&lt;td class=&quot;xl65&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;John&lt;/td&gt;&lt;td class=&quot;xl65&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;101&lt;/td&gt;&lt;td class=&quot;xl69&quot; mce_style=&quot;BORDER-BOTTOM: black 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: red; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; rowspan=&quot;3&quot; style=&quot;background-color: red; border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl65&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;1&lt;/td&gt;&lt;td class=&quot;xl75&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #92d050; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: #92d050; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;1&lt;/td&gt;&lt;td class=&quot;xl67&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #b7dee8; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: #b7dee8; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;488-511-3258&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl75&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: #92d050; HEIGHT: 15pt; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: #92d050; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; height: 15pt;&quot;&gt;2&lt;/td&gt;&lt;td class=&quot;xl65&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;Bob&lt;/td&gt;&lt;td class=&quot;xl65&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;102&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl65&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;2&lt;/td&gt;&lt;td class=&quot;xl75&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #92d050; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: #92d050; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;1&lt;/td&gt;&lt;td class=&quot;xl67&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #b7dee8; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: #b7dee8; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;781-896-9897&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl75&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: #92d050; HEIGHT: 15pt; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: #92d050; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; height: 15pt;&quot;&gt;3&lt;/td&gt;&lt;td class=&quot;xl65&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;Rob&lt;/td&gt;&lt;td class=&quot;xl65&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;201&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl65&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;3&lt;/td&gt;&lt;td class=&quot;xl75&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #92d050; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: #92d050; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;1&lt;/td&gt;&lt;td class=&quot;xl67&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #b7dee8; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: #b7dee8; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;425-983-9812&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl72&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial; height: 15pt;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl65&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;4&lt;/td&gt;&lt;td class=&quot;xl75&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #92d050; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: #92d050; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;2&lt;/td&gt;&lt;td class=&quot;xl67&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #b7dee8; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: #b7dee8; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;587-963-8425&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl72&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial; height: 15pt;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl65&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;5&lt;/td&gt;&lt;td class=&quot;xl75&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #92d050; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: #92d050; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;3&lt;/td&gt;&lt;td class=&quot;xl67&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #b7dee8; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: #b7dee8; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;587-963-8425&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl72&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial; height: 15pt;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl72&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl65&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;6&lt;/td&gt;&lt;td class=&quot;xl75&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #92d050; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: #92d050; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;3&lt;/td&gt;&lt;td class=&quot;xl67&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #b7dee8; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: #b7dee8; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;425-698-9684&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style=&quot;background-color: white; color: #2a2a2a; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 0.3em; margin-top: 0.3em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #2a2a2a; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 0.3em; margin-top: 0.3em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;font-family: &#39;trebuchet ms&#39;, geneva;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;3.&amp;nbsp;&lt;b&gt;&lt;span mce_style=&quot;FONT-FAMILY: &#39;Verdana&#39;, &#39;sans-serif&#39;; COLOR: #333333; FONT-SIZE: 9pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Times New Roman&#39;&quot; style=&quot;color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;Third Normal Form (3NF)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; mce_style=&quot;MARGIN: 0in 0in 0pt; BACKGROUND: white&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #2a2a2a; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 0pt; margin-left: 0in; margin-right: 0in; margin-top: 0in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;span mce_style=&quot;FONT-FAMILY: &#39;Verdana&#39;, &#39;sans-serif&#39;; COLOR: #333333; FONT-SIZE: 9pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Times New Roman&#39;&quot; style=&quot;color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;span style=&quot;font-family: &#39;trebuchet ms&#39;, geneva;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Third normal form (3NF) goes one large step further:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; mce_style=&quot;TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 13.5pt; BACKGROUND: white; mso-list: l0 level1 lfo1; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; tab-stops: list .5in&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #2a2a2a; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 0pt; margin-left: 13.5pt; margin-right: 0in; margin-top: 0in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;trebuchet ms&#39;, geneva;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span mce_style=&quot;FONT-FAMILY: Symbol; COLOR: #333333; FONT-SIZE: 10pt; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol; mso-bidi-font-size: 9.0pt&quot; style=&quot;color: #333333; font-family: Symbol; font-size: 10pt;&quot;&gt;&lt;span mce_style=&quot;mso-list: Ignore&quot;&gt;·&lt;span mce_style=&quot;FONT: 7pt &#39;Times New Roman&#39;&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span mce_style=&quot;FONT-FAMILY: &#39;Verdana&#39;, &#39;sans-serif&#39;; COLOR: #333333; FONT-SIZE: 9pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Times New Roman&#39;&quot; style=&quot;color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;Meet all the requirements of the second normal form.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; mce_style=&quot;TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 13.5pt; BACKGROUND: white; mso-list: l0 level1 lfo1; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; tab-stops: list .5in&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #2a2a2a; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 0pt; margin-left: 13.5pt; margin-right: 0in; margin-top: 0in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;trebuchet ms&#39;, geneva;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span mce_style=&quot;FONT-FAMILY: Symbol; COLOR: #333333; FONT-SIZE: 10pt; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol; mso-bidi-font-size: 9.0pt&quot; style=&quot;color: #333333; font-family: Symbol; font-size: 10pt;&quot;&gt;&lt;span mce_style=&quot;mso-list: Ignore&quot;&gt;·&lt;span mce_style=&quot;FONT: 7pt &#39;Times New Roman&#39;&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span mce_style=&quot;FONT-FAMILY: &#39;Verdana&#39;, &#39;sans-serif&#39;; COLOR: #333333; FONT-SIZE: 9pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Times New Roman&#39;&quot; style=&quot;color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;Remove columns that are not dependent upon the primary key.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #2a2a2a; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 0.3em; margin-top: 0.3em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;span mce_style=&quot;LINE-HEIGHT: 115%; FONT-FAMILY: &#39;Calibri&#39;, &#39;sans-serif&#39;; FONT-SIZE: 11pt; mso-fareast-font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-no-proof: yes; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px;&quot;&gt;&lt;v:shapetype coordsize=&quot;21600,21600&quot; filled=&quot;f&quot; id=&quot;_x0000_t75&quot; o:preferrelative=&quot;t&quot; o:spt=&quot;75&quot; path=&quot;m@4@5l@4@11@9@11@9@5xe&quot; stroked=&quot;f&quot;&gt;&lt;span style=&quot;font-family: &#39;trebuchet ms&#39;, geneva;&quot;&gt;&amp;nbsp; Country can be derived from State also… so removing country&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/v:shapetype&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #2a2a2a; font-size: 13px; line-height: 19px; text-align: -webkit-auto;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;mceItemTable&quot; mce_style=&quot;WIDTH: 195pt; BORDER-COLLAPSE: collapse&quot; style=&quot;border-collapse: collapse; width: 260px;&quot;&gt;&lt;colgroup&gt;&lt;col mce_style=&quot;WIDTH: 48pt&quot; span=&quot;3&quot; style=&quot;width: 48pt;&quot; width=&quot;64&quot;&gt;&lt;/col&gt;&lt;col mce_style=&quot;WIDTH: 51pt; mso-width-source: userset; mso-width-alt: 2486&quot; style=&quot;width: 51pt;&quot; width=&quot;68&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl65&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 48pt; HEIGHT: 15pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt; height: 15pt; width: 48pt;&quot; width=&quot;64&quot;&gt;&amp;nbsp; ID&lt;/td&gt;&lt;td class=&quot;xl65&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt; width: 48pt;&quot; width=&quot;64&quot;&gt;&amp;nbsp; Name&lt;/td&gt;&lt;td class=&quot;xl65&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt; width: 48pt;&quot; width=&quot;64&quot;&gt;&amp;nbsp; State&lt;/td&gt;&lt;td class=&quot;xl65&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 51pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt; width: 51pt;&quot; width=&quot;68&quot;&gt;&amp;nbsp; Country&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl67&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: #92d050; HEIGHT: 15pt; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: #92d050; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; height: 15pt;&quot;&gt;&amp;nbsp; 1&lt;/td&gt;&lt;td class=&quot;xl66&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&amp;nbsp; John&lt;/td&gt;&lt;td class=&quot;xl66&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&amp;nbsp;&amp;nbsp; 101&lt;/td&gt;&lt;td class=&quot;xl68&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: red; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: red; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl67&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: #92d050; HEIGHT: 15pt; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: #92d050; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; height: 15pt;&quot;&gt;&amp;nbsp; 2&lt;/td&gt;&lt;td class=&quot;xl66&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&amp;nbsp; Bob&lt;/td&gt;&lt;td class=&quot;xl66&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&amp;nbsp;&amp;nbsp; 102&lt;/td&gt;&lt;td class=&quot;xl68&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: red; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: red; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl67&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: #92d050; HEIGHT: 15pt; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: #92d050; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; height: 15pt;&quot;&gt;&amp;nbsp; 3&lt;/td&gt;&lt;td class=&quot;xl66&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&amp;nbsp; Rob&lt;/td&gt;&lt;td class=&quot;xl66&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;201&lt;/td&gt;&lt;td class=&quot;xl68&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: red; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: red; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;background-color: white; color: #2a2a2a; font-size: 13px; line-height: 19px; text-align: -webkit-auto;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2a2a2a; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; text-align: -webkit-auto;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; mce_style=&quot;MARGIN: 0in 0in 0.25in; BACKGROUND: white; mso-outline-level: 4&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #2a2a2a; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 0.25in; margin-left: 0in; margin-right: 0in; margin-top: 0in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; mce_style=&quot;MARGIN: 0in 0in 0.25in; BACKGROUND: white; mso-outline-level: 4&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #2a2a2a; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 0.25in; margin-left: 0in; margin-right: 0in; margin-top: 0in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;font-family: &#39;trebuchet ms&#39;, geneva;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;&lt;span mce_style=&quot;FONT-FAMILY: &#39;Verdana&#39;, &#39;sans-serif&#39;; COLOR: #333333; FONT-SIZE: 9pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Times New Roman&#39;&quot; style=&quot;color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;4.&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span mce_style=&quot;FONT-FAMILY: &#39;Verdana&#39;, &#39;sans-serif&#39;; COLOR: #333333; FONT-SIZE: 9pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Times New Roman&#39;&quot; style=&quot;color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;Fourth Normal Form (4NF)&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; mce_style=&quot;MARGIN: 0in 0in 0.25in; BACKGROUND: white; mso-outline-level: 4&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #2a2a2a; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 0.25in; margin-left: 0in; margin-right: 0in; margin-top: 0in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;font-family: &#39;trebuchet ms&#39;, geneva;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;&lt;span mce_style=&quot;FONT-FAMILY: &#39;Verdana&#39;, &#39;sans-serif&#39;; COLOR: #333333; FONT-SIZE: 9pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Times New Roman&#39;&quot; style=&quot;color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span mce_style=&quot;FONT-FAMILY: &#39;Verdana&#39;, &#39;sans-serif&#39;; COLOR: #333333; FONT-SIZE: 9pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Times New Roman&#39;&quot; style=&quot;color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;&lt;span style=&quot;font-family: &#39;trebuchet ms&#39;, geneva;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Finally, fourth normal form (4NF) has one additional requirement:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; mce_style=&quot;TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 13.5pt; BACKGROUND: white; mso-list: l0 level1 lfo1; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; tab-stops: list .5in&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #2a2a2a; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 0pt; margin-left: 13.5pt; margin-right: 0in; margin-top: 0in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;trebuchet ms&#39;, geneva;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span mce_style=&quot;FONT-FAMILY: Symbol; COLOR: #333333; FONT-SIZE: 10pt; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol; mso-bidi-font-size: 9.0pt&quot; style=&quot;color: #333333; font-family: Symbol; font-size: 10pt;&quot;&gt;&lt;span mce_style=&quot;mso-list: Ignore&quot;&gt;·&lt;span mce_style=&quot;FONT: 7pt &#39;Times New Roman&#39;&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span mce_style=&quot;FONT-FAMILY: &#39;Verdana&#39;, &#39;sans-serif&#39;; COLOR: #333333; FONT-SIZE: 9pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Times New Roman&#39;&quot; style=&quot;color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;Meet all the requirements of the third normal form.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; mce_style=&quot;TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 13.5pt; BACKGROUND: white; mso-list: l0 level1 lfo1; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; tab-stops: list .5in&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #2a2a2a; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 0pt; margin-left: 13.5pt; margin-right: 0in; margin-top: 0in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;trebuchet ms&#39;, geneva;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span mce_style=&quot;FONT-FAMILY: Symbol; COLOR: #333333; FONT-SIZE: 10pt; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol; mso-bidi-font-size: 9.0pt&quot; style=&quot;color: #333333; font-family: Symbol; font-size: 10pt;&quot;&gt;&lt;span mce_style=&quot;mso-list: Ignore&quot;&gt;·&lt;span mce_style=&quot;FONT: 7pt &#39;Times New Roman&#39;&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span mce_style=&quot;FONT-FAMILY: &#39;Verdana&#39;, &#39;sans-serif&#39;; COLOR: #333333; FONT-SIZE: 9pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-bidi-font-family: &#39;Times New Roman&#39;&quot; style=&quot;color: #333333; font-family: Verdana, sans-serif; font-size: 9pt;&quot;&gt;A relation is in 4NF if it has no multi-valued dependencies.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; mce_style=&quot;TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 13.5pt; BACKGROUND: white; mso-list: l0 level1 lfo1; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; tab-stops: list .5in&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #2a2a2a; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 0pt; margin-left: 13.5pt; margin-right: 0in; margin-top: 0in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #2a2a2a; font-family: &#39;trebuchet ms&#39;, geneva; font-size: 13px; line-height: 19px; text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormalCxSpFirst&quot; mce_style=&quot;LINE-HEIGHT: normal; MARGIN: auto auto 0pt; mso-add-space: auto; mso-list: l0 level1 lfo1&quot; style=&quot;line-height: normal; margin-bottom: 0pt; margin-left: auto; margin-right: auto; margin-top: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #2a2a2a; font-family: &#39;trebuchet ms&#39;, geneva; font-size: 13px; line-height: 19px; text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;If PK is composed of multiple columns then all non-key attributes should be derived from FULL PK only. If some non-key attribute can be derived from partial PK then remove it&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #2a2a2a; font-family: &#39;trebuchet ms&#39;, geneva; font-size: 13px; line-height: 19px; text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;div class=&quot;MsoNormalCxSpFirst&quot; mce_style=&quot;LINE-HEIGHT: normal; MARGIN: auto auto 0pt; mso-add-space: auto; mso-list: l0 level1 lfo1&quot; style=&quot;line-height: normal; margin-bottom: 0pt; margin-left: auto; margin-right: auto; margin-top: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormalCxSpFirst&quot; mce_style=&quot;LINE-HEIGHT: normal; MARGIN: auto auto 0pt; mso-add-space: auto; mso-list: l0 level1 lfo1&quot; style=&quot;background-color: white; color: #2a2a2a; font-family: Arial, Helvetica, sans-serif; font-size: 13px; margin-bottom: 0pt; margin-left: auto; margin-right: auto; margin-top: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;font-family: &#39;trebuchet ms&#39;, geneva;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: &#39;trebuchet ms&#39;, geneva;&quot;&gt;The 4NF also known as BCNF NF&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #2a2a2a; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; text-align: -webkit-auto;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; mce_style=&quot;TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 13.5pt; BACKGROUND: white; mso-list: l0 level1 lfo1; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; tab-stops: list .5in&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #2a2a2a; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 0pt; margin-left: 13.5pt; margin-right: 0in; margin-top: 0in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #2a2a2a; font-family: &#39;trebuchet ms&#39;, geneva; font-size: 13px; line-height: 19px; text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;mceItemTable&quot; mce_style=&quot;WIDTH: 242pt; BORDER-COLLAPSE: collapse&quot; style=&quot;border-collapse: collapse; width: 321px;&quot;&gt;&lt;colgroup&gt;&lt;col mce_style=&quot;WIDTH: 69pt; mso-width-source: userset; mso-width-alt: 3364&quot; style=&quot;width: 69pt;&quot; width=&quot;92&quot;&gt;&lt;/col&gt;&lt;col mce_style=&quot;WIDTH: 52pt; mso-width-source: userset; mso-width-alt: 2523&quot; style=&quot;width: 52pt;&quot; width=&quot;69&quot;&gt;&lt;/col&gt;&lt;col mce_style=&quot;WIDTH: 50pt; mso-width-source: userset; mso-width-alt: 2413&quot; style=&quot;width: 50pt;&quot; width=&quot;66&quot;&gt;&lt;/col&gt;&lt;col mce_style=&quot;WIDTH: 71pt; mso-width-source: userset; mso-width-alt: 3437&quot; style=&quot;width: 71pt;&quot; width=&quot;94&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl65&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 69pt; HEIGHT: 15pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt; font-family: Arial, Helvetica, sans-serif; height: 15pt; width: 69pt;&quot; width=&quot;92&quot;&gt;&amp;nbsp;&amp;nbsp; TeacherID&lt;/td&gt;&lt;td class=&quot;xl65&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 52pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt; font-family: Arial, Helvetica, sans-serif; width: 52pt;&quot; width=&quot;69&quot;&gt;StudentID&lt;/td&gt;&lt;td class=&quot;xl65&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 50pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt; font-family: Arial, Helvetica, sans-serif; width: 50pt;&quot; width=&quot;66&quot;&gt;SubjectID&lt;/td&gt;&lt;td class=&quot;xl65&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 71pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt; font-family: Arial, Helvetica, sans-serif; width: 71pt;&quot; width=&quot;94&quot;&gt;&amp;nbsp;StudentName&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl66&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif; height: 15pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 101&lt;/td&gt;&lt;td class=&quot;xl66&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; 1001&lt;/td&gt;&lt;td class=&quot;xl66&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; 1&lt;/td&gt;&lt;td class=&quot;xl66&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; John&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl66&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif; height: 15pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 101&lt;/td&gt;&lt;td class=&quot;xl66&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; 1002&lt;/td&gt;&lt;td class=&quot;xl66&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; 2&lt;/td&gt;&lt;td class=&quot;xl66&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; Rob&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl66&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif; height: 15pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201&lt;/td&gt;&lt;td class=&quot;xl66&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; 1002&lt;/td&gt;&lt;td class=&quot;xl66&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; 3&lt;/td&gt;&lt;td class=&quot;xl66&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; Bob&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl66&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif; height: 15pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201&lt;/td&gt;&lt;td class=&quot;xl66&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; 1001&lt;/td&gt;&lt;td class=&quot;xl66&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; 2&lt;/td&gt;&lt;td class=&quot;xl66&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; Rob&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl67&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif; height: 15pt;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl67&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl67&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl67&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl67&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif; height: 15pt;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl67&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl67&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;/td&gt;&lt;td class=&quot;xl67&quot; mce_style=&quot;BORDER-BOTTOM: black; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: black&quot; style=&quot;background-color: transparent; border-bottom-color: black; border-bottom-style: initial; border-bottom-width: initial; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: black; border-right-style: initial; border-right-width: initial; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl65&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt; font-family: Arial, Helvetica, sans-serif; height: 15pt;&quot;&gt;&amp;nbsp;&amp;nbsp; TeacherID&lt;/td&gt;&lt;td class=&quot;xl65&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp; StudentID&lt;/td&gt;&lt;td class=&quot;xl65&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; SubjectID&lt;/td&gt;&lt;td class=&quot;xl68&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 0.5pt; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; StudentName&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl66&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif; height: 15pt;&quot;&gt;&amp;nbsp; 101&lt;/td&gt;&lt;td class=&quot;xl66&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; 1001&lt;/td&gt;&lt;td class=&quot;xl66&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; 1&lt;/td&gt;&lt;td class=&quot;xl69&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: red; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: red; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl66&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif; height: 15pt;&quot;&gt;&amp;nbsp; 101&lt;/td&gt;&lt;td class=&quot;xl66&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; 1002&lt;/td&gt;&lt;td class=&quot;xl66&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; 2&lt;/td&gt;&lt;td class=&quot;xl69&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: red; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: red; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl66&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif; height: 15pt;&quot;&gt;&amp;nbsp; 201&lt;/td&gt;&lt;td class=&quot;xl66&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; 1001&lt;/td&gt;&lt;td class=&quot;xl66&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; 3&lt;/td&gt;&lt;td class=&quot;xl69&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: red; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: red; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;X&lt;/td&gt;&lt;/tr&gt;
&lt;tr height=&quot;20&quot; mce_style=&quot;HEIGHT: 15pt&quot; style=&quot;height: 15pt;&quot;&gt;&lt;td class=&quot;xl66&quot; height=&quot;20&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 0.5pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif; height: 15pt;&quot;&gt;&amp;nbsp; 201&lt;/td&gt;&lt;td class=&quot;xl66&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; 1002&lt;/td&gt;&lt;td class=&quot;xl66&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: transparent; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; 2&lt;/td&gt;&lt;td class=&quot;xl69&quot; mce_style=&quot;BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: red; BORDER-TOP: black; BORDER-RIGHT: windowtext 0.5pt solid&quot; style=&quot;background-color: red; border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-color: black; border-left-style: initial; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 0.5pt; border-top-color: black; border-top-style: initial; border-top-width: initial; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;background-color: white; color: #2a2a2a; font-family: &#39;trebuchet ms&#39;, geneva; font-size: 13px; line-height: 19px; text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2a2a2a; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; text-align: -webkit-auto;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #2a2a2a; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; margin-bottom: 0.3em; margin-top: 0.3em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://selectinsql.blogspot.com/feeds/464339505252631103/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://selectinsql.blogspot.com/2012/03/what-is-normalization.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/464339505252631103'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/464339505252631103'/><link rel='alternate' type='text/html' href='http://selectinsql.blogspot.com/2012/03/what-is-normalization.html' title='What is normalization'/><author><name>Vijay Maurya</name><uri>http://www.blogger.com/profile/00459112937519229095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAq0unsQRC0g7q8LCCjOU5NUrCuyXX5vMfcWbPl5cNsojKH_YS1rJIQL3mxLSTxPXCdJ90rCGzSmU-cFJ9vqjHSMbOxvOb1NaDkURBdhKasrpOq9yuoNpW9_XfPk_1qWU/s220/clip_image001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7205115418491271533.post-3671701710981197245</id><published>2012-03-19T21:36:00.001-07:00</published><updated>2012-03-19T21:36:38.827-07:00</updated><title type='text'>View  in Sql Server</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h2 style=&quot;background-color: white; color: #ff9900; font-family: Verdana, Arial, sans-serif; font-size: 13pt; text-align: -webkit-auto;&quot;&gt;
Table of Contents&lt;/h2&gt;
&lt;ul style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;What is View&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;Use of Views&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;General syntax for Views&lt;/li&gt;
&lt;ul&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;Creating a View&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;Get result from a View&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;Drop a View&lt;/li&gt;
&lt;/ul&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;Different Types of Views&lt;/li&gt;
&lt;ul&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;System View&lt;/li&gt;
&lt;ul&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;Information View&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;Catalog View&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;Dynamic Management View&lt;/li&gt;
&lt;/ul&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;User Defined View&lt;/li&gt;
&lt;ul&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;When to use a View&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;View creation options&lt;/li&gt;
&lt;ul&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;Schema binding option&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;Encryption&lt;/li&gt;
&lt;/ul&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;Use SSMS for creating a View&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;Summary&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;Topics to be covered in the next article&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;References and future study&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;History&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 style=&quot;background-color: white; color: #ff9900; font-family: Verdana, Arial, sans-serif; font-size: 13pt; text-align: -webkit-auto;&quot;&gt;
&lt;a href=&quot;&quot; id=&quot;heading0002&quot; name=&quot;heading0002&quot; style=&quot;color: #004cd5;&quot;&gt;&lt;/a&gt;What is a View&lt;/h2&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
A View is a &quot;Virtual Table&quot;. It is not like a simple table, but is a virtual table which contains columns and data from different tables (may be one or more tables). A View does not contain any data, it is a set of queries that are applied to one or more tables that is stored within the database as an object. After creating a view from some table(s), it used as a reference of those tables and when executed, it shows only those data which are already mentioned in the query during the creation of the View.&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px;&quot;&gt;
&lt;img alt=&quot;View1.JPG&quot; height=&quot;344&quot; src=&quot;http://www.codeproject.com/KB/database/View/View1.JPG&quot; style=&quot;overflow-x: auto; overflow-y: auto;&quot; width=&quot;578&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
In the above diagram, we have created a View (&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;View_Table1_Table2&lt;/code&gt;) from Table1 and Table2. So the&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;View_Table1_Table2&lt;/code&gt;&amp;nbsp;will only show the information from those columns. Let&#39;s checkout the basic syntax for creating a View:&lt;/div&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain0&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;&quot; width=&quot;100%&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id=&quot;pre0&quot; lang=&quot;sql&quot; style=&quot;background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(251, 237, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(251, 237, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(251, 237, 187); border-top-style: solid; border-top-width: 1px; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 9pt; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; text-align: -webkit-auto; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;CREATE&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;VIEW&lt;/span&gt;  [&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;View&lt;/span&gt; Name]
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt;
[&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; Statement]&lt;/pre&gt;
&lt;h2 style=&quot;background-color: white; color: #ff9900; font-family: Verdana, Arial, sans-serif; font-size: 13pt; text-align: -webkit-auto;&quot;&gt;
&lt;a href=&quot;&quot; id=&quot;heading0003&quot; name=&quot;heading0003&quot; style=&quot;color: #004cd5;&quot;&gt;&lt;/a&gt;Use of a View&lt;/h2&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
Views are used as security mechanisms in databases. Because it restricts the user from viewing certain column and rows. Views display only those data which are mentioned in the query, so it shows only data which is returned by the query that is defined at the time of creation of the View. The rest of the data is totally abstract from the end user.&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
Along with security, another advantage of Views is data abstraction because the end user is not aware of all the data in a table.&lt;/div&gt;
&lt;h2 style=&quot;background-color: white; color: #ff9900; font-family: Verdana, Arial, sans-serif; font-size: 13pt; text-align: -webkit-auto;&quot;&gt;
&lt;a href=&quot;&quot; id=&quot;heading0004&quot; name=&quot;heading0004&quot; style=&quot;color: #004cd5;&quot;&gt;&lt;/a&gt;General syntax for Views&lt;/h2&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
In this section, I will describe how to create Views, select data from Views, and deleting Views. I have created a database named ViewDemo. It has a table called&amp;nbsp;&lt;em&gt;EmpInfo&lt;/em&gt;&amp;nbsp;as shown below:&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px;&quot;&gt;
&lt;img alt=&quot;EmpTable.jpg&quot; height=&quot;103&quot; src=&quot;http://www.codeproject.com/KB/database/View/EmpTable.jpg&quot; style=&quot;overflow-x: auto; overflow-y: auto;&quot; width=&quot;342&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
which contains the following data:&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px;&quot;&gt;
&lt;img alt=&quot;EmpTableData.jpg&quot; height=&quot;84&quot; src=&quot;http://www.codeproject.com/KB/database/View/EmpTableData.jpg&quot; style=&quot;overflow-x: auto; overflow-y: auto;&quot; width=&quot;441&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
All the examples I have described are from this database.&lt;/div&gt;
&lt;h3 style=&quot;background-color: white; color: #ff9900; font-family: Verdana, Arial, sans-serif; font-size: 11pt; text-align: -webkit-auto;&quot;&gt;
Creating a View&lt;/h3&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
Below is the general syntax for creating a View:&lt;/div&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain1&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;&quot; width=&quot;100%&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id=&quot;pre1&quot; lang=&quot;sql&quot; style=&quot;background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(251, 237, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(251, 237, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(251, 237, 187); border-top-style: solid; border-top-width: 1px; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 9pt; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; text-align: -webkit-auto; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;CREATE&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;VIEW&lt;/span&gt; [View_Name]
 &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt;
 [&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; Statement]&lt;/pre&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
For example:&lt;/div&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain2&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;&quot; width=&quot;100%&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id=&quot;pre2&quot; lang=&quot;sql&quot; style=&quot;background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(251, 237, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(251, 237, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(251, 237, 187); border-top-style: solid; border-top-width: 1px; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 9pt; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; text-align: -webkit-auto; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;CREATE&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;VIEW&lt;/span&gt; SampleView
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;As&lt;/span&gt;
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; EmpID, EmpName  &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt; EmpInfo&lt;/pre&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
which will create a View with the name&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;SampleView&lt;/code&gt;&amp;nbsp;that will only contain EmpID, EMPName.&lt;/div&gt;
&lt;h3 style=&quot;background-color: white; color: #ff9900; font-family: Verdana, Arial, sans-serif; font-size: 11pt; text-align: -webkit-auto;&quot;&gt;
&lt;a href=&quot;&quot; id=&quot;heading0006&quot; name=&quot;heading0006&quot; style=&quot;color: #004cd5;&quot;&gt;&lt;/a&gt;Get result from a View&lt;/h3&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
This is similar to a&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;Select&lt;/code&gt;&amp;nbsp;statement:&lt;/div&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain3&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;&quot; width=&quot;100%&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id=&quot;pre3&quot; lang=&quot;sql&quot; style=&quot;background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(251, 237, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(251, 237, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(251, 237, 187); border-top-style: solid; border-top-width: 1px; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 9pt; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; text-align: -webkit-auto; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;select&lt;/span&gt; * &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;from&lt;/span&gt; SampleView&lt;/pre&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
Now have a look at the output of&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;SampleView&lt;/code&gt;:&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px;&quot;&gt;
&lt;img alt=&quot;SampleViewOutput.jpg&quot; height=&quot;105&quot; src=&quot;http://www.codeproject.com/KB/database/View/SampleViewOutput.jpg&quot; style=&quot;overflow-x: auto; overflow-y: auto;&quot; width=&quot;242&quot; /&gt;&lt;/div&gt;
&lt;h3 style=&quot;background-color: white; color: #ff9900; font-family: Verdana, Arial, sans-serif; font-size: 11pt; text-align: -webkit-auto;&quot;&gt;
&lt;a href=&quot;&quot; id=&quot;heading0007&quot; name=&quot;heading0007&quot; style=&quot;color: #004cd5;&quot;&gt;&lt;/a&gt;Drop a View&lt;/h3&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain4&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;&quot; width=&quot;100%&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id=&quot;pre4&quot; lang=&quot;sql&quot; style=&quot;background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(251, 237, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(251, 237, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(251, 237, 187); border-top-style: solid; border-top-width: 1px; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 9pt; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; text-align: -webkit-auto; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;DROP&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;VIEW&lt;/span&gt; SampleView&lt;/pre&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
Now if we want to select data from&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;SampleView&lt;/code&gt;, we will get the following error:&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px;&quot;&gt;
&lt;img alt=&quot;dropview.jpg&quot; height=&quot;105&quot; src=&quot;http://www.codeproject.com/KB/database/View/dropview.jpg&quot; style=&quot;overflow-x: auto; overflow-y: auto;&quot; width=&quot;242&quot; /&gt;&lt;/div&gt;
&lt;h2 style=&quot;background-color: white; color: #ff9900; font-family: Verdana, Arial, sans-serif; font-size: 13pt; text-align: -webkit-auto;&quot;&gt;
&lt;a href=&quot;&quot; id=&quot;heading0008&quot; name=&quot;heading0008&quot; style=&quot;color: #004cd5;&quot;&gt;&lt;/a&gt;Different types of Views&lt;/h2&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
There are two different types of Views:&lt;/div&gt;
&lt;ul style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;System Views&lt;/li&gt;
&lt;ul&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;Information Schema View&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;Catalog View&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;Dynamic Management View (DMV)&lt;/li&gt;
&lt;/ul&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;User Defined Views&lt;/li&gt;
&lt;ul&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;Simple View&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;Complex View&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
Now we will take a look at the different types of Views in SQL Server 2005.&lt;/div&gt;
&lt;h3 style=&quot;background-color: white; color: #ff9900; font-family: Verdana, Arial, sans-serif; font-size: 11pt; text-align: -webkit-auto;&quot;&gt;
&lt;a href=&quot;&quot; id=&quot;heading0009&quot; name=&quot;heading0009&quot; style=&quot;color: #004cd5;&quot;&gt;&lt;/a&gt;System Views&lt;/h3&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
In SQL Server, there are a few system databases like Master, Temp, msdb, and tempdb. Each and every database has its own responsibility, like Master data is one of the template databases for all the databases which are created in SQL Server 2005. Similarly, System Views are predefined Microsoft created Views that already exist in the Master database. These are also used as template Views for all new databases. These system Views will be automatically inserted into any user created database. There are around 230 system Views available.&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
We can explore system Views from the SQL Server Management Studio. Expand any database &amp;gt; View &amp;gt; System View.&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px;&quot;&gt;
&lt;img alt=&quot;SystemView.jpg&quot; height=&quot;357&quot; src=&quot;http://www.codeproject.com/KB/database/View/SystemView.jpg&quot; style=&quot;overflow-x: auto; overflow-y: auto;&quot; width=&quot;455&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
In SQL Server, all system Views are divided into different schemas. These are used for the security container of the SQL Server database. We can categorize system Views in the following way:&lt;/div&gt;
&lt;ul style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;Information Schema View&lt;/code&gt;&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;Catalog View&lt;/code&gt;&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;Dynamic Management View (DMV)&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
Now all the above categories are themselves huge topics, so I will not go into the details of them. Let us go through an overview of those View types:&lt;/div&gt;
&lt;h3 style=&quot;background-color: white; color: #ff9900; font-family: Verdana, Arial, sans-serif; font-size: 11pt; text-align: -webkit-auto;&quot;&gt;
&lt;a href=&quot;&quot; id=&quot;heading0010&quot; name=&quot;heading0010&quot; style=&quot;color: #004cd5;&quot;&gt;&lt;/a&gt;Information View&lt;/h3&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
These are one of the most important system grouped Views. There are twenty different schema Views in this group. These are used for displaying most physical information of a database, such as table and columns. The naming convention of this type of Views is INFORMATION_SCHEMA.[&lt;em&gt;View Name&lt;/em&gt;]. From the system View image, we can get the names of a few Information Schema Views.&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
Let&#39;s see this with an example.&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
I have create a database named&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;ViewDemo&lt;/code&gt;. It has a table called EmpInfo and the below diagram shows you the design of the table:&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px;&quot;&gt;
&lt;img alt=&quot;EmpTable.jpg&quot; height=&quot;103&quot; src=&quot;http://www.codeproject.com/KB/database/View/EmpTable.jpg&quot; style=&quot;overflow-x: auto; overflow-y: auto;&quot; width=&quot;342&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
Now if we want to know detailed information on the columns of the table Empinfo using the View, we have to run the following query:&lt;/div&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain5&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;&quot; width=&quot;100%&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id=&quot;pre5&quot; lang=&quot;sql&quot; style=&quot;background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(251, 237, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(251, 237, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(251, 237, 187); border-top-style: solid; border-top-width: 1px; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 9pt; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; text-align: -webkit-auto; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; *
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt; INFORMATION_SCHEMA.COLUMNS
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;Where&lt;/span&gt; TABLE_NAME=&lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;color: purple;&quot;&gt;EmpInfo&#39;&lt;/span&gt;&lt;/pre&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
The following will be the output:&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px;&quot;&gt;
&lt;img alt=&quot;EmpTableViewInfo.jpg&quot; height=&quot;206&quot; src=&quot;http://www.codeproject.com/KB/database/View/EmpTableViewInfo.jpg&quot; style=&quot;overflow-x: auto; overflow-y: auto;&quot; width=&quot;609&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
Similarly we can use other schema Views to read database information.&lt;/div&gt;
&lt;h4 style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;a href=&quot;&quot; id=&quot;heading0011&quot; name=&quot;heading0011&quot; style=&quot;color: #004cd5;&quot;&gt;&lt;/a&gt;Catalog View&lt;/h4&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
This type of Views were introduced in SQL Server 2005. Catalog Views are categorized in to different groups also. These are used to show database self describing information.&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
For example:&lt;/div&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain6&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;&quot; width=&quot;100%&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id=&quot;pre6&quot; lang=&quot;sql&quot; style=&quot;background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(251, 237, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(251, 237, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(251, 237, 187); border-top-style: solid; border-top-width: 1px; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 9pt; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; text-align: -webkit-auto; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;select&lt;/span&gt; * &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;from&lt;/span&gt; sys.tables&lt;/pre&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
and following is a sample output:&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px;&quot;&gt;
&lt;img alt=&quot;Catalogview.jpg&quot; height=&quot;40&quot; src=&quot;http://www.codeproject.com/KB/database/View/Catalogview.jpg&quot; style=&quot;overflow-x: auto; overflow-y: auto;&quot; width=&quot;498&quot; /&gt;&lt;/div&gt;
&lt;h3 style=&quot;background-color: white; color: #ff9900; font-family: Verdana, Arial, sans-serif; font-size: 11pt; text-align: -webkit-auto;&quot;&gt;
&lt;a href=&quot;&quot; id=&quot;heading0012&quot; name=&quot;heading0012&quot; style=&quot;color: #004cd5;&quot;&gt;&lt;/a&gt;Dynamic Management View&lt;/h3&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
This is newly introduced in SQL Server 2005. These Views give the database administrator information about the current state of the SQL Server machine. These values help the administrator to diagnose problems and tune the server for optimal performance. In SQL Server 2005, there are two types of DMVs:&lt;/div&gt;
&lt;ol style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;Server-scoped DMV: Stored in the Master database.&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;Database-scoped DMV: Specific to each database.&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
For example, if we want to check all SQL Server connections, we can use the following query:&lt;/div&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain7&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;&quot; width=&quot;100%&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id=&quot;pre7&quot; lang=&quot;sql&quot; style=&quot;background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(251, 237, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(251, 237, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(251, 237, 187); border-top-style: solid; border-top-width: 1px; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 9pt; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; text-align: -webkit-auto; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt;
connection_id,
session_id,client_net_address,
auth_scheme
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt; sys.dm_exec_connections&lt;/pre&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
And the following is the sample output:&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px;&quot;&gt;
&lt;img alt=&quot;DMV.jpg&quot; height=&quot;92&quot; src=&quot;http://www.codeproject.com/KB/database/View/DMV.jpg&quot; style=&quot;overflow-x: auto; overflow-y: auto;&quot; width=&quot;510&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
If you want to know the details on DMV, here is a complete article on CodeProject:&amp;nbsp;&lt;a href=&quot;http://www.codeproject.com/KB/database/Dynamic_Management_Views.aspx&quot; style=&quot;color: purple; text-decoration: none;&quot;&gt;Dynamic Management Views [DMV] - A SQL Server 2005 Feature&lt;/a&gt;&amp;nbsp;[&lt;a href=&quot;http://www.codeproject.com/KB/database/Dynamic_Management_Views.aspx&quot; style=&quot;color: purple; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;New Window&quot;&gt;^&lt;/a&gt;].&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
Note: There are many things to learn on system Views, I have just introduced them for beginners. If anyone has more interest, look into this article:&amp;nbsp;&lt;a href=&quot;http://www.databasejournal.com/features/mssql/article.php/10894_3508881_1/SQL-Server-2005-System-Tables-and-Views.htm&quot; style=&quot;color: purple; text-decoration: none;&quot;&gt;System Views in SQL Server 2005&lt;/a&gt;&amp;nbsp;[&lt;a href=&quot;http://www.databasejournal.com/features/mssql/article.php/10894_3508881_1/SQL-Server-2005-System-Tables-and-Views.htm&quot; style=&quot;color: purple; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;New Window&quot;&gt;^&lt;/a&gt;].&lt;/div&gt;
&lt;h3 style=&quot;background-color: white; color: #ff9900; font-family: Verdana, Arial, sans-serif; font-size: 11pt; text-align: -webkit-auto;&quot;&gt;
&lt;a href=&quot;&quot; id=&quot;heading0013&quot; name=&quot;heading0013&quot; style=&quot;color: #004cd5;&quot;&gt;&lt;/a&gt;User Defined View&lt;/h3&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
Up till now I described about system Views, now we will take a look at user defined Views. These Views are created by a user as per requirements. There is no classification for UDVs and how to create them, I have already explained the syntax. Now we can take a look at another View creation.&lt;/div&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain8&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;&quot; width=&quot;100%&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id=&quot;pre8&quot; lang=&quot;sql&quot; style=&quot;background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(251, 237, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(251, 237, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(251, 237, 187); border-top-style: solid; border-top-width: 1px; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 9pt; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; text-align: -webkit-auto; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;CREATE&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;VIEW&lt;/span&gt; DemoView
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt;
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; EmpID, EmpName, Phone
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt; EmpInfFROM EmpInfo&lt;/pre&gt;
&lt;h4 style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;a href=&quot;&quot; id=&quot;heading0014&quot; name=&quot;heading0014&quot; style=&quot;color: #004cd5;&quot;&gt;&lt;/a&gt;When to Use a View&lt;/h4&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
There are a number of scenarios where we will like to create our own View:&lt;/div&gt;
&lt;ol style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;To hide the complexity of the underlying database schema, or customize the data and schema for a set of users.&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;To control access to rows and columns of data.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 style=&quot;background-color: white; color: #ff9900; font-family: Verdana, Arial, sans-serif; font-size: 13pt; text-align: -webkit-auto;&quot;&gt;
&lt;a href=&quot;&quot; id=&quot;heading0015&quot; name=&quot;heading0015&quot; style=&quot;color: #004cd5;&quot;&gt;&lt;/a&gt;View Creation Option&lt;/h2&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
There are two different options for creating a View:&lt;/div&gt;
&lt;ul style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;Schema Binding Option&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt;&quot;&gt;Encryption&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;a href=&quot;&quot; id=&quot;heading0016&quot; name=&quot;heading0016&quot; style=&quot;color: #004cd5;&quot;&gt;&lt;/a&gt;Schema BindSchema Binding Option&lt;/h4&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
If we create a View with the&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;SCHEMABINDING&lt;/code&gt;&amp;nbsp;option, it will lock the tables being referred to by the View and restrict all kinds of changes that may change the table schema (no Alter command). While creating a schema binding View, we can&#39;t mention &quot;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;Select * from tablename&lt;/code&gt;&quot; with the query. We have to mention all column names for reference.&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
For example:&lt;/div&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain9&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;&quot; width=&quot;100%&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id=&quot;pre9&quot; lang=&quot;sql&quot; style=&quot;background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(251, 237, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(251, 237, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(251, 237, 187); border-top-style: solid; border-top-width: 1px; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 9pt; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; text-align: -webkit-auto; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;CREATE&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;VIEW&lt;/span&gt; DemoSampleView
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;With&lt;/span&gt; SCHEMABINDING
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;As&lt;/span&gt;
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt;
          EmpID,
          EmpName,
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt; DBO.EmpInfo&lt;/pre&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
And one more thing that we need to remember, while specifying the database name, we have to use&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;Dbo.[DbName]&lt;/code&gt;. After creating the View, try to alter the table EmpInfo, we won&#39;t be able to do it! This is the power of the&amp;nbsp;&lt;code style=&quot;color: #990000; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 11pt;&quot;&gt;SCHEMABINDING&lt;/code&gt;&amp;nbsp;option.&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
If we want to change/alter the definition of a table which is referred by a schema bound View, we will get the following error message:&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px;&quot;&gt;
&lt;img alt=&quot;SchemaBinding.jpg&quot; height=&quot;318&quot; src=&quot;http://www.codeproject.com/KB/database/View/SchemaBinding.jpg&quot; style=&quot;overflow-x: auto; overflow-y: auto;&quot; width=&quot;482&quot; /&gt;&lt;/div&gt;
&lt;h4 style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
&lt;a href=&quot;&quot; id=&quot;heading0017&quot; name=&quot;heading0017&quot; style=&quot;color: #004cd5;&quot;&gt;&lt;/a&gt;Encryption&lt;/h4&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
This option encrypts the definition. This option encrypts the definition of the View. Users will not be able to see the definition of the View after it is created. This is the main advantage of the View where we can make it secure:&lt;/div&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain10&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;&quot; width=&quot;100%&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id=&quot;pre10&quot; lang=&quot;sql&quot; style=&quot;background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(251, 237, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(251, 237, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(251, 237, 187); border-top-style: solid; border-top-width: 1px; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 9pt; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; text-align: -webkit-auto; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;CREATE&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;VIEW&lt;/span&gt; DemoView
&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;With&lt;/span&gt; ENCRYPTION.EmpInfo&lt;/pre&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
Note: Once the View is encrypted, there is no way to decrypt it again.&lt;/div&gt;
&lt;h2 style=&quot;background-color: white; color: #ff9900; font-family: Verdana, Arial, sans-serif; font-size: 13pt; text-align: -webkit-auto;&quot;&gt;
&lt;a href=&quot;&quot; id=&quot;heading0018&quot; name=&quot;heading0018&quot; style=&quot;color: #004cd5;&quot;&gt;&lt;/a&gt;Use SSMS for Creating a View&lt;/h2&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
SQL Server Management Studio provides a handy GUI for creating and managing Views. In the Object Explorer tab, it lists all the Views corresponding to a database. In this section, we will just quickly check how SSMS is used to create and maintain a View.&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
First expand ViewDemoDB &amp;gt; Move to View. Right click on the View folder.&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px;&quot;&gt;
&lt;img alt=&quot;NewViewSSMS.jpg&quot; height=&quot;144&quot; src=&quot;http://www.codeproject.com/KB/database/View/NewViewSSMS.jpg&quot; style=&quot;overflow-x: auto; overflow-y: auto;&quot; width=&quot;236&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
When we will click on New View, the following screen will appear. In ViewDemoDB, we have two datatables. Now I am going to create a View from the EmpInfo table.&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px;&quot;&gt;
&lt;img alt=&quot;AddTableSSMS.jpg&quot; height=&quot;325&quot; src=&quot;http://www.codeproject.com/KB/database/View/AddTableSSMS.jpg&quot; style=&quot;overflow-x: auto; overflow-y: auto;&quot; width=&quot;407&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
Select EmpInfo, click on Add. You will be redirected to the Create View screen where you can configure the View creation. Check the following image:&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px;&quot;&gt;
&lt;img alt=&quot;NewViewCreate.jpg&quot; height=&quot;450&quot; src=&quot;http://www.codeproject.com/KB/database/View/NewViewCreate.jpg&quot; style=&quot;overflow-x: auto; overflow-y: auto;&quot; width=&quot;393&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
The above image shows three sections where we can select the table name or in the below section, we can write the query for the View. When done, just click on the Save button on the toolbar. Give the name of the View and click on OK.&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px;&quot;&gt;
&lt;img alt=&quot;ViewNameSSMS.jpg&quot; height=&quot;134&quot; src=&quot;http://www.codeproject.com/KB/database/View/ViewNameSSMS.jpg&quot; style=&quot;overflow-x: auto; overflow-y: auto;&quot; width=&quot;324&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
Now go to ViewDemoDB &amp;gt; View &amp;gt; Expand View folder. Here, along with system Views, you can see the View that we created right now.&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px;&quot;&gt;
&lt;img alt=&quot;NewCreatedView.jpg&quot; height=&quot;57&quot; src=&quot;http://www.codeproject.com/KB/database/View/NewCreatedView.jpg&quot; style=&quot;overflow-x: auto; overflow-y: auto;&quot; width=&quot;179&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
So this is our user defined View. If we right click on it, we will get the option of opening the View and which will show the result of the View.&lt;/div&gt;
&lt;div align=&quot;center&quot; style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px;&quot;&gt;
&lt;img alt=&quot;PropertiesView.jpg&quot; height=&quot;246&quot; src=&quot;http://www.codeproject.com/KB/database/View/PropertiesView.jpg&quot; style=&quot;overflow-x: auto; overflow-y: auto;&quot; width=&quot;366&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, sans-serif; font-size: 13px; text-align: -webkit-auto;&quot;&gt;
We can also create a View from a View itself in a similar way that we have done with a table.&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://selectinsql.blogspot.com/feeds/3671701710981197245/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://selectinsql.blogspot.com/2012/03/view-in-sql-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/3671701710981197245'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/3671701710981197245'/><link rel='alternate' type='text/html' href='http://selectinsql.blogspot.com/2012/03/view-in-sql-server.html' title='View  in Sql Server'/><author><name>Vijay Maurya</name><uri>http://www.blogger.com/profile/00459112937519229095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAq0unsQRC0g7q8LCCjOU5NUrCuyXX5vMfcWbPl5cNsojKH_YS1rJIQL3mxLSTxPXCdJ90rCGzSmU-cFJ9vqjHSMbOxvOb1NaDkURBdhKasrpOq9yuoNpW9_XfPk_1qWU/s220/clip_image001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7205115418491271533.post-2321624567875584870</id><published>2012-03-19T21:25:00.003-07:00</published><updated>2012-03-19T21:25:48.184-07:00</updated><title type='text'>Union and union All in Sql Server</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h1 style=&quot;background-color: white; color: #3366ff; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: large; line-height: 21px; margin-top: 10pt;&quot;&gt;
Union vs. Union All Query Syntax&lt;/h1&gt;
&lt;h2 style=&quot;background-color: white; color: #3366ff; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: medium; line-height: 19px; margin-top: 10pt;&quot;&gt;
&lt;img alt=&quot;Union vs. Union All SQL Syntax&quot; class=&quot;imgFloatRight&quot; height=&quot;100&quot; src=&quot;http://www.fmsinc.com/MicrosoftAccess/query/union-all/union-vs-union-all.gif&quot; style=&quot;border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; float: right; margin-left: 8px;&quot; width=&quot;159&quot; /&gt;&lt;/h2&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; line-height: 15px;&quot;&gt;
The purpose of the SQL&amp;nbsp;&lt;b&gt;UNION&amp;nbsp;&lt;/b&gt;and&lt;b&gt;&amp;nbsp;UNION&lt;/b&gt;&amp;nbsp;&lt;b&gt;ALL&lt;/b&gt;&amp;nbsp;commands are to combine the results of two or more queries into a single result set consisting of all the rows belonging to all the queries in the union. The question becomes whether or not to use the&amp;nbsp;&lt;b&gt;ALL&lt;/b&gt;&amp;nbsp;syntax.&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; line-height: 15px;&quot;&gt;
&lt;span style=&quot;background-color: orange;&quot;&gt;The main difference between&amp;nbsp;&lt;b&gt;UNION ALL&lt;/b&gt;&amp;nbsp;and&amp;nbsp;&lt;b&gt;UNION&lt;/b&gt;&amp;nbsp;is that,&amp;nbsp;&lt;b&gt;UNION&lt;/b&gt;&amp;nbsp;only selects distinct values, while&amp;nbsp;&lt;b&gt;UNION ALL&lt;/b&gt;&amp;nbsp;selects all values (including duplicates).&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; line-height: 15px;&quot;&gt;
The syntax for&amp;nbsp;&lt;b&gt;UNION {ALL}&lt;/b&gt;&amp;nbsp;is as follows:&lt;/div&gt;
&lt;blockquote style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;
&lt;div style=&quot;line-height: 15px;&quot;&gt;
[SQL Statement 1]&lt;br /&gt;&lt;b&gt;UNION {ALL}&lt;/b&gt;&lt;br /&gt;[SQL Statement 2]&lt;/div&gt;
&lt;/blockquote&gt;
&lt;h3 style=&quot;background-color: white; color: #3366ff; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; line-height: 15px; margin-top: 10pt;&quot;&gt;
Sample Data&lt;/h3&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; line-height: 15px;&quot;&gt;
Use Authors table in SQL Server Pubs database or just use a simple table with these values (obviously simplified to just illustrate the point):&lt;/div&gt;
&lt;blockquote style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;
&lt;table cellpadding=&quot;3px&quot; cellspacing=&quot;1px&quot; class=&quot;TableStyle&quot; style=&quot;border-bottom-color: navy; border-bottom-style: double; border-bottom-width: 1px; border-collapse: collapse; border-image: initial; border-left-color: navy; border-left-style: double; border-left-width: 1px; border-right-color: navy; border-right-style: double; border-right-width: 1px; border-top-color: navy; border-top-style: double; border-top-width: 1px; width: 200px;&quot;&gt;&lt;tbody&gt;
&lt;tr class=&quot;TableHeader&quot; style=&quot;background-color: #99ccff; border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: 9.5pt; font-weight: bold; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;&lt;td class=&quot;TableBody&quot; style=&quot;border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: small; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;City&lt;/td&gt;&lt;td class=&quot;TableBody&quot; style=&quot;border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: small; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;State&lt;/td&gt;&lt;td class=&quot;TableBody&quot; style=&quot;border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: small; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;Zip&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;font-size: 9.5pt;&quot;&gt;&lt;td class=&quot;TableBody&quot; style=&quot;border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: small; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;Nashville&lt;/td&gt;&lt;td class=&quot;TableBody&quot; style=&quot;border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: small; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;TN&lt;/td&gt;&lt;td class=&quot;TableBody&quot; style=&quot;border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: small; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;37215&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;font-size: 9.5pt;&quot;&gt;&lt;td class=&quot;TableBody&quot; style=&quot;border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: small; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;Lawrence&lt;/td&gt;&lt;td class=&quot;TableBody&quot; style=&quot;border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: small; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;KS&lt;/td&gt;&lt;td class=&quot;TableBody&quot; style=&quot;border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: small; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;66044&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;font-size: 9.5pt;&quot;&gt;&lt;td class=&quot;TableBody&quot; style=&quot;border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: small; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;Corvallis&lt;/td&gt;&lt;td class=&quot;TableBody&quot; style=&quot;border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: small; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;OR&lt;/td&gt;&lt;td class=&quot;TableBody&quot; style=&quot;border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: small; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;97330&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/blockquote&gt;
&lt;h2 style=&quot;background-color: white; color: #3366ff; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: medium; line-height: 19px; margin-top: 10pt;&quot;&gt;
UNION ALL Example&lt;/h2&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; line-height: 15px;&quot;&gt;
This SQL statement combines two queries to retrieve records based on states. The two queries happen to both get records from Tennessee (&#39;TN&#39;):&lt;/div&gt;
&lt;blockquote style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;
SELECT City, State, Zip FROM Authors WHERE State IN (&#39;KS&#39;, &#39;TN&#39;)&lt;br /&gt;&lt;b&gt;UNION ALL&lt;/b&gt;&lt;br /&gt;SELECT City, State, Zip FROM Authors WHERE IN (&#39;OR&#39; &#39;TN&#39;)&lt;/blockquote&gt;
&lt;h3 style=&quot;background-color: white; color: #3366ff; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; line-height: 15px; margin-top: 10pt;&quot;&gt;
Result of UNION ALL syntax:&lt;/h3&gt;
&lt;blockquote style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;
&lt;table cellpadding=&quot;3px&quot; cellspacing=&quot;1px&quot; class=&quot;TableStyle&quot; style=&quot;border-bottom-color: navy; border-bottom-style: double; border-bottom-width: 1px; border-collapse: collapse; border-image: initial; border-left-color: navy; border-left-style: double; border-left-width: 1px; border-right-color: navy; border-right-style: double; border-right-width: 1px; border-top-color: navy; border-top-style: double; border-top-width: 1px; width: 200px;&quot;&gt;&lt;tbody&gt;
&lt;tr class=&quot;TableHeader&quot; style=&quot;background-color: #99ccff; border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: 9.5pt; font-weight: bold; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;&lt;td class=&quot;TableBody&quot; style=&quot;border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: small; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;City&lt;/td&gt;&lt;td class=&quot;TableBody&quot; style=&quot;border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: small; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;State&lt;/td&gt;&lt;td class=&quot;TableBody&quot; style=&quot;border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: small; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;Zip&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;font-size: 9.5pt;&quot;&gt;&lt;td class=&quot;TableBody&quot; style=&quot;border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: small; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;Nashville&lt;/td&gt;&lt;td class=&quot;TableBody&quot; style=&quot;border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: small; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;TN&lt;/td&gt;&lt;td class=&quot;TableBody&quot; style=&quot;border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: small; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;37215&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;font-size: 9.5pt;&quot;&gt;&lt;td class=&quot;TableBody&quot; style=&quot;border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: small; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;Lawrence&lt;/td&gt;&lt;td class=&quot;TableBody&quot; style=&quot;border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: small; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;KS&lt;/td&gt;&lt;td class=&quot;TableBody&quot; style=&quot;border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: small; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;66044&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;font-size: 9.5pt;&quot;&gt;&lt;td class=&quot;TableBody&quot; style=&quot;border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: small; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;Nashville&lt;/td&gt;&lt;td class=&quot;TableBody&quot; style=&quot;border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: small; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;TN&lt;/td&gt;&lt;td class=&quot;TableBody&quot; style=&quot;border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: small; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;37215&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;font-size: 9.5pt;&quot;&gt;&lt;td class=&quot;TableBody&quot; style=&quot;border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: small; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;Corvallis&lt;/td&gt;&lt;td class=&quot;TableBody&quot; style=&quot;border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: small; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;OR&lt;/td&gt;&lt;td class=&quot;TableBody&quot; style=&quot;border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: small; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;97330&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; line-height: 15px;&quot;&gt;
Notice how this displays the two query results in the order they appear from the queries. The first two records come from the first SELECT statement, and the last two records from the second SELECT statement. The TN record appears twice, since both SELECT statements retrieve TN records.&lt;/div&gt;
&lt;h2 style=&quot;background-color: white; color: #3366ff; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: medium; line-height: 19px; margin-top: 10pt;&quot;&gt;
Union Query SQL Example&lt;/h2&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; line-height: 15px;&quot;&gt;
Using the same SQL statements and combining them with a UNION command:&lt;/div&gt;
&lt;blockquote style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;
SELECT City, State, Zip FROM Authors WHERE State IN (&#39;KS&#39;, &#39;TN&#39;)&lt;br /&gt;&lt;b&gt;UNION&lt;/b&gt;&lt;br /&gt;SELECT City, State, Zip FROM Authors WHERE IN (&#39;OR&#39; &#39;TN&#39;)&lt;/blockquote&gt;
&lt;h3 style=&quot;background-color: white; color: #3366ff; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; line-height: 15px; margin-top: 10pt;&quot;&gt;
Result of UNION Query&lt;/h3&gt;
&lt;blockquote style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;
&lt;table cellpadding=&quot;3px&quot; cellspacing=&quot;1px&quot; class=&quot;TableStyle&quot; style=&quot;border-bottom-color: navy; border-bottom-style: double; border-bottom-width: 1px; border-collapse: collapse; border-image: initial; border-left-color: navy; border-left-style: double; border-left-width: 1px; border-right-color: navy; border-right-style: double; border-right-width: 1px; border-top-color: navy; border-top-style: double; border-top-width: 1px; width: 200px;&quot;&gt;&lt;tbody&gt;
&lt;tr class=&quot;TableHeader&quot; style=&quot;background-color: #99ccff; border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: 9.5pt; font-weight: bold; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;&lt;td class=&quot;TableBody&quot; style=&quot;border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: small; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;City&lt;/td&gt;&lt;td class=&quot;TableBody&quot; style=&quot;border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: small; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;State&lt;/td&gt;&lt;td class=&quot;TableBody&quot; style=&quot;border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: small; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;Zip&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;font-size: 9.5pt;&quot;&gt;&lt;td class=&quot;TableBody&quot; style=&quot;border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: small; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;Corvallis&lt;/td&gt;&lt;td class=&quot;TableBody&quot; style=&quot;border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: small; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;OR&lt;/td&gt;&lt;td class=&quot;TableBody&quot; style=&quot;border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: small; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;97330&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;font-size: 9.5pt;&quot;&gt;&lt;td class=&quot;TableBody&quot; style=&quot;border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: small; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;Lawrence&lt;/td&gt;&lt;td class=&quot;TableBody&quot; style=&quot;border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: small; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;KS&lt;/td&gt;&lt;td class=&quot;TableBody&quot; style=&quot;border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: small; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;66044&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;font-size: 9.5pt;&quot;&gt;&lt;td class=&quot;TableBody&quot; style=&quot;border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: small; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;Nashville&lt;/td&gt;&lt;td class=&quot;TableBody&quot; style=&quot;border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: small; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;TN&lt;/td&gt;&lt;td class=&quot;TableBody&quot; style=&quot;border-bottom-color: gray; border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: gray; border-left-style: dotted; border-left-width: 1px; border-right-color: gray; border-right-style: dotted; border-right-width: 1px; border-top-color: gray; border-top-style: dotted; border-top-width: 1px; font-size: small; padding-bottom: 2px; padding-left: 4px; padding-right: 2px; padding-top: 2px;&quot;&gt;37215&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; line-height: 15px;&quot;&gt;
Notice how the TN record only appears once, even though both SELECT statements retrieve TN records. The UNION syntax automatically eliminates the duplicate records between the two SQL statements and sorts the results. In this example the Corvallis record appears first but is from the second SELECT statement.&lt;/div&gt;
&lt;h2 style=&quot;background-color: white; color: #3366ff; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: medium; line-height: 19px; margin-top: 10pt;&quot;&gt;
Temporary Index Issues for UNION Queries&lt;/h2&gt;
&lt;div style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; line-height: 15px;&quot;&gt;
A&amp;nbsp;&lt;b&gt;UNION&lt;/b&gt;&amp;nbsp;query, by definition, eliminates all duplicate rows (as opposed to&amp;nbsp;&lt;b&gt;UNION&lt;/b&gt;&amp;nbsp;&lt;b&gt;ALL&lt;/b&gt;) and is slower. To do this in SQL Server, it must build a temporary index on all the columns returned by both queries. If the index cannot be build for the queries, you will get a SQL error. In this situation,&amp;nbsp;&lt;b&gt;UNION ALL&lt;/b&gt;&amp;nbsp;may be the solution if you don&#39;t have rights to do this. Alternatively, you may need to use a temporary table with INSERT queries to store the results of each query and use a standard SELECT query to group and get the unique values.&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://selectinsql.blogspot.com/feeds/2321624567875584870/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://selectinsql.blogspot.com/2012/03/union-and-union-all-in-sql-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/2321624567875584870'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7205115418491271533/posts/default/2321624567875584870'/><link rel='alternate' type='text/html' href='http://selectinsql.blogspot.com/2012/03/union-and-union-all-in-sql-server.html' title='Union and union All in Sql Server'/><author><name>Vijay Maurya</name><uri>http://www.blogger.com/profile/00459112937519229095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAq0unsQRC0g7q8LCCjOU5NUrCuyXX5vMfcWbPl5cNsojKH_YS1rJIQL3mxLSTxPXCdJ90rCGzSmU-cFJ9vqjHSMbOxvOb1NaDkURBdhKasrpOq9yuoNpW9_XfPk_1qWU/s220/clip_image001.jpg'/></author><thr:total>0</thr:total></entry></feed>