<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SQL Questions Archives - 123projectlab.com</title>
	<atom:link href="http://123projectlab.com/category/sql-questions/feed/" rel="self" type="application/rss+xml" />
	<link>https://123projectlab.com/category/sql-questions/</link>
	<description>Academic projects for MCA, BCA, B.Tech(CS/IT), MSc-IT, BSc-IT Final year student</description>
	<lastBuildDate>Sun, 19 Sep 2021 11:27:18 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>

<image>
	<url>https://123projectlab.com/wp-content/uploads/2020/09/p-150x150.ico</url>
	<title>SQL Questions Archives - 123projectlab.com</title>
	<link>https://123projectlab.com/category/sql-questions/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>SQL Server Interview Questions [SQL Tutorial] VOL.-1</title>
		<link>https://123projectlab.com/interview-questions-with-answers-on-sql-vol-i/</link>
		
		<dc:creator><![CDATA[123ProjectLab]]></dc:creator>
		<pubDate>Sun, 19 Sep 2021 11:28:00 +0000</pubDate>
				<category><![CDATA[Interview Questions]]></category>
		<category><![CDATA[SQL Questions]]></category>
		<category><![CDATA[interview questions]]></category>
		<category><![CDATA[SQL]]></category>
		<guid isPermaLink="false">http://123projectlab.com/?p=291</guid>

					<description><![CDATA[<p>Looking for SQL server interview questions? If yes the you have landed on the right page. Here we are giving most important SQL server interview questions frequently asked during project viva ... <a title="SQL Server Interview Questions [SQL Tutorial] VOL.-1" class="read-more" href="https://123projectlab.com/interview-questions-with-answers-on-sql-vol-i/" aria-label="Read more about SQL Server Interview Questions [SQL Tutorial] VOL.-1">Read more</a></p>
<p>The post <a href="https://123projectlab.com/interview-questions-with-answers-on-sql-vol-i/">SQL Server Interview Questions [SQL Tutorial] VOL.-1</a> appeared first on <a href="https://123projectlab.com">123projectlab.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Looking for SQL server interview questions?</p>



<p>If yes the you have landed on the right page. Here we are giving most important SQL server interview questions frequently asked during project viva or interview. So lets go ahead for Important SQL server interview questions.</p>



<h3 class="wp-block-heading">Q. 1 Define Primary Key?</h3>



<p>Ans:&nbsp; The primary key is the columns used to uniquely identify each row of a table.A table can have only one primary key. A primary key value can not appear in more than one row in the table.</p>



<h3 class="wp-block-heading">Q.2&nbsp; Define Unique Key?</h3>



<p>Ans:&nbsp; Unique key is a one or more column that must be unique for each row of the table.It is similar to primary key. Primary key column will not accept a null. Whereas the unique key column will accept a null values.</p>



<h3 class="wp-block-heading">Q. 3 Define Foreign Key?</h3>



<p>Ans:&nbsp; A foreign Key is a combination of columns with value is based on the primary key values from another table. A foreign key constraint also known as Referential Integrity Constraint.</p>



<h3 class="wp-block-heading">Q.4&nbsp; How do you add a column to a existing table? Give an example.</h3>



<p>Ans:&nbsp; ALTER TABLE Department ADD (AGE, NUMBER);</p>



<h3 class="wp-block-heading">Q.5&nbsp; Define View?</h3>



<p>Ans:&nbsp; A View is a database object that is a logical representation of a table.</p>



<p>A view does not represent any physical data.<br>It is derived from a table but it has no longer of its own and often may be used in the same manner as a table.<br>A view is a virtual table that has columns as in a table.</p>



<h3 class="wp-block-heading">Q.6&nbsp; Can one drop a column from a table?If yes give an example</h3>



<p>Ans:  YES, to delete a column in a table, use  ALTER TABLE table_name DROP COLUMN column_name</p>



<div class="wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex"></div>



<div class="wp-block-buttons is-content-justification-center is-layout-flex wp-block-buttons-is-layout-flex">
<div class="wp-block-button"><a class="wp-block-button__link has-vivid-red-background-color has-background" href="https://123projectlab.com/category/sql-questions/">Click Here for More SQL Server Interview Questions</a></div>
</div>



<h3 class="wp-block-heading">Q.7&nbsp; Compare and contrast TRUNCATE and DELETE commands for a table.</h3>



<p>Ans:  Both the command have the common outcome of getting rid of all rows in a table. The difference between these two command is that the &#8220;truncate&#8221; command is a DDL operation and it just moves high water mark and produce a now</p>



<h3 class="wp-block-heading">Q.8 What is cursors?</h3>



<p>Ans: Cursor is a database object used by applications for manipulating data in a set on a row-by-row basis, instead of typical SQL commands which operate on all the rows in set at one time.</p>



<h3 class="wp-block-heading">Q.9 What’s the difference between a primary key and a unique key? Explain.</h3>



<p>Ans: Both primary key and unique enforce uniqueness of column on which they are defined. But by default primary key creates a clustered index on column, while unique creates a non-clustered index by default. Major difference is that, primary key does not allow NULLs while unique key allows one NULL only.</p>



<h3 class="wp-block-heading">Q.10 What are Joins?</h3>



<p>Ans: A Join combines columns and data from two or more tables (and in some cases, of one table with itself).</p>



<h3 class="wp-block-heading">Q.11 How will you define SQL?</h3>



<p>Ans: Structured query language(SQL) is the standard command set used for communicating with the relational database management system(RDBMS).</p>



<h3 class="wp-block-heading">Q.12 Define DBMS?</h3>



<p>Ans: A Database Management system(DBMS) consists of a collection of interrelated data and set of programs for accessing that data</p>



<h3 class="wp-block-heading">Q.13 What is the different between Security and Integrity? Explain it.</h3>



<p>Ans: Security is a protection from malicious attempts to modify or steal data.While the integrity constraints guard against any accidental damage to database, by ensuring that authorized changes to database will not result in a loss of data consistency.</p>



<p>Hope these question and answers will increase your knowledge in SQL.</p>



<div class="wp-block-buttons is-content-justification-center is-layout-flex wp-block-buttons-is-layout-flex">
<div class="wp-block-button"><a class="wp-block-button__link has-vivid-red-background-color has-background" href="https://123projectlab.com/category/sql-questions/">Click Here for More SQL Server Interview Questions</a></div>
</div>
<p>The post <a href="https://123projectlab.com/interview-questions-with-answers-on-sql-vol-i/">SQL Server Interview Questions [SQL Tutorial] VOL.-1</a> appeared first on <a href="https://123projectlab.com">123projectlab.com</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>SQL Server Interview Questions For Viva [SQL Tutorial] VOL.-2</title>
		<link>https://123projectlab.com/interview-questions-with-anwers-on-sql-vol-2/</link>
					<comments>https://123projectlab.com/interview-questions-with-anwers-on-sql-vol-2/#respond</comments>
		
		<dc:creator><![CDATA[123ProjectLab]]></dc:creator>
		<pubDate>Sat, 18 Sep 2021 18:04:00 +0000</pubDate>
				<category><![CDATA[Interview Questions]]></category>
		<category><![CDATA[SQL Questions]]></category>
		<category><![CDATA[interview questions]]></category>
		<category><![CDATA[SQL]]></category>
		<guid isPermaLink="false">http://123projectlab.com/?p=416</guid>

					<description><![CDATA[<p>In our last post &#8220;Interview questions with anwers on SQL VOL 1&#8221; we focused on basic of SQL server. In this post we will continue it. Here are few more common ... <a title="SQL Server Interview Questions For Viva [SQL Tutorial] VOL.-2" class="read-more" href="https://123projectlab.com/interview-questions-with-anwers-on-sql-vol-2/" aria-label="Read more about SQL Server Interview Questions For Viva [SQL Tutorial] VOL.-2">Read more</a></p>
<p>The post <a href="https://123projectlab.com/interview-questions-with-anwers-on-sql-vol-2/">SQL Server Interview Questions For Viva [SQL Tutorial] VOL.-2</a> appeared first on <a href="https://123projectlab.com">123projectlab.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>In our last post <span style="text-decoration: underline;"><strong><a href="http://wp.me/p2TlRv-4H" target="_blank" rel="noopener">&#8220;Interview questions with anwers on SQL VOL 1&#8221;</a> </strong></span>we focused on basic of SQL server. In this post we will continue it. Here are few more common question on SQL.</p>



<h3 class="wp-block-heading">Q. 1 Define Normalisation?</h3>



<p>Ans:&nbsp; Normalisation is an essential part of database design. A good knowledge of the semantic of data helps the designer in designing an efficient design using all concept of normalization.</p>



<h3 class="wp-block-heading">Q.2&nbsp; What is the different between Security and Integrity? Explain it.</h3>



<p>Ans:&nbsp; Security is a protection against malicious attempts to steal or modify data. On the other hand integrity constraints guard against accidental damage to database. It ensure that authorized changes to database may not result in a loss of any data consistency.</p>



<h3 class="wp-block-heading">Q. 3&nbsp; What are the purpose of Normalisation?</h3>



<p>Ans: Main purpose of Normalisation are as follows :<br>Minimize redundancy in data.<br>Remove insert, delete and update anomaly during the database activities.<br>Reducing the need to reorganize data it is enhanced or modified.</p>



<h3 class="wp-block-heading">Q.4&nbsp; How will you implement one-to-one, one-to-many and many-to-many relationships while designing tables?</h3>



<p>Ans: One-to-One relationship is implemented as a single table. Sometimes is is also implemented as two tables with foreign and primary key relationships. One-to-Many relationships can be implemented by splitting data into two different tables with primary and foreign key relationships. Many-to-Many relationships can be implemented using a junction table with keys from both tables forming composite primary key of junction table.</p>



<h3 class="wp-block-heading">Q. 5&nbsp; How can you create a column alias?</h3>



<p>Ans:&nbsp; The &#8216;AS&#8217; keyword is optional when specifying a column alias.</p>



<h3 class="wp-block-heading">Q. 6&nbsp; What is SubQuery?</h3>



<p>Ans:&nbsp; Subquery is the nesting of Queries within other query.</p>



<div class="wp-block-buttons is-content-justification-center is-layout-flex wp-block-buttons-is-layout-flex">
<div class="wp-block-button"><a class="wp-block-button__link has-vivid-red-background-color has-background" href="http://123projectlab.com/category/sql-questions/">More SQL Server Interview Questions</a></div>
</div>



<h3 class="wp-block-heading">Q. 7&nbsp; How can you hide definition of a stored procedure from a user ?</h3>



<p>Ans: When we create stored procedure we use WITH ENCRYPTION. It will convert original statement of CREATE PROCEDURE into an encrypted format.</p>



<h3 class="wp-block-heading">Q. 8 &nbsp;How can you disable a triger? Explain how.</h3>



<p>Ans:&nbsp; You can disable a single trigger in database by using&nbsp; “DISABLE TRIGGER triggerName ON &lt;&lt;TableName&gt;&gt;” you can disable all the trigger with the use of “DISABLE Trigger ALL ON ALL SERVER”</p>



<h3 class="wp-block-heading">Q. 9 &nbsp;What is functional dependency.</h3>



<p>Ans:&nbsp; Functional dependency tells that how one object depends upon the other object in the database.</p>



<h3 class="wp-block-heading">Q. 10&nbsp; Define Inner Join.</h3>



<p>Ans: An inner Join is the default type of join in Query and View Designer.An inner Join is join that displays only rows that have common in both joined tables.</p>



<h3 class="wp-block-heading">Q. 11&nbsp; What are the different types of subquery?</h3>



<p>Ans:</p>



<ol class="wp-block-list"><li>Single row subquery</li><li>Multiple row subquery</li><li>Correlated row subquery</li></ol>



<h3 class="wp-block-heading">Q. 12&nbsp; What are the different types of replication?</h3>



<p>Ans:&nbsp;&nbsp;&nbsp; The SQL Server 2000-supported replication types are as follows :</p>



<ol class="wp-block-list"><li>Transactional</li><li>Snapshot</li><li>Merge</li></ol>



<h3 class="wp-block-heading">Q. 13&nbsp; Explain the advantages of using Views ?</h3>



<p>Ans:&nbsp; Advantages of using views are as follows:</p>



<ol class="wp-block-list"><li>View provide simplify commands for the users.</li><li>View hide data complexity from user.</li><li>View stores complex queries.</li><li>View presents data in a different from that of the base table.</li><li>Views provides an additional level for table security.</li><li>View restrict access to a predetermined set of rows and columns of table.</li><li>View display only selective columns from a table.</li><li>Views provide groups of users access to data according to selected criteria.</li><li>Views provide data independence for application programs and ad hoc users.</li><li>A view can be used for retrieving data from multiple tables.</li></ol>



<div class="wp-block-buttons is-content-justification-center is-layout-flex wp-block-buttons-is-layout-flex">
<div class="wp-block-button"><a class="wp-block-button__link has-vivid-red-background-color has-background" href="http://123projectlab.com/category/sql-questions/">More SQL Server Interview Questions</a></div>
</div>
<p>The post <a href="https://123projectlab.com/interview-questions-with-anwers-on-sql-vol-2/">SQL Server Interview Questions For Viva [SQL Tutorial] VOL.-2</a> appeared first on <a href="https://123projectlab.com">123projectlab.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://123projectlab.com/interview-questions-with-anwers-on-sql-vol-2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>SQL Server Interview Questions [SQL Tutorial] VOL.-3</title>
		<link>https://123projectlab.com/sql-server-interview-questions-sql-tutorial-vol-3/</link>
					<comments>https://123projectlab.com/sql-server-interview-questions-sql-tutorial-vol-3/#respond</comments>
		
		<dc:creator><![CDATA[123ProjectLab]]></dc:creator>
		<pubDate>Tue, 29 May 2018 06:13:59 +0000</pubDate>
				<category><![CDATA[Interview Questions]]></category>
		<category><![CDATA[SQL Questions]]></category>
		<category><![CDATA[interview questions]]></category>
		<category><![CDATA[SQL]]></category>
		<guid isPermaLink="false">http://123projectlab.com/?p=679</guid>

					<description><![CDATA[<p>Are you searching for SQL Server interview or viva questions? Here we are giving some common SQL server questions with answers. These are frequently asked in project viva and also in ... <a title="SQL Server Interview Questions [SQL Tutorial] VOL.-3" class="read-more" href="https://123projectlab.com/sql-server-interview-questions-sql-tutorial-vol-3/" aria-label="Read more about SQL Server Interview Questions [SQL Tutorial] VOL.-3">Read more</a></p>
<p>The post <a href="https://123projectlab.com/sql-server-interview-questions-sql-tutorial-vol-3/">SQL Server Interview Questions [SQL Tutorial] VOL.-3</a> appeared first on <a href="https://123projectlab.com">123projectlab.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Are you searching for SQL Server interview or viva questions?</p>
<p>Here we are giving some common SQL server questions with answers. These are frequently asked in project viva and also in job interview.</p>
<h2>Here are some SQL Server Interview Questions</h2>
<h2>Q.1  What is use of GROUP BY and HAVING clause in SQL?</h2>
<p>Ans:  The GROUP BY clause partitions the selected rows on distinct values of the column on which the group by has been made  while  HAVING selects groups which match the criteria specified.</p>
<h2>Q.2  What is tuple in SQL?</h2>
<p>Ans:  It is an instance of data within a relational database.</p>
<h2>Q. 3  Explain SQL Profiler?</h2>
<p>Ans: SQL Profiler is a graphical tool.  System administrators can monitor events in an instance of Microsoft SQL Server. We can save and capture data of each event in a file or SQL Server table and analyze it later.</p>
<h2>Q. 4 Explain User Defined Functions?</h2>
<p>Ans: User-Defined Functions allow us to define its own T-SQL functions. These function accept 0 or multiple parameters.</p>
<h2>Q.5  What is schema?</h2>
<p>Ans: It is a collection of database objects of Use.</p>
<h2>Q.6  What is Sequence?</h2>
<p>Ans: A Sequence is a database object. A Sequence may be used for providing very quick generation of unique numbers.</p>
<h2>Q.7  What is Equi Joins in SQL?</h2>
<p>Ans:  In this kind of join operation the join comparison operator is an equality. When we join two tables together through equality or values in one or more columns , this is called Equi join.</p>
<h2>Q. 8 What is Cartesian Join?</h2>
<p>Ans: When two tables are joined without using a where class it produces a Cartesian join. It combines each row of one table with each row of another table.</p>
<h2>Q.9 Tell three SQL keywords which are used to change or set someone&#8217;s permissions?</h2>
<p>Ans:  GRANT, REVOKE and  DENY.</p>
<h2 style="text-align: center;"><span style="color: #ff0000;"><em><a href="http://123projectlab.com/category/sql-questions/" target="_blank" rel="noopener"><span style="color: #ff0000;"><strong>Click Here for More SQL Server Interview Questions</strong></span></a></em></span></h2>
<h2>Q.10  What are data model in SQL?</h2>
<p>Ans: Data model is the underlying the structure of the database.</p>
<h2>Q.11 What is an Entity?</h2>
<p>Ans:  Entity is a &#8216;thing&#8217; in the real world and which has an independent existence.</p>
<h2>Q.12  Explain Data Warehousing?</h2>
<p>Ans: “A Data warehouse is a subject oriented, non volatile integrated ,time variant  collection of data for supporting management in decision making process”.</p>
<h2>Q.13  Tell the advantages of Database?</h2>
<p>Ans:</p>
<ul>
<li>    reduced data Redundancy</li>
<li>    Shared data</li>
<li>    Enforce security</li>
<li>    Enforce security</li>
<li>    Maintain integrity</li>
<li>    Avoided data Inconsistency</li>
</ul>
<h2>Q.14  List the advantage of SQL?</h2>
<p>Ans:</p>
<ul>
<li>    SQL provides a greater abstraction in comparison to procedural  languages.</li>
<li>    End users and system personnel can deal with a number of database management system</li>
</ul>
<h2>Q.15 What is BCP?</h2>
<p>Ans:  BCP is a short form of BulkCopy. We can copy heavy amount of data from table and view by using it.</p>
<h2>Q.16  List some transaction properties?</h2>
<p>Ans:</p>
<ul>
<li>    Durability</li>
<li>    Atomicity</li>
<li>    Consistency</li>
<li>    Isolation</li>
</ul>
<h2>Q.17  Deference between DBMS and object oriented DBMS?</h2>
<p>Ans:  DBMS contains a collection of interrelated data and also a set of program for accessing this data. While the object oriented DBMS stores information in the form of objects.</p>
<h2>Q.18 List the types of SQL Commands?</h2>
<p>Ans:</p>
<ul>
<li>    Data Control Language (DCL)</li>
<li>    Data Manipulation Language (DML)</li>
<li>    Data Definition Language (DDL)</li>
<li>    Data Query Language (DQL)</li>
</ul>
<h2>Q.19 What are attributes in SQL?</h2>
<p>Ans:  In SQL an entity is represented by a set of attributes. These are descriptive properties of each member of an entity set. Different types of attributes are.</p>
<ul>
<li>    Composite</li>
<li>    Single-valued</li>
<li>    Simple</li>
<li>    Derived</li>
</ul>
<h2 style="text-align: center;"><span style="color: #ff0000;"><em><a href="http://123projectlab.com/category/sql-questions/" target="_blank" rel="noopener"><span style="color: #ff0000;"><strong>Click Here for More SQL Server Interview Questions</strong></span></a></em></span></h2>
<p>The post <a href="https://123projectlab.com/sql-server-interview-questions-sql-tutorial-vol-3/">SQL Server Interview Questions [SQL Tutorial] VOL.-3</a> appeared first on <a href="https://123projectlab.com">123projectlab.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://123projectlab.com/sql-server-interview-questions-sql-tutorial-vol-3/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Database Caching 23/42 queries in 0.016 seconds using Disk

Served from: 123projectlab.com @ 2026-04-19 11:04:01 by W3 Total Cache
-->