<?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>what is a query in a database - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/what-is-a-query-in-a-database/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/what-is-a-query-in-a-database/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Wed, 26 Oct 2022 08:03:59 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.wikitechy.com/interview-questions/wp-content/uploads/2025/10/cropped-wikitechy-icon-32x32.png</url>
	<title>what is a query in a database - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/what-is-a-query-in-a-database/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>What is DBMS Queries ?</title>
		<link>https://www.wikitechy.com/interview-questions/dbms/what-is-dbms-queries/</link>
					<comments>https://www.wikitechy.com/interview-questions/dbms/what-is-dbms-queries/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Wed, 26 Oct 2022 08:03:59 +0000</pubDate>
				<category><![CDATA[DBMS]]></category>
		<category><![CDATA[basic structure of sql queries]]></category>
		<category><![CDATA[dbms sql introduction]]></category>
		<category><![CDATA[how to perform a query in database]]></category>
		<category><![CDATA[sql queries in dbms with examples]]></category>
		<category><![CDATA[types of queries in dbms]]></category>
		<category><![CDATA[what is a database query]]></category>
		<category><![CDATA[what is a dbms query]]></category>
		<category><![CDATA[what is a query]]></category>
		<category><![CDATA[what is a query and subquery in dbms]]></category>
		<category><![CDATA[what is a query in a database]]></category>
		<category><![CDATA[what is query in sql]]></category>
		<category><![CDATA[what is structured query language]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=5034</guid>

					<description><![CDATA[SQL Commands SQL commands are instruction which is used to communicate with the database. It is also used to perform specific tasks, functions, and queries of data It can also perform various tasks like creating a table, updating a table, deleting a table etc. Types of SQL Commands There are 5 types of SQL Commands [&#8230;]]]></description>
										<content:encoded><![CDATA[<h2 id="sql-commands" style="text-align: justify;"><strong>SQL Commands</strong></h2>
<ul style="text-align: justify;">
<li>SQL commands are instruction which is used to communicate with the database.</li>
<li>It is also used to perform specific tasks, functions, and queries of data</li>
<li>It can also perform various tasks like creating a table, updating a table, deleting a table etc.</li>
</ul>
<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-5035 aligncenter" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/10/what-is-dbms-queries.jpg" alt="" width="919" height="508" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/10/what-is-dbms-queries.jpg 919w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/10/what-is-dbms-queries-300x166.jpg 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/10/what-is-dbms-queries-768x425.jpg 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/10/what-is-dbms-queries-390x216.jpg 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/10/what-is-dbms-queries-820x453.jpg 820w" sizes="(max-width: 919px) 100vw, 919px" /></p>
<h2 id="types-of-sql-commands" style="text-align: justify;"><strong>Types of SQL Commands</strong></h2>
<p style="text-align: justify;">There are 5 types of SQL Commands</p>
<h3 id="ddl-data-definition-language" style="text-align: justify;">DDL (Data Definition Language)</h3>
<ul style="text-align: justify;">
<li>Changing the structure of table like creating table, altering a table, and deleting a table can be done using this DDL</li>
<li>Commands in ddl are autocommitted which means it permanently save all changes in the database.</li>
<li>Some of the command in DDL are: create, alter,drop, truncate.</li>
</ul>
<h3 id="dml-data-manipulation-language" style="text-align: justify;">DML &#8211; Data Manipulation Language</h3>
<ul style="text-align: justify;">
<li>These commands are used for modifing the database. Responsible for all form of changes in the database.</li>
<li>Commands in dml are not autocommitted which means it cannot permanently save all changes in the database. They can roll back.</li>
<li>Some of the commands under DML are:</li>
<li>Insert, Update, Delete.</li>
</ul>
<h3 id="dcl-data-control-language" style="text-align: justify;">DCL &#8211; Data Control Language</h3>
<ul style="text-align: justify;">
<li>These command are used to grant and revoke authorities from user.</li>
<li>Some of the commands under DCL are:</li>
<li>Grant</li>
<li>Revoke</li>
</ul>
<h3 id="tcl-transaction-control-language" style="text-align: justify;">TCL &#8211; Transaction Control Language</h3>
<ul style="text-align: justify;">
<li>These commands can only be used with DML commands like Insert, delete, update etc.</li>
<li>These operations are auto committed that is why they cannot be used while creating tables or dropping them.</li>
<li>Some of the commands under TCL are:
<ul style="text-align: justify;">
<li>Commit</li>
<li>Roll Back</li>
<li>Save Point</li>
</ul>
</li>
</ul>
<h3 id="dql-data-query-language" style="text-align: justify;">DQL &#8211; Data Query Language</h3>
<ul style="text-align: justify;">
<li>These commands are used to fetch the data from a database.</li>
<li>Select is the only command used in this language.</li>
</ul>
<p style="text-align: justify;">
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/dbms/what-is-dbms-queries/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
