<?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>dbms Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/dbms/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/dbms/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Tue, 11 May 2021 05:26:06 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>DBMS Interview Q&#038;A Part- 2</title>
		<link>https://www.scmgalaxy.com/tutorials/dbms-interview-qa-part-2/</link>
		
		<dc:creator><![CDATA[Chandan Kumar]]></dc:creator>
		<pubDate>Tue, 11 May 2021 05:12:12 +0000</pubDate>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[dbms]]></category>
		<category><![CDATA[Denormalization]]></category>
		<category><![CDATA[Engineers]]></category>
		<category><![CDATA[Interview]]></category>
		<category><![CDATA[Joins]]></category>
		<category><![CDATA[Locks]]></category>
		<category><![CDATA[Primary Key]]></category>
		<category><![CDATA[Questions]]></category>
		<category><![CDATA[Transaction]]></category>
		<category><![CDATA[Trigger]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=6166</guid>

					<description><![CDATA[<p>Q1. Can you create a table without using create command ? A. Yes, we can create table with the help [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/dbms-interview-qa-part-2/">DBMS Interview Q&#038;A Part- 2</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h5 class="wp-block-heading">Q1. Can you create a table without using create command ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> Yes, we can create table with the help of SELECT INTO statement. It<br>copies content of one table to another table. However, there should be<br>at least one table from where we can copy content.<br>Example :  Copying all columns : select * into new_table from old_table where<br>condition<br>Copying specific column : select col1,col2 into new_table from old_table<br>where condition<br>Creating new empty table : select * into new_table from old_table where 1<br>= 0</p>



<h5 class="wp-block-heading">Q2. What is Denormalization ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> It is the reverse process of Normalization. It is the process of trying to<br>improve the readability of the database by grouping data. Denormalization<br>is also used for speeding up the performance.</p>



<h5 class="wp-block-heading">Q3. What are Joins ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> Join clause are used to combine rows from two or more tables,<br>depending upon the columns between them.</p>



<h5 class="wp-block-heading">Q4. What are the different types of Joins ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> Different types of Joins are :</p>



<ol class="wp-block-list"><li><strong>INNER JOIN</strong> : It returns all records that are common in both tables.</li><li><strong>LEFT OUTER JOIN</strong> : It returns all records from the left table, and matched records from right table</li><li><strong>RIGHT OUTER JOIN</strong> : It returns all records from the right table, and matched records from left table.</li><li><strong>FULL OUTER JOIN</strong> : It returns all records when there is a match in either left or right table.</li></ol>



<h5 class="wp-block-heading">Q5. Explain Transaction ?</h5>



<p class="wp-block-paragraph"><strong>A. </strong>Transaction refers to the collection of multiple statements, that are<br>responsible for transferring a database from one consistent state to another<br>consistent state.</p>



<h5 class="wp-block-heading">Q6. Explain the role of views in database ?</h5>



<p class="wp-block-paragraph">A.View refers to the virtual table. We can create view using create view<br>statement.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
CREATE VIEW as Select col1
FROM table1
where CONDITION;
</pre></div>


<h5 class="wp-block-heading">Q7. Explain Trigger ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> Triggers are defined as special kind of stored programs, which are<br>automatically executed whenever a specific operation occurs in the<br>database server.</p>



<h5 class="wp-block-heading">Q8. What are Locks ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> Locking is the mechanism to protect data integrity and ensure data<br>consistency during transactions. Locks are the most common cause of<br>blocked processes. Stronger the Isolation level, more the chances of<br>blocking.</p>



<h5 class="wp-block-heading">Q9. Explain different types of Locks ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> Locks are broadly characterized into following types :</p>



<p class="wp-block-paragraph"><strong>Shared Locks</strong> : These locks are acquired by readers during read<br>operations. In other words, these locks exist when two transactions are<br>granted read access. Data updation is not allowed until shared lock is<br>released.<br><strong>Exclusive Locks</strong> : In exclusive lock, data items can be both read as well<br>as written by the transaction. In Exclusive lock, multiple transactions do not<br>modify the same data simultaneously.</p>



<h5 class="wp-block-heading">Q10. What is Super Key ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> An attribute or set of attributes that uniqueness in database is refered to<br>as Super key. It is the superset of Candidate key.</p>



<h5 class="wp-block-heading">Q11. What is Candidate Key ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> A minimal set of attribute/attributes that can be used to uniquely identify<br>a single row in a given relation is refered to as Candidate key.</p>



<h5 class="wp-block-heading">Q12. Explain Primary Key ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> DB Designer selects one of the candidate key as primary key for a<br>relation for the purpose of identification of a tuple uniquely. It is identified<br>during table creation.</p>



<h5 class="wp-block-heading">Q13. What is Composite Key ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> If a primary key has more than one attribute, then it is referred to as<br>Composite key.</p>



<h5 class="wp-block-heading">Q14. Explain Foreign Key ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> A set of attribute/attributes that is used to establish and enforce a link<br>between data in two or more relations.</p>



<h5 class="wp-block-heading">Q15. Can a table have more than one primary key ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> No.</p>



<h5 class="wp-block-heading">Q16. Can We Have NULL Value in Primary Key?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> No.</p>



<h5 class="wp-block-heading">Q17. What are cursors ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> A cursor is a temporary work area created in system memory when a<br>SQL statement is executed. A cursor can hold more than one row, but can<br>process only one row at a time.</p>



<h5 class="wp-block-heading">Q18.<strong>What are the differences between Hash join, Merge join and Nested loops?</strong></h5>



<figure class="wp-block-table"><table><tbody><tr><td class="has-text-align-center" data-align="center"><strong>Hash join</strong></td><td class="has-text-align-center" data-align="center"><strong>Merge join</strong></td><td class="has-text-align-center" data-align="center"><strong>Nested loops</strong></td></tr><tr><td class="has-text-align-center" data-align="center">The hash join is used when you have to join large tables.</td><td class="has-text-align-center" data-align="center">Merge join is used when projections of the joined tables are sorted on the join columns.</td><td class="has-text-align-center" data-align="center">The nested loop consists of an outer loop and an inner loop.</td></tr></tbody></table></figure>



<h5 class="wp-block-heading">Q19. <strong>What do you understand by Proactive, Retroactive and Simultaneous Update</strong> ?</h5>



<ol class="wp-block-list"><li><strong>Proactive Update:</strong> These updates are applied to the database before it becomes effective in the real-world environment.</li><li><strong>Retroactive Update:</strong> These retroactive updates are applied to a database after it becomes effective in the real-world environment.</li><li><strong>Simultaneous Update:</strong> These updates are applied to the database at the same instance of time as it becomes effective in a real-world environment.</li></ol>



<h5 class="wp-block-heading">Q20.<strong>What do you understand by Data Independence?</strong></h5>



<p class="wp-block-paragraph"><strong>A. </strong>When you say an application has data independence, it implies that the application is independent of the storage structure and data access strategies of data.</p>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/dbms-interview-qa-part-2/">DBMS Interview Q&#038;A Part- 2</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>DBMS Interview Q&#038;A Part- 1</title>
		<link>https://www.scmgalaxy.com/tutorials/dbms-interview-qa-part-1/</link>
					<comments>https://www.scmgalaxy.com/tutorials/dbms-interview-qa-part-1/#respond</comments>
		
		<dc:creator><![CDATA[Chandan Kumar]]></dc:creator>
		<pubDate>Mon, 10 May 2021 06:36:50 +0000</pubDate>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[dbms]]></category>
		<category><![CDATA[Interview]]></category>
		<category><![CDATA[Questions]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=6147</guid>

					<description><![CDATA[<p>Q. What is Data ? A. Data refers to raw facts and figures that can be recorded. Q. What is [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/dbms-interview-qa-part-1/">DBMS Interview Q&#038;A Part- 1</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h5 class="wp-block-heading">Q. What is Data  ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> Data refers to raw facts and figures that can be recorded.</p>



<h5 class="wp-block-heading">Q. What is Database ?</h5>



<p class="wp-block-paragraph"><strong>A. </strong>Database refers to the collection of interrelated and coherent data.</p>



<h5 class="wp-block-heading">Q. Explain DBMS ?</h5>



<p class="wp-block-paragraph" id="block-6dd739f4-3f59-4e01-bc84-3fe42e47a63e"><strong>A.</strong> DBMS stands for Database Management System. It is a software<br>package designed to define, manipulate, retrieve and manage data in<br>database.</p>



<h5 class="wp-block-heading">Q. Why DBMS ?</h5>



<p class="wp-block-paragraph" id="block-be293b80-1ba9-4550-b118-ec6b9d119b99"><strong>A.</strong> To make information easy to access and protected, we use database<br>management systems. DBMS is important because it manages the data<br>efficiently and allow users to perform multiple tasks on it with the ease.</p>



<h5 class="wp-block-heading">Q. What is a database system?</h5>



<p class="wp-block-paragraph" id="block-87aacc1a-6300-4442-ba51-444d3e959c87"><strong>A. </strong>The collection of database and DBMS software together is known as a<br>database system.</p>



<h5 class="wp-block-heading">Q. What do you mean by Data Modelling ?</h5>



<p class="wp-block-paragraph" id="block-046c18f7-6254-4c7b-8d1d-520b0a082bab"><strong>A.</strong> Data Modelling is the set of conceptual tools for describing data<br>relationship, data semantics, and consistency constraints. Different data<br>models are : Network model, Relational model, Object Oriented model, ER<br>model, and more.</p>



<h5 class="wp-block-heading">Q. Explain RDBMS ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> RDBMS stands for Relational Database Management System. It<br>arranges information into allied rows and columns. RDMS is an information<br>management system which is oriented on a data model. RDBMS Example<br>systems are SQL Server, Oracle, MySQL, MariaDB and SQLite.</p>



<h5 class="wp-block-heading">Q. Explain Abstraction of Data, with reference to DBMS ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> Data Abstraction refers to the process of hiding background details from<br>user.</p>



<h5 class="wp-block-heading">Q. Explain the 3 L’s of Data Abstraction ?</h5>



<p class="wp-block-paragraph"><strong>A. </strong>It refers to three levels of abstraction. They are :</p>



<ol class="wp-block-list"><li><strong>Physical Level </strong>: It is lowest level of abstraction. It describes how data is<br>actually stored. It also describes complex data structure in detail.</li><li><strong>Logical Level</strong> : It describes what data get stored in the database and what are the relationships among them.</li><li><strong>View Level </strong>: It is the highest level of data abstraction that only describes a part of database indirectly</li></ol>



<h5 class="wp-block-heading">Q. What is Database Schema ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> Schema refers to the overall structure of database without data values.</p>



<h5 class="wp-block-heading">Q. What do you mean by transparent DBMS?</h5>



<p class="wp-block-paragraph"><strong>A. </strong>The transparent DBMS is a type of DBMS which keeps its physical<br>structure hidden from users.</p>



<h5 class="wp-block-heading">Q. Explain ER Model ?</h5>



<p class="wp-block-paragraph">A. This model is based on the perception of real world that consists of<br>collection of basic entities and relationship among these objects. It is the<br>graphical representation of the database.</p>



<h5 class="wp-block-heading">Q. What do you understand by Data Independency ?</h5>



<p class="wp-block-paragraph"><strong>A. </strong>It refers to the capacity to change data at one level without affecting next<br>higher level is called Data Independence. It is of two types : Physical DI,<br>Logical DI.<br><strong>Physical DI :</strong> It indicates that physical storage of device could be changed<br>without affecting conceptual view.<br><strong>Logical DI :</strong> It indicates that conceptual schema can be changed without<br>affecting existing external schema.</p>



<h5 class="wp-block-heading">Q. What is a Database Language ?</h5>



<p class="wp-block-paragraph"><strong>A. </strong>Database Language is a medium by which we can interact with the<br>database system through some set of commands. These commands are<br>structured.</p>



<h5 class="wp-block-heading">Q. What is a Tuple ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> A single row of a table, which contains a single record for that relation is<br>called a tuple.</p>



<h5 class="wp-block-heading">Q. Explain degree and Cardinality ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> Degree is the total number of attributes in a relation or table and<br>cardinality is total number of tuples/rows in a relation/table.</p>



<h5 class="wp-block-heading">Q. What is a relation in DBMS ?</h5>



<p class="wp-block-paragraph"><strong>A. </strong>A database relation refers to an individual table in a relational database.<br>A table is a relation because it stores the relation between data in its<br>column-row format.</p>



<h5 class="wp-block-heading">Q. What is the role of DML Compiler ?</h5>



<p class="wp-block-paragraph"><strong>A. </strong>It translates DML statements in a query language into low-level<br>instructions that the query evaluation engine can easily understand.</p>



<h5 class="wp-block-heading">Q. Explain me the role of using clause for queries ?</h5>



<p class="wp-block-paragraph">A. Clause enables you to specify conditions that filters the results as per<br>the requirement. Some of the most commonly used clauses are : having,<br>where etc.</p>



<h5 class="wp-block-heading">Q. What is a Query ?</h5>



<p class="wp-block-paragraph"><strong>A. </strong>Query is a statement that is used for the extraction of data from<br>database.<br>For example – select * from table1 is a query</p>



<h5 class="wp-block-heading">Q. What is Subquery ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> Subquery is a query within query.<br>For example – select * from students where marks = ( select max(marks)<br>from students);</p>



<h5 class="wp-block-heading">Q. Explain BCNF ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> BCNF is Boyce-Codd Normal Form. It is considered to be the advanced<br>version of 3 NF. Hence it is also refered to as 3.5 NF. A relation is said to<br>be in BCNF, if it satisfies following rules :</p>



<ol class="wp-block-list"><li>It is in 3NF.</li><li>For every functional dependency P->Q, P should be the super key of the table.</li></ol>



<h5 class="wp-block-heading">Q. What are Stored Procedures ?</h5>



<p class="wp-block-paragraph"><strong>A.</strong> Stored Procedure refers to the set of Structured Query Language(SQL)<br>statements stored in a relational database management system as a group.<br>It can further be reused and shared by multiple programs. It provides a<br>layer of security between a user interface and database.</p>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/dbms-interview-qa-part-1/">DBMS Interview Q&#038;A Part- 1</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/dbms-interview-qa-part-1/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
