[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-718153-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-718153-en":130,"doc-similar-718153":162},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","sql-interview-questions-and-answers-sql-basics-data-definition-manipulation-control-transactions","SQL Interview Questions and Answers - SQL basics - data definition, manipulation, control, transactions","","A collection of SQL interview questions and answers for both fresher and experienced candidates, covering core concepts and practical command usage. The material introduces what SQL is, when it appeared, and common purposes such as querying, retrieving, inserting, updating, and deleting data. It also explains SQL programming-language limitations, the four major SQL subsets (DDL, DML, DCL, TCL), and the roles of each subset with example commands. Additional topics include database tables and fields and the concept of a primary key.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/exam/","Exam",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/sql-interview-questions-and-answers-sql-basics-data-definition-manipulation-control-transactions/718153/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/sql-interview-questions-and-answers-sql-basics-data-definition-manipulation-control-transactions/718153.png","ImageObject",300,407,{"name":42,"@type":43},"Himbo","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-28","2026-11-16",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",5,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What does SQL stand for, and what is its main purpose?","Question",{"text":63,"@type":64},"SQL stands for Structured Query Language. It is used to create, delete, fetch, and modify rows, and to perform operations such as retrieve, manipulate, update, delete, and join data in relational databases.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"What are the four significant subsets of SQL?",{"text":68,"@type":64},"The four subsets are DDL (Data Definition Language), DML (Data Manipulation Language), DCL (Data Control Language), and TCL (Transaction Control Language). Each subset has specific commands and responsibilities.",{"name":70,"@type":61,"acceptedAnswer":71},"What commands are associated with DDL, DML, and DCL?",{"text":72,"@type":64},"DDL includes commands such as CREATE, ALTER, and DROP for defining structures. DML includes SELECT, INSERT, UPDATE, and DELETE for working with existing data. DCL includes GRANT and REVOKE for controlling access and permissions.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},718153,1794854355,{"code":4,"msg":82,"data":83},"success",[84,88,92,95,99,104,109,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":93,"slug":94},70,"exam",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":96,"show_sort_weight":97,"slug":98},"Comic",60,"comic",{"id":100,"doc_module":4,"doc_module_name":25,"category_name":101,"show_sort_weight":102,"slug":103},6,"Technology",50,"technology",{"id":105,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":55,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":33,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":80,"read_time":144,"preview_page_count":33,"preview_urls":145},687197100911,"https://ap-avatar.wpscdn.com/avatar/a000239b6f1da00475?x-image-process=image/resize,m_fixed,w_180,h_180&k=1785132997149421697","SQL Interview Questions and Answers  \nThe following are the most popular and useful SQL interview questions and answers for fresher and experienced candidates. These questions are created specifically to familiarise you with the types of questions you might encounter during your SQL interview. According to our experiences, good interviewers rarely plan to ask any specific topic during the interview. Instead, questioning usually begins with a basic understanding of the subject, and based on your responses, further discussion happened.  \n1) What is SQL?  \nSQL stands for the Structured Query Language. It is the standard language used to maintain the relational database and perform many different data manipulation operations on the data. SQL was initially invented in 1970. It is a database language used for database creation, deletion, fetching and modifying rows, etc. sometimes, it is pronounced as 'sequel. ' We can also use it to handle organized data comprised of entities (variables) and relations between different entities of the data.  \n2) When SQL appeared?  \nSQL first appeared in 1974. It is one of the most used languages for maintaining the relational database. In 1986, SQL became the standard of the American National Standards Institute (ANSI) and ISO (International Organization for Standardization) in 1987.  \n3) What are the usages of SQL?  \nSQL is responsible for maintaining the relational data and the data structures present in the database. Some of the common usages are given below:  \no To execute queries against a database  \no To retrieve data from a database  \no To inserts records in a database  \no To updates records in a database  \no To delete records from a database  \no To create new databases  \no To create new tables in a database  \no To create views in a database  \no To perform complex operations on the database.  \n\n| 4) Does SQL support programming language features?\u003Cbr>SQL refers to the Standard Query Language. Therefore, it is true that SQL is a language but does not actually support the programming language. It is a common language that doesn't have a loop, conditional statements, and logical operations. It cannot be used for anything other than data manipulation. It is a command language to perform database operations. The primary purpose of SQL is to retrieve, manipulate, update, delete, and perform complex operations like joins on the data present in the database. |\n| --- |\n| 5) What are the subsets of SQL?\u003Cbr>The following are the four significant subsets of the SQL:\u003Cbr>o Data definition language (DDL): It defines the data structure that consists of commands like CREATE, ALTER, DROP, etc.\u003Cbr>o Data manipulation language (DML): It is used to manipulate existing data in the database. The commands in this category are SELECT, UPDATE, INSERT, etc.\u003Cbr>o Data control language (DCL): It controls access to the data stored in the database. The commands in this category include GRANT and REVOKE.\u003Cbr>o Transaction Control Language (TCL): It is used to deal with the transaction operations in the database. The commands in this category are COMMIT, ROLLBACK, SET TRANSACTION, SAVEPOINT, etc. |\n\n6) What is the purpose of DDL Language?  \nDDL stands for Data definition language. It is the subset of a database that defines the data structure of the database when the database is created. For example, we can use the DDL commands to add, remove, or modify tables. It consists of the following commands: CREATE, ALTER and DELETE database objects such as schema, tables, indexes, view, sequence, etc.  \nExample  \n1. CREATE TABLE Students 2. (  \n3. Roll_no INT,  \n4. Name VARCHAR(45),  \n5. Branch VARCHAR(30), 6. );  \n7) What is the purpose of DML Language?  \nData manipulation language makes the user able to retrieve and manipulate data in a relational database. The DML commands can only perform read-only operations on data. We can perform the following operations using DDL language:  \no Insert data into the database through the INSERT","cbCaifQnPL9RJfnN","https://ap.wps.com/l/cbCaifQnPL9RJfnN","pdf",525213,38,"English","# SQL basics\n## What is SQL?\n## When SQL appeared?\n## Usages of SQL\n## Does SQL support programming language features?\n## Subsets of SQL (DDL, DML, DCL, TCL)\n## Purpose of DDL Language\n## Purpose of DML Language\n## Purpose of DCL Language\n## Tables and fields in the database\n## What is a primary key?","[{\"question\":\"What does SQL stand for, and what is its main purpose?\",\"answer\":\"SQL stands for Structured Query Language. It is used to create, delete, fetch, and modify rows, and to perform operations such as retrieve, manipulate, update, delete, and join data in relational databases.\"},{\"question\":\"What are the four significant subsets of SQL?\",\"answer\":\"The four subsets are DDL (Data Definition Language), DML (Data Manipulation Language), DCL (Data Control Language), and TCL (Transaction Control Language). Each subset has specific commands and responsibilities.\"},{\"question\":\"What commands are associated with DDL, DML, and DCL?\",\"answer\":\"DDL includes commands such as CREATE, ALTER, and DROP for defining structures. DML includes SELECT, INSERT, UPDATE, and DELETE for working with existing data. DCL includes GRANT and REVOKE for controlling access and permissions.\"}]","SQL Interview Questions and Answers - SQL basics - data definition, manipulation, control, transactions | PDF",96,[146,150,154,158],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/e5832a41fd2e327e7532248633c9015d.webp",983,1390,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/67accc4d9a2f2363320d61403a2c03c4.webp",982,1388,{"page_no":30,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/79684116cde376a3095eddfa40c45ce5.webp",981,1387,{"page_no":33,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/b43afe3d6b09f2efb87d7f891ee19e8e.webp",980,1385,{"list":163,"token":11},[164,170,176,182,188,194,201,207,213,219],{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":127,"category_name":29,"create_tm":169},391282,"TCS NQT Interview Questions for Freshers - Technical Interview Questions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229917375092/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796202779&Signature=Lxii5u6WgAS4ZAby9uLfUgBgZZs%3D","tcs-nqt-interview-questions-for-freshers-technical-interview-questions",1790351065,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":55,"category_name":29,"create_tm":175},718156,"800-SQL-Server-questions - SQL Server Interview Questions Answers (More Than 800)","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230018609964/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796202779&Signature=lYBHnElGaaaaJyGVnMmXd6hrapg%3D","800-sql-server-questions-sql-server-interview-questions-answers-more-than-800",1794854364,{"doc_id":177,"doc_title":178,"file_type":137,"home_preview_img_url":179,"slug":180,"view_count":115,"category_name":29,"create_tm":181},497965,"Test of Basic Knowledge of SQL - SQL practice test questions and answer key","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229930310506/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796202779&Signature=FiHACm%2BUUYv6a0g8h3xyM%2FzKVrA%3D","test-of-basic-knowledge-of-sql-sql-practice-test-questions-and-answer-key",1790972537,{"doc_id":183,"doc_title":184,"file_type":137,"home_preview_img_url":185,"slug":186,"view_count":33,"category_name":29,"create_tm":187},718158,"WORKSHEET WITH SOLUTION SQL - SQL - Answers","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230019199677/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796202779&Signature=dtc7%2F%2F5JgTehufF5Q46MN1Ky9oM%3D","worksheet-with-solution-sql-sql-answers",1794854371,{"doc_id":189,"doc_title":190,"file_type":137,"home_preview_img_url":191,"slug":192,"view_count":30,"category_name":29,"create_tm":193},730041,"98-364 Database Administration Fundamentals","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230030237321/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796202779&Signature=B%2FNC94taNQ9QN0kucK0fMsp3MNA%3D","98-364-database-administration-fundamentals",1795303206,{"doc_id":195,"doc_title":196,"file_type":137,"home_preview_img_url":197,"slug":198,"view_count":199,"category_name":29,"create_tm":200},391111,"Wipro Elite NTH Interview Questions - For Freshers","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229917362604/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796202779&Signature=LwcNhWo%2Fqg6LIh0BSxgV9%2B%2FzUdQ%3D","wipro-elite-nth-interview-questions-for-freshers",14,1790349388,{"doc_id":202,"doc_title":203,"file_type":137,"home_preview_img_url":204,"slug":205,"view_count":22,"category_name":29,"create_tm":206},763107,"Data Analyst Interview Questions - A Complete Guide for Recruiters, Hiring Managers & Candidates - Freshers","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230045659569/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796202779&Signature=Bjlo0AObEQSHx8SOqbtpXY1v7j4%3D","data-analyst-interview-questions-a-complete-guide-for-recruiters-hiring-managers-candidates-freshers",1796000001,{"doc_id":208,"doc_title":209,"file_type":137,"home_preview_img_url":210,"slug":211,"view_count":22,"category_name":29,"create_tm":212},763510,"SQL Practice Problems - 57 Challenges - Learn-by-doing","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230047479865/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796202779&Signature=qHKTwSU5QLBBrYpSPxbU8Yckfvw%3D","sql-practice-problems-57-challenges-learn-by-doing",1796034087,{"doc_id":214,"doc_title":215,"file_type":137,"home_preview_img_url":216,"slug":217,"view_count":100,"category_name":29,"create_tm":218},678030,"Euler Diagram - ALG-2-18 - Introduction to Euler Diagrams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229994762403/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796202779&Signature=XKKLq0IPXnat96ydxM0Ta7ZYHGE%3D","euler-diagram-alg-2-18-introduction-to-euler-diagrams",1793783110,{"doc_id":220,"doc_title":221,"file_type":137,"home_preview_img_url":222,"slug":223,"view_count":224,"category_name":29,"create_tm":225},391747,"62 SQL Coding interview questions to ask your applicants","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229917705140/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796202779&Signature=liQk2v6nab%2FAjgrZfbrYB0XYQis%3D","62-sql-coding-interview-questions-to-ask-your-applicants",17,1790358419]