<?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-4907713461663660592</id><updated>2024-09-01T10:38:05.283-07:00</updated><title type='text'>Interesting News !!!</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://apnimarzee.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4907713461663660592/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://apnimarzee.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Zeeshan Mirza</name><uri>http://www.blogger.com/profile/00454539468587625372</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivD10NFwxGgQqVjxlun90-2CEnmt_970bpaH8c8iFrPw53vcIeUqQ6d9h9TqM8aZiquJoq6ZGJ1Fd8y0ZQyp5cWaq38m1c5ChNNhhQQ4fmXDaSm7qbNSBj2pbmUt6a0w/s220/26.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4907713461663660592.post-5724063674448451106</id><published>2011-05-25T18:24:00.000-07:00</published><updated>2012-03-18T02:09:08.186-07:00</updated><title type='text'>Database Interview Questions and Answers</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;strong style=&quot;font-family: Verdana; line-height: 1.4em; 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;span style=&quot;font-size: small;&quot;&gt;1. Explain about the database management systems?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; line-height: 18px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h1 class=&quot;entry-title&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; color: black; line-height: 26px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 2px; padding-left: 0px; padding-right: 0px; padding-top: 8px; vertical-align: baseline;&quot;&gt;
&lt;div style=&quot;font-family: Verdana; font-weight: normal; line-height: 1.4em; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Database management systems use specialized software to store the database, make necessary changes, securing the database, etc. These DBMS are categorized according to the work they do. Much of the DBMS and its applications are primarily not designed for data they are designed for concurrency, performance, integrity, and failure troubleshooting.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana; font-weight: normal; line-height: 1.4em; margin-bottom: 10px; 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;&lt;span style=&quot;font-size: small;&quot;&gt;2. Explain about the hierarchical model of database?&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana; font-weight: normal; line-height: 1.4em; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;If you can imagine a tree with branches then you know to work with this database. It has a downward link to describe the nesting and they are arranged in a particular order down the same level of the list. With this database model you can form a logical relationship among different types of data&lt;/span&gt;&lt;br /&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;&lt;span style=&quot;font-size: small;&quot;&gt;&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) Explain about object oriented databases?&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana; font-weight: normal; line-height: 1.4em; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Object oriented databases are used to store much more complex data.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;They were designed to store information related to multimedia, spatial and engineering databases. Some of the databases even stored data about software’s repositories. This was adopted in late ninety’s and new features were added.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana; font-weight: normal; line-height: 1.4em; margin-bottom: 10px; 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;&lt;span style=&quot;font-size: small;&quot;&gt;4. Explain about Network model?&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana; font-weight: normal; line-height: 1.4em; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Network is complex, time consuming and costly. This model of storing database has many parents and finding a logical relationship between them is extremely difficult. This model provides greater flexibility and easy access to data. Navigating through links is a easy way to search for data.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana; font-weight: normal; line-height: 1.4em; margin-bottom: 10px; 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;&lt;span style=&quot;font-size: small;&quot;&gt;5. Explain about the process of user request and data generating?&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana; font-weight: normal; line-height: 1.4em; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Users request information and this request is transformed into a special language usually that would be the dialect in sql. This dialect would be given to the appropriate software for culminating the database for appropriate presentation to the end user. Usually sql queries are increasingly being embedded into software.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana; font-weight: normal; line-height: 1.4em; margin-bottom: 10px; 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;&lt;span style=&quot;font-size: small;&quot;&gt;6. Explain the role of indexing in databases?&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana; font-weight: normal; line-height: 1.4em; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Many of the databases take advantage of indexing to increase the speed. This technology has increased immensely since it’s inception stages. During indexing if a row matches the query it is automatically generated and given to the user. In RDBMS indexes can be created and dropped without changing the existing application.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana; font-weight: normal; line-height: 1.4em; margin-bottom: 10px; 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;&lt;span style=&quot;font-size: small;&quot;&gt;7. Explain about post relational databases?&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana; font-weight: normal; line-height: 1.4em; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Post relational databases are similar to relational database management systems but they have pre dated relational model of data representation. This model doesn`t require representation of data with relationship. A perfect example can be a tree with nodes represented in a directed graph.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana; font-weight: normal; line-height: 1.4em; margin-bottom: 10px; 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;&lt;span style=&quot;font-size: small;&quot;&gt;8. Explain about normal forms?&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana; font-weight: normal; line-height: 1.4em; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Databases are categorized into different forms based upon the anomalies to which they are vulnerable. Lowest rung of database is known as normal form of first order. A first order normal form is subjected to many types of vulnerabilities. A higher database cannot be subjected to any vulnerability. You can get more info about Databases at Database Guides.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana; font-weight: normal; line-height: 1.4em; margin-bottom: 10px; 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;&lt;span style=&quot;font-size: small;&quot;&gt;9) Explain about primary key?&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana; font-weight: normal; line-height: 1.4em; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;A primary holds a unique key for each row designated in the table. Keys are often used to combine more than two tables, columns, or rows. Keys should be defined in advance before and it will be too late to define them later.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana; font-weight: normal; line-height: 1.4em; margin-bottom: 10px; 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;&lt;span style=&quot;font-size: small;&quot;&gt;10. What are the three basic rules which are to be followed for relational model of database?&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana; font-weight: normal; line-height: 1.4em; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;There are three basic rules to follow for relational database they are&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;1) It least bothers about order of the columns&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;2) No clones or identical rows allowed.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;3) Each and every row will have a value for each column.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana; font-weight: normal; line-height: 1.4em; margin-bottom: 10px; 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;&lt;span style=&quot;font-size: small;&quot;&gt;11. Explain about XML databases?&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana; font-weight: normal; line-height: 1.4em; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;XML databases came into existence in 2000. Many of the new startups were also started. This database lets you organize data irrespective of whether it is organized or not. Arranging and complexity for storing data is significantly got reduced with the language.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana; font-weight: normal; line-height: 1.4em; margin-bottom: 10px; 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;&lt;span style=&quot;font-size: small;&quot;&gt;12. Explain about what a database is?&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana; font-weight: normal; line-height: 1.4em; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Database is an important constituent for collection and storage of data. A computer database uses software for managing its huge pool of database. It also uses software to make changes automatically to the database without any outside interference.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana; font-weight: normal; line-height: 1.4em; margin-bottom: 10px; 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;&lt;span style=&quot;font-size: small;&quot;&gt;13) Explain about relational database management systems?&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana; font-weight: normal; line-height: 1.4em; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Relational database systems take the model and form of relational model. Data is represented in the form of columns and rows which are later represented by relation operators. Explicit pointers will not interfere between tables.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana; font-weight: normal; line-height: 1.4em; margin-bottom: 10px; 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;&lt;span style=&quot;font-size: small;&quot;&gt;14) State the ACID rules?&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana; font-weight: normal; line-height: 1.4em; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Some of the acid rules stated are described as follows.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;1) Atomicity: -Either transaction should be done or they should be stopped&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;2) Consistency: – Data should never be in a contradictory state&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;3) Isolation: – Two simultaneous or preceding results should never interfere with each other.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;4) Durability: -Results or Data shouldn’t be discarded even during a crash of the system.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana; font-weight: normal; line-height: 1.4em; margin-bottom: 10px; 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;&lt;span style=&quot;font-size: small;&quot;&gt;15) Explain about the Storage and physical database design?&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana; font-weight: normal; line-height: 1.4em; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Databases can be stored in many forms. They are usually stored on hard disks in many different forms in the form of flat files, hash buckets, ISAM, etc. Data can be stores by partitioning the data. Normalization and de normalization is generally used for efficient storage of database and also for memory management.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7dae12; font-family: &#39;Times New Roman&#39;, Georgia, &#39;Trebuchet MS&#39;; font-size: large; line-height: normal; text-decoration: none;&quot;&gt;&lt;a href=&quot;http://jobinterviewquestions.co.in/what-are-the-difference-between-ddl-dml-and-dcl-commands/&quot; rel=&quot;bookmark&quot; style=&quot;color: #7dae12; font-family: &#39;Times New Roman&#39;, Georgia, &#39;Trebuchet MS&#39;; line-height: normal; text-decoration: none;&quot;&gt;What are the difference between DDL, DML and DCL commands?&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/h1&gt;
&lt;h1 class=&quot;entry-title&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; color: black; line-height: 26px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 2px; padding-left: 0px; padding-right: 0px; padding-top: 8px; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #202020; font-family: Arial, Tahoma, Verdana; font-size: small; line-height: normal;&quot;&gt;&lt;div style=&quot;font-weight: normal; line-height: 20px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
DDL&lt;/div&gt;
&lt;div style=&quot;font-weight: normal; line-height: 20px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
Data Definition Language (DDL) statements are used to define the database structure or schema. Some examples:&lt;/div&gt;
&lt;div style=&quot;font-weight: normal; line-height: 20px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
* CREATE – to create objects in the database&lt;br /&gt;
* ALTER – alters the structure of the database&lt;br /&gt;
* DROP – delete objects from the database&lt;br /&gt;
* TRUNCATE – remove all records from a table, including all spaces allocated for the records are removed&lt;br /&gt;
* COMMENT – add comments to the data dictionary&lt;br /&gt;
* RENAME – rename an object&lt;/div&gt;
&lt;div style=&quot;font-weight: normal; line-height: 20px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
DML&lt;/div&gt;
&lt;div style=&quot;font-weight: normal; line-height: 20px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
Data Manipulation Language (DML) statements are used for managing data within schema objects. Some examples:&lt;/div&gt;
&lt;div style=&quot;font-weight: normal; line-height: 20px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
* SELECT – retrieve data from the a database&lt;br /&gt;
* INSERT – insert data into a table&lt;br /&gt;
* UPDATE – updates existing data within a table&lt;br /&gt;
* DELETE – deletes all records from a table, the space for the records remain&lt;br /&gt;
* MERGE – UPSERT operation (insert or update)&lt;br /&gt;
* CALL – call a PL/SQL or Java subprogram&lt;br /&gt;
* EXPLAIN PLAN – explain access path to data&lt;br /&gt;
* LOCK TABLE – control concurrency&lt;/div&gt;
&lt;div style=&quot;font-weight: normal; line-height: 20px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
DCL&lt;/div&gt;
&lt;div style=&quot;font-weight: normal; line-height: 20px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
Data Control Language (DCL) statements. Some examples:&lt;/div&gt;
&lt;div style=&quot;font-weight: normal; line-height: 20px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
* GRANT – gives user’s access privileges to database&lt;br /&gt;
* REVOKE – withdraw access privileges given with the GRANT command&lt;/div&gt;
&lt;/span&gt;&lt;/h1&gt;
&lt;h1 class=&quot;entry-title&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; color: black; font-weight: bold; line-height: 26px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 2px; padding-left: 0px; padding-right: 0px; padding-top: 8px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;SQL interview questions and answers&lt;/span&gt;&lt;/h1&gt;
&lt;div class=&quot;entry-meta&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #787878; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;
&lt;a href=&quot;http://www.techinterviews.com/sql-interview-questions-and-answers&quot;&gt;http://www.techinterviews.com/sql-interview-questions-and-answers&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;entry-content&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 18px; outline-color: initial; outline-style: initial; outline-width: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;
&lt;ol style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; list-style-image: initial; list-style-position: initial; list-style-type: decimal; margin-bottom: 18px; margin-left: 3em; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What are two methods of retrieving SQL?&lt;/strong&gt;&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What cursor type do you use to retrieve multiple recordsets?&lt;/strong&gt;&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What is the difference between a &quot;where&quot; clause and a &quot;having&quot; clause?&lt;/strong&gt;&amp;nbsp;- &quot;Where&quot; is a kind of restiriction statement. You use where clause to restrict all the data from DB.Where clause is using before result retrieving. But Having clause is using after retrieving the data.Having clause is a kind of filtering command.&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What is the basic form of a SQL statement to read data out of a table?&lt;/strong&gt;&amp;nbsp;The basic form to read data out of table is ‘SELECT * FROM table_name; ‘ An answer: ‘SELECT * FROM table_name WHERE xyz= ‘whatever’;’ cannot be called basic form because of WHERE clause.&lt;br /&gt;
&lt;span id=&quot;more-359&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What structure can you implement for the database to speed up table reads?&lt;/strong&gt;- Follow the rules of DB tuning we have to: 1] properly use indexes ( different types of indexes) 2] properly locate different DB objects across different tablespaces, files and so on.3] create a special space (tablespace) to locate some of the data with special datatype ( for example CLOB, LOB and …)&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What are the tradeoffs with having indexes&lt;/strong&gt;? - 1. Faster selects, slower updates. 2. Extra storage space to store indexes. Updates are slower because in addition to updating the table you have to update the index.&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What is a &quot;join&quot;?&amp;nbsp;&lt;/strong&gt;- ‘join’ used to connect two or more tables logically with or without common field.&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What is &quot;normalization&quot;? &quot;Denormalization&quot;? Why do you sometimes want to denormalize?&lt;/strong&gt;&amp;nbsp;- Normalizing data means eliminating redundant information from a table and organizing the data so that future changes to the table are easier. Denormalization means allowing redundancy in a table. The main benefit of denormalization is improved performance with simplified data retrieval and manipulation. This is done by reduction in the number of joins needed for data processing.&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What is a &quot;constraint&quot;?&lt;/strong&gt;&amp;nbsp;- A constraint allows you to apply simple referential integrity checks to a table. There are four primary types of constraints that are currently supported by SQL Server: PRIMARY/UNIQUE - enforces uniqueness of a particular table column. DEFAULT - specifies a default value for a column in case an insert operation does not provide one. FOREIGN KEY - validates that every value in a column exists in a column of another table. CHECK - checks that every value stored in a column is in some specified list. Each type of constraint performs a specific type of action. Default is not a constraint. NOT NULL is one more constraint which does not allow values in the specific column to be null. And also it the only constraint which is not a table level constraint.&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What types of index data structures can you have?&amp;nbsp;&lt;/strong&gt;- An index helps to faster search values in tables. The three most commonly used index-types are: - B-Tree: builds a tree of possible values with a list of row IDs that have the leaf value. Needs a lot of space and is the default index type for most databases. - Bitmap: string of bits for each possible value of the column. Each bit string has one bit for each row. Needs only few space and is very fast.(however, domain of value cannot be large, e.g. SEX(m,f); degree(BS,MS,PHD) - Hash: A hashing algorithm is used to assign a set of characters to represent a text string such as a composite of keys or partial keys, and compresses the underlying data. Takes longer to build and is supported by relatively few databases.&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What is a &quot;primary key&quot;?&lt;/strong&gt;&amp;nbsp;- A PRIMARY INDEX or PRIMARY KEY is something which comes mainly from&lt;br /&gt;
database theory. From its behavior is almost the same as an UNIQUE INDEX, i.e. there may only be one of each value in this column. If you call such an INDEX PRIMARY instead of UNIQUE, you say something about&lt;br /&gt;
your table design, which I am not able to explain in few words. Primary Key is a type of a constraint enforcing uniqueness and data integrity for each row of a table. All columns participating in a primary key constraint must possess the NOT NULL property.&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What is a &quot;functional dependency&quot;? How does it relate to database table design&lt;/strong&gt;? - Functional dependency relates to how one object depends upon the other in the database. for example, procedure/function sp2 may be called by procedure sp1. Then we say that sp1 has functional dependency on sp2.&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What is a &quot;trigger&quot;?&amp;nbsp;&lt;/strong&gt;- Triggers are stored procedures created in order to enforce integrity rules in a database. A trigger is executed every time a data-modification operation occurs (i.e., insert, update or delete). Triggers are executed automatically on occurance of one of the data-modification operations. A trigger is a database object directly associated with a particular table. It fires whenever a specific statement/type of statement is issued against that table. The types of statements are insert,update,delete and query statements. Basically, trigger is a set of SQL statements A trigger is a solution to the restrictions of a constraint. For instance: 1.A database column cannot carry PSEUDO columns as criteria where a trigger can. 2. A database constraint cannot refer old and new values for a row where a trigger can.&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;Why can a &quot;group by&quot; or &quot;order by&quot; clause be expensive to process&lt;/strong&gt;? - Processing of &quot;group by&quot; or &quot;order by&quot; clause often requires creation of Temporary tables to process the results of the query. Which depending of the result set can be very expensive.&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What is &quot;index covering&quot; of a query&lt;/strong&gt;? - Index covering means that &quot;Data can be found only using indexes, without touching the tables&quot;&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What types of join algorithms can you have?&lt;/strong&gt;&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What is a SQL view&lt;/strong&gt;? - An output of a query can be stored as a view. View acts like small table which meets our criterion. View is a precomplied SQL query which is used to select data from one or more tables. A view is like a table but it doesn’t physically take any space. View is a good way to present data in a particular format if you use that query quite often. View can also be used to restrict users from accessing the tables directly.l&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;a href=&quot;http://vyaskn.tripod.com/iq.htm&quot;&gt;http://vyaskn.tripod.com/iq.htm&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;What is normalization? Explain different levels of normalization?&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &#39;MS Serif&#39;;&quot;&gt;Check out the article Q100139 from Microsoft knowledge base and of course, there&#39;s much more information available in the net. It&#39;ll be a good idea to get a hold of any RDBMS fundamentals text book, especially the one by C. J. Date. Most of the times, it will be okay if you can explain till third normal form.&lt;/span&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;What is denormalization and when would you go for it?&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &#39;MS Serif&#39;;&quot;&gt;As the name indicates, denormalization is the reverse process of normalization. It&#39;s the controlled introduction of redundancy in to the database design. It helps improve the query performance as the number of joins could be reduced.&lt;/span&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;How do you implement one-to-one, one-to-many and many-to-many relationships while designing tables?&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &#39;MS Serif&#39;;&quot;&gt;One-to-One relationship can be implemented as a single table and rarely as two tables with primary and foreign key relationships.&lt;br /&gt;
One-to-Many relationships are implemented by splitting the data into two tables with primary key and foreign key relationships.&lt;br /&gt;
Many-to-Many relationships are implemented using a junction table with the keys from both the tables forming the composite primary key of the junction table.&lt;br /&gt;
&lt;br /&gt;
It will be a good idea to read up a database designing fundamentals text book.&lt;/span&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;What&#39;s the difference between a primary key and a unique key?&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;Both primary key and unique enforce uniqueness of the column on which they are defined. But by default primary key creates a clustered index on the column, where are unique creates a nonclustered index by default. Another major difference is that, primary key doesn&#39;t allow NULLs, but unique key allows one NULL only.&lt;/span&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;What are user defined datatypes and when you should go for them?&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;User defined datatypes let you extend the base SQL Server datatypes by providing a descriptive name, and format to the database. Take for example, in your database, there is a column called Flight_Num which appears in many tables. In all these tables it should be varchar(8). In this case you could create a user defined datatype called Flight_num_type of varchar(8) and use it across all your tables.&lt;br /&gt;
&lt;br /&gt;
See sp_addtype, sp_droptype in books online.&lt;/span&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;What is bit datatype and what&#39;s the information that can be stored inside a bit column?&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;Bit datatype is used to store boolean information like 1 or 0 (true or false). Untill SQL Server 6.5 bit datatype could hold either a 1 or 0 and there was no support for NULL. But from SQL Server 7.0 onwards, bit datatype can represent a third state, which is NULL.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;Define candidate key, alternate key, composite key.&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;A candidate key is one that can identify each row of a table uniquely. Generally a candidate key becomes the primary key of the table. If the table has more than one candidate key, one of them will become the primary key, and the rest are called alternate keys.&lt;br /&gt;
&lt;br /&gt;
A key formed by combining at least two or more columns is called composite key.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;What are defaults? Is there a column to which a default can&#39;t be bound?&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;A default is a value that will be used by a column, if no value is supplied to that column while inserting data. IDENTITY columns and timestamp columns can&#39;t have defaults bound to them. See CREATE DEFUALT in books online.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;What is a transaction and what are ACID properties?&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;MS Serif&#39;;&quot;&gt;A transaction is a logical unit of work in which, all the steps must be performed or none. ACID stands for Atomicity, Consistency, Isolation, Durability. These are the properties of a transaction. For more information and explanation of these properties, see SQL Server books online or any RDBMS fundamentals text book.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;Explain different isolation levels&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;MS Serif&#39;;&quot;&gt;An isolation level determines the degree of isolation of data between concurrent transactions. The default SQL Server isolation level is Read Committed. Here are the other isolation levels (in the ascending order of isolation): Read Uncommitted, Read Committed, Repeatable Read, Serializable. See SQL Server books online for an explanation of the isolation levels. Be sure to read about SET TRANSACTION ISOLATION LEVEL, which lets you customize the isolation level at the connection level.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;CREATE INDEX myIndex ON myTable(myColumn)&lt;br /&gt;
&lt;br /&gt;
What type of Index will get created after executing the above statement?&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;MS Serif&#39;;&quot;&gt;Non-clustered index. Important thing to note: By default a clustered index gets created on the primary key, unless specified otherwise.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;What&#39;s the maximum size of a row?&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;MS Serif&#39;;&quot;&gt;8060 bytes. Don&#39;t be surprised with questions like &#39;what is the maximum number of columns per table&#39;. Check out SQL Server books online for the page titled: &quot;Maximum Capacity Specifications&quot;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;Explain Active/Active and Active/Passive cluster configurations&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;MS Serif&#39;;&quot;&gt;Hopefully you have experience setting up cluster servers. But if you don&#39;t, at least be familiar with the way clustering works and the two clusterning configurations Active/Active and Active/Passive. SQL Server books online has enough information on this topic and there is a good white paper available on Microsoft site.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;Explain the architecture of SQL Server&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;MS Serif&#39;;&quot;&gt;This is a very important question and you better be able to answer it if consider yourself a DBA. SQL Server books online is the best place to read about SQL Server architecture. Read up the chapter dedicated to SQL Server Architecture.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;What is lock escalation?&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;Lock escalation is the process of converting a lot of low level locks (like row locks, page locks) into higher level locks (like table locks). Every lock is a memory structure too many locks would mean, more memory being occupied by locks. To prevent this from happening, SQL Server escalates the many fine-grain locks to fewer coarse-grain locks. Lock escalation threshold was definable in SQL Server 6.5, but from SQL Server 7.0 onwards it&#39;s dynamically managed by SQL Server.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;What&#39;s the difference between DELETE TABLE and TRUNCATE TABLE commands?&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;DELETE TABLE is a logged operation, so the deletion of each row gets logged in the transaction log, which makes it slow. TRUNCATE TABLE also deletes all the rows in a table, but it won&#39;t log the deletion of each row, instead it logs the deallocation of the data pages of the table, which makes it faster. Of course, TRUNCATE TABLE can be rolled back.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;Explain the storage models of OLAP&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;MS Serif&#39;;&quot;&gt;Check out MOLAP, ROLAP and HOLAP in SQL Server books online for more infomation.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;What are the new features introduced in SQL Server 2000 (or the latest release of SQL Server at the time of your interview)? What changed between the previous version of SQL Server and the current version?&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;This question is generally asked to see how current is your knowledge. Generally there is a section in the beginning of the books online titled &quot;What&#39;s New&quot;, which has all such information. Of course, reading just that is not enough, you should have tried those things to better answer the questions. Also check out the section titled &quot;Backward Compatibility&quot; in books online which talks about the changes that have taken place in the new version.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;What are constraints? Explain different types of constraints.&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;Constraints enable the RDBMS enforce the integrity of the database automatically, without needing you to create triggers, rule or defaults.&lt;br /&gt;
&lt;br /&gt;
Types of constraints: NOT NULL, CHECK, UNIQUE, PRIMARY KEY, FOREIGN KEY&lt;br /&gt;
&lt;br /&gt;
For an explanation of these constraints see books online for the pages titled: &quot;Constraints&quot; and &quot;CREATE TABLE&quot;, &quot;ALTER TABLE&quot;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;Whar is an index? What are the types of indexes? How many clustered indexes can be created on a table? I create a separate index on each column of a table. what are the advantages and disadvantages of this approach?&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;Indexes in SQL Server are similar to the indexes in books. They help SQL Server retrieve the data quicker.&lt;br /&gt;
&lt;br /&gt;
Indexes are of two types. Clustered indexes and non-clustered indexes. When you craete a clustered index on a table, all the rows in the table are stored in the order of the clustered index key. So, there can be only one clustered index per table. Non-clustered indexes have their own storage separate from the table data storage. Non-clustered indexes are stored as B-tree structures (so do clustered indexes), with the leaf level nodes having the index key and it&#39;s row locater. The row located could be the RID or the Clustered index key, depending up on the absence or presence of clustered index on the table.&lt;br /&gt;
&lt;br /&gt;
If you create an index on each column of a table, it improves the query performance, as the query optimizer can choose from all the existing indexes to come up with an efficient execution plan. At the same t ime, data modification operations (such as INSERT, UPDATE, DELETE) will become slow, as every time data changes in the table, all the indexes need to be updated. Another disadvantage is that, indexes need disk space, the more indexes you have, more disk space is used.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;What is RAID and what are different types of RAID configurations?&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;MS Serif&#39;;&quot;&gt;RAID stands for Redundant Array of Inexpensive Disks, used to provide fault tolerance to database servers. There are six RAID levels 0 through 5 offering different levels of performance, fault tolerance. MSDN has some information about RAID levels and for detailed information, check out the&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://www.raid-advisory.com/&quot; style=&quot;color: #8080ff; text-decoration: none;&quot; target=&quot;_new&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;RAID advisory board&#39;s homepage&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;What are the steps you will take to improve performance of a poor performing query?&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;MS Serif&#39;;&quot;&gt;This is a very open ended question and there could be a lot of reasons behind the poor performance of a query. But some general issues that you could talk about would be: No indexes, table scans, missing or out of date statistics, blocking, excess recompilations of stored procedures, procedures and triggers without SET NOCOUNT ON, poorly written query with unnecessarily complicated joins, too much normalization, excess usage of cursors and temporary tables.&lt;br /&gt;
&lt;br /&gt;
Some of the tools/ways that help you troubleshooting performance problems are: SET SHOWPLAN_ALL ON, SET SHOWPLAN_TEXT ON, SET STATISTICS IO ON, SQL Server Profiler, Windows NT /2000 Performance monitor, Graphical execution plan in Query Analyzer.&lt;br /&gt;
&lt;br /&gt;
Download the white paper on performance tuning SQL Server from Microsoft web site. Don&#39;t forget to check out&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://www.sql-server-performance.com/&quot; style=&quot;color: #8080ff; text-decoration: none;&quot; target=&quot;_new&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;sql-server-performance.com&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;What are the steps you will take, if you are tasked with securing an SQL Server?&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;MS Serif&#39;;&quot;&gt;Again this is another open ended question. Here are some things you could talk about: Preferring NT authentication, using server, databse and application roles to control access to the data, securing the physical database files using NTFS permissions, using an unguessable SA password, restricting physical access to the SQL Server, renaming the Administrator account on the SQL Server computer, disabling the Guest account, enabling auditing, using multiprotocol encryption, setting up SSL, setting up firewalls, isolating SQL Server from the web server etc.&lt;br /&gt;
&lt;br /&gt;
Read the white paper on SQL Server security from Microsoft website. Also check out&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://vyaskn.tripod.com/sql_server_security_best_practices.htm&quot; style=&quot;color: #8080ff; text-decoration: none;&quot; target=&quot;_new&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;My SQL Server security best practices&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;What is a deadlock and what is a live lock? How will you go about resolving deadlocks?&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;MS Serif&#39;;&quot;&gt;Deadlock is a situation when two processes, each having a lock on one piece of data, attempt to acquire a lock on the other&#39;s piece. Each process&amp;nbsp; would wait indefinitely for the other to release the lock, unless one of the user processes is terminated. SQL Server detects deadlocks and terminates one user&#39;s process.&lt;br /&gt;
&lt;br /&gt;
A livelock is one, where a&amp;nbsp; request for an exclusive lock is repeatedly denied because a series of overlapping shared locks keeps interfering. SQL Server detects the situation after four denials and refuses further shared locks. A livelock also occurs when read transactions monopolize a table or page, forcing a write transaction to wait indefinitely.&lt;br /&gt;
&lt;br /&gt;
Check out SET DEADLOCK_PRIORITY and &quot;Minimizing Deadlocks&quot;&amp;nbsp; in SQL Server books online. Also check out the article Q169960 from Microsoft knowledge base.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;What is blocking and how would you troubleshoot it?&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;Blocking happens when one connection from an application holds a lock and a second connection requires a conflicting lock type. This forces the second connection to wait, blocked on the first.&lt;br /&gt;
&lt;br /&gt;
Read up the following topics in SQL Server books online: Understanding and avoiding blocking, Coding efficient transactions.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;Explain CREATE DATABASE syntax&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;Many of us are used to craeting databases from the Enterprise Manager or by just issuing the command: CREATE DATABAE MyDB. But what if you have to create a database with two filegroups, one on drive C and the other on drive D with log on drive E with an initial size of 600 MB and with a growth factor of 15%? That&#39;s why being a DBA you should be familiar with the CREATE DATABASE syntax. Check out SQL Server books online for more information.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;How to restart SQL Server in single user mode? How to start SQL Server in minimal configuration mode?&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;SQL Server can be started from command line, using the SQLSERVR.EXE. This EXE has some very important parameters with which a DBA should be familiar with. -m is used for starting SQL Server in single user mode and -f is used to start the SQL Server in minimal confuguration mode. Check out SQL Server books online for more parameters and their explanations.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;As a part of your job, what are the DBCC commands that you commonly use for database maintenance?&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;DBCC CHECKDB, DBCC CHECKTABLE, DBCC CHECKCATALOG, DBCC CHECKALLOC, DBCC SHOWCONTIG, DBCC SHRINKDATABASE, DBCC SHRINKFILE etc. But there are a whole load of DBCC commands which are very useful for DBAs. Check out SQL Server books online for more information.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;What are statistics, under what circumstances they go out of date, how do you update them?&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;Statistics determine the selectivity of the indexes. If an indexed column has unique values then the selectivity of that index is more, as opposed to an index with non-unique values. Query optimizer uses these indexes in determining whether to choose an index or not while executing a query.&lt;br /&gt;
&lt;br /&gt;
Some situations under which you should update statistics:&lt;br /&gt;
1) If there is significant change in the key values in the index&lt;br /&gt;
2) If a large amount of data in an indexed column has been added, changed, or removed (that is, if the distribution of key values has changed), or the table has been truncated using the TRUNCATE TABLE statement and then repopulated&lt;br /&gt;
3) Database is upgraded from a previous version&lt;br /&gt;
&lt;br /&gt;
Look up SQL Server books online for the following commands: UPDATE STATISTICS, STATS_DATE, DBCC SHOW_STATISTICS, CREATE STATISTICS, DROP STATISTICS, sp_autostats, sp_createstats, sp_updatestats&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;What are the different ways of moving data/databases between servers and databases in SQL Server?&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;There are lots of options available, you have to choose your option depending upon your requirements. Some of the options you have are: BACKUP/RESTORE, dettaching and attaching databases, replication, DTS, BCP, logshipping, INSERT...SELECT, SELECT...INTO, creating INSERT scripts to generate data.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;Explian different types of BACKUPs avaialabe in SQL Server? Given a particular scenario, how would you go about choosing a backup plan?&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;Types of backups you can create in SQL Sever 7.0+ are Full database backup, differential database backup, transaction log backup, filegroup backup. Check out the BACKUP and RESTORE commands in SQL Server books online. Be prepared to write the commands in your interview. Books online also has information on detailed backup/restore architecture and when one should go for a particular kind of backup.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;What is database replicaion? What are the different types of replication you can set up in SQL Server?&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;Replication is the process of copying/moving data between databases on the same or different servers. SQL Server supports the following types of replication scenarios:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;Snapshot replication&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;Transactional replication (with immediate updating subscribers, with queued updating subscribers)&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;Merge replication&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;See SQL Server books online for indepth coverage on replication. Be prepared to explain how different replication agents function, what are the main system tables used in replication etc.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;How to determine the service pack currently installed on SQL Server?&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;MS Serif&#39;;&quot;&gt;The global variable @@Version stores the build number of the sqlservr.exe, which is used to determine the service pack installed. To know more about this process visit&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;; text-decoration: none;&quot;&gt;&lt;a href=&quot;http://vyaskn.tripod.com/sqlsps.htm&quot; style=&quot;color: #8080ff; text-decoration: none;&quot;&gt;SQL Server service packs and versions.&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;What are cursors? Explain different types of cursors. What are the disadvantages of cursors? How can you avoid cursors?&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;Cursors allow row-by-row prcessing of the resultsets.&lt;br /&gt;
&lt;br /&gt;
Types of cursors: Static, Dynamic, Forward-only, Keyset-driven. See books online for more information.&lt;br /&gt;
&lt;br /&gt;
Disadvantages of cursors: Each time you fetch a row from the cursor, it results in a network roundtrip, where as a normal SELECT query makes only one rowundtrip, however large the resultset is. Cursors are also costly because they require more resources and temporary storage (results in more IO operations). Furthere, there are restrictions on the SELECT statements that can be used with some types of cursors.&lt;br /&gt;
&lt;br /&gt;
Most of the times, set based operations can be used instead of cursors. Here is an example:&lt;br /&gt;
&lt;br /&gt;
If you have to give a flat hike to your employees using the following criteria:&lt;br /&gt;
&lt;br /&gt;
Salary between 30000 and 40000 -- 5000 hike&lt;br /&gt;
Salary between 40000 and 55000 -- 7000 hike&lt;br /&gt;
Salary between 55000 and 65000 -- 9000 hike&lt;br /&gt;
&lt;br /&gt;
In this situation many developers tend to use a cursor, determine each employee&#39;s salary and update his salary according to the above formula. But the same can be achieved by multiple update statements or can be combined in a single UPDATE statement as shown below:&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;UPDATE tbl_emp SET salary =&lt;br /&gt;
CASE WHEN salary BETWEEN 30000 AND 40000 THEN salary + 5000&lt;br /&gt;
WHEN salary BETWEEN 40000 AND 55000 THEN salary + 7000&lt;br /&gt;
WHEN salary BETWEEN 55000 AND 65000 THEN salary + 10000&lt;br /&gt;
END&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;Another situation in which developers tend to use cursors: You need to call a stored procedure when a column in a particular row meets certain condition. You don&#39;t have to use cursors for this. This can be achieved using WHILE loop, as long as there is a unique key to identify each row. For examples of using WHILE loop for row by row processing, check out the &#39;&lt;/span&gt;&lt;a href=&quot;http://vyaskn.tripod.com/code.htm&quot; style=&quot;color: #8080ff; text-decoration: none;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;My code library&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&#39; section of my site or&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://vyaskn.tripod.com/search.htm&quot; style=&quot;color: #8080ff; text-decoration: none;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;search&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&amp;nbsp;for WHILE.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;Write down the general syntax for a SELECT statements covering all the options.&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;Here&#39;s the basic syntax: (Also checkout SELECT in books online for advanced syntax).&lt;br /&gt;
&lt;br /&gt;
SELECT select_list&lt;br /&gt;
[INTO new_table_]&lt;br /&gt;
FROM table_source&lt;br /&gt;
[WHERE search_condition]&lt;br /&gt;
[GROUP BY group_by_expression]&lt;br /&gt;
[HAVING search_condition]&lt;br /&gt;
[ORDER BY order_expression [ASC | DESC] ]&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;What is a join and explain different types of joins.&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;Joins are used in queries to explain how different tables are related. Joins also let you select data from a table depending upon data from another table.&lt;br /&gt;
&lt;br /&gt;
Types of joins: INNER JOINs, OUTER JOINs, CROSS JOINs. OUTER JOINs are further classified as LEFT OUTER JOINS, RIGHT OUTER JOINS and FULL OUTER JOINS.&lt;br /&gt;
&lt;br /&gt;
For more information see pages from books online titled: &quot;Join Fundamentals&quot; and &quot;Using Joins&quot;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;Can you have a nested transaction?&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;Yes, very much. Check out BEGIN TRAN, COMMIT, ROLLBACK, SAVE TRAN and @@TRANCOUNT&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;What is an extended stored procedure? Can you instantiate a COM object by using T-SQL?&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;An extended stored procedure is a function within a DLL (written in a programming language like C, C++ using Open Data Services (ODS) API) that can be called from T-SQL, just the way we call normal stored procedures using the EXEC statement. See books online to learn how to create extended stored procedures and how to add them to SQL Server.&lt;br /&gt;
&lt;br /&gt;
Yes, you can instantiate a COM (written in languages like VB, VC++) object from T-SQL by using sp_OACreate stored procedure. Also see books online for sp_OAMethod, sp_OAGetProperty, sp_OASetProperty, sp_OADestroy. For an example of creating a COM object in VB and calling it from T-SQL, see &#39;&lt;/span&gt;&lt;a href=&quot;http://vyaskn.tripod.com/code.htm&quot; style=&quot;color: #8080ff; text-decoration: none;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;My code library&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&#39; section of this site.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;What is the system function to get the current user&#39;s user id?&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;USER_ID(). Also check out other system functions like USER_NAME(), SYSTEM_USER, SESSION_USER, CURRENT_USER, USER, SUSER_SID(), HOST_NAME().&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;What are triggers? How many triggers you can have on a table? How to invoke a trigger on demand?&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;Triggers are special kind of stored procedures that get executed automatically when an INSERT, UPDATE or DELETE operation takes place on a table.&lt;br /&gt;
&lt;br /&gt;
In SQL Server 6.5 you could define only 3 triggers per table, one for INSERT, one for UPDATE and one for DELETE. From SQL Server 7.0 onwards, this restriction is gone, and you could create multiple triggers per each action. But in 7.0 there&#39;s no way to control the order in which the triggers fire. In SQL Server 2000 you could specify which trigger fires first or fires last using sp_settriggerorder&lt;br /&gt;
&lt;br /&gt;
Triggers can&#39;t be invoked on demand. They get triggered only when an associated action (INSERT, UPDATE, DELETE) happens on the table on which they are defined.&lt;br /&gt;
&lt;br /&gt;
Triggers are generally used to implement business rules, auditing. Triggers can also be used to extend the referential integrity checks, but wherever possible, use constraints for this purpose, instead of triggers, as constraints are much faster.&lt;br /&gt;
&lt;br /&gt;
Till SQL Server 7.0, triggers fire only after the data modification operation happens. So in a way, they are called post triggers. But in SQL Server 2000 you could create pre triggers also. Search SQL Server 2000 books online for INSTEAD OF triggers.&lt;br /&gt;
&lt;br /&gt;
Also check out books online for &#39;inserted table&#39;, &#39;deleted table&#39; and COLUMNS_UPDATED()&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;There is a trigger defined for INSERT operations on a table, in an OLTP system. The trigger is written to instantiate a COM object and pass the newly insterted rows to it for some custom processing. What do you think of this implementation? Can this be implemented better?&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;Instantiating COM objects is a time consuming process and since you are doing it from within a trigger, it slows down the data insertion process. Same is the case with sending emails from triggers. This scenario can be better implemented by logging all the necessary data into a separate table, and have a job which periodically checks this table and does the needful.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;#DBF8C9&quot; border=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;color: blue; font-family: &#39;MS Serif&#39;;&quot;&gt;What is a self join? Explain it with an example.&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;Self join is just like any other join, except that two instances of the same table will be joined in the query. Here is an example: Employees table which contains rows for normal employees as well as managers. So, to find out the managers of all the employees, you need a self join.&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;;&quot;&gt;&lt;br /&gt;
CREATE TABLE emp&lt;br /&gt;
(&lt;br /&gt;
empid int,&lt;br /&gt;
mgrid int,&lt;br /&gt;
empname char(10)&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
INSERT emp SELECT 1,2,&#39;Vyas&#39;&lt;br /&gt;
INSERT emp SELECT 2,3,&#39;Mohan&#39;&lt;br /&gt;
INSERT emp SELECT 3,NULL,&#39;Shobha&#39;&lt;br /&gt;
INSERT emp SELECT 4,2,&#39;Shridhar&#39;&lt;br /&gt;
INSERT emp SELECT 5,2,&#39;Sourabh&#39;&lt;br /&gt;
&lt;br /&gt;
SELECT t1.empname [Employee], t2.empname [Manager]&lt;br /&gt;
FROM emp t1, emp t2&lt;br /&gt;
WHERE t1.mgrid = t2.empid&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;Here&#39;s an advanced query using a LEFT OUTER JOIN that even returns the employees without managers (super bosses)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: &#39;courier new&#39;;&quot;&gt;SELECT t1.empname [Employee], COALESCE(t2.empname, &#39;No manager&#39;) [Manager]&lt;br /&gt;
FROM emp t1&lt;br /&gt;
LEFT OUTER JOIN&lt;br /&gt;
emp t2&lt;br /&gt;
ON&lt;br /&gt;
t1.mgrid = t2.empid&lt;/span&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;a href=&quot;http://faq.programmerworld.net/database/sql-interview-questions-and-answers.html&quot;&gt;http://faq.programmerworld.net/database/sql-interview-questions-and-answers.html&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #414141; font-family: Verdana, Arial, Helvetica, sans-serif;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&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;What is the advantage to use trigger in your PL?&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;Triggers are fired implicitly on the tables/views on which they are created. There are various advantages of using a trigger. Some of them are:&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 3em; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;li 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;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;Suppose we need to validate a DML statement(insert/Update/Delete) that modifies a table then we can write a trigger on the table that gets fired implicitly whenever DML statement is executed on that table.&lt;/span&gt;&lt;/li&gt;
&lt;li 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;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;Another reason of using triggers can be for automatic updation of one or more tables whenever a DML/DDL statement is executed for the table on which the trigger is created.&lt;/span&gt;&lt;/li&gt;
&lt;li 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;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;Triggers can be used to enforce constraints. For eg : Any insert/update/ Delete statements should not be allowed on a particular table after office hours. For enforcing this constraint Triggers should be used.&lt;/span&gt;&lt;/li&gt;
&lt;li 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;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;Triggers can be used to publish information about database events to subscribers. Database event can be a system event like Database startup or shutdown or it can be a user even like User loggin in or user logoff.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&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;What the difference between UNION and UNIONALL?&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;Union will remove the duplicate rows from the result set while Union all does&#39;nt.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&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;What is the difference between TRUNCATE and DELETE commands?&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;Both will result in deleting all the rows in the table .TRUNCATE call cannot be rolled back as it is a DDL command and all memory space for that table is released back to the server. TRUNCATE is much faster.Whereas DELETE call is an DML command and can be rolled back.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&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;Which system table contains information on constraints on all the tables created ?&amp;nbsp;&lt;/strong&gt;&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;yes,&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;USER_CONSTRAINTS,&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;system table contains information on constraints on all the tables created&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&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;Explain normalization ?&amp;nbsp;&lt;/strong&gt;&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;Normalisation means refining the redundancy and maintain stablisation. there are four types of normalisation :&amp;nbsp;&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;first normal forms, second normal forms, third normal forms and fourth Normal forms.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&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;How to find out the database name from SQL*PLUS command prompt?&lt;/strong&gt;&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;Select * from global_name;&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;This will give the datbase name which u r currently connected to.....&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&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;What is the difference between SQL and SQL Server ?&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&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;SQLServer&lt;/strong&gt;&amp;nbsp;is an RDBMS just like oracle,DB2 from Microsoft&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;whereas&amp;nbsp;&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;Structured Query Language (SQL)&lt;/strong&gt;, pronounced &quot;sequel&quot;, is a language that provides an interface to relational database systems. It was developed by IBM in the 1970s for use in System R. SQL is a de facto standard, as well as an ISO and ANSI standard. SQL is used to perform various operations on RDBMS.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&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;What is diffrence between Co-related sub query and nested sub query?&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&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;Correlated subquery&lt;/strong&gt;&amp;nbsp;runs once for each row selected by the outer query. It contains a reference to a value from the row selected by the outer query.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&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;Nested subquery&lt;/strong&gt;&amp;nbsp;runs only once for the entire nesting (outer) query. It does not contain any reference to the outer query row.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;For example,&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&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;Correlated Subquery:&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;select e1.empname, e1.basicsal, e1.deptno from emp e1 where e1.basicsal = (select max(basicsal) from emp e2 where e2.deptno = e1.deptno)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&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;Nested Subquery:&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;select empname, basicsal, deptno from emp where (deptno, basicsal) in (select deptno, max(basicsal) from emp group by deptno)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&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;WHAT OPERATOR PERFORMS PATTERN MATCHING?&lt;/strong&gt;&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;Pattern matching operator is LIKE and it has to used with two attributes&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;1. % and&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;2. _ ( underscore )&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;% means matches zero or more characters and under score means mathing exactly one character&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&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)What is difference between Oracle and MS Access?&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) What are disadvantages in Oracle and MS Access?&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) What are feratures&amp;amp;advantages in Oracle and MS Access?&lt;/strong&gt;&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;Oracle&#39;s features for distributed transactions, materialized views and replication are not available with MS Access. These features enable Oracle to efficiently store data for multinational companies across the globe. Also these features increase scalability of applications based on Oracle.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&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;What is database?&lt;/strong&gt;&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;A database is a collection of data that is organized so that itscontents can easily be accessed, managed and updated. open this url :&amp;nbsp;&lt;a href=&quot;http://www.webopedia.com/TERM/d/database.html&quot; style=&quot;color: #3e9722; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: underline;&quot;&gt;http://www.webopedia.com/TERM/d/database.html&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&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;What is cluster.cluster index and non cluster index ?&amp;nbsp;&lt;/strong&gt;&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;Clustered Index:- A Clustered index is a special type of index that reorders the way records in the table are physically stored. Therefore table may have only one clustered index.Non-Clustered Index:- A Non-Clustered index is a special type of index in which the logical order of the index does not match the physical stored order of the rows in the disk. The leaf nodes of a non-clustered index does not consists of the data pages. instead the leaf node contains index rows.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&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;How can i hide a particular table name of our schema?&lt;/strong&gt;&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;you can hide the table name by creating synonyms.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;e.g) you can create a synonym y for table x&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;create synonym y for x;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&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;What is difference between DBMS and RDBMS?&lt;/strong&gt;&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;The main difference of DBMS &amp;amp; RDBMS is&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;RDBMS have Normalization. Normalization means to refining the redundant and maintain the stablization.&amp;nbsp;&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;the DBMS hasn&#39;t normalization concept.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&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;What are the advantages and disadvantages of primary key and foreign key in SQL?&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&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;Primary key&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;Advantages&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;1) It is a unique key on which all the other candidate keys are functionally dependent&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;Disadvantage&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;1) There can be more than one keys on which all the other attributes are dependent on.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&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;Foreign Key&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;Advantage&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;1)It allows refrencing another table using the primary key for the other table&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&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;Which date function is used to find the difference between two dates?&lt;/strong&gt;&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;datediff&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;for Eg: select datediff (dd,&#39;2-06-2007&#39;,&#39;7-06-2007&#39;)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;div style=&quot;line-height: 1.65em;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;output is 5&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #414141; font-family: Verdana, Arial, Helvetica, sans-serif;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&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;why you need indexing ? where that is stroed and what you mean by schema object? For what purpose we are using view?&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;We cant create an Index on Index.. Index is stoed in user_index table.Every object that has been created on Schema is Schema Object like Table,View etc.If we want to share the particular data to various users we have to use the virtual table for the Base table...So tht is a view.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;indexing is used for faster search or to retrieve data faster from various table. Schema containing set of tables, basically schema means logical separation of the database. View is crated for faster retrieval of data. It&#39;s customized virtual table. we can create a single view of multiple tables. Only the drawback is..view needs to be get refreshed for retrieving updated data.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&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;Difference between Store Procedure and Trigger?&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;line-height: 1.65em; margin-bottom: 1.5em; margin-left: 3em; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;
&lt;li 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;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;we can call stored procedure explicitly.&lt;/span&gt;&lt;/li&gt;
&lt;li 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;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;but trigger is automatically invoked when the action defined in trigger is done.&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;ex: create trigger after Insert on&lt;/span&gt;&lt;/li&gt;
&lt;li 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;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;this trigger invoked after we insert something on that table.&lt;/span&gt;&lt;/li&gt;
&lt;li 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;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;Stored procedure can&#39;t be inactive but trigger can be Inactive.&lt;/span&gt;&lt;/li&gt;
&lt;li 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;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;Triggers are used to initiate a particular activity after fulfilling certain condition.It need to define and can be enable and disable according to need.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 21px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 21px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 21px;&quot;&gt;Very Interesting Link&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 21px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 21px;&quot;&gt;&lt;a href=&quot;http://www.kendba.com/sample-chapters/oracle-sql-interview-questions/&quot;&gt;http://www.kendba.com/sample-chapters/oracle-sql-interview-questions/&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;a href=&quot;http://extremesoftwaretesting.com/InterviewQuestions/SQLinterviewQuestions.html&quot;&gt;http://extremesoftwaretesting.com/InterviewQuestions/SQLinterviewQuestions.html&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;1. Q. What does SQL stand for?  
   A. Structured Query Language

   Q. Who was E. F. Codd?
   A. He was the original inventor of the relational model.

2. Q. How do you select all records from the table? 
   A. Select * from table_name;

   Q. What do you understand by the term referential integrity? 

3. Q. What is a join?
   A. Join is a process of retrieve pieces of data from different sets (tables) and returns them to the user or program as one â€œjoinedâ€ collection of data.

4. Q. What kinds of joins do you know? Give examples.
   A. We have self join, outer joint (LEFT, RIGHT), , cross-join ( Cartesian product n*m rows returned)
Exp:
outer joint
SELECT Employee.Name, Department. DeptName 
FROM Employee, Department
WHERE Employee.Employee_ID = Department.Employee_ID;

cross-join
SELECT * FROM table1, table2;

self join
SELECT e1.name | |â€™    â€˜ | | e2.ename FROM emp e1, emp e2 WHERE e1. emp_no = e2.emp_no;

The following summarizes the result of the join operations:
&lt;li&gt;The result of T1 INNER JOIN T2 consists of their paired rows where the join-condition is true. &lt;/li&gt;
&lt;li&gt; The result of T1 LEFT OUTER JOIN T2 consists of their paired rows where the join-condition is true and, for each unpaired row of T1, the concatenation of that row with the null row of T2. All columns derived from T2 allow null values. &lt;/li&gt;
&lt;li&gt; The result of T1 RIGHT OUTER JOIN T2 consists of their paired rows where the join-condition is true and, for each unpaired row of T2, the concatenation of that row with the null row of T1. All columns derived from T1 allow null values. &lt;/li&gt;
&lt;li&gt;The result of T1 FULL OUTER JOIN T2 consists of their paired rows and, for each unpaired row of T2, the concatenation of that row with the null row of T1 and, for each unpaired row of T1, the concatenation of that row with the null row of T2. All columns derived from T1 and T2 allow null values.  5. Q. How do you add record to a table?     A. INSERT into table_name VALUES (â€˜ALEXâ€™ , 33 , â€˜Mâ€™);   6.  Q. How do you add a column to a table?      A. ALTER TABLE Department       ADD (AGE,  NUMBER);  7.  Q. How do you change value of the field?     A. UPDATE EMP_table         set  number = 200 where item_munber = â€˜CDâ€™;  update name_table set status = &#39;enable&#39;  where phone = &#39;4161112222&#39;;  update SERVICE_table set REQUEST_DATE = to_date (&#39;2006-03-04 09:29&#39;, &#39;yyyy-mm-dd hh24:MI&#39;) where phone = &#39;4161112222&#39;;  8.  Q. What does COMMIT do?      A. Saving all changes made by DML statements  9.  Q. What is a primary key?      A. The column  (columns) that has completely unique data throughout  the table is known as the primary key field.  10. Q. What are foreign keys?     A. Foreign key field â€“ is a field that links one table  to another tableâ€™s primary or foreign key.  11. Q. What is the main role of a primary key in a table?     A. The main role of a primary key in a data table is to maintain the internal integrity of a data table.  12. Q. Can a table have more than one foreign key defined?     A. A table can have any number of foreign keys defined. It can have only        one primary key defined.  13. Q. List all the possible values that can be stored in a BOOLEAN data field.      A. There are only two values that can be stored in a BOOLEAN data field:          -1(true) and 0(false).  14  Q. What is the highest value that can be stored in a BYTE data field?     A. The highest value that can be stored in a BYTE field is 255. or from -128        to 127. Byte is a set of Bits that represent a single character.         Usually there are 8 Bits in a Byte, sometimes more, depending on how         the measurement is being made. Each Char requires one byte of memory         and can have a value from 0 to 255 (or 0 to 11111111 in binary).  15.  Q. How many places to the right of the decimal can be stored in a          CURRENCY data field?      A. The CURRENCY data type can store up to four places to the right of the         decimal. Any data beyond the fourth place will be truncated by Visual         Basic without reporting an error.  16.  Q. What is a stored procedure?      A. A procedure is a group of PL/SQL statements that can be called by          a name. Procedures do not return values they perform tasks.  17.  Q. Describe how NULLs work in SQL?      A. The NULL is how SQL handles missing values.        Arifthmetic operation with NULL in SQL will return a NULL.  18.  Q. What is Normalization?      A. The process of table design is called normalization.  19.   Q. What is referential integrity constraints?       A. Referential integrity constraints are rules        that are partnof the table in a database schema.  20.    Q. What is Trigger?        A. Trigger will execute a block of procedural code        against the database when a table event occurs.        A2. A trigger defines a set of actions that are performed in response        to an insert, update, or delete operation on a specified table. When          such an  SQL operation is executed, in this case the trigger has been         activated.  21.    Q. Which of the following WHERE clauses will return only rows  that have a NULL in the PerDiemExpenses column? A. WHERE PerDiemExpenses &amp;lt;&amp;gt;  B. WHERE PerDiemExpenses IS NULL C. WHERE PerDiemExpenses = NULL D. WHERE PerDiemExpenses NOT IN (*)         A. B is correct ï¿½ When searching for a NULL value in a column, you must  use the  keyword IS. No quotes are required around the keyword NULL.   22.   Q. You issue the following query:SELECT FirstName FROM StaffListWHERE FirstName LIKE&#39;_A%&#39;Which names would be  returned by this query? Choose all that apply. A. Allen B. CLARK C. JACKSON D. David        A. C is correct ï¿½ Two wildcards are used with the LIKE operator.  The underscore (_) stands for any one character of any  case, and the percent sign (%) stands for any number of  characters of any case including none. Because this string  starts with an underscore rather than a percent sign, it won&#39;t  return Allen or Clark because they represent zero and two  characters before the &quot;A&quot;. If the LIKE string had been &quot;%A%&quot;,  both of these values would have been returned.  David was not returned because all non-wild card characters  are case sensitive. Therefore, only strings  with an uppercase &quot;A&quot; as their second letter are returned   23.   Q. Write a SQL SELECT query that only returns each city only once from Students table? Do you need to order this list with an ORDER BY clause?          A. SELECT DISTINCT City FROM Students;  The Distinct keyword automatically sorts all data  in ascending order. However, if you want the data  sorted in descending order, you have to use an ORDER BY clause  24.    Q. Write a SQL SELECT sample of the concatenation operator.         A.  SELECT LastName ||&#39;,&#39; || FirstName, City FROM Students;  25.    Q. How to rename column in the SQL SELECT query?         A.  SELECT LastName ||&#39;,&#39; || FirstName            AS &quot;Student Name&quot;, City AS &quot;Home City&quot;             &quot;FROM StudentsORDER BY &quot;Student Name&quot;    &lt;hr /&gt;
&lt;ins style=&quot;border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; display: inline-table; height: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative; visibility: visible; width: 728px;&quot;&gt;&lt;ins id=&quot;aswift_1_anchor&quot; style=&quot;border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; display: block; height: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative; visibility: visible; width: 728px;&quot;&gt;&lt;/ins&gt;&lt;br /&gt;
&lt;iframe allowtransparency=&quot;true&quot; frameborder=&quot;0&quot; height=&quot;15&quot; hspace=&quot;0&quot; id=&quot;aswift_1&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; name=&quot;aswift_1&quot; scrolling=&quot;no&quot; style=&quot;left: 0px; position: absolute; top: 0px;&quot; vspace=&quot;0&quot; width=&quot;728&quot;&gt;&lt;/iframe&gt;&lt;/ins&gt;  &lt;hr /&gt;
26.   Q. Write SQL SELECT example how you limiting the rows returned with a WHERE clause.        A. SELECT InstructorID, Salary FROM Instructors  WHERE Salary &amp;gt; 5400 AND Salary &amp;lt; 6600;  27.   Q. Write SQL SELECT query that returns the first and  last name of each instructor, the Salary,  and gives each of them a number.          A. SELECT FirstName, LastName, Salary,  ROWNUM FROM Instructors;   28.    Q. Which of the following functions can be used only with numeric values?  (Choose all that apply.) A. AVG B. MIN C. LENGTH D. SUM E. ROUND         A. A and D ï¿½ Only A and D are correct. The MIN function  works with any character, numeric, or date datatype.  The LENGTH function is a character function that returns  the number of letters in a character value. The ROUND  function works with both numeric and date values.  29. Q.  Which function do you use to remove all padded characters  to the right of a character value in a column with a char datatype? A. RTRIM B. RPAD C. TRIM       A.  C ï¿½ The TRIM function is used to remove padded spaces.  LTRIM and RTRIM functions were included in earlier versions  of Oracle, but Oracle 8i has replaced them with a single  TRIM function   30.  Q. Which statement do you use to eliminate padded spaces  between the month and day values in a function TO_CHAR(SYSDATE,&#39;Month, DD, YYYY&#39;) ?       A. To remove padded spaces, you use the &quot;fm&quot;  prefix before the date element that contains the spaces.      TO_CHAR(SYSDATE,&#39;fmMonth DD, YYYY&#39;)   31. Q. Is the WHERE clause must appear always before the GROUP BY clause in SQL SELECT ?      A. Yes. The proper order for SQL SELECT  clauses is: SELECT, FROM, WHERE, GROUP BY, HAVING, ORDER BY.  Only the SELECT and FROM clause are mandatory.  32. Q. How Oracle executes a statement with nested subqueries?      A. When Oracle executes a statement with nested subqueries, it always executes the innermost query first. This query passes its  results to the next query and so on until it reaches the outermost query.  It is the outermost query that returns a result set.  33. Q. Which operator do you use to return all of the rows  from one query except rows are returned in a second query?      A. You use the MINUS operator to return all rows from one query except  where duplicate rows are found in a second query. The UNION operator  returns all rows from both queries minus duplicates. The UNION ALL operator  returns all rows from both queries including duplicates.  The INTERSECT operator returns only those rows that exist in both queries.   34. Q. How you will create a column alias? (Oracle 8i)      A. The AS keyword is optional when specifying a column alias.  You must enclose the column alias in double quotes when the alias  contains a space or lowercase letters. If you specify an alias in l owercase letters without double quotes, the alias will appear in uppercase.  35  Q. Which of the following statements are Data Manipulation Language commands? A. INSERT B. UPDATE C. GRANT D. TRUNCATE E. CREATE       A.  A and B ï¿½ The INSERT and UPDATE statements are  Data Manipulation Language (DML) commands.  GRANT is a Data Control Language (DCL) command.  TRUNCATE and CREATE are Data Definition Language (DDL) commands   36. Question. What is Oracle locking?     A. Oracle uses locking mechanisms to protect data from  being destroyed by concurrent transactions.  37. Question. What Oracle lock modes do you know?      A.  Oracle has two lock modes: shared or exclusive.  Shared locks are set on database resources so that many transactions  can access the resource.  Exclusive locks are set on resources that ensure  one transaction has exclusive access to the database resource  38.  Question. What is query optimization?      A.  Query optimization is the part of the query  process in which the database system compares  different query strategies and chooses the one with  the least expected cost  39.  Question. What are the main components of Database management systems software.      A. The database management system software includes  components for storage management, concurrency control, transaction  processing, database manipulation interface, database definition interface, and database control interface.   40.  Question. What are the main attributes of  database management system?      A. A database management system is composed of five elements: computer hardware, software, data, people (users), and operations procedures.  41.  Question. What is transaction?       A. A transaction is a collection of applications  code and database manipulation code bound into an indivisible unit of execution. it consists from: BEGIN-TRANSACTION Name Code END TRANSACTION Name  42.  Question.  What databases do you know? Informix   DB2   SQL   Oracle    43.  Question. Explain SQL SELECT example:       select j.FILE_NUM    from DB_name.job j, DB_name.address a where j.JOB_TYPE =&#39;C&#39;    AND j.COMPANY_NAME = &#39;TEST6&#39;    AND j.OFFICE_ID = &#39;101&#39;   AND j.ACTIVE_IND = &#39;Y&#39;    AND a.ADDRESS_STATUS_ID = &#39;H&#39;   AND a.OFFICE_ID = &#39;101&#39;   AND a.FILE_NUM = j.FILE_NUM order by j.FILE_NUM;      Answer: j and a aliases for table names. this is outer joint select statament from two tables.   44.  Q. Describe some Conversion Functions that you know        A. TO_CHAR converts a number / date to a string.          TO_DATE converts a string (representing a date) to a date.           TO_NUMBER converts a character string containing digits to a numeric data type, it accepts one parameter which is a column value or a string literal   45.   Q.  Describe some Group Functions that you know   A. 1) The COUNT function tells you how many rows were in the result set.       SELECT COUNT(*) FROM TESTING.QA        2) The AVG function tells you the average value of a numeric column.        SELECT MAX(SALARY) FROM TESTING.QA       3) The MAX and MIN functions tell you the maximum and minimum value of a numeric column.        SELECT MIN(SALARY) FROM TESTING.QA          4) The SUM function tells you the sum value of a numeric column.         SELECT SUM(SALARY) FROM TESTING.QA   46. Question. What does DML stand for?        A. DML is Data Manipulation Language statements. (SELECT)  47. Question. What does DDL stand for?     A. DDL is Data Definition Language statements. (CREATE)  48.  Question. What does DCL stand for?       A. DCL is Data Control Language statements. (COMMIT)  49.  Question: Describe SQL comments.       A. SQL comments are introduced by two consecutive hyphens      (--) and ended by the end of the line.  50.   Q. In what sequence SQL statement are processed?         A. The clauses of the subselect are processed in the following sequence (DB2): 1. FROM clause 2. WHERE clause 3. GROUP BY clause 4. HAVING clause 5. SELECT clause 6. ORDER BY clause 7. FETCH FIRST clause   51.    Q. Describe TO_DATE function.         A. The TO_DATE function returns a timestamp from a character string  that has been interpreted using a character template. TO_DATE is a synonym for TIMESTAMP_FORMAT.  52.    Question:  In the domain table we have status as a numeric value from 01 to 04 and we  have text definition of these values in the design document.  Write SQL query to see the result as a text definitions that is corresponded  to these values. (DB2)       A. select TB1.member_id, TB1.bu_id, TB1.program,  TB2.num,   case TB1.status   when &#39;01&#39; then &#39;Auto renew&#39;   when &#39;02&#39; then &#39;Expired&#39;   when &#39;03&#39; then &#39;Sold&#39;   when &#39;04&#39; then ‘Terminated’     else TB_name.status  end          from DB_name.TB_name1  TB1,  DB_name.TB_name2 TB2         where         TB1.program in (&#39;com&#39;, &#39;org&#39;)         and TB1.member_role  = &#39;100&#39;         order by  TB1.member_id         fetch first 30 rows only  53. Question: What&#39;s the logical difference, if any, between the following SQL expressions?  SELECT COUNT ( * ) FROM T  SELECT SUM ( 1 ) FROM T    A. They&#39;re the same unless table T is empty, in which case the first yields  a one-column, one-row table containing a zero and the second yields a one-column,  one-row table &quot;containing a null.&quot;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;display: inline !important;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #444444; font-family: &#39;Lucida Grande&#39;, sans-serif; font-weight: normal; line-height: 19px; white-space: normal;&quot;&gt;&lt;div style=&quot;display: inline !important; text-align: justify;&quot;&gt;
&lt;strong&gt;Simple SQL Interview Questions and Answers&lt;/strong&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;a href=&quot;http://testinginterviewquestionsandanswers.com/simple-sql-interview-questions.html&quot;&gt;http://testinginterviewquestionsandanswers.com/simple-sql-interview-questions.html&lt;/a&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #444444; font-family: &#39;Lucida Grande&#39;, sans-serif; font-weight: normal; line-height: 19px; white-space: normal;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;strong&gt;1.&amp;nbsp;&lt;/strong&gt;&lt;strong&gt;Explain how a “where” clause differs from a “having” clause?&lt;/strong&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The “where” is used as a command for restricting data from a database but a “having” clause is used as a command for filtering. For example, a “where” clause may be used to retrieve results and a “have” clause may be used to filter the results of the retrieved data.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
2.&amp;nbsp;&lt;strong&gt;How can you speed up table reads for a database?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
In order to tune the database one should do the following:&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
a) Check for proper index use&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
b) Check for correct location of database objects across multiple files, table spaces, etc.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
c) Create a particular area with a special data type (such as a table space) to place some of the data&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;strong&gt;3.&amp;nbsp;&lt;/strong&gt;&lt;strong&gt;Explain database replication.&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Database replication is the practice of moving or copying data from one database to another. There are three types of replication supported by SQL Server: merge, snapshot, and transactional.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
4.&amp;nbsp;&lt;strong&gt;Name a few trade-offs for using indexes&lt;/strong&gt;?&lt;/div&gt;
&lt;ul style=&quot;text-align: justify;&quot;&gt;
&lt;li&gt;Allows faster selection, but updates are slower because both the table and the index must be updated.&lt;/li&gt;
&lt;li&gt;Indexes require additional storage space.&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;strong&gt;5.&amp;nbsp;&lt;/strong&gt;&lt;strong&gt;What is the size limit for a row?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
A row can be a maximum of 8060 bytes.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;strong&gt;6.&amp;nbsp;&lt;/strong&gt;&lt;strong&gt;Explain how a “join” command is used.&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
A “join” command is used to logically connect two or more tables.&amp;nbsp; This can be done either with or without a common field.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;strong&gt;7.&amp;nbsp;&lt;/strong&gt;&lt;strong&gt;What are user-defined data types and give an example of how they can be used?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
User-defined data types provides the database with a descriptive name and format and allows the base SQL Server data types to be extended.&amp;nbsp; As an example, let’s say a database has a column named bin_num that is varchar(8) and is used in several tables. A user-defined data type called bin_num_type of varchar(8) can be created and used in all of the tables.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
8.&amp;nbsp;&lt;strong&gt;What is the difference between “normalization” and “Denormalization”?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
When data is normalizing redundant information is removed from the table and it is organized to make future changes simpler. For denormalization, redundant data is allowed to remain in the table.&amp;nbsp; Denormalization can be beneficial because reducing the number of joins used for data processing can make data manipulation and retrieval simpler and therefore and improvement in performance.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
9.&amp;nbsp;&lt;strong&gt;Describe the purpose of a constraint.&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Constraints provide a means to check tables for referential integrity. SQL Server has four types of constraints and a default:&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
DEFAULT – indicates a column default value in the event that one is not provided by an insert operation&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
NOT NULL – does not allow null values in the specified column&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
PRIMARY/UNIQUE – requires values in a specific column to be unique&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
FOREIGN KEY – checks that each value in a particular column exists in a column in a different table.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
CHECK – verifies that all stored values in particular column exist in a list that is specified.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;strong&gt;10.&amp;nbsp;&lt;/strong&gt;&lt;strong&gt;What is the difference between a primary and a unique key?&lt;/strong&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
While the primary and unique keys enforce uniqueness in their columns, a clustered index is created in the column of the primary key, and a non-clustered index is created in the column of the unique key. Also, NULL values are not allowed with a primary key but up to one is allowed with a unique key.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
11.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;strong&gt;What is a “trigger”?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Triggers are procedures that are created for a database to enforce rules of integrity. They are executed whenever an operation to modify data such as insert or delete is performed.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;strong&gt;12.&amp;nbsp;&lt;/strong&gt;&lt;strong&gt;What type of information is stored in a column that is specified with a bit data type?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The bit data type is used for Boolean data, which is either true or false, 1 or 0. SQL Server versions prior to version 6.5 only allowed the storage of 1’s or 0’s, no NULL values.&amp;nbsp; However, version 7.0 and beyond allows the storage of NULL values.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;strong&gt;13.&amp;nbsp;&lt;/strong&gt;&lt;strong&gt;Explain RAID.&lt;/strong&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
RAID is an acronym for Redundant Array of Inexpensive Disk.&amp;nbsp; RAIDs provide fault tolerance for database servers and has six (numbered 0-5) levels of different fault tolerance performance.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;strong&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;strong&gt;14.&amp;nbsp;&lt;/strong&gt;&lt;strong&gt;When does blocking occur?&lt;/strong&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Blocking occurs when an application connection holds a lock and a conflicting lock type if required for a second connection. In this case, the second connection is considered blocked by the first connection.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;strong&gt;15.&amp;nbsp;&lt;/strong&gt;&lt;strong&gt;Explain isolation levels.&lt;/strong&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Isolation levels include the following: read uncommitted, read committed (default), repeatable read, and serializable.&amp;nbsp; Isolation levels determine the extent of data isolation between simultaneous transactions.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;strong&gt;16.&amp;nbsp;&lt;/strong&gt;&lt;strong&gt;What is a deadlock?&lt;/strong&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
A deadlock is a condition where two processes have established a lock on an article of data and each tries to obtain a lock on the other process’ piece. In this case, unless one process is terminated, both processes will wait indefinitely for the data to be released. If SQL Server detects a deadlock, it will kill one of the processes.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;strong&gt;17.&amp;nbsp;&lt;/strong&gt;&lt;strong&gt;What is a live lock?&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
A live lock occurs when a request for an exclusive lock is denied over and over due to interference from shared locks that overlap. This can also occur when a read transaction dominates a page or a table and forces indefinite waiting for a write transaction.&amp;nbsp; If the SQL Server detects four denials of this type, it automatically refuses subsequent shared locks.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;strong&gt;18.&amp;nbsp;&lt;/strong&gt;&lt;strong&gt;Give a few SQL server options to move data and/or databases between servers and other databases.&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Some options are the following:&lt;/div&gt;
&lt;ul style=&quot;text-align: justify;&quot;&gt;
&lt;li&gt;Replication&lt;/li&gt;
&lt;li&gt;DTS&lt;/li&gt;
&lt;li&gt;BCP&lt;/li&gt;
&lt;li&gt;BACKUP/RESTORE command&lt;/li&gt;
&lt;li&gt;Attaching/detaching databases&lt;/li&gt;
&lt;li&gt;Log shipping&lt;/li&gt;
&lt;li&gt;SELECT…INTO&lt;/li&gt;
&lt;li&gt;INSERT…SELECT&lt;/li&gt;
&lt;li&gt;Generating data with INSERT scripts&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;strong&gt;19.&amp;nbsp;&lt;/strong&gt;&lt;strong&gt;Explain cursors and their disadvantages.&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Cursors are used for row-by-row processing of results.&amp;nbsp; There are four types of coursers: dynamic, static, keyset-driven, and forward only.&amp;nbsp; One of the disadvantages of using curser is that whenever a row from a cursor is fetched, it results in a network round-trip.&amp;nbsp; Cursors also require more temporary storage and other resources.&amp;nbsp; In addition to this, some types of cursors impose restrictions on the use of SELECT statements.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;strong&gt;20.&amp;nbsp;&lt;/strong&gt;&lt;strong&gt;What is the difference between TRUNCATE TABLE and DELETE TABLE?&lt;/strong&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The DELETE TABLE command is a little slow because it is recorded in the transaction log. &amp;nbsp;Like DELETE TABLE, the TRUNCATE TABLE command also deletes all the rows in a table, but it is a bit faster because this is not logged.&amp;nbsp; Instead, the TRUNCATE TALE command logs the de-allocation of the table data pages.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;strong&gt;21.&amp;nbsp;&lt;/strong&gt;&lt;strong&gt;What is a transaction and what are its properties?&lt;/strong&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
A transaction is considered to be a unit of work with steps in which all or none must be performed. The properties of a transaction can be defined using the acronym ACID, which stands for Atomicity, Consistency, Isolation, and Durability.&lt;/div&gt;
&lt;/span&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal; white-space: normal;&quot;&gt;&lt;b&gt;&lt;h1 align=&quot;center&quot;&gt;
SQL Interview Questions For Software Testers&lt;/h1&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;&lt;a href=&quot;http://extremesoftwaretesting.com/InterviewQuestions/SQLinterviewQuestions.html&quot;&gt;http://extremesoftwaretesting.com/InterviewQuestions/SQLinterviewQuestions.html&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: &#39;Times New Roman&#39;;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: &#39;Times New Roman&#39;;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: &#39;Times New Roman&#39;;&quot;&gt;Cool Interview&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;a href=&quot;http://www.coolinterview.com/type.asp?iType=19&quot;&gt;http://www.coolinterview.com/type.asp?iType=19&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;a href=&quot;http://www.careerride.com/Database-concepts-interview-questions.aspx&quot;&gt;http://www.careerride.com/Database-concepts-interview-questions.aspx&lt;/a&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;h3 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: normal; line-height: 15px; text-decoration: none; white-space: normal;&quot;&gt;
Test your Database skills!&lt;/h3&gt;
&lt;div style=&quot;font-family: Arial, Verdana, Helvetica, sans-serif; line-height: 15px; white-space: normal;&quot;&gt;
&lt;/div&gt;
&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; line-height: 15px; text-decoration: none; white-space: normal;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/DB-fact-tables-and-dimension-tables.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none;&quot;&gt;Define Fact tables and dimension tables.&lt;/a&gt;&lt;/h5&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Verdana, Helvetica, sans-serif; line-height: 15px; white-space: normal;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style=&quot;font-family: Arial, Verdana, Helvetica, sans-serif; line-height: 15px; white-space: normal;&quot;&gt;
&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;Fact tables are central tables in data warehousing. They contain the aggregate values that are used in business process..............&amp;nbsp;
&lt;a class=&quot;Interview-ans&quot; href=&quot;http://www.careerride.com/DB-fact-tables-and-dimension-tables.aspx&quot; style=&quot;color: #838383; font-family: Arial, Helvetica, sans-serif; font-weight: bold; text-align: left; text-decoration: none;&quot;&gt;Read answer&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h5 id=&quot;ETL&quot; style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; line-height: 15px; text-decoration: none; white-space: normal;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/DB-ETL-process.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none;&quot;&gt;Explain the ETL process in Data warehousing.&lt;/a&gt;&lt;/h5&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Verdana, Helvetica, sans-serif; line-height: 15px; white-space: normal;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;Extraction, Transformation and loading are different stages in data warehousing................
&lt;a class=&quot;Interview-ans&quot; href=&quot;http://www.careerride.com/DB-ETL-process.aspx&quot; style=&quot;color: #838383; font-family: Arial, Helvetica, sans-serif; font-weight: bold; text-align: left; text-decoration: none;&quot;&gt;Read answer&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;h5 id=&quot;mining&quot; style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; line-height: 15px; text-decoration: none; white-space: normal;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/DB-data-mining.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none;&quot;&gt;What is Data mining?&lt;/a&gt;&lt;/h5&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Verdana, Helvetica, sans-serif; line-height: 15px; white-space: normal;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;Data mining is a process of analyzing current data and summarizing the information in more useful manner..................
&lt;a class=&quot;Interview-ans&quot; href=&quot;http://www.careerride.com/DB-data-mining.aspx&quot; style=&quot;color: #838383; font-family: Arial, Helvetica, sans-serif; font-weight: bold; text-align: left; text-decoration: none;&quot;&gt;Read answer&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; line-height: 15px; text-decoration: none; white-space: normal;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/DB-indexes.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none;&quot;&gt;What are indexes?&lt;/a&gt;&lt;/h5&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Verdana, Helvetica, sans-serif; line-height: 15px; white-space: normal;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;Index can be thought as index of the book that is used for fast retrieval of information.&amp;nbsp;
Index uses one or more column index keys and pointers to the record to locate record...............&amp;nbsp;
&lt;a class=&quot;Interview-ans&quot; href=&quot;http://www.careerride.com/DB-indexes.aspx&quot; style=&quot;color: #838383; font-family: Arial, Helvetica, sans-serif; font-weight: bold; text-align: left; text-decoration: none;&quot;&gt;Read answer&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;h5 id=&quot;typesofindexes&quot; style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; line-height: 15px; text-decoration: none; white-space: normal;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/DB-types-of-indexes.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none;&quot;&gt;Explain the types of indexes?&lt;/a&gt;&lt;/h5&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Verdana, Helvetica, sans-serif; line-height: 15px; white-space: normal;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style=&quot;font-family: Arial, Verdana, Helvetica, sans-serif; line-height: 15px; white-space: normal;&quot;&gt;
&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;Clustered index
Non-clustered.....................&amp;nbsp;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;/span&gt;&amp;nbsp;
&lt;a class=&quot;Interview-ans&quot; href=&quot;http://www.careerride.com/DB-types-of-indexes.aspx&quot; style=&quot;color: #838383; font-family: Arial, Helvetica, sans-serif; font-weight: bold; text-align: left; text-decoration: none;&quot;&gt;Read answer&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; line-height: 15px; text-decoration: none; white-space: normal;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/DB-SQL.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none;&quot;&gt;Define SQL.&lt;/a&gt;&lt;/h5&gt;
&lt;div style=&quot;font-family: Arial, Verdana, Helvetica, sans-serif; line-height: 15px; white-space: normal;&quot;&gt;
SQL stands for Structured Query Language. It allows access, insert/update/delete records and retrieve data from the database...................
&lt;a class=&quot;Interview-ans&quot; href=&quot;http://www.careerride.com/DB-SQL.aspx&quot; style=&quot;color: #838383; font-family: Arial, Helvetica, sans-serif; font-weight: bold; text-align: left; text-decoration: none;&quot;&gt;Read answer&lt;/a&gt;&lt;/div&gt;
&lt;h5 id=&quot;RDBMS&quot; style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; line-height: 15px; text-decoration: none; white-space: normal;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/DB-RDBMS.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none;&quot;&gt;What is RDBMS? Explain its features.&lt;/a&gt;&lt;/h5&gt;
&lt;div style=&quot;font-family: Arial, Verdana, Helvetica, sans-serif; line-height: 15px; white-space: normal;&quot;&gt;
RDBMS stands for Relational Database Management System. It organizes data into related rows and columns...................
&lt;a class=&quot;Interview-ans&quot; href=&quot;http://www.careerride.com/DB-RDBMS.aspx&quot; style=&quot;color: #838383; font-family: Arial, Helvetica, sans-serif; font-weight: bold; text-align: left; text-decoration: none;&quot;&gt;Read answer&lt;/a&gt;&lt;/div&gt;
&lt;h5 id=&quot;Entity&quot; style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; line-height: 15px; text-decoration: none; white-space: normal;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/DB-entity-relationship-diagram.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none;&quot;&gt;What is an Entity-Relationship diagram?&lt;/a&gt;&lt;/h5&gt;
&lt;div style=&quot;font-family: Arial, Verdana, Helvetica, sans-serif; line-height: 15px; white-space: normal;&quot;&gt;
It is a graphical representation of tables with the relationship between them................
&lt;a class=&quot;Interview-ans&quot; href=&quot;http://www.careerride.com/DB-entity-relationship-diagram.aspx&quot; style=&quot;color: #838383; font-family: Arial, Helvetica, sans-serif; font-weight: bold; text-align: left; text-decoration: none;&quot;&gt;Read answer&lt;/a&gt;&lt;/div&gt;
&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; line-height: 15px; text-decoration: none; white-space: normal;&quot;&gt;
&lt;em&gt;&lt;/em&gt;&lt;/h5&gt;
&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; line-height: 15px; text-decoration: none; white-space: normal;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/DB-referential-integrity.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none;&quot;&gt;Define referential integrity.&lt;/a&gt;&lt;/h5&gt;
&lt;div style=&quot;font-family: Arial, Verdana, Helvetica, sans-serif; line-height: 15px; white-space: normal;&quot;&gt;
It is the rules that are applied when the relationships are created. It ensures integrity of data and prevents inconsitent data into the tables...............
&lt;a class=&quot;Interview-ans&quot; href=&quot;http://www.careerride.com/DB-referential-integrity.aspx&quot; style=&quot;color: #838383; font-family: Arial, Helvetica, sans-serif; font-weight: bold; text-align: left; text-decoration: none;&quot;&gt;Read answer&lt;/a&gt;&lt;/div&gt;
&lt;h5 id=&quot;Primary&quot; style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; line-height: 15px; text-decoration: none; white-space: normal;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/DB-primary-key-and-foreign-key.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none;&quot;&gt;Define Primary key and Foreign key.&lt;/a&gt;&lt;/h5&gt;
&lt;div style=&quot;font-family: Arial, Verdana, Helvetica, sans-serif; line-height: 15px; white-space: normal;&quot;&gt;
A column or combination of columns that identify a row of data in a table is Primary Key............
&lt;a class=&quot;Interview-ans&quot; href=&quot;http://www.careerride.com/DB-primary-key-and-foreign-key.aspx&quot; style=&quot;color: #838383; font-family: Arial, Helvetica, sans-serif; font-weight: bold; text-align: left; text-decoration: none;&quot;&gt;Read answer&lt;/a&gt;&lt;/div&gt;
&lt;h5 id=&quot;alternate&quot; style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; line-height: 15px; text-decoration: none; white-space: normal;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/DB-alternate-key.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none;&quot;&gt;Define alternate key.&lt;/a&gt;&lt;/h5&gt;
&lt;div style=&quot;font-family: Arial, Verdana, Helvetica, sans-serif; line-height: 15px; white-space: normal;&quot;&gt;
There can be a key apart from primary key in a table that can also be a key. This key may or may not be a unique key..............&amp;nbsp;
&lt;a class=&quot;Interview-ans&quot; href=&quot;http://www.careerride.com/DB-alternate-key.aspx&quot; style=&quot;color: #838383; font-family: Arial, Helvetica, sans-serif; font-weight: bold; text-align: left; text-decoration: none;&quot;&gt;Read answer&lt;/a&gt;&lt;/div&gt;
&lt;h4 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: normal; line-height: 15px; text-decoration: none; white-space: normal;&quot;&gt;
&lt;/h4&gt;
&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; line-height: 15px; text-decoration: none; white-space: normal;&quot;&gt;
&lt;em&gt;Database&amp;nbsp;interview questions-&amp;nbsp;April 06, 2009, 17:40 pm by&amp;nbsp;Nishant Kumar&lt;/em&gt;&lt;/h5&gt;
&lt;h4 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: normal; line-height: 15px; text-decoration: none; white-space: normal;&quot;&gt;
Delete vs. Truncate table.&lt;/h4&gt;
&lt;div style=&quot;font-family: Arial, Verdana, Helvetica, sans-serif; line-height: 15px; white-space: normal;&quot;&gt;
Delete logs the deletion of each row whereas Truncate doesn&#39;t log deleted rows in the transaction log. This makes truncate command is bit faster than Delete command.&lt;/div&gt;
&lt;div style=&quot;font-family: Arial, Verdana, Helvetica, sans-serif; line-height: 15px; white-space: normal;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: Arial, Verdana, Helvetica, sans-serif; line-height: 15px; white-space: normal;&quot;&gt;
&lt;/div&gt;
&lt;h4 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: normal; line-height: 15px; text-decoration: none; white-space: normal;&quot;&gt;
&lt;/h4&gt;
&lt;h4 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: normal; line-height: 15px; text-decoration: none; white-space: normal;&quot;&gt;
Define constraints.&lt;/h4&gt;
&lt;div style=&quot;font-family: Arial, Verdana, Helvetica, sans-serif; line-height: 15px; white-space: normal;&quot;&gt;
Constraints enforce integrity of the database. Constraints can be of following types&lt;/div&gt;
&lt;div style=&quot;font-family: Arial, Verdana, Helvetica, sans-serif; line-height: 15px; white-space: normal;&quot;&gt;
Not Null
Check
Unique
Primary key
Foreign key&lt;/div&gt;
&lt;h4 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: normal; line-height: 15px; text-decoration: none; white-space: normal;&quot;&gt;
&lt;/h4&gt;
&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; line-height: 15px; text-decoration: none; white-space: normal;&quot;&gt;
&lt;em&gt;Database&amp;nbsp;interview questions-&amp;nbsp;April 12, 2009, 14:50 pm by&amp;nbsp;Nishant Kumar&lt;/em&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h5&gt;
&lt;h4 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: normal; line-height: 15px; text-decoration: none; white-space: normal;&quot;&gt;
Define stored procedure.&lt;/h4&gt;
&lt;div style=&quot;font-family: Arial, Verdana, Helvetica, sans-serif; line-height: 15px; white-space: normal;&quot;&gt;
Stored procedure is a set of pre-compiled SQL statements, executed when it is called in the program.&lt;/div&gt;
&lt;h4 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: normal; line-height: 15px; text-decoration: none; white-space: normal;&quot;&gt;
Define Trigger.&lt;/h4&gt;
&lt;div style=&quot;font-family: Arial, Verdana, Helvetica, sans-serif; line-height: 15px; white-space: normal;&quot;&gt;
Triggers are similar to stored procedure except it is executed automatically when any operations are occurred on the table.&lt;/div&gt;
&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; line-height: 15px; text-decoration: none; white-space: normal;&quot;&gt;
&lt;strong&gt;&lt;strong&gt;&lt;a href=&quot;http://www.careerride.com/Database-concepts-interview-questions.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none;&quot; title=&quot;Database concepts Interview questions with answers Part 1&quot;&gt;Part 1&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a href=&quot;http://www.careerride.com/Database-concepts-FAQ-2.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none;&quot; title=&quot;Database Interview questions with answers Part 2&quot;&gt;Part 2&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a href=&quot;http://www.careerride.com/Database-concepts-FAQ-3.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none;&quot; title=&quot;Database Interview questions with answers Part 3&quot;&gt;Part 3&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a href=&quot;http://www.careerride.com/Database-concepts-FAQ-4.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none;&quot; title=&quot;Database Interview questions with answers Part 4&quot;&gt;Part 4&lt;/a&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/h5&gt;
&lt;div style=&quot;font-family: Arial, Verdana, Helvetica, sans-serif; line-height: 15px; white-space: normal;&quot;&gt;
&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;strong&gt;&lt;strong&gt;&lt;a href=&quot;http://www.careerride.com/Database-concepts-FAQ-2.aspx&quot; style=&quot;color: maroon; font-family: Arial, Helvetica, sans-serif; text-decoration: none;&quot;&gt;Next&lt;/a&gt;&amp;gt;&amp;gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial, Verdana, Helvetica, sans-serif; line-height: 15px; white-space: normal;&quot;&gt;
&lt;strong&gt;&lt;u&gt;Also read&lt;/u&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; line-height: 15px; text-decoration: none; white-space: normal;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/Data-warehousing-defined.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none;&quot; title=&quot;Data warehousing Interview questions What is Data warehousing?&quot;&gt;What is Data warehousing?&lt;/a&gt;&lt;/h5&gt;
&lt;div style=&quot;font-family: Arial, Verdana, Helvetica, sans-serif; line-height: 15px; white-space: normal;&quot;&gt;
&lt;strong&gt;Answer -&amp;nbsp;&lt;/strong&gt;A data warehouse can be considered as a storage area where interest specific or relevant data........&lt;/div&gt;
&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; line-height: 15px; text-decoration: none; white-space: normal;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/Data-warehousing-OLTP-OLAP.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none;&quot; title=&quot;Data warehousing Interview questions What is an OLTP system and OLAP system?&quot;&gt;What is an OLTP system and OLAP system?&lt;/a&gt;&lt;/h5&gt;
&lt;div style=&quot;font-family: Arial, Verdana, Helvetica, sans-serif; line-height: 15px; white-space: normal;&quot;&gt;
&lt;strong&gt;Answer -&amp;nbsp;&lt;/strong&gt;OLTP: Online Transaction and Processing helps and manages applications based........&lt;/div&gt;
&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; line-height: 15px; text-decoration: none; white-space: normal;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/SQL-Server-2005-Analysis-Services.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none;&quot; title=&quot;Data Warehousing SQL Server 2005 Analysis Services Interview Questions&quot;&gt;SQL Server 2005 Analysis Services Interview Questions&lt;/a&gt;&lt;/h5&gt;
&lt;div style=&quot;font-family: Arial, Verdana, Helvetica, sans-serif; line-height: 15px; white-space: normal;&quot;&gt;
What is SQL Server 2005 Analysis Services (SSAS)?
What are the new features with SQL Server 2005 Analysis Services (SSAS)?
What are SQL Server Analysis Services cubes?&amp;nbsp;
Explain the purpose of synchronization feature provided in Analysis Services 2005.
Explain the new features of SQL Server 2005 Analysis Services (SSAS). [Hint - Unified Dimensional Model, Data Source View, new aggregation functions and querying tools]....................&lt;/div&gt;
&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; line-height: 15px; text-decoration: none; white-space: normal;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/OLAP-interview-questions.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none;&quot; title=&quot;Data Warehousing OLAP interview questions&quot;&gt;OLAP interview questions&lt;/a&gt;&lt;/h5&gt;
&lt;div style=&quot;font-family: Arial, Verdana, Helvetica, sans-serif; line-height: 15px; white-space: normal;&quot;&gt;
Explain the concepts and capabilities of OLAP.
Explain the functionality of OLAP.
What are MOLAP and ROLAP?
Explain the role of bitmap indexes to solve aggregation problems.
Explain the encoding technique used in bitmaps indexes.
What is Binning?
What is candidate check?..................&lt;/div&gt;
&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; line-height: 15px; text-decoration: none; white-space: normal;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/SQL-Server-Truncate-Delete.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none;&quot; title=&quot;SQL Server-Truncate and Delete&quot;&gt;Define Truncate and Delete commands.&lt;/a&gt;&lt;/h5&gt;
&lt;div style=&quot;font-family: Arial, Verdana, Helvetica, sans-serif; line-height: 15px; white-space: normal;&quot;&gt;
&lt;strong&gt;Answer -&amp;nbsp;&lt;/strong&gt;Truncate command is used to remove all rows of the column.The removed records are not recorded in the transaction log......&lt;/div&gt;
&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; line-height: 15px; text-decoration: none; white-space: normal;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/SQL-Server-Primary-Unique.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none;&quot; title=&quot;SQL Server Primary and Unique Key&quot;&gt;Define Primary and Unique key.&lt;/a&gt;&lt;/h5&gt;
&lt;div style=&quot;font-family: Arial, Verdana, Helvetica, sans-serif; line-height: 15px; white-space: normal;&quot;&gt;
&lt;strong&gt;Answer -&amp;nbsp;&lt;/strong&gt;The column or columns of the table whose value uniquely identifies each row in the table is called primary key. You can define column as primary key using primary key constraint while you create table.....&lt;/div&gt;
&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; line-height: 15px; text-decoration: none; white-space: normal;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/SQL-Server-index-Clustered.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none;&quot; title=&quot;SQL Server-Clustered and Non-clustered&quot;&gt;What is index? Define its types.&lt;/a&gt;&lt;/h5&gt;
&lt;div style=&quot;font-family: Arial, Verdana, Helvetica, sans-serif; line-height: 15px; white-space: normal;&quot;&gt;
&lt;strong&gt;Answer -&amp;nbsp;&lt;/strong&gt;Index can be thought as index of the book that is used for fast retrieval of information. Index uses one or more column index keys and pointers to the record to locate record.........&lt;/div&gt;
&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; line-height: 15px; text-decoration: none; white-space: normal;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/SQL-Server-Normalization-Denormalization.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none;&quot; title=&quot;SQL Server-Normalization and Denormalization&quot;&gt;Define Normalization and De- Normalization.&lt;/a&gt;&lt;/h5&gt;
&lt;div style=&quot;font-family: Arial, Verdana, Helvetica, sans-serif; line-height: 15px; white-space: normal;&quot;&gt;
&lt;strong&gt;Answer -&amp;nbsp;&lt;/strong&gt;It is the process of organizing data into related table. To normalize database, we divide database into tables.....&lt;/div&gt;
&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; line-height: 15px; text-decoration: none; white-space: normal;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/SQL-Server-transact-SQL-DDL-DCL-DML.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none;&quot; title=&quot;SQL Server-Transact-SQL(DDL,DCL,DML)&quot;&gt;What is transact-SQL? Describe its types?&lt;/a&gt;&lt;/h5&gt;
&lt;div style=&quot;font-family: Arial, Verdana, Helvetica, sans-serif; line-height: 15px; white-space: normal;&quot;&gt;
&lt;strong&gt;Answer -&amp;nbsp;&lt;/strong&gt;SQL Server Provides three types of Transact-SQL statements namely DDL, DCL, and DML&lt;/div&gt;
&lt;div style=&quot;font-family: Arial, Verdana, Helvetica, sans-serif; line-height: 15px; white-space: normal;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: Arial, Verdana, Helvetica, sans-serif; line-height: 15px; white-space: normal;&quot;&gt;
&lt;/div&gt;
&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; text-decoration: none; z-index: 0;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/DB-SQL-defined.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none; z-index: 0;&quot;&gt;Define SQL.&lt;/a&gt;&lt;/h5&gt;
&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;Structured query language, SQL is an ANSI standard language that provides commands to access and update databases.............&amp;nbsp;&amp;nbsp;&lt;/span&gt;
&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; text-decoration: none; z-index: 0;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/DB-DBMS-and-RDBMS.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none; z-index: 0;&quot;&gt;Explain the difference between DBMS and RDBMS.&lt;/a&gt;&lt;/h5&gt;
&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;DBMS offers organized way of storing, managing and retrieving information..........&lt;/span&gt;&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; text-decoration: none; z-index: 0;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/DB-E-R-diagrams.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none; z-index: 0;&quot;&gt;What are E-R diagrams?&lt;/a&gt;&lt;/h5&gt;
&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;E-R diagrams, i.e. Entity-Relationship diagram represent relationship between various tables in the database..............&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; text-decoration: none; z-index: 0;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/DB-types-of-relationships.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none; z-index: 0;&quot;&gt;Explain the types of relationships in database.&lt;/a&gt;&lt;/h5&gt;
&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;One-to-one
One to one is implemented using single table by establishing relationship between same type of columns in a table...............&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; text-decoration: none; z-index: 0;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/DB-benifits-of-normalizing-database.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none; z-index: 0;&quot;&gt;What are the benifits of normalizing database?&lt;/a&gt;&lt;/h5&gt;
&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;It helps to avoid duplicate entries.
It allows saving storage space....................&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; text-decoration: none; z-index: 0;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/DB-normalization.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none; z-index: 0;&quot;&gt;What is normalization?&lt;/a&gt;&lt;/h5&gt;
&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;It is the process of organizing data into related table.&amp;nbsp;
To normalize database, we divide database into tables and establish relationships between the tables............&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; text-decoration: none; z-index: 0;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/DB-denormalization.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none; z-index: 0;&quot;&gt;What is denormalization?&lt;/a&gt;&lt;/h5&gt;
&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;The process of adding redundant data to get rid of complex join, in order to optimize database performance. This is done to speed up database access by moving from higher to lower form of normalization.................&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; text-decoration: none; z-index: 0;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/DB-DML-and-DDL-statements.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none; z-index: 0;&quot;&gt;Explain DML and DDL statements.&lt;/a&gt;&lt;/h5&gt;
&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;Data definition language is used to define and manage all attributes and properties of a database..................&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;/span&gt;
&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; text-decoration: none;&quot;&gt;
&lt;strong&gt;&lt;strong&gt;&lt;a href=&quot;http://www.careerride.com/Database-concepts-interview-questions.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none;&quot; title=&quot;Database concepts Interview questions with answers Part 1&quot;&gt;Part 1&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a href=&quot;http://www.careerride.com/Database-concepts-FAQ-2.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none;&quot; title=&quot;Database Interview questions with answers Part 2&quot;&gt;Part 2&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a href=&quot;http://www.careerride.com/Database-concepts-FAQ-3.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none;&quot; title=&quot;Database Interview questions with answers Part 3&quot;&gt;Part 3&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a href=&quot;http://www.careerride.com/Database-concepts-FAQ-4.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none;&quot; title=&quot;Database Interview questions with answers Part 4&quot;&gt;Part 4&lt;/a&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/h5&gt;
&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; text-decoration: none;&quot;&gt;
&lt;strong&gt;&amp;lt;&amp;lt;&lt;a href=&quot;http://www.careerride.com/Database-concepts-interview-questions.aspx&quot; style=&quot;color: maroon; font-family: Arial, Helvetica, sans-serif; text-decoration: none;&quot;&gt;Previous&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href=&quot;http://www.careerride.com/Database-concepts-FAQ-3.aspx&quot; style=&quot;color: maroon; font-family: Arial, Helvetica, sans-serif; text-decoration: none;&quot;&gt;Next&lt;/a&gt;&amp;gt;&amp;gt;&lt;/strong&gt;&amp;nbsp;&amp;nbsp;&lt;/h5&gt;
&lt;strong&gt;&lt;u&gt;Also read&lt;/u&gt;&lt;/strong&gt;
&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; text-decoration: none;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/SQL-Server-database-objects.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none;&quot; title=&quot;SQL Server-Database Objects&quot;&gt;Define database objects.&lt;/a&gt;&lt;/h5&gt;
&lt;strong&gt;Answer -&amp;nbsp;&lt;/strong&gt;SQL Server database stores information in a two dimensional objects of rows and columns called table......&lt;a href=&quot;http://www.careerride.com/ASP.Net-Session-State-Management-Question.aspx#Session-State-Modes&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none;&quot;&gt;&lt;/a&gt;
&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; text-decoration: none;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/SQL-Server-entity-domain-referential.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none;&quot; title=&quot;SQL Server-Entity,Domain,Referential Integrity   &quot;&gt;Define data, entity, domain and referential integrity.&lt;/a&gt;&lt;/h5&gt;
&lt;strong&gt;Answer -&amp;nbsp;&lt;/strong&gt;Data Integrity validates the data before getting stored in the columns of the table. SQL Server supports four type of data integrity.....
&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; text-decoration: none;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/SQL-Server-optimization-tips.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none;&quot; title=&quot;SQL Server-Optimization-tips&quot;&gt;SQL Server Optimization Tips&lt;/a&gt;&lt;/h5&gt;
&lt;div class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial, Verdana, Helvetica, sans-serif; font-weight: normal; line-height: 15px;&quot;&gt;
&lt;strong&gt;Answer -&amp;nbsp;&lt;/strong&gt;Restricting query result means return of required rows instead of all rows of the table. This helps in reducing network traffic......&lt;/div&gt;
&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; text-decoration: none;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/SQL-Server-lock-types.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none;&quot; title=&quot;SQL Server-lock types&quot;&gt;What are the lock types?&lt;/a&gt;&lt;/h5&gt;
&lt;div class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial, Verdana, Helvetica, sans-serif; font-weight: normal; line-height: 15px;&quot;&gt;
&lt;strong&gt;Answer -&amp;nbsp;&lt;/strong&gt;Shared Lock allows simultaneous access of record by multiple Select statements. Shared Lock blocks record from updating and will remain in queue waiting while record is accessed for reading......&lt;/div&gt;
&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; text-decoration: none;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/SQL-Server-2005-XSLT.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none;&quot;&gt;XSLT in SQL Server 2005&lt;/a&gt;&lt;/h5&gt;
Overview of XSLT and the components that make up an XSLT style sheet.
What is XSLCompiledTransform class of the .NET Framework?
What is XSLTSetting class of the .NET Framework?


&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; text-decoration: none; z-index: 0;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/DB-union-and-union-All-operator.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none; z-index: 0;&quot;&gt;What is Union and Union All operator?&lt;/a&gt;&lt;/h5&gt;
&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;Union is used to combine distinct records from two tables. Union all combines all records from two tables..............&amp;nbsp;&lt;/span&gt;
&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; text-decoration: none; z-index: 0;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/DB-cursor.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none; z-index: 0;&quot;&gt;What is cursor?&lt;/a&gt;&lt;/h5&gt;
&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;A Cursor is a database object that represents a result set and is used to manipulate data row by row. When a cursor is opened, it is positioned on a row and that row is available for processing.............&lt;/span&gt;&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; text-decoration: none; z-index: 0;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/DB-cursor-types.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none; z-index: 0;&quot;&gt;Explain the cursor types.&lt;/a&gt;&lt;/h5&gt;
&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;DYNAMIC: It reflects changes happened on the table while scrolling through the row.
STATIC: It works on snapshot of record set and disconnects from the server...............&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; text-decoration: none; z-index: 0;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/DB-cursor-optimization-tips.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none; z-index: 0;&quot;&gt;Explain in brief the cursor optimization tips.&lt;/a&gt;&lt;/h5&gt;
&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;Close cursor when it is not required.
You shouldn’t forget to deallocate cursor after closing it................&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; text-decoration: none; z-index: 0;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/DB-sub-query.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none; z-index: 0;&quot;&gt;What is sub-query?&lt;/a&gt;&lt;/h5&gt;
&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;Sub-query is a query within a Query. Example of sub-query:&amp;nbsp;
Select CustId, Custname From Customer Where Cust_Id IN (Select Doct_Id from Doctor)...............&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; text-decoration: none; z-index: 0;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/DB-group-by-clause.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none; z-index: 0;&quot;&gt;Explain the use of group by clause.&lt;/a&gt;&lt;/h5&gt;
&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&quot;Group By&quot; is used to derive aggegate values by grouping similar data................&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; text-decoration: none; z-index: 0;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/DB-clustered-and-non-clustered-index.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none; z-index: 0;&quot;&gt;Difference between clustered and non-clustered index.&lt;/a&gt;&lt;/h5&gt;
&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;Both stored as B-tree structure. The leaf level of a clustered index is the actual data where as leaf level of a non-clustered index is pointer to data...............&lt;/span&gt;&lt;/span&gt;&amp;nbsp;


&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; text-decoration: none; z-index: 0;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/DB-aggregate-and-scalar-functions.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none; z-index: 0;&quot;&gt;Define aggregate and scalar functions.&lt;/a&gt;&lt;/h5&gt;
&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;Aggregate Functions return a single value by operating against a group of values. Scalar functions operate against a single value................&amp;nbsp;&lt;/span&gt;
&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; text-decoration: none; z-index: 0;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/DB-views.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none; z-index: 0;&quot;&gt;What are the restrictions applicable while creating views?&lt;/a&gt;&lt;/h5&gt;
&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;Views can be created referencing tables and views only in the current database.&amp;nbsp;
A view name must not be the same as any table owned by that user.
You can build views on other views and on procedures that reference views.............&lt;/span&gt;&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; text-decoration: none; z-index: 0;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/DB-correlated-subqueries.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none; z-index: 0;&quot;&gt;What is &quot;correlated subqueries&quot;?&lt;/a&gt;&lt;/h5&gt;
&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;In &quot;correlated subqueries&quot;, the result of outer query is passed to the subquery and the subquery runs for each row...............&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; text-decoration: none; z-index: 0;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/DB-data-warehousing.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none; z-index: 0;&quot;&gt;What is Data Warehousing?&lt;/a&gt;&lt;/h5&gt;
&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;Data Warehousing is a process of storing and accessing data from central location for some strategic decision................&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;h5 style=&quot;color: #484848; font-family: Arial, Helvetica, sans-serif; font-weight: bold; text-decoration: none; z-index: 0;&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/DB-join.aspx&quot; style=&quot;color: #006699; font-family: Arial, Helvetica, sans-serif; text-decoration: none; z-index: 0;&quot;&gt;What is a join and explain different types of joins.&lt;/a&gt;&lt;/h5&gt;
&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;&lt;span class=&quot;paratitle1&quot; style=&quot;color: black; font-family: Arial; font-weight: normal; line-height: 15px;&quot;&gt;Joins are used in queries to explain how different tables are related.
Joins also let you select data from a table depending upon data from another table...&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;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;a href=&quot;http://www.brentozar.com/archive/2009/06/top-10-developer-interview-questions-about-sql-server/&quot;&gt;http://www.brentozar.com/archive/2009/06/top-10-developer-interview-questions-about-sql-server/&lt;/a&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;h1 class=&quot;entry-title&quot; style=&quot;clear: both; color: #333333; font-family: helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0px; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none; text-transform: none; white-space: normal;&quot;&gt;
Top 10 Developer Interview Questions About SQL Server&lt;/h1&gt;
&lt;div class=&quot;meta-below-title entry-meta clearfix clearfix-title&quot; style=&quot;clear: both; color: #888888; display: block; font-family: helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0px; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 3px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none; text-transform: none; white-space: normal;&quot;&gt;
&lt;div class=&quot;left&quot; style=&quot;float: left; 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;
Written on&amp;nbsp;&lt;span class=&quot;entry-date published&quot;&gt;June 18, 2009&lt;/span&gt;&amp;nbsp;by&amp;nbsp;&lt;a class=&quot;author-link fn nickname url&quot; href=&quot;http://www.brentozar.com/archive/author/BrentO/&quot; style=&quot;color: #888888; font-style: normal; font-weight: normal; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: underline;&quot; title=&quot;View all posts by Brent Ozar&quot;&gt;Brent Ozar&lt;/a&gt;&amp;nbsp;in&amp;nbsp;&lt;a href=&quot;http://www.brentozar.com/archive/category/computers/sql-server/&quot; rel=&quot;category tag&quot; style=&quot;color: #888888; font-style: normal; font-weight: normal; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: underline;&quot; title=&quot;View all posts in SQL Server&quot;&gt;SQL Server&lt;/a&gt;,&amp;nbsp;&lt;a href=&quot;http://www.brentozar.com/archive/category/computers/sqlserverpedia-computers-2/&quot; rel=&quot;category tag&quot; style=&quot;color: #888888; font-style: normal; font-weight: normal; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: underline;&quot; title=&quot;View all posts in SQLServerPedia Syndication&quot;&gt;SQLServerPedia Syndication&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;entry-content&quot; style=&quot;clear: both; color: #5c5c5c; font-family: helvetica, sans-serif; line-height: 22px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; white-space: normal;&quot;&gt;
Knowing good SQL questions to ask during an interview with a developer can help you filter out the best candidates from the ones who aren’t the most qualified.&amp;nbsp; There’s a huge difference between “It worked on my machine” and “It scales well in production.”&amp;nbsp; These interview questions will help you filter out the bad apples before you hire them.


&lt;br /&gt;
&lt;h3 style=&quot;color: #333333; font-family: helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0px; line-height: 18px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none; text-transform: none;&quot;&gt;
10. Explain why DBAs don’t like cursors.&lt;/h3&gt;
I like to phrase this interview question this way because I’m not saying the DBA is right – I’m just asking the developer to explain the DBA’s point of view.&amp;nbsp; I don’t have a problem with the developer rolling their eyes as they explain the answer, but I have a problem with the developer being surprised by the question.
The candidate gets bonus points if they seem even vaguely aware of the terms “set-based processing” and “row-based processing”, but that’s purely a bonus.&amp;nbsp; (I wish I could say that these concepts are requirements, but in today’s economic market, companies don’t always want to pay top dollar to get the best candidates.)


&lt;br /&gt;
&lt;h3 style=&quot;color: #333333; font-family: helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0px; line-height: 18px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none; text-transform: none;&quot;&gt;
9. Where do you like business logic – in the app or in the database? Why?&lt;/h3&gt;
Personally, I like stored procedures because they’re easier for us DBAs to test, tune and tweak. On the other hand, the developer community isn’t always as fond of stored procs.&amp;nbsp; For their side, see these posts by Jeff Atwood:


&lt;br /&gt;
&lt;ul style=&quot;list-style-image: initial; list-style-position: initial; list-style-type: disc; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 20px; padding-bottom: 0px; padding-left: 35px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;li style=&quot;list-style-image: initial; list-style-position: initial; list-style-type: disc; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;a href=&quot;http://www.codinghorror.com/blog/archives/000117.html&quot; style=&quot;color: #333333; font-style: normal; font-weight: normal; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: underline;&quot;&gt;Who Needs Stored Procedures, Anyway?&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;list-style-image: initial; list-style-position: initial; list-style-type: disc; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;a href=&quot;http://www.codinghorror.com/blog/archives/000292.html&quot; style=&quot;color: #333333; font-style: normal; font-weight: normal; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: underline;&quot;&gt;Stored Procedures vs Ad-Hoc SQL&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;list-style-image: initial; list-style-position: initial; list-style-type: disc; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;a href=&quot;http://www.codinghorror.com/blog/archives/000156.html&quot; style=&quot;color: #333333; font-style: normal; font-weight: normal; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: underline;&quot;&gt;My Database is a Web Service&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
I don’t mind what arguments the coder candidate uses, but I want to see ‘em put some thought into it.&amp;nbsp; No matter which angle they take, I’ll play the devil’s advocate and prod them with arguments just to see how they react.


&lt;br /&gt;
&lt;h3 style=&quot;color: #333333; font-family: helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0px; line-height: 18px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none; text-transform: none;&quot;&gt;
8. Explain when and how transactions should be used.&lt;/h3&gt;
&lt;div class=&quot;wp-caption alignright&quot; id=&quot;attachment_4176&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #fcfcfc; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(238, 238, 238); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(238, 238, 238); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(238, 238, 238); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(238, 238, 238); border-top-style: solid; border-top-width: 1px; float: right; margin-bottom: 15px; margin-left: 7px; margin-right: 0px; margin-top: 15px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; width: 116px;&quot;&gt;
&lt;a href=&quot;http://www.amazon.com/gp/product/0806528680?ie=UTF8&amp;amp;tag=brozsqseex-20&amp;amp;linkCode=as2&amp;amp;camp=1789&amp;amp;creative=390957&amp;amp;creativeASIN=0806528680&quot; style=&quot;color: #333333; font-style: normal; font-weight: normal; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: underline;&quot;&gt;&lt;img alt=&quot;Not In The Oprah Book Club, Oddly&quot; class=&quot;size-full wp-image-4176&quot; height=&quot;160&quot; src=&quot;http://cached.brentozar.com/wp-content/uploads/2009/06/eat-what-you-want-and-die-like-a-man.jpg&quot; style=&quot;border-bottom-color: rgb(221, 221, 221); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial; border-color: initial; border-left-color: rgb(221, 221, 221); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(221, 221, 221); border-right-style: solid; border-right-width: 1px; border-style: initial; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-top-width: 1px; border-width: initial; display: block; margin-bottom: 0px; margin-left: auto; margin-right: auto; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; title=&quot;eat-what-you-want-and-die-like-a-man&quot; width=&quot;106&quot; /&gt;&lt;/a&gt;

&lt;br /&gt;
&lt;div class=&quot;wp-caption-text&quot; style=&quot;color: #555555; font-style: italic; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 5px; text-align: center;&quot;&gt;
Not In The Oprah Book Club, Oddly&lt;/div&gt;
&lt;/div&gt;
Start with just that open-ended interview question, and if they have trouble getting started, give them a scenario.
“Say we’ve got a table for Orders, and a table for OrderDetails.&amp;nbsp; Someone places an order for two books –&amp;nbsp;&lt;a href=&quot;http://www.amazon.com/gp/product/0061704288?ie=UTF8&amp;amp;tag=brozsqseex-20&amp;amp;linkCode=as2&amp;amp;camp=1789&amp;amp;creative=390957&amp;amp;creativeASIN=0061704288&quot; style=&quot;color: #333333; font-style: normal; font-weight: normal; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: underline;&quot;&gt;Bacon: A Love Story&lt;/a&gt;&amp;nbsp;and the hit bestseller&amp;nbsp;&lt;a href=&quot;http://www.amazon.com/gp/product/0806528680?ie=UTF8&amp;amp;tag=brozsqseex-20&amp;amp;linkCode=as2&amp;amp;camp=1789&amp;amp;creative=390957&amp;amp;creativeASIN=0806528680&quot; style=&quot;color: #333333; font-style: normal; font-weight: normal; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: underline;&quot;&gt;Eat What You Want and Die Like A Man&lt;/a&gt;.&amp;nbsp; Tell me what happens.”
After they’ve answered, ask them when transactions should not be used.&amp;nbsp; I don’t want my developers wrapping anything inside a transaction unless it absolutely needs to be.&amp;nbsp; (Unlike bacon, which should be used as often as possible for wrapping purposes.)


&lt;br /&gt;
&lt;h3 style=&quot;color: #333333; font-family: helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0px; line-height: 18px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none; text-transform: none;&quot;&gt;
7. Explain referential integrity and where it can be enforced.&lt;/h3&gt;
If they stumble on the question, circle back to the Orders and OrderDetails tables we used as examples earlier.&amp;nbsp; What’s an orphan?&amp;nbsp; How do we make sure that we don’t end up with OrderDetails for records with no matching Order record?&amp;nbsp; Where are all the places we could enforce referential integrity?&amp;nbsp; (Think foreign keys, triggers, the application, or not at all.)&amp;nbsp; Have you worked in places where there was no referential integrity, and what problems did you run into?


&lt;br /&gt;
&lt;h3 style=&quot;color: #333333; font-family: helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0px; line-height: 18px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none; text-transform: none;&quot;&gt;
6. What’s the fastest way to get a thousand records into the database?&lt;/h3&gt;
I’m not looking for the best answers – I’m just looking to hear that they’ve done some work to performance tune their queries.&amp;nbsp; If they’re doing fully logged individual record inserts, one at a time, into a data warehouse-size system, we’re going to have problems down the road.&amp;nbsp; (Yes, I’ve actually worked with a BI developer that did millions of individual inserts per night in full recovery mode and thought the performance was the database’s fault.)
Bonus points if they link back to the previous interview question and talk about whether or not they should disable constraints or referential integrity during data loads.&amp;nbsp; (I don’t care what their final answer is, but I just want them to know the pros and cons.)


&lt;br /&gt;
&lt;h3 style=&quot;color: #333333; font-family: helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0px; line-height: 18px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none; text-transform: none;&quot;&gt;
5. What’s the difference between a primary key and a clustered index?&lt;/h3&gt;
This is almost a bonus question.&amp;nbsp; Most of the time, the candidate doesn’t know because it’s a function of the data modeler or architect, not the developer.&amp;nbsp; However, I want to see how the candidate reacts to tough questions.&amp;nbsp; Ideally, they say in a relaxed tone of voice, “I’m not sure, but I know who I’d ask.”&amp;nbsp; If they don’t mention where they’d go, ask them where they go for SQL Server answers.&amp;nbsp; Speaking of which…


&lt;br /&gt;
&lt;div class=&quot;wp-caption alignright&quot; id=&quot;attachment_4181&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #fcfcfc; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(238, 238, 238); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(238, 238, 238); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(238, 238, 238); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(238, 238, 238); border-top-style: solid; border-top-width: 1px; float: right; margin-bottom: 15px; margin-left: 7px; margin-right: 0px; margin-top: 15px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; width: 179px;&quot;&gt;
&lt;a href=&quot;http://www.zazzle.com/stackoverflow_good_answer_badge_shirt-235296636487991987?rf=238681336716227462&quot; style=&quot;color: #333333; font-style: normal; font-weight: normal; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: underline;&quot;&gt;&lt;img alt=&quot;Bonus Points for This Candidate&quot; class=&quot;size-full wp-image-4181&quot; height=&quot;151&quot; src=&quot;http://cached.brentozar.com/wp-content/uploads/2009/06/stackoverflow-shirt-good-answer.jpg&quot; style=&quot;border-bottom-color: rgb(221, 221, 221); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial; border-color: initial; border-left-color: rgb(221, 221, 221); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(221, 221, 221); border-right-style: solid; border-right-width: 1px; border-style: initial; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-top-width: 1px; border-width: initial; display: block; margin-bottom: 0px; margin-left: auto; margin-right: auto; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; title=&quot;stackoverflow-shirt-good-answer&quot; width=&quot;169&quot; /&gt;&lt;/a&gt;

&lt;br /&gt;
&lt;div class=&quot;wp-caption-text&quot; style=&quot;color: #555555; font-style: italic; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 5px; text-align: center;&quot;&gt;
Bonus Points for This Candidate&lt;/div&gt;
&lt;/div&gt;
&lt;h3 style=&quot;color: #333333; font-family: helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0px; line-height: 18px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none; text-transform: none;&quot;&gt;
4. What’s your&amp;nbsp;&lt;a href=&quot;http://stackoverflow.com/&quot; style=&quot;color: #333333; font-style: normal; font-weight: normal; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: underline;&quot;&gt;StackOverflow&lt;/a&gt;&amp;nbsp;name?&lt;/h3&gt;
I don’t need to see a high reputation, but I do want to see an awareness of the site.&amp;nbsp; This interview question serves two purposes: it finds out if they’re serious enough to be active in the community, and it shows them that you’re okay with their community activity.&amp;nbsp; Start a conversation with them about the level of internet time that you find acceptable in the office, and encourage them to share their knowledge with their peers.&amp;nbsp; This sells the candidate on your shop.


&lt;br /&gt;
&lt;h3 style=&quot;color: #333333; font-family: helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0px; line-height: 18px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none; text-transform: none;&quot;&gt;
3. Tell me about a time when a DBA got mad at you.&lt;/h3&gt;
This is a spin on the classic interview question, “Tell me about a time when you failed.”&amp;nbsp; Implemented a user-defined function, trigger, CLR in the database, or something else that made the DBA freak out?&amp;nbsp; I want to hear that the candidate listened to what the DBA had to say, good or bad.
If they say it’s never happened, rest assured it’s going to happen soon.


&lt;br /&gt;
&lt;h3 style=&quot;color: #333333; font-family: helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0px; line-height: 18px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none; text-transform: none;&quot;&gt;
2. How can you tell if a query will scale for production?&lt;/h3&gt;
I want to hear that they do things like load tests or maybe look at execution plans.
I’m sometimes comfortable when a senior developer says things like, “I can pretty well tell when something isn’t going to scale, because I know the production boxes really well.”&amp;nbsp; The key is asking a followup question about times when things didn’t scale.


&lt;br /&gt;
&lt;h3 style=&quot;color: #333333; font-family: helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: 0px; line-height: 18px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none; text-transform: none;&quot;&gt;
1. When is the DBA right?&lt;/h3&gt;
Always, kid.&amp;nbsp; Always.&lt;/div&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;pre style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, Arial, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 16px; white-space: normal;&quot;&gt;&lt;a href=&quot;http://ripalsoni.wordpress.com/2007/09/13/basic-interviewquestions-for-plsql/&quot;&gt;http://ripalsoni.wordpress.com/2007/09/13/basic-interviewquestions-for-plsql/&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #6f5e4e; font-family: Arial, Helvetica, sans-serif; line-height: 19px; white-space: normal;&quot;&gt;&lt;h2 class=&quot;post-title&quot; style=&quot;color: #644527; font-family: Arial, Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: -0.05em; line-height: 2em; 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-shadow: rgb(223, 223, 187) 0px 1px 4px;&quot;&gt;
&lt;a href=&quot;http://ripalsoni.wordpress.com/2007/09/13/basic-interviewquestions-for-plsql/&quot; style=&quot;color: #644527; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; title=&quot;Basic InterviewQuestions for PL/SQL&quot;&gt;Basic InterviewQuestions for&amp;nbsp;PL/SQL&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;post-date&quot; style=&quot;color: #887057; font-family: Arial, Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: bold; line-height: 1.2em; margin-bottom: 0px; margin-left: -96px; margin-right: 0px; margin-top: -30px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: absolute; text-align: right; width: 80px;&quot;&gt;
September 13, 2007&lt;/div&gt;
&lt;div class=&quot;post-data&quot; style=&quot;color: #b09473; font-family: Arial, Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: bold; line-height: 1.3em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span class=&quot;postauthor&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://s2.wp.com/wp-content/themes/pub/notepad/img/postdata-icons.png); background-origin: initial; background-position: 0px -512px; background-repeat: no-repeat no-repeat; margin-bottom: 0px; margin-left: 0px; margin-right: 12px; margin-top: 0px; padding-bottom: 3px; padding-left: 19px; padding-right: 0px; padding-top: 0px;&quot;&gt;ripalmsoni &lt;/span&gt;&lt;span class=&quot;postcategory&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://s2.wp.com/wp-content/themes/pub/notepad/img/postdata-icons.png); background-origin: initial; background-repeat: no-repeat no-repeat; margin-bottom: 0px; margin-left: 0px; margin-right: 12px; margin-top: 0px; padding-bottom: 3px; padding-left: 19px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;a href=&quot;http://en.wordpress.com/tag/sql-server-plsql-oracle/&quot; rel=&quot;category tag&quot; style=&quot;color: #b09473; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 4px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; title=&quot;View all posts in SQL SERVER-PL/SQL - ORACLE&quot;&gt;SQL SERVER-PL/SQL - ORACLE&lt;/a&gt; &lt;/span&gt;&lt;span class=&quot;postcomment&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://s2.wp.com/wp-content/themes/pub/notepad/img/postdata-icons.png); background-origin: initial; background-position: 0px -172px; background-repeat: no-repeat no-repeat; margin-bottom: 0px; margin-left: 0px; margin-right: 12px; margin-top: 0px; padding-bottom: 3px; padding-left: 19px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;a href=&quot;http://ripalsoni.wordpress.com/2007/09/13/basic-interviewquestions-for-plsql/#comments&quot; style=&quot;color: #b09473; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 4px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot; title=&quot;Comment on Basic InterviewQuestions for PL/SQL&quot;&gt;13 Comments&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;post-content&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;&gt;
&lt;div style=&quot;margin-bottom: 1em; 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;&lt;span style=&quot;color: #333333; font-family: Arial; 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. What is PL/SQL ?
Ans.&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;&amp;nbsp;PL/SQL is a procedural language that has both interactive SQL and procedural programming language constructs such as iteration, conditional branching.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Arial; 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;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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. What is the basic structure of PL/SQL ?
Ans.&amp;nbsp;&lt;/strong&gt;PL/SQL uses block structure as its basic structure. Anonymous blocks or nested blocks can be used in PL/SQL.&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Arial; 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;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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. What are the components of a PL/SQL block ?
Ans.&amp;nbsp;&lt;/strong&gt;A set of related declarations and procedural statements is called block.&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Arial; 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;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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. What are the components of a PL/SQL Block ?
Ans.&amp;nbsp;&lt;/strong&gt;Declarative part, Executable part and Exception part.
Datatypes PL/SQL&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Arial; 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;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;5. What are the datatypes a available in PL/SQL ?
Ans.&lt;/strong&gt;&amp;nbsp;Some scalar data types such as NUMBER, VARCHAR2, DATE, CHAR, LONG, BOOLEAN.
Some composite data types such as RECORD &amp;amp; TABLE.&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Arial; 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;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;&lt;span style=&quot;color: #333333; font-family: Arial; 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. What are % TYPE and % ROWTYPE ? What are the advantages of using these over datatypes?
Ans.&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;% TYPE provides the data type of a variable or a database column to that variable.
% ROWTYPE provides the record type that represents a entire row of a table or view or columns selected in the cursor.
The advantages are :&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;I.&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;&amp;nbsp;Need not know about variable’s data type
ii. If the database definition of a column in a table changes, the data type of a variable changes accordingly.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Arial; 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;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;span style=&quot;color: #333333; font-family: Arial; 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;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;7. What is difference between % ROWTYPE and TYPE RECORD ?
Ans.&amp;nbsp;&lt;/strong&gt;% ROWTYPE is to be used whenever query returns a entire row of a table or view.
TYPE rec RECORD is to be used whenever query returns columns of different
table or views and variables.
E.g. TYPE r_emp is RECORD (eno emp.empno% type,ename emp ename %type
);
e_rec emp% ROWTYPE
cursor c1 is select empno,deptno from emp;
e_rec c1 %ROWTYPE.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;span style=&quot;color: #333333; font-family: Arial; 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;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;span style=&quot;color: #333333; font-family: Arial; 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;8. What is PL/SQL table ?
Ans.&amp;nbsp;&lt;/strong&gt;Objects of type TABLE are called “PL/SQL tables”, which are modeled as (but not the same as) database tables, PL/SQL tables use a primary PL/SQL tables can have one column and a primary key.&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;span style=&quot;color: #333333; font-family: Arial; 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;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;span style=&quot;color: #333333; font-family: Arial; 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;9. What is a cursor ? Why Cursor is required ?
Ans.&amp;nbsp;&lt;/strong&gt;Cursor is a named private SQL area from where information can be accessed. Cursors are required to process rows individually for queries returning multiple rows.
&lt;span style=&quot;color: #333333; font-family: Arial; 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;10. Explain the two type of Cursors ?&lt;/strong&gt;There are two types of cursors, Implicit Cursor and Explicit Cursor.
PL/SQL uses Implicit Cursors for queries.
User defined cursors are called Explicit Cursors. They can be declared and used.&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;span style=&quot;color: #333333; font-family: Arial; 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;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;span style=&quot;color: #333333; font-family: Arial; 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;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;11. What are the PL/SQL Statements used in cursor processing ?
Ans.&amp;nbsp;&lt;/strong&gt;DECLARE CURSOR cursor name, OPEN cursor name, FETCH cursor name INTO or Record types, CLOSE cursor name.&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;span style=&quot;color: #333333; font-family: Arial; 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;span style=&quot;color: #333333; font-family: Arial; 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;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;span style=&quot;color: #333333; font-family: Arial; 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;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;12. What are the cursor attributes used in PL/SQL ?
Ans.&amp;nbsp;&lt;/strong&gt;%ISOPEN – to check whether cursor is open or not
% ROWCOUNT – number of rows fetched/updated/deleted.
% FOUND – to check whether cursor has fetched any row. True if rows are fetched.
% NOT FOUND – to check whether cursor has fetched any row. True if no rows are fetched.
These attributes are proceeded with SQL for Implicit Cursors and with Cursor name for Explicit Cursors.&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;span style=&quot;color: #333333; font-family: Arial; 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;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;span style=&quot;color: #333333; font-family: Arial; 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;span style=&quot;color: #333333; font-family: Arial; 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;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;span style=&quot;color: #333333; font-family: Arial; 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;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;13. What is a cursor for loop ?
Ans.&amp;nbsp;&lt;/strong&gt;Cursor for loop implicitly declares %ROWTYPE as loop index, opens a cursor, fetches rows of values from active set into fields in the record and closes
when all the records have been processed.
eg. FOR emp_rec IN C1&amp;nbsp;&lt;span style=&quot;color: #333333; font-family: Arial; 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;LOOP&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;
salary_total := salary_total +emp_rec sal;
END LOOP;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;span style=&quot;color: #333333; font-family: Arial; 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;span style=&quot;color: #333333; font-family: Arial; 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;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;14. What will happen after commit statement ?
Ans.&amp;nbsp;&lt;/strong&gt;Cursor C1 is
Select empno,
ename from emp;
Begin
open C1; loop
Fetch C1 into
eno.ename;
Exit When
C1 %notfound;—–
commit;
end loop;
end;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;The cursor having query as SELECT …. FOR UPDATE gets closed after COMMIT/ROLLBACK.
The cursor having query as SELECT…. does not get closed even after COMMIT/ROLLBACK.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;span style=&quot;color: #333333; font-family: Arial; 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;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;span style=&quot;color: #333333; font-family: Arial; 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;span style=&quot;color: #333333; font-family: Arial; 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;15. Explain the usage of WHERE CURRENT OF clause in cursors ?
Ans.&amp;nbsp;&lt;/strong&gt;WHERE CURRENT OF clause in an UPDATE, DELETE statement refers to the latest row fetched from a cursor.&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;span style=&quot;color: #333333; font-family: Arial; 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;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;16. What is a database trigger ? Name some usages of database trigger ?
Ans.&amp;nbsp;&lt;/strong&gt;Database trigger is stored PL/SQL program unit associated with a specific database table. Usages are Audit data modifications, Log events transparently, Enforce complex business rules Derive column values automatically, Implement complex security authorizations. Maintain replicate tables.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;17. How many types of database triggers can be specified on a table ? What are they ?
Ans.&amp;nbsp;&lt;/strong&gt;Insert Update Delete
Before Row o.k. o.k. o.k.
After Row o.k. o.k. o.k.
Before Statement o.k. o.k. o.k.
After Statement o.k. o.k. o.k.
If FOR EACH ROW clause is specified, then the trigger for each Row affected by the statement.
If WHEN clause is specified, the trigger fires according to the returned boolean value.&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;18. Is it possible to use Transaction control Statements such a ROLLBACK or COMMIT in Database Trigger ? Why ?
Ans.&lt;/strong&gt;It is not possible. As triggers are defined for each table, if you use COMMIT of ROLLBACK in a trigger, it affects logical transaction processing.&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;19. What are two virtual tables available during database trigger execution ?
Ans.&amp;nbsp;&lt;/strong&gt;The table columns are referred as OLD.column_name and NEW.column_name.
For triggers related to INSERT only NEW.column_name values only available.
For triggers related to UPDATE only OLD.column_name NEW.column_name values only available.
For triggers related to DELETE only OLD.column_name values only available.&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;20. What happens if a procedure that updates a column of table X is called in a database trigger of the same table ?
Ans.&amp;nbsp;&lt;/strong&gt;Mutation of table occurs.&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;21. What is an Exception ? What are types of Exception ?
Ans.&amp;nbsp;&lt;/strong&gt;Exception is the error handling part of PL/SQL block. The types are Predefined and user_defined. Some of Predefined exceptions are.
CURSOR_ALREADY_OPEN
DUP_VAL_ON_INDEX
NO_DATA_FOUND
TOO_MANY_ROWS
INVALID_CURSOR
INVALID_NUMBER
LOGON_DENIED
NOT_LOGGED_ON
PROGRAM-ERROR
STORAGE_ERROR
TIMEOUT_ON_RESOURCE
VALUE_ERROR
ZERO_DIVIDE
OTHERS.&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;22. What is Pragma EXECPTION_INIT ? Explain the usage ?&lt;/strong&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;Ans.&lt;/strong&gt;&amp;nbsp;The PRAGMA EXECPTION_INIT tells the complier to associate an exception with an oracle error. To get an error message of a specific oracle error.
e.g. PRAGMA EXCEPTION_INIT (exception name, oracle error number)&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;23. What is Raise_application_error ?
Ans.&amp;nbsp;&lt;/strong&gt;Raise_application_error is a procedure of package DBMS_STANDARD which allows to issue an user_defined error messages from stored sub-program or database trigger.&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;24. What are the return values of functions SQLCODE and SQLERRM ?
Ans.&amp;nbsp;&lt;/strong&gt;SQLCODE returns the latest code of the error that has occurred.
SQLERRM returns the relevant error message of the SQLCODE.&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;25. Where the Pre_defined_exceptions are stored ?
Ans.&amp;nbsp;&lt;/strong&gt;In the standard package.&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Arial; 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;26. What is a stored procedure ?
Ans.&amp;nbsp;&lt;/strong&gt;A stored procedure is a sequence of statements that perform specific function.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 1em; 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;27. What is difference between a PROCEDURE &amp;amp; FUNCTION ?
Ans.&amp;nbsp;&lt;/strong&gt;A FUNCTION always returns a value using the return statement.
A PROCEDURE may return one or more values through parameters or may not return at all.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 1em; 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;28. What are advantages fo Stored Procedures ?&lt;/strong&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;Ans.&amp;nbsp;&lt;/strong&gt;Extensibility, Modularity, Reusability, Maintainability and one time compilation.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 1em; 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;29. What are the modes of parameters that can be passed to a procedure ?
Ans.&amp;nbsp;&lt;/strong&gt;IN, OUT, IN-OUT parameters.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 1em; 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;30. What are the two parts of a procedure ?
Ans.&amp;nbsp;&lt;/strong&gt;Procedure Specification and Procedure Body.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 1em; 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;31. Give the structure of the procedure ?
Ans.&amp;nbsp;&lt;/strong&gt;PROCEDURE name (parameter list…..)
is
local variable declarations
BEGIN
Executable statements.
Exception.
exception handlers
end;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 1em; 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;32. Give the structure of the function ?
Ans.&amp;nbsp;&lt;/strong&gt;FUNCTION name (argument list …..) Return datatype is
local variable declarations
Begin
executable statements
Exception
execution handlers
End;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 1em; 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;33. Explain how procedures and functions are called in a PL/SQL block ?
Ans.&amp;nbsp;&lt;/strong&gt;Function is called as part of an expression.
sal := calculate_sal (‘a822′);
procedure is called as a PL/SQL statement
calculate_bonus (‘A822′);&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 1em; 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;34. What is Overloading of procedures ?
Ans.&amp;nbsp;&lt;/strong&gt;The Same procedure name is repeated with parameters of different datatypes and parameters in different positions, varying number of parameters is called overloading of procedures.
e.g. DBMS_OUTPUT put_line&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 1em; 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;35. What is a package ? What are the advantages of packages ?
Ans.&amp;nbsp;&lt;/strong&gt;Package is a database object that groups logically related procedures.
The advantages of packages are Modularity, Easier Application Design, Information. Hiding,. reusability and Better Performance.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 1em; 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;36.What are two parts of package ?
Ans.&amp;nbsp;&lt;/strong&gt;The two parts of package are PACKAGE SPECIFICATION &amp;amp; PACKAGE BODY.
Package Specification contains declarations that are global to the packages and local to the schema.
Package Body contains actual procedures and local declaration of the procedures and cursor declarations.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 1em; 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;37. What is difference between a Cursor declared in a procedure and Cursor declared in a package specification ?
Ans.&amp;nbsp;&lt;/strong&gt;A cursor declared in a package specification is global and can be accessed by other procedures or procedures in a package.
A cursor declared in a procedure is local to the procedure that can not be accessed by other procedures.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 1em; 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;38. Name the tables where characteristics of Package, procedure and functions are stored ?
Ans.&lt;/strong&gt;&amp;nbsp;User_objects, User_Source and User_error&lt;span style=&quot;font-family: &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;h1 id=&quot;ctl00_TitleArea_ArticleTitle&quot; style=&quot;color: #191919; font-family: Verdana, Arial, sans-serif; font-weight: bold; letter-spacing: -1px; line-height: 1.2em; margin-bottom: 5px; margin-top: 10px; padding-bottom: 0px; text-align: left; white-space: normal;&quot;&gt;
Sql Queries most asked in job interviews.&lt;/h1&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;a href=&quot;http://www.codeproject.com/KB/database/SqlQueriesInterview.aspx&quot;&gt;http://www.codeproject.com/KB/database/SqlQueriesInterview.aspx&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: &#39;Times New Roman&#39;;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: &#39;Times New Roman&#39;;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: &#39;MS Serif&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;h3 style=&quot;color: #ff9900; font-family: Verdana, Arial, sans-serif; font-weight: bold; line-height: 1.2em; white-space: normal;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;(i) Finding the nth highest salary of an employee.&lt;/span&gt;&lt;/h3&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;Create a table named Employee_Test and insert some test data as:-&lt;/span&gt;&lt;div class=&quot;small-text align-right&quot; id=&quot;premain0&quot; style=&quot;color: black; display: block; font-family: Verdana, Arial, sans-serif; line-height: 16px; text-align: right !important; white-space: normal;&quot; width=&quot;100%&quot;&gt;
&lt;img height=&quot;9&quot; id=&quot;preimg0&quot; preid=&quot;0&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer; overflow-x: auto; overflow-y: auto;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse0&quot; preid=&quot;0&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt;&amp;nbsp;Collapse&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;&lt;pre id=&quot;pre0&quot; style=&quot;background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; 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-style: normal; font-variant: normal; font-weight: normal; line-height: normal; margin-top: 0px; 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;CREATE TABLE Employee_Test
(
Emp_ID INT Identity,
Emp_name Varchar(&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;100&lt;/span&gt;),
Emp_Sal Decimal (&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;10&lt;/span&gt;,&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;2&lt;/span&gt;)
)

INSERT INTO Employee_Test VALUES (&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;Anees&#39;&lt;/span&gt;,&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;1000&lt;/span&gt;);
INSERT INTO Employee_Test VALUES (&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;Rick&#39;&lt;/span&gt;,&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;1200&lt;/span&gt;);
INSERT INTO Employee_Test VALUES (&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;John&#39;&lt;/span&gt;,&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;1100&lt;/span&gt;);
INSERT INTO Employee_Test VALUES (&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;Stephen&#39;&lt;/span&gt;,&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;1300&lt;/span&gt;);
INSERT INTO Employee_Test VALUES (&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;Maria&#39;&lt;/span&gt;,&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;1400&lt;/span&gt;);
&lt;/pre&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;It is very easy to find the highest salary as:-&lt;/span&gt;&lt;div class=&quot;small-text align-right&quot; id=&quot;premain1&quot; style=&quot;color: black; display: block; font-family: Verdana, Arial, sans-serif; line-height: 16px; text-align: right !important; white-space: normal;&quot; width=&quot;100%&quot;&gt;
&lt;img height=&quot;9&quot; id=&quot;preimg1&quot; preid=&quot;1&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer; overflow-x: auto; overflow-y: auto;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse1&quot; preid=&quot;1&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt;&amp;nbsp;Collapse&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;&lt;pre id=&quot;pre1&quot; style=&quot;background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; 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-style: normal; font-variant: normal; font-weight: normal; line-height: normal; margin-top: 0px; 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;--Highest Salary
select max(Emp_Sal) from Employee_Test
&lt;/pre&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;Now, if you are asked to find the 3rd highest salary, then the query is as:-&lt;/span&gt;&lt;div class=&quot;small-text align-right&quot; id=&quot;premain2&quot; style=&quot;color: black; display: block; font-family: Verdana, Arial, sans-serif; line-height: 16px; text-align: right !important; white-space: normal;&quot; width=&quot;100%&quot;&gt;
&lt;img height=&quot;9&quot; id=&quot;preimg2&quot; preid=&quot;2&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer; overflow-x: auto; overflow-y: auto;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse2&quot; preid=&quot;2&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt;&amp;nbsp;Collapse&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;&lt;pre id=&quot;pre2&quot; style=&quot;background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; 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-style: normal; font-variant: normal; font-weight: normal; line-height: normal; margin-top: 0px; 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;--3rd Highest Salary
select min(Emp_Sal) from Employee_Test where Emp_Sal &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;in&lt;/span&gt;
(select distinct top &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;3&lt;/span&gt; Emp_Sal from Employee_Test order by Emp_Sal desc)
&lt;/pre&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;The result is as :- 1200&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;To find the nth highest salary, replace the top 3 with top n (n being an integer 1,2,3 etc.)&lt;/span&gt;&lt;div class=&quot;small-text align-right&quot; id=&quot;premain3&quot; style=&quot;color: black; display: block; font-family: Verdana, Arial, sans-serif; line-height: 16px; text-align: right !important; white-space: normal;&quot; width=&quot;100%&quot;&gt;
&lt;img height=&quot;9&quot; id=&quot;preimg3&quot; preid=&quot;3&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer; overflow-x: auto; overflow-y: auto;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse3&quot; preid=&quot;3&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt;&amp;nbsp;Collapse&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;&lt;pre id=&quot;pre3&quot; style=&quot;background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; 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-style: normal; font-variant: normal; font-weight: normal; line-height: normal; margin-top: 0px; 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;--nth Highest Salary
select min(Emp_Sal) from Employee_Test where Emp_Sal &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;in&lt;/span&gt;
(select distinct top n Emp_Sal from Employee_Test order by Emp_Sal desc)
&lt;/pre&gt;
&lt;/span&gt;&lt;h3 style=&quot;color: #ff9900; font-family: Verdana, Arial, sans-serif; font-weight: bold; line-height: 1.2em; white-space: normal;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;(ii) Finding TOP X records from each group&lt;/span&gt;&lt;/h3&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;Create a table named photo_test and insert some test data as :-&lt;/span&gt;&lt;div class=&quot;small-text align-right&quot; id=&quot;premain4&quot; style=&quot;color: black; display: block; font-family: Verdana, Arial, sans-serif; line-height: 16px; text-align: right !important; white-space: normal;&quot; width=&quot;100%&quot;&gt;
&lt;img height=&quot;9&quot; id=&quot;preimg4&quot; preid=&quot;4&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer; overflow-x: auto; overflow-y: auto;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse4&quot; preid=&quot;4&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt;&amp;nbsp;Collapse&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;&lt;pre id=&quot;pre4&quot; style=&quot;background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; 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-style: normal; font-variant: normal; font-weight: normal; line-height: normal; margin-top: 0px; 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;create table photo_test
(
pgm_main_Category_id &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;,
pgm_sub_category_id &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;,
file_path varchar(MAX)
)

insert into photo_test values
(&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;17&lt;/span&gt;,&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;15&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;photo/bb1.jpg&#39;&lt;/span&gt;);     
                                                 
insert into photo_test values(&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;17&lt;/span&gt;,&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;16&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;photo/cricket1.jpg&#39;&lt;/span&gt;);                                                    
insert into photo_test values(&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;17&lt;/span&gt;,&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;17&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;photo/base1.jpg&#39;&lt;/span&gt;);                                                       
insert into photo_test values(&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;18&lt;/span&gt;,&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;18&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;photo/forest1.jpg&#39;&lt;/span&gt;);                                                       
insert into photo_test values(&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;18&lt;/span&gt;,&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;19&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;photo/tree1.jpg&#39;&lt;/span&gt;);                                                           
insert into photo_test values(&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;18&lt;/span&gt;,&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;20&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;photo/flower1.jpg&#39;&lt;/span&gt;);                                                     
insert into photo_test values(&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;19&lt;/span&gt;,&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;21&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;photo/laptop1.jpg&#39;&lt;/span&gt;);                                                       
insert into photo_test values(&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;19&lt;/span&gt;,&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;22&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;photo/camer1.jpg&#39;&lt;/span&gt;);                                                 

insert into photo_test values(&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;19&lt;/span&gt;,&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;23&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;photo/cybermbl1.jpg&#39;&lt;/span&gt;);                                                    
insert into photo_test values
(&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;17&lt;/span&gt;,&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;24&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;photo/F1.jpg&#39;&lt;/span&gt;);
&lt;/pre&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;There are three groups of pgm_main_category_id each with a value of 17 (group 17 has four records),18 (group 18 has three records) and 19 (group 19 has three records).&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;Now, if you want to select top 2 records from each group, the query is as follows:-&lt;/span&gt;&lt;div class=&quot;small-text align-right&quot; id=&quot;premain5&quot; style=&quot;color: black; display: block; font-family: Verdana, Arial, sans-serif; line-height: 16px; text-align: right !important; white-space: normal;&quot; width=&quot;100%&quot;&gt;
&lt;img height=&quot;9&quot; id=&quot;preimg5&quot; preid=&quot;5&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer; overflow-x: auto; overflow-y: auto;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse5&quot; preid=&quot;5&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt;&amp;nbsp;Collapse&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;&lt;pre id=&quot;pre5&quot; style=&quot;background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; 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-style: normal; font-variant: normal; font-weight: normal; line-height: normal; margin-top: 0px; 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;select pgm_main_category_id,pgm_sub_category_id,file_path from
(
select pgm_main_category_id,pgm_sub_category_id,file_path,
rank() over (partition by pgm_main_category_id order by pgm_sub_category_id asc) as rankid
from photo_test
) photo_test
where rankid &amp;lt; &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;3&lt;/span&gt; -- replace &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;3&lt;/span&gt; by any number &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;2&lt;/span&gt;,&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;3&lt;/span&gt; etc &lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;for&lt;/span&gt; top2 or top3.
order by pgm_main_category_id,pgm_sub_category_id
&lt;/pre&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;The result is as:-&lt;/span&gt;&lt;div class=&quot;small-text align-right&quot; id=&quot;premain6&quot; style=&quot;color: black; display: block; font-family: Verdana, Arial, sans-serif; line-height: 16px; text-align: right !important; white-space: normal;&quot; width=&quot;100%&quot;&gt;
&lt;img height=&quot;9&quot; id=&quot;preimg6&quot; preid=&quot;6&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer; overflow-x: auto; overflow-y: auto;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse6&quot; preid=&quot;6&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt;&amp;nbsp;Collapse&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;&lt;pre id=&quot;pre6&quot; style=&quot;background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; 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-style: normal; font-variant: normal; font-weight: normal; line-height: normal; margin-top: 0px; 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;pgm_main_category_id pgm_sub_category_id file_path
&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;17&lt;/span&gt;                    &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;15&lt;/span&gt;                    photo/bb1.jpg
&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;17&lt;/span&gt;                    &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;16&lt;/span&gt;                    photo/cricket1.jpg
&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;18&lt;/span&gt;                    &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;18&lt;/span&gt;                    photo/forest1.jpg
&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;18&lt;/span&gt;                    &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;19&lt;/span&gt;                    photo/tree1.jpg
&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;19&lt;/span&gt;                    &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;21&lt;/span&gt;                    photo/laptop1.jpg
&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;19&lt;/span&gt;                    &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;22&lt;/span&gt;                    photocamer1.jpg
&lt;/pre&gt;
&lt;/span&gt;&lt;h3 style=&quot;color: #ff9900; font-family: Verdana, Arial, sans-serif; font-weight: bold; line-height: 1.2em; white-space: normal;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;(iii) Deleting duplicate rows from a table&lt;/span&gt;&lt;/h3&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;A table with a primary key doesn’t contain duplicates. But if due to some reason, the keys have to be disabled or when importing data from other sources, duplicates come up in the table data, it is often needed to get rid of such duplicates.&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;This can be achieved in tow ways :-&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;(a) Using a temporary table.&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;(b) Without using a temporary table.&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;
&lt;/span&gt;&lt;h3 style=&quot;color: #ff9900; font-family: Verdana, Arial, sans-serif; font-weight: bold; line-height: 1.2em; white-space: normal;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;(a) Using a temporary or staging table&lt;/span&gt;&lt;/h3&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;Let the table employee_test1 contain some duplicate data like:-&lt;/span&gt;&lt;div class=&quot;small-text align-right&quot; id=&quot;premain7&quot; style=&quot;color: black; display: block; font-family: Verdana, Arial, sans-serif; line-height: 16px; text-align: right !important; white-space: normal;&quot; width=&quot;100%&quot;&gt;
&lt;img height=&quot;9&quot; id=&quot;preimg7&quot; preid=&quot;7&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer; overflow-x: auto; overflow-y: auto;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse7&quot; preid=&quot;7&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt;&amp;nbsp;Collapse&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;&lt;pre id=&quot;pre7&quot; style=&quot;background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; 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-style: normal; font-variant: normal; font-weight: normal; line-height: normal; margin-top: 0px; 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;CREATE TABLE Employee_Test1
(
Emp_ID INT,
Emp_name Varchar(&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;100&lt;/span&gt;),
Emp_Sal Decimal (&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;10&lt;/span&gt;,&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;2&lt;/span&gt;)
)

INSERT INTO Employee_Test1 VALUES (&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;1&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;Anees&#39;&lt;/span&gt;,&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;1000&lt;/span&gt;);
INSERT INTO Employee_Test1 VALUES (&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;2&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;Rick&#39;&lt;/span&gt;,&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;1200&lt;/span&gt;);
INSERT INTO Employee_Test1 VALUES (&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;3&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;John&#39;&lt;/span&gt;,&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;1100&lt;/span&gt;);
INSERT INTO Employee_Test1 VALUES (&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;4&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;Stephen&#39;&lt;/span&gt;,&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;1300&lt;/span&gt;);
INSERT INTO Employee_Test1 VALUES (&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;5&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;Maria&#39;&lt;/span&gt;,&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;1400&lt;/span&gt;);
INSERT INTO Employee_Test1 VALUES (&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;6&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;Tim&#39;&lt;/span&gt;,&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;1150&lt;/span&gt;);
INSERT INTO Employee_Test1 VALUES (&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;6&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;Tim&#39;&lt;/span&gt;,&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;1150&lt;/span&gt;);
&lt;/pre&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;&lt;b&gt;Step 1:&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;Create a temporary table from the main table as:-&lt;/span&gt;&lt;div class=&quot;small-text align-right&quot; id=&quot;premain8&quot; style=&quot;color: black; display: block; font-family: Verdana, Arial, sans-serif; line-height: 16px; text-align: right !important; white-space: normal;&quot; width=&quot;100%&quot;&gt;
&lt;img height=&quot;9&quot; id=&quot;preimg8&quot; preid=&quot;8&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer; overflow-x: auto; overflow-y: auto;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse8&quot; preid=&quot;8&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt;&amp;nbsp;Collapse&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;&lt;pre id=&quot;pre8&quot; style=&quot;background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; 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-style: normal; font-variant: normal; font-weight: normal; line-height: normal; margin-top: 0px; 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;select top &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;0&lt;/span&gt;* into employee_test1_temp from employee_test1
&lt;/pre&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;&lt;b&gt;Step2 :&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;Insert the result of the GROUP BY query into the temporary table as:-&lt;/span&gt;&lt;div class=&quot;small-text align-right&quot; id=&quot;premain9&quot; style=&quot;color: black; display: block; font-family: Verdana, Arial, sans-serif; line-height: 16px; text-align: right !important; white-space: normal;&quot; width=&quot;100%&quot;&gt;
&lt;img height=&quot;9&quot; id=&quot;preimg9&quot; preid=&quot;9&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer; overflow-x: auto; overflow-y: auto;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse9&quot; preid=&quot;9&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt;&amp;nbsp;Collapse&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;&lt;pre id=&quot;pre9&quot; style=&quot;background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; 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-style: normal; font-variant: normal; font-weight: normal; line-height: normal; margin-top: 0px; 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;insert into employee_test1_temp
select Emp_ID,Emp_name,Emp_Sal
from employee_test1
group by Emp_ID,Emp_name,Emp_Sal
&lt;/pre&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;&lt;b&gt;Step3:&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;Truncate the original table as:-&lt;/span&gt;&lt;div class=&quot;small-text align-right&quot; id=&quot;premain10&quot; style=&quot;color: black; display: block; font-family: Verdana, Arial, sans-serif; line-height: 16px; text-align: right !important; white-space: normal;&quot; width=&quot;100%&quot;&gt;
&lt;img height=&quot;9&quot; id=&quot;preimg10&quot; preid=&quot;10&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer; overflow-x: auto; overflow-y: auto;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse10&quot; preid=&quot;10&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt;&amp;nbsp;Collapse&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;&lt;pre id=&quot;pre10&quot; style=&quot;background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; 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-style: normal; font-variant: normal; font-weight: normal; line-height: normal; margin-top: 0px; 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;truncate table employee_test1
&lt;/pre&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;&lt;b&gt;Step4:&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;Fill the original table with the rows of the temporary table as:-&lt;/span&gt;&lt;div class=&quot;small-text align-right&quot; id=&quot;premain11&quot; style=&quot;color: black; display: block; font-family: Verdana, Arial, sans-serif; line-height: 16px; text-align: right !important; white-space: normal;&quot; width=&quot;100%&quot;&gt;
&lt;img height=&quot;9&quot; id=&quot;preimg11&quot; preid=&quot;11&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer; overflow-x: auto; overflow-y: auto;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse11&quot; preid=&quot;11&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt;&amp;nbsp;Collapse&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;&lt;pre id=&quot;pre11&quot; style=&quot;background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; 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-style: normal; font-variant: normal; font-weight: normal; line-height: normal; margin-top: 0px; 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;insert into employee_test1
select * from employee_test1_temp
&lt;/pre&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;Now, the duplicate rows from the main table have been removed.&lt;/span&gt;&lt;div class=&quot;small-text align-right&quot; id=&quot;premain12&quot; style=&quot;color: black; display: block; font-family: Verdana, Arial, sans-serif; line-height: 16px; text-align: right !important; white-space: normal;&quot; width=&quot;100%&quot;&gt;
&lt;img height=&quot;9&quot; id=&quot;preimg12&quot; preid=&quot;12&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer; overflow-x: auto; overflow-y: auto;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse12&quot; preid=&quot;12&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt;&amp;nbsp;Collapse&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;&lt;pre id=&quot;pre12&quot; style=&quot;background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; 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-style: normal; font-variant: normal; font-weight: normal; line-height: normal; margin-top: 0px; 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;select * from employee_test1
&lt;/pre&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;gives the result as:-&lt;/span&gt;&lt;div class=&quot;small-text align-right&quot; id=&quot;premain13&quot; style=&quot;color: black; display: block; font-family: Verdana, Arial, sans-serif; line-height: 16px; text-align: right !important; white-space: normal;&quot; width=&quot;100%&quot;&gt;
&lt;img height=&quot;9&quot; id=&quot;preimg13&quot; preid=&quot;13&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer; overflow-x: auto; overflow-y: auto;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse13&quot; preid=&quot;13&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt;&amp;nbsp;Collapse&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;&lt;pre id=&quot;pre13&quot; style=&quot;background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; 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-style: normal; font-variant: normal; font-weight: normal; line-height: normal; margin-top: 0px; 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;Emp_ID Emp_name   Emp_Sal
&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;1&lt;/span&gt; Anees    &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;1000&lt;/span&gt;
&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;2&lt;/span&gt; Rick    &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;1200&lt;/span&gt;
&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;3&lt;/span&gt; John    &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;1100&lt;/span&gt;
&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;4&lt;/span&gt; Stephen    &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;1300&lt;/span&gt;
&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;5&lt;/span&gt; Maria    &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;1400&lt;/span&gt;
&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;6&lt;/span&gt; Tim    &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;1150&lt;/span&gt;
&lt;/pre&gt;
&lt;/span&gt;&lt;h3 style=&quot;color: #ff9900; font-family: Verdana, Arial, sans-serif; font-weight: bold; line-height: 1.2em; white-space: normal;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;(b) Without using a temporary table&lt;/span&gt;&lt;/h3&gt;
&lt;div class=&quot;small-text align-right&quot; id=&quot;premain14&quot; style=&quot;color: black; display: block; font-family: Verdana, Arial, sans-serif; line-height: 16px; text-align: right !important; white-space: normal;&quot; width=&quot;100%&quot;&gt;
&lt;img height=&quot;9&quot; id=&quot;preimg14&quot; preid=&quot;14&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer; overflow-x: auto; overflow-y: auto;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse14&quot; preid=&quot;14&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt;&amp;nbsp;Collapse&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;&lt;pre id=&quot;pre14&quot; style=&quot;background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; 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-style: normal; font-variant: normal; font-weight: normal; line-height: normal; margin-top: 0px; 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;;with T as
(
 select * , row_number() over (partition by Emp_ID order by Emp_ID) as rank
 from employee_test1
)

&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue;&quot;&gt;delete&lt;/span&gt;
from T
where rank &amp;gt; &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;1&lt;/span&gt;

&lt;/pre&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;The result is as:-&lt;/span&gt;&lt;div class=&quot;small-text align-right&quot; id=&quot;premain15&quot; style=&quot;color: black; display: block; font-family: Verdana, Arial, sans-serif; line-height: 16px; text-align: right !important; white-space: normal;&quot; width=&quot;100%&quot;&gt;
&lt;img height=&quot;9&quot; id=&quot;preimg15&quot; preid=&quot;15&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer; overflow-x: auto; overflow-y: auto;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse15&quot; preid=&quot;15&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt;&amp;nbsp;Collapse&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, Arial, sans-serif; line-height: 16px; white-space: normal;&quot;&gt;&lt;pre id=&quot;pre15&quot; style=&quot;background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; 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; color: black; font-family: &#39;Courier New&#39;, Courier, mono; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; margin-top: 0px; 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;Emp_ID Emp_name   Emp_Sal
&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;1&lt;/span&gt; Anees    &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;1000&lt;/span&gt;
&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;2&lt;/span&gt; Rick    &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;1200&lt;/span&gt;
&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;3&lt;/span&gt; John    &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;1100&lt;/span&gt;
&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;4&lt;/span&gt; Stephen    &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;1300&lt;/span&gt;
&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;5&lt;/span&gt; Maria    &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;1400&lt;/span&gt;
&lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;6&lt;/span&gt; Tim    &lt;span class=&quot;code-digit&quot; style=&quot;color: navy;&quot;&gt;1150&lt;/span&gt;&lt;/pre&gt;
&lt;pre id=&quot;pre15&quot; style=&quot;background-color: #fbedbb; border-bottom-color: rgb(251, 237, 187); border-bottom-style: solid; border-bottom-width: 1px; 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: normal normal normal 9pt/normal &#39;Courier New&#39;, Courier, mono; margin-top: 0px; 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;Apple-style-span&quot; style=&quot;color: navy;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://apnimarzee.blogspot.com/feeds/5724063674448451106/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://apnimarzee.blogspot.com/2011/05/sql-interview-questions-and-answers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4907713461663660592/posts/default/5724063674448451106'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4907713461663660592/posts/default/5724063674448451106'/><link rel='alternate' type='text/html' href='http://apnimarzee.blogspot.com/2011/05/sql-interview-questions-and-answers.html' title='Database Interview Questions and Answers'/><author><name>Zeeshan Mirza</name><uri>http://www.blogger.com/profile/00454539468587625372</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivD10NFwxGgQqVjxlun90-2CEnmt_970bpaH8c8iFrPw53vcIeUqQ6d9h9TqM8aZiquJoq6ZGJ1Fd8y0ZQyp5cWaq38m1c5ChNNhhQQ4fmXDaSm7qbNSBj2pbmUt6a0w/s220/26.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4907713461663660592.post-3480526528205937645</id><published>2010-12-04T21:40:00.000-08:00</published><updated>2010-12-04T21:42:38.792-08:00</updated><title type='text'>Facebook API</title><content type='html'>&lt;div&gt;A valuable source for studying Facebook APIs.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a href=&quot;http://blancer.com/tutorials/42760/how-to-authenticate-users-with-facebook-connect/&quot;&gt;http://blancer.com/tutorials/42760/how-to-authenticate-users-with-facebook-connect/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://apnimarzee.blogspot.com/feeds/3480526528205937645/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://apnimarzee.blogspot.com/2010/12/facebook-api.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4907713461663660592/posts/default/3480526528205937645'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4907713461663660592/posts/default/3480526528205937645'/><link rel='alternate' type='text/html' href='http://apnimarzee.blogspot.com/2010/12/facebook-api.html' title='Facebook API'/><author><name>Zeeshan Mirza</name><uri>http://www.blogger.com/profile/00454539468587625372</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivD10NFwxGgQqVjxlun90-2CEnmt_970bpaH8c8iFrPw53vcIeUqQ6d9h9TqM8aZiquJoq6ZGJ1Fd8y0ZQyp5cWaq38m1c5ChNNhhQQ4fmXDaSm7qbNSBj2pbmUt6a0w/s220/26.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4907713461663660592.post-6630137157399100500</id><published>2010-11-28T10:35:00.000-08:00</published><updated>2010-11-28T10:48:16.366-08:00</updated><title type='text'>Writing for Your Website</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXB7Yt2sYaQWy1V-i91rT3IlcNhLUqsxUuQKdhQv6kBqpmXA5vAez5Xj91uJze-F1zKLtIsbHjOA4wCwra4V-16E_rmg1RLV3XKjv2kNZ0WY0eyMs6sbMKRlu7uJF-CghIpZ46qizvHIiY/s1600/post.jpg&quot;&gt;&lt;img style=&quot;display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 320px; height: 266px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXB7Yt2sYaQWy1V-i91rT3IlcNhLUqsxUuQKdhQv6kBqpmXA5vAez5Xj91uJze-F1zKLtIsbHjOA4wCwra4V-16E_rmg1RLV3XKjv2kNZ0WY0eyMs6sbMKRlu7uJF-CghIpZ46qizvHIiY/s320/post.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5544674277641802626&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;h3 class=&quot;post-title entry-title&quot;&gt; &lt;a href=&quot;http://blog.wix.com/2010/04/writing-for-your-website.html&quot;&gt;&lt;br /&gt;&lt;/a&gt; &lt;/h3&gt; &lt;div class=&quot;post-header&quot;&gt;  &lt;/div&gt;  &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;Creating your own website involves a few tasks that are not part of the  average daily life, and writing online content is one of them. Here  few simple guidelines could come in handy:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Menus and Buttons&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Avoid using too many puns or abstract  phrasing. Buttons’ sole role is to allow easy and smooth navigation for  your site visitors. Don&#39;t confuse them by using terms they may not  understand. For instance, “Get in Touch” could be a good alternative for  the “Contact” button, but “Carrier Pigeon” might be a bit too much.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Describing Yourself/ Your Business&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;This part should vary according to the service or product you’re  offering. Artists, for one, should personalize their bio and not  restrict it to a customary education and awards section. There should  also be some kind of life story or short manifesto included. This can  also apply to a company, only without the personal tone. It is important  to describe the product, the quality of service and the advantages  compared with competitors (but don&#39;t get too nasty!). Some businesses,  like medical services or wedding photography, involve a great amount of  trust, where a personal statement from the leading professional of the  company is a real plus.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Text Length and Structure&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;In our WWW era, people don&#39;t bother to read long texts, so unless your  site is actually an online magazine, a blog or a newsletter of some  sort, try to keep your content short. For the same reason, we advise you  to avoid long paragraphs and sentences. The important thing is to make  sure your key ideas and messages are clearly phrased and easy to  understand. If you add scrollable text boxes, make sure the most  important points appear at the very beginning. And use a READABLE font  size.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Writing Style&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;We can&#39;t, of course, recommend the same style of writing for all  websites. A website for a human rights organization should not adopt the  same tone a basketball summer camp does. We can, however, advise you to  stay away from extremes within your own style. If you want to write  cheekily, dropping a joke every two sentences will only create the  opposite effect. If you want to write professionally, you still need to  use adjectives here and there and avoid a strict technical phrasing.  Online content contributors usually live in extremes, but write  carefully.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Flexibility&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;One of the biggest revolutions of online text is that it&#39;s easy to edit,  so make good use of that. Go over your texts every once in a while and  make changes if you see fit. A good website reacts to changes in the  outside world. You can do this by referring to special sales that you  have at the moment, to national or international events, to big news  that relate to your business and so forth. It also adds to the  credibility of your website, since the visitors see it is often updated  and active.</content><link rel='replies' type='application/atom+xml' href='http://apnimarzee.blogspot.com/feeds/6630137157399100500/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://apnimarzee.blogspot.com/2010/11/writing-for-your-website.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4907713461663660592/posts/default/6630137157399100500'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4907713461663660592/posts/default/6630137157399100500'/><link rel='alternate' type='text/html' href='http://apnimarzee.blogspot.com/2010/11/writing-for-your-website.html' title='Writing for Your Website'/><author><name>Zeeshan Mirza</name><uri>http://www.blogger.com/profile/00454539468587625372</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivD10NFwxGgQqVjxlun90-2CEnmt_970bpaH8c8iFrPw53vcIeUqQ6d9h9TqM8aZiquJoq6ZGJ1Fd8y0ZQyp5cWaq38m1c5ChNNhhQQ4fmXDaSm7qbNSBj2pbmUt6a0w/s220/26.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXB7Yt2sYaQWy1V-i91rT3IlcNhLUqsxUuQKdhQv6kBqpmXA5vAez5Xj91uJze-F1zKLtIsbHjOA4wCwra4V-16E_rmg1RLV3XKjv2kNZ0WY0eyMs6sbMKRlu7uJF-CghIpZ46qizvHIiY/s72-c/post.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4907713461663660592.post-6519176128048100087</id><published>2010-11-26T09:29:00.000-08:00</published><updated>2010-11-26T09:31:11.413-08:00</updated><title type='text'>How to Prepare a Style Guide for your Website</title><content type='html'>&lt;div class=&quot;post-header&quot;&gt;  &lt;/div&gt;  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijadOHpxwcFYEWfySkWkBR68ndy1yHe36hXmw_amX7KhkHl7Wira3TlX5MbGUQ5YlLo8uHYaPchlallrbRduAzFUCwINTHedB0-Uy8P_3_xEXyCYCO7IVUxcKmPczTJRd7KeHDt_3-fW0/s1600/STYLE1.png&quot;&gt;&lt;img alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5537856992080517442&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijadOHpxwcFYEWfySkWkBR68ndy1yHe36hXmw_amX7KhkHl7Wira3TlX5MbGUQ5YlLo8uHYaPchlallrbRduAzFUCwINTHedB0-Uy8P_3_xEXyCYCO7IVUxcKmPczTJRd7KeHDt_3-fW0/s400/STYLE1.png&quot; style=&quot;cursor: pointer; display: block; height: 343px; margin: 0px auto 10px; text-align: center; width: 400px;&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style=&quot;font-style: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;The Necessity of a Style Guide&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &lt;/span&gt; &lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;A  style guide is a document that prescribes the &#39;style&#39; or standard  format for your website.&lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;  It lays down common guidelines for formatting texts and images, use of  color and fonts, logo variations that can be used, etc. The general idea  here is to: &lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;1. Create consistency across your website&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;2. Creating guidelines that can serve future partners taking over from you &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;In  big (and some small) design &lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;companies, a website cannot be created without a style guide to back it up. I&lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;t’s a comm&lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;unication  document that levels out the expectations of all those involved in the  project. It’s also &lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;a way of making sure there are no surprises in the  end. Even &lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;if you&#39;re not working in a team, &lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;a  style guide can make your life  easier. It is a crucial  step towards  creating a successful professional website. It’s the  touchstone in the  process that will keep you focused and help you  achieve a more &lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;cohesive design.&lt;/span&gt; &lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;br /&gt;The Wix editor offers endless possibilities, making for an&lt;/span&gt;&lt;span style=&quot;vertical-align: baseline;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt; exciting and refreshing design process. But watch out! This wealth of design &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;possibilities&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;&gt; can just as well &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;throw you off  track. A style guide will always help you ste&lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;er back into the right  direction thus saving you a lot of time. By creating a style guide &lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;you  are effectively establishing rules that will make the design process &lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; more efficient and help the final website achieve its purpose.&lt;/span&gt; &lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;How to Prepare a Style Guide&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Before   approaching the editor grab a pencil and paper and construct  your  guidelines. Web guidelines keep everything consistent, from button   styles to navigation structure. &lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-style: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;br /&gt;Points to Consider When Preparing a Style Guide&lt;/span&gt; &lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;1.    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;Prepare   a color sheet- what are the tones you would like to use in your  design,  and what is the color scheme of your website? A black and white   concept with brightly colored text? Solid black background with neon  color&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;vertical-align: baseline;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;ed elements? Lay out the colors &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;together&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;, when stuc&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;k or lost. It can be very handy to refer to  your pre-planned guide. &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6Ei0cn26Y4FSqM_5qlAWZRPVXOiklbQvETh0ZR2Nk4dn2uvbNBXUUuNaGiLKeCMsEuBofPEkRx4uWMKNq8oKcuAzDds4IbyAmzAveXY3mInoOgvKHrr9_pT5o1-MoUBrqTHGVlSALcE0/s1600/STYLE+COLOR.jpg&quot;&gt;&lt;img alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5537856996152555586&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6Ei0cn26Y4FSqM_5qlAWZRPVXOiklbQvETh0ZR2Nk4dn2uvbNBXUUuNaGiLKeCMsEuBofPEkRx4uWMKNq8oKcuAzDds4IbyAmzAveXY3mInoOgvKHrr9_pT5o1-MoUBrqTHGVlSALcE0/s400/STYLE+COLOR.jpg&quot; style=&quot;cursor: pointer; display: block; height: 343px; margin: 0px auto 10px; text-align: center; width: 400px;&quot; border=&quot;0&quot; /&gt;&lt;/a&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-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;2.    &lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;What  fonts will you be using? Usually no more then three are nee&lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;ded. Find combinations of fonts that work for you. Decide what font you&#39;ll be  usin&lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;g for titles, sub-titles, headings and main text. Will you be using Bold or Italics for titles? &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-03wtIj9HibZc_BRIU2thqYEch1scmb-EjqtlPot132BlDlpqtl8zhnPywPNTaa4cm7dOulvnUCAzyOHJuATUg8r85pArJLiLJVvEyDXcletXklv-4B6RQHDAODr-SzFSVC7a3C7MYLE/s1600/style+text.jpg&quot;&gt;&lt;img alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5537856985120287138&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-03wtIj9HibZc_BRIU2thqYEch1scmb-EjqtlPot132BlDlpqtl8zhnPywPNTaa4cm7dOulvnUCAzyOHJuATUg8r85pArJLiLJVvEyDXcletXklv-4B6RQHDAODr-SzFSVC7a3C7MYLE/s400/style+text.jpg&quot; style=&quot;cursor: pointer; display: block; height: 343px; margin: 0px auto 10px; text-align: center; width: 400px;&quot; border=&quot;0&quot; /&gt;&lt;/a&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;/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-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;3.    &lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Think   about the grid and layout of the website. This determines where   elements will be placed. Prepare some generic templates that you can use   when designing. A good grid is the key to a good website and will   ensure consistency. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQa4nuAqc7Z_r6dRiHLaBIl9zksv-3HjhoQfNv36CAIuyuwDRrjp_VhEetwfoHOmPHlrin9Wjx9RnQpNDW6tSQI6QJihKI1ifOF63bjC7t55nbPhOLymzFnWscShJ5FNr4Jm_h44Snw8g/s1600/style+grid.jpg&quot;&gt;&lt;img alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5537856989697395410&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQa4nuAqc7Z_r6dRiHLaBIl9zksv-3HjhoQfNv36CAIuyuwDRrjp_VhEetwfoHOmPHlrin9Wjx9RnQpNDW6tSQI6QJihKI1ifOF63bjC7t55nbPhOLymzFnWscShJ5FNr4Jm_h44Snw8g/s400/style+grid.jpg&quot; style=&quot;cursor: pointer; display: block; height: 343px; margin: 0px auto 10px; text-align: center; width: 400px;&quot; border=&quot;0&quot; /&gt;&lt;/a&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-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;4.    &lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Have  a look at your navigation structure and organization of relev&lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;ant &lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;materials. Map out the information you want to display on your website -  this is where you n&lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;ame  the menu options. Menu options may include  headings such as home,  about, contact, gallery, portfolio (perhaps with  sub categories),  links, comments. Will you be using an intro page? Or use  more then one  language? This is the map of your website, it will e&lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;nsure  that your web site has an appropriate structure and will help you lay out  all the materials you need to prepare.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhW2hcRjwiW8dyJkeWfgSjzWgA3pSsAH1ne_HaJBr8c_q9wpJ_Rio8BUvSAN_GpnfgrbKdn4-iGsgvbEiQdTSoopqim8GrEK8hnta0AF1ABsw8sFn_zpRf2kfdW7JPbj6YwBQ0wZe8wTXk/s1600/+style+navigation.jpg&quot;&gt;&lt;img alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5537857005124307378&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhW2hcRjwiW8dyJkeWfgSjzWgA3pSsAH1ne_HaJBr8c_q9wpJ_Rio8BUvSAN_GpnfgrbKdn4-iGsgvbEiQdTSoopqim8GrEK8hnta0AF1ABsw8sFn_zpRf2kfdW7JPbj6YwBQ0wZe8wTXk/s400/+style+navigation.jpg&quot; style=&quot;cursor: pointer; display: block; height: 343px; margin: 0px auto 10px; text-align: center; width: 400px;&quot; border=&quot;0&quot; /&gt;&lt;/a&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-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;5.    &lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Prepare   the text you&#39;ll be using. Think of key words you need to highlight.   Gathering all the text at this stage including contact  info &lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;and picture captions will be a huge time saver when you get to building your website. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-MBLR_l_BZ5SddvShYRFpZ6L4lg7jv_f-jq3oW5ydxevwwth4SC-ANu46_BZ0LJDcv1pA4fT2E4x2ZrGo8j77EyETqGA8dmadVSu4m4NCUK9NpoENrTxF_NvDtkK-7xyzjO94HV7n8Uk/s1600/style+words.jpg&quot;&gt;&lt;img alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5537860793014426082&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-MBLR_l_BZ5SddvShYRFpZ6L4lg7jv_f-jq3oW5ydxevwwth4SC-ANu46_BZ0LJDcv1pA4fT2E4x2ZrGo8j77EyETqGA8dmadVSu4m4NCUK9NpoENrTxF_NvDtkK-7xyzjO94HV7n8Uk/s400/style+words.jpg&quot; style=&quot;cursor: pointer; display: block; height: 322px; margin: 0px auto 10px; text-align: center; width: 400px;&quot; border=&quot;0&quot; /&gt;&lt;/a&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-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;6.    &lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;What   images will be displayed?  Are they ready to upload or are compression   and editing needed? Decide which image goes under what tab and if   captions are needed. How are the images going to be displayed? Perhaps   with a consistent frame &lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;around them? If you have a gallery of some sort,  plan out the image categories.&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;trebuchet ms&#39;; font-size: medium;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0gcg6BLziz5fD4NCPAkcXYHgPkCBg9c42P3RlTIOEoGN0_tjwgfY-NzoSGzUWjObMx-9Phyphenhyphen00HzcY0Ht7s0bHp7Xf-vg649UC1Qvc7pzivrwyDxdxXkCfa6FlljRuXIZRUz4ZGj2iPBY/s1600/styl+photo.jpg&quot;&gt;&lt;img alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5537865348440185394&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0gcg6BLziz5fD4NCPAkcXYHgPkCBg9c42P3RlTIOEoGN0_tjwgfY-NzoSGzUWjObMx-9Phyphenhyphen00HzcY0Ht7s0bHp7Xf-vg649UC1Qvc7pzivrwyDxdxXkCfa6FlljRuXIZRUz4ZGj2iPBY/s400/styl+photo.jpg&quot; style=&quot;cursor: pointer; display: block; height: 322px; margin: 0px auto 10px; text-align: center; width: 400px;&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;7.    &lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Consider   your use of graphic elements.  This is where you decide whether and   where to incorporate them, and how and where your logo will be  integrated.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKbEZDWduZFpWgSfjZj7BeUCmjG66Us_fTwz8AVumpaqI3XrS6vJp4BwbiVXz1Px1woK9jDnx1A9CuzhnX2o3jjH1sK11tlx8DUeg0DuLuptdFp5n5QtK89e1I7cI_gJPjVfjwnd-v4A4/s1600/styl+graphics.jpg&quot;&gt;&lt;img alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5537865353889616274&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKbEZDWduZFpWgSfjZj7BeUCmjG66Us_fTwz8AVumpaqI3XrS6vJp4BwbiVXz1Px1woK9jDnx1A9CuzhnX2o3jjH1sK11tlx8DUeg0DuLuptdFp5n5QtK89e1I7cI_gJPjVfjwnd-v4A4/s400/styl+graphics.jpg&quot; style=&quot;cursor: pointer; display: block; height: 234px; margin: 0px auto 10px; text-align: center; width: 400px;&quot; border=&quot;0&quot; /&gt;&lt;/a&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-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;You   may find it helpful to have the editor open and play around with   different options. Make sure to transfer your decisions to the style   guide, so you will always be able to refer to it once you start building   your website.&lt;/span&gt; &lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &lt;/span&gt; &lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;br /&gt;The  best thing about a style guide is that it&#39;s transferable- it  can  be applied to all your publications. The effort you put into the  style  guide will definitely pay off when you&#39;ll see you can apply it to any  other form of communication you use: email marketing, blogs, business  cards - your company now has a strong unified style.&lt;/span&gt; &lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &lt;/span&gt; &lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;br /&gt;Remember the document you produce is not set in stone, you can always make changes and update it!&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://apnimarzee.blogspot.com/feeds/6519176128048100087/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://apnimarzee.blogspot.com/2010/11/how-to-prepare-style-guide-for-your.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4907713461663660592/posts/default/6519176128048100087'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4907713461663660592/posts/default/6519176128048100087'/><link rel='alternate' type='text/html' href='http://apnimarzee.blogspot.com/2010/11/how-to-prepare-style-guide-for-your.html' title='How to Prepare a Style Guide for your Website'/><author><name>Zeeshan Mirza</name><uri>http://www.blogger.com/profile/00454539468587625372</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivD10NFwxGgQqVjxlun90-2CEnmt_970bpaH8c8iFrPw53vcIeUqQ6d9h9TqM8aZiquJoq6ZGJ1Fd8y0ZQyp5cWaq38m1c5ChNNhhQQ4fmXDaSm7qbNSBj2pbmUt6a0w/s220/26.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijadOHpxwcFYEWfySkWkBR68ndy1yHe36hXmw_amX7KhkHl7Wira3TlX5MbGUQ5YlLo8uHYaPchlallrbRduAzFUCwINTHedB0-Uy8P_3_xEXyCYCO7IVUxcKmPczTJRd7KeHDt_3-fW0/s72-c/STYLE1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4907713461663660592.post-7303988125831010094</id><published>2010-11-23T06:10:00.000-08:00</published><updated>2010-11-23T06:12:56.417-08:00</updated><title type='text'>10 Web Usability Tips</title><content type='html'>&lt;h3 class=&quot;post-title entry-title&quot;&gt; &lt;a href=&quot;http://blog.wix.com/2010/11/10-web-usability-tips.html&quot;&gt;&lt;br /&gt;&lt;/a&gt; &lt;/h3&gt; &lt;div class=&quot;post-header&quot;&gt;  &lt;/div&gt; &lt;br /&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline; color: rgb(0, 0, 0);&quot;&gt;1. Every page should feature a &quot;back&quot; or &quot;home&quot; button. The navigation bar&#39;s location should be consistent on every page. &lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUzhxCgwBEHuUtzRAjSlzk0XfjuByDiMp_x49xfs_WENLzGgDrM9MphUlbrMuNqkp0e2NOH1yImGr6wtRFeNSpvfDVKPBTSwyz13Ev3byqqpKoOKaLwRrS4ED1RSYyKFVMmDpzGFKWR4I/s1600/a-home1.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 400px; height: 259px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUzhxCgwBEHuUtzRAjSlzk0XfjuByDiMp_x49xfs_WENLzGgDrM9MphUlbrMuNqkp0e2NOH1yImGr6wtRFeNSpvfDVKPBTSwyz13Ev3byqqpKoOKaLwRrS4ED1RSYyKFVMmDpzGFKWR4I/s400/a-home1.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5534621302484374914&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline; color: rgb(0, 0, 0);&quot;&gt;2.  If you have a photo gallery, make sure your visitors can enlarge photos  and scroll between them while  enlarged. This way your visitors won&#39;t  be forced to close one enlarged photo  and open the next. Usability&#39;s  first rule  of thumb is &lt;b&gt;the less “clicks”, the happier the  visitor&lt;/b&gt;.&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline; color: rgb(0, 0, 0);&quot;&gt;3. If you have music on your site make sure the visitor can easily identify the player and switch it off if they so choose. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwBU0chPzW0ioByl9lIIXEKBKZKFNTENSNTD6eyeBPZyi1-jy9uDbm15fpgpi57UmKDoHmCbSfTib5XvAYxvJFTplsSjGof1HZsasqDXxdjKQlTtotuIKWwDvagOlZRi_4O_bp07_DxeA/s1600/a-music.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 400px; height: 255px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwBU0chPzW0ioByl9lIIXEKBKZKFNTENSNTD6eyeBPZyi1-jy9uDbm15fpgpi57UmKDoHmCbSfTib5XvAYxvJFTplsSjGof1HZsasqDXxdjKQlTtotuIKWwDvagOlZRi_4O_bp07_DxeA/s400/a-music.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5534626105863378930&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline; color: rgb(0, 0, 0);&quot;&gt;4. Don’t overload- rich media websites are slower to load, testing the users patience.&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpFMWX0jzEJ2xF80JwNFXFLxncas1iI-zzIwIT2DV3XT9lf_jjnvNxBpVPxLVEKzPlf4oiGweWOTtdXoEflGHHpfp5aTpn2oBjZTeqBFIVpQxn71l9a60ogQ1o_99u7ZwBFFirq_b6Fls/s1600/a-time.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 400px; height: 160px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpFMWX0jzEJ2xF80JwNFXFLxncas1iI-zzIwIT2DV3XT9lf_jjnvNxBpVPxLVEKzPlf4oiGweWOTtdXoEflGHHpfp5aTpn2oBjZTeqBFIVpQxn71l9a60ogQ1o_99u7ZwBFFirq_b6Fls/s400/a-time.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5534621308277124082&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline; color: rgb(0, 0, 0);&quot;&gt;5. Be consistent with the design pattern and alignment, don&#39;t change your grid on every page.&lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline; color: rgb(0, 0, 0);&quot;&gt;6.   If your website has more than the customary 4-5 tabs, and has more  than  one menu, make sure there&#39;s an easy flow from one page to another  and  that users can easily spot the sub-menus.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline; color: rgb(0, 0, 0);&quot;&gt;7. Place all contact info under one section - don’t scatter it around your website.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4T5MrG9x5xAvAR1uzrZa6YHsP_ZSOhq6KWYy9XW38YN4s3udCAbnXWzKn1MTQr42h0DtC9Am-BAbtDLn9v0jjbMVviFyG-vi1Zn3dJecBkmw6EEf60N1mxmmcJtvhNsUeGvGNs5ZFKis/s1600/a-contact.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 400px; height: 160px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4T5MrG9x5xAvAR1uzrZa6YHsP_ZSOhq6KWYy9XW38YN4s3udCAbnXWzKn1MTQr42h0DtC9Am-BAbtDLn9v0jjbMVviFyG-vi1Zn3dJecBkmw6EEf60N1mxmmcJtvhNsUeGvGNs5ZFKis/s400/a-contact.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5534621301170863522&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;vertical-align: baseline;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;8.  Users are usually intimidated by long texts&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;.  Be specific, highlight (Bold  or with color) relevant texts so they pop  out to the visitor.  Fact is, most users will probably only read the  highlighted text.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline; color: rgb(0, 0, 0);&quot;&gt;9.  Integrate Symbols and Icons into your design. Symbols are Icons are  usually international, easy to understand and add a great look and feel  to your site. &lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline; color: rgb(0, 0, 0);&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAmVby8rxQXI5RRwtVE6n-oE_uAePjomGn7tX69CTqqtA8QfeYNdwh0d48nwlqVnMbHfsPM0x0ZKXMc2CZn0-oDiLTY75_o8-hJu-edz85JONDdVkiCjHZbdgRCBESMzdbCdPCgQmGxgU/s1600/a-icons.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 400px; height: 160px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAmVby8rxQXI5RRwtVE6n-oE_uAePjomGn7tX69CTqqtA8QfeYNdwh0d48nwlqVnMbHfsPM0x0ZKXMc2CZn0-oDiLTY75_o8-hJu-edz85JONDdVkiCjHZbdgRCBESMzdbCdPCgQmGxgU/s400/a-icons.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5534622947020841490&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline; color: rgb(0, 0, 0);&quot;&gt;10.  Before publishing your site, conduct a usability test, showing your  website to  as many people as possible. Be present with them while they  enter your website, monitor their reactions and where they get stuck.&lt;br /&gt;&lt;br /&gt;This post is from wix blog.&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://apnimarzee.blogspot.com/feeds/7303988125831010094/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://apnimarzee.blogspot.com/2010/11/10-web-usability-tips.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4907713461663660592/posts/default/7303988125831010094'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4907713461663660592/posts/default/7303988125831010094'/><link rel='alternate' type='text/html' href='http://apnimarzee.blogspot.com/2010/11/10-web-usability-tips.html' title='10 Web Usability Tips'/><author><name>Zeeshan Mirza</name><uri>http://www.blogger.com/profile/00454539468587625372</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivD10NFwxGgQqVjxlun90-2CEnmt_970bpaH8c8iFrPw53vcIeUqQ6d9h9TqM8aZiquJoq6ZGJ1Fd8y0ZQyp5cWaq38m1c5ChNNhhQQ4fmXDaSm7qbNSBj2pbmUt6a0w/s220/26.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUzhxCgwBEHuUtzRAjSlzk0XfjuByDiMp_x49xfs_WENLzGgDrM9MphUlbrMuNqkp0e2NOH1yImGr6wtRFeNSpvfDVKPBTSwyz13Ev3byqqpKoOKaLwRrS4ED1RSYyKFVMmDpzGFKWR4I/s72-c/a-home1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4907713461663660592.post-1415830536546927952</id><published>2010-11-21T01:48:00.000-08:00</published><updated>2010-11-21T01:53:45.770-08:00</updated><title type='text'>This blog is about Biddding Site.</title><content type='html'>&lt;span style=&quot;font-size:100%;&quot;&gt;This is a blog for our website  &quot; ApniMarzee&quot;.&lt;br /&gt;Our web will be an  online bidding site like eBay. A user(seller) will put something which he wants to sale online. User(buyer) will come to  bid and the user(buyer) with max bid will win.&lt;br /&gt;Moreover , instead of using &quot;sign/register&quot; for bidding site we will use Facebook Login (using facebook API for single sign on).&lt;br /&gt;Further more, we will let this site post to user facebook wall. Lets say, you put a cell phone for sale for 10000Rs. So sooner do you put this on your bidding site, our bidding site (since you will be logged into that bidding site through faceook API , hence it will have access to your wall) will post something like &quot;Ali wants to sale a Cell phone for this amount., If you are interested come and bid here&quot;.&lt;br /&gt;This will be different from traditonal bidding sites. It will have a Desi touch as shown by its name.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://apnimarzee.blogspot.com/feeds/1415830536546927952/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://apnimarzee.blogspot.com/2010/11/this-blog-is-about-biddding-site.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4907713461663660592/posts/default/1415830536546927952'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4907713461663660592/posts/default/1415830536546927952'/><link rel='alternate' type='text/html' href='http://apnimarzee.blogspot.com/2010/11/this-blog-is-about-biddding-site.html' title='This blog is about Biddding Site.'/><author><name>Zeeshan Mirza</name><uri>http://www.blogger.com/profile/00454539468587625372</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivD10NFwxGgQqVjxlun90-2CEnmt_970bpaH8c8iFrPw53vcIeUqQ6d9h9TqM8aZiquJoq6ZGJ1Fd8y0ZQyp5cWaq38m1c5ChNNhhQQ4fmXDaSm7qbNSBj2pbmUt6a0w/s220/26.jpg'/></author><thr:total>1</thr:total></entry></feed>