<br />
<b>Warning</b>:  Undefined array key "global_protection_id" in <b>/home/wikitechy/public_html/interview-questions/wp-content/plugins/content-protector/inc/class-ps-rest-handler.php</b> on line <b>51</b><br />
{"id":5034,"date":"2022-10-26T08:03:59","date_gmt":"2022-10-26T08:03:59","guid":{"rendered":"https:\/\/www.wikitechy.com\/interview-questions\/?p=5034"},"modified":"2022-10-26T08:03:59","modified_gmt":"2022-10-26T08:03:59","slug":"what-is-dbms-queries","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/what-is-dbms-queries\/","title":{"rendered":"What is DBMS Queries ?"},"content":{"rendered":"<h2 id=\"sql-commands\" style=\"text-align: justify;\"><strong>SQL Commands<\/strong><\/h2>\n<ul style=\"text-align: justify;\">\n<li>SQL commands are instruction which is used to communicate with the database.<\/li>\n<li>It is also used to perform specific tasks, functions, and queries of data<\/li>\n<li>It can also perform various tasks like creating a table, updating a table, deleting a table etc.<\/li>\n<\/ul>\n<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>\n<h2 id=\"types-of-sql-commands\" style=\"text-align: justify;\"><strong>Types of SQL Commands<\/strong><\/h2>\n<p style=\"text-align: justify;\">There are 5 types of SQL Commands<\/p>\n<h3 id=\"ddl-data-definition-language\" style=\"text-align: justify;\">DDL (Data Definition Language)<\/h3>\n<ul style=\"text-align: justify;\">\n<li>Changing the structure of table like creating table, altering a table, and deleting a table can be done using this DDL<\/li>\n<li>Commands in ddl are autocommitted which means it permanently save all changes in the database.<\/li>\n<li>Some of the command in DDL are: create, alter,drop, truncate.<\/li>\n<\/ul>\n<h3 id=\"dml-data-manipulation-language\" style=\"text-align: justify;\">DML &#8211; Data Manipulation Language<\/h3>\n<ul style=\"text-align: justify;\">\n<li>These commands are used for modifing the database. Responsible for all form of changes in the database.<\/li>\n<li>Commands in dml are not autocommitted which means it cannot permanently save all changes in the database. They can roll back.<\/li>\n<li>Some of the commands under DML are:<\/li>\n<li>Insert, Update, Delete.<\/li>\n<\/ul>\n<h3 id=\"dcl-data-control-language\" style=\"text-align: justify;\">DCL &#8211; Data Control Language<\/h3>\n<ul style=\"text-align: justify;\">\n<li>These command are used to grant and revoke authorities from user.<\/li>\n<li>Some of the commands under DCL are:<\/li>\n<li>Grant<\/li>\n<li>Revoke<\/li>\n<\/ul>\n<h3 id=\"tcl-transaction-control-language\" style=\"text-align: justify;\">TCL &#8211; Transaction Control Language<\/h3>\n<ul style=\"text-align: justify;\">\n<li>These commands can only be used with DML commands like Insert, delete, update etc.<\/li>\n<li>These operations are auto committed that is why they cannot be used while creating tables or dropping them.<\/li>\n<li>Some of the commands under TCL are:\n<ul style=\"text-align: justify;\">\n<li>Commit<\/li>\n<li>Roll Back<\/li>\n<li>Save Point<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3 id=\"dql-data-query-language\" style=\"text-align: justify;\">DQL &#8211; Data Query Language<\/h3>\n<ul style=\"text-align: justify;\">\n<li>These commands are used to fetch the data from a database.<\/li>\n<li>Select is the only command used in this language.<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"passster_activate_protection":false,"passster_protect_child_pages":"","passster_protection_type":"password","passster_password":"","passster_activate_overwrite_defaults":"","passster_headline":"","passster_instruction":"","passster_placeholder":"","passster_button":"","passster_id":"","passster_activate_misc_settings":"","passster_redirect_url":"","passster_hide":"no","passster_area_shortcode":"","gtb_hide_title":false,"gtb_wrap_title":false,"gtb_class_title":"","gtb_remove_headerfooter":false,"footnotes":""},"categories":[7157],"tags":[19001,18992,18995,18999,19000,18990,18997,18993,18996,18998,18994,18991],"class_list":["post-5034","post","type-post","status-publish","format-standard","hentry","category-dbms","tag-basic-structure-of-sql-queries","tag-dbms-sql-introduction","tag-how-to-perform-a-query-in-database","tag-sql-queries-in-dbms-with-examples","tag-types-of-queries-in-dbms","tag-what-is-a-database-query","tag-what-is-a-dbms-query","tag-what-is-a-query","tag-what-is-a-query-and-subquery-in-dbms","tag-what-is-a-query-in-a-database","tag-what-is-query-in-sql","tag-what-is-structured-query-language"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>What is DBMS Queries ? - What is a database Query<\/title>\n<meta name=\"description\" content=\"What is DBMS Queries ? - SQL commands are an instruction which is used to communicate with the database.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/what-is-dbms-queries\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is DBMS Queries ? - What is a database Query\" \/>\n<meta property=\"og:description\" content=\"What is DBMS Queries ? - SQL commands are an instruction which is used to communicate with the database.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/what-is-dbms-queries\/\" \/>\n<meta property=\"og:site_name\" content=\"Wikitechy\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-26T08:03:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/10\/what-is-dbms-queries.jpg\" \/>\n<meta name=\"author\" content=\"webmaster\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"webmaster\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/what-is-dbms-queries\/\",\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/what-is-dbms-queries\/\",\"name\":\"What is DBMS Queries ? - What is a database Query\",\"isPartOf\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/what-is-dbms-queries\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/what-is-dbms-queries\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/10\/what-is-dbms-queries.jpg\",\"datePublished\":\"2022-10-26T08:03:59+00:00\",\"dateModified\":\"2022-10-26T08:03:59+00:00\",\"author\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4\"},\"description\":\"What is DBMS Queries ? - SQL commands are an instruction which is used to communicate with the database.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/what-is-dbms-queries\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/what-is-dbms-queries\/#primaryimage\",\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/10\/what-is-dbms-queries.jpg\",\"contentUrl\":\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/10\/what-is-dbms-queries.jpg\",\"width\":919,\"height\":508},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#website\",\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/\",\"name\":\"Wikitechy\",\"description\":\"Interview Questions\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4\",\"name\":\"webmaster\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g\",\"caption\":\"webmaster\"},\"sameAs\":[\"https:\/\/www.wikitechy.com\/interview-questions\"],\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/author\/webmaster\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is DBMS Queries ? - What is a database Query","description":"What is DBMS Queries ? - SQL commands are an instruction which is used to communicate with the database.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/what-is-dbms-queries\/","og_locale":"en_US","og_type":"article","og_title":"What is DBMS Queries ? - What is a database Query","og_description":"What is DBMS Queries ? - SQL commands are an instruction which is used to communicate with the database.","og_url":"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/what-is-dbms-queries\/","og_site_name":"Wikitechy","article_published_time":"2022-10-26T08:03:59+00:00","og_image":[{"url":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/10\/what-is-dbms-queries.jpg"}],"author":"webmaster","twitter_card":"summary_large_image","twitter_misc":{"Written by":"webmaster","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/what-is-dbms-queries\/","url":"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/what-is-dbms-queries\/","name":"What is DBMS Queries ? - What is a database Query","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/what-is-dbms-queries\/#primaryimage"},"image":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/what-is-dbms-queries\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/10\/what-is-dbms-queries.jpg","datePublished":"2022-10-26T08:03:59+00:00","dateModified":"2022-10-26T08:03:59+00:00","author":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4"},"description":"What is DBMS Queries ? - SQL commands are an instruction which is used to communicate with the database.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wikitechy.com\/interview-questions\/dbms\/what-is-dbms-queries\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wikitechy.com\/interview-questions\/dbms\/what-is-dbms-queries\/#primaryimage","url":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/10\/what-is-dbms-queries.jpg","contentUrl":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/10\/what-is-dbms-queries.jpg","width":919,"height":508},{"@type":"WebSite","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website","url":"https:\/\/www.wikitechy.com\/interview-questions\/","name":"Wikitechy","description":"Interview Questions","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4","name":"webmaster","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g","caption":"webmaster"},"sameAs":["https:\/\/www.wikitechy.com\/interview-questions"],"url":"https:\/\/www.wikitechy.com\/interview-questions\/author\/webmaster\/"}]}},"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/5034","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/comments?post=5034"}],"version-history":[{"count":1,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/5034\/revisions"}],"predecessor-version":[{"id":5036,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/5034\/revisions\/5036"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/media?parent=5034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/categories?post=5034"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/tags?post=5034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}