{"id":48140,"date":"2018-01-31T05:57:28","date_gmt":"2018-01-31T00:27:28","guid":{"rendered":"http:\/\/blog.odango.com\/?p=48140"},"modified":"2023-02-03T17:53:43","modified_gmt":"2023-02-03T12:23:43","slug":"mysql-interview-questions-and-answers","status":"publish","type":"post","link":"https:\/\/asha24.net\/blog\/mysql-interview-questions-and-answers\/","title":{"rendered":"MySQL Interview Questions And Answers"},"content":{"rendered":"\n[et_pb_section bb_built=&#8221;1&#8243; next_background_color=&#8221;#000000&#8243;][et_pb_row][et_pb_column type=&#8221;4_4&#8243;][et_pb_post_title _builder_version=&#8221;3.0.106&#8243; title=&#8221;on&#8221; meta=&#8221;off&#8221; author=&#8221;on&#8221; date=&#8221;on&#8221; categories=&#8221;on&#8221; comments=&#8221;on&#8221; featured_image=&#8221;off&#8221; featured_placement=&#8221;below&#8221; text_color=&#8221;dark&#8221; text_background=&#8221;off&#8221; title_font=&#8221;Titillium Web||||||||&#8221; title_font_size=&#8221;47&#8243; title_font_size_tablet=&#8221;40&#8243; title_font_size_phone=&#8221;35&#8243; title_font_size_last_edited=&#8221;on|desktop&#8221; title_text_color=&#8221;rgba(0,0,0,0.8)&#8221; title_text_align=&#8221;left&#8221; text_shadow_horizontal_length=&#8221;0.08em&#8221; text_shadow_vertical_length=&#8221;0.08em&#8221; text_shadow_blur_strength=&#8221;0.08em&#8221; title_text_shadow_horizontal_length=&#8221;0.08em&#8221; title_text_shadow_vertical_length=&#8221;0.08em&#8221; custom_margin=&#8221;|||10%&#8221; \/][\/et_pb_column][\/et_pb_row][et_pb_row][et_pb_column type=&#8221;4_4&#8243;][et_pb_text _builder_version=&#8221;3.0.106&#8243; background_layout=&#8221;light&#8221; text_font=&#8221;Titillium Web|300|||||||&#8221; text_font_size=&#8221;25&#8243; text_font_size_last_edited=&#8221;on|phone&#8221; text_text_color=&#8221;rgba(0,0,0,0.8)&#8221; text_line_height=&#8221;1.6em&#8221; max_width=&#8221;800px&#8221; custom_margin=&#8221;|||10%&#8221; text_line_height_last_edited=&#8221;off|phone&#8221; max_width_last_edited=&#8221;off|phone&#8221; custom_margin_last_edited=&#8221;off|desktop&#8221; text_font_size_phone=&#8221;20&#8243;]\r\n\r\n<strong>1) What&#8217;s MySQL ?\r\nAns:<\/strong>\u00a0MySQL (pronounced &#8220;my ess cue el&#8221;) is an open source relational database management system (RDBMS) that uses Structured Query Language (SQL), the most popular language for adding, accessing, and processing data in a database. Because it is open source, anyone can download MySQL and tailor it to their needs in accordance with the general public license. MySQL is noted mainly for its speed, reliability, and flexibility.\r\n\r\n<hr \/>\r\n\r\n<strong>2) What is DDL, DML and DCL ?\r\nAns:<\/strong>\u00a0If you look at the large variety of SQL commands, they can be divided into three large subgroups. Data Definition Language deals with database schemas and descriptions of how the data should reside in the database, therefore language statements like CREATE TABLE or ALTER TABLE belong to DDL. DML deals with data manipulation, and therefore includes most common SQL statements such SELECT, INSERT, etc. Data Control Language includes commands such as GRANT, and mostly concerns with rights, permissions and other controls of the database system.\r\n\r\n<hr \/>\r\n\r\n<strong>3) How do you get the number of rows affected by query?\r\nAns:<\/strong>\u00a0SELECT COUNT (user_id) FROM users would only return the number of user_id?s.\r\n\r\n<hr \/>\r\n\r\n<strong>4) If the value in the column is repeatable, how do you find out the unique values?\r\nAns:<\/strong>\u00a0Use DISTINCT in the query, such as SELECT DISTINCT user_firstname FROM users; You can also ask for a number of distinct values by saying SELECT COUNT (DISTINCT user_firstname) FROM users;\r\n\r\n<hr \/>\r\n\r\n<strong>5) How do you return the a hundred books starting from 25th?\r\nAns:<\/strong>\u00a0SELECT book_title FROM books LIMIT 25, 100. The first number in LIMIT is the offset, the second is the number.\r\n\r\n<hr \/>\r\n\r\n<strong>6) You wrote a search engine that should retrieve 10 results at a time, but at the same time you?d like to know how many rows there?re total. How do you display that to the user?\r\nAns:<\/strong>\u00a0SELECT SQL_CALC_FOUND_ROWS page_title FROM web_pages LIMIT 1,10; SELECT FOUND_ROWS(); The second query (not that COUNT() is never used) will tell you how many results there?re total, so you can display a phrase &#8220;Found 13,450,600 results, displaying 1-10&#8221;. Note that FOUND_ROWS does not pay attention to the LIMITs you specified and always returns the total number of rows affected by query.\r\n\r\n<hr \/>\r\n\r\n<strong>7) How would you write a query to select all teams that won either 2, 4, 6 or 8 games?\r\nAns:<\/strong>\u00a0SELECT team_name FROM teams WHERE team_won IN (2, 4, 6, 8)\r\n\r\n<hr \/>\r\n\r\n<strong>8) How would you select all the users, whose phone number is null?\r\nAns:<\/strong>\u00a0SELECT user_name FROM users WHERE ISNULL(user_phonenumber);\r\n\r\n<hr \/>\r\n\r\n<strong>9) What does this query mean: SELECT user_name, user_isp FROM users LEFT JOIN isps USING (user_id) ?\r\nAns:<\/strong>\u00a0It?s equivalent to saying SELECT user_name, user_isp FROM users LEFT JOIN isps WHERE users.user_id=isps.user_id\r\n\r\n<hr \/>\r\n\r\n<strong>10) What does ?i-am-a-dummy flag to do when starting MySQL?\r\nAns:<\/strong>\u00a0Makes the MySQL engine refuse UPDATE and DELETE commands where the WHERE clause is not present.\r\n\r\n<hr \/>\r\n\r\n<strong>11) On executing the DELETE statement I keep getting the error about foreign key constraint failing. What do I do?\r\nAns:<\/strong>\u00a0What it means is that so of the data that you?re trying to delete is still alive in another table. Like if you have a table for universities and a table for students, which contains the ID of the university they go to, running a delete on a university table will fail if the students table still contains people enrolled at that university. Proper way to do it would be to delete the offending data first, and then delete the university in question. Quick way would involve running SET foreign_key_checks=0 before the DELETE command, and setting the parameter back to 1 after the DELETE is done. If your foreign key was formulated with ON DELETE CASCADE, the data in dependent tables will be removed automatically.\r\n\r\n<hr \/>\r\n\r\n<strong>12) When would you use ORDER BY in DELETE statement?\r\nAns:\u00a0<\/strong>When you?re not deleting by row ID. Such as in DELETE FROM techinterviews_com_questions ORDER BY timestamp LIMIT 1. This will delete the most recently posted question in the table techinterviews_com_questions.\r\n\r\n<hr \/>\r\n\r\n<strong>13) How many ways we can we find the current date using MySQL?\r\nAns:<\/strong>\r\n\r\nSELECT CURDATE();\r\nSELECT CURRENT_DATE();\r\nSELECT CURTIME();\r\nSELECT CURRENT_TIME();\r\n\r\n<hr \/>\r\n\r\n<strong>14) Give the syntax of GRANT commands?\r\nAns:<\/strong>\u00a0The generic syntax for GRANT is as following\r\nGRANT [rights] on [database] TO [username@hostname] IDENTIFIED BY [password] <strong>Now rights can be:<\/strong>\r\na) ALL privilages\r\nb) Combination of CREATE, DROP, SELECT, INSERT, UPDATE and DELETE etc.\r\nWe can grant rights on all databse by usingh *.* or some specific database by database.* or a specific table by database.table_name\r\n\r\n<hr \/>\r\n\r\n<strong>15) Give the syntax of REVOKE commands?\r\nAns:<\/strong>\u00a0The generic syntax for revoke is as following\r\n\r\nREVOKE [rights] on [database] FROM [username@hostname] <strong>Now rights can be:<\/strong>\r\na) ALL privileges\r\nb) Combination of CREATE, DROP, SELECT, INSERT, UPDATE and DELETE etc.\r\nWe can grant rights on all database by using *.* or some specific database by database.* or a specific table by database.table_name.\r\n\r\n<hr \/>\r\n\r\n<strong>16) How can we encrypt and decrypt a data present in a mysql table using mysql?\r\nAns<\/strong>: AES_ENCRYPT() and AES_DECRYPT()\r\n\r\n<hr \/>\r\n\r\n<strong>17) How can I load data from a text file into a table?\r\nAns:<\/strong>\u00a0The MySQL provides a LOAD DATA INFILE command. You can load data from a file. Great tool but you need to make sure that:\r\na) Data must be delimited\r\nb) Data fields must match table columns correctly\r\n\r\n<hr \/>\r\n\r\n<strong>18) How can we know the number of days between two given dates using MySQL?\r\nAns<\/strong>:\r\n\r\nUse DATEDIFF()\r\n\r\nSELECT DATEDIFF(NOW(),&#8217;2006-07-01&#8242;);\r\n\r\n<hr \/>\r\n\r\n<strong>19) How can we change the name of a column of a table?\r\nAns<\/strong>: This will change the name of column:\r\n\r\nALTER TABLE table_name CHANGE old_colm_name new_colm_name\r\n\r\n<hr \/>\r\n\r\n<strong>20) How can we change the data type of a column of a table?\r\nAns<\/strong>: This will change the data type of a column:\r\n\r\nALTER TABLE table_name CHANGE colm_name same_colm_name [new data type]\r\n\r\n<hr \/>\r\n\r\n<strong>21) What is the difference between GROUP BY and ORDER BY in SQL?\r\nAns:<\/strong>\u00a0To sort a result, use an ORDER BY clause.\r\nThe most general way to satisfy a GROUP BY clause is to scan the whole table and create a new temporary table where all rows from each group are consecutive, and then use this temporary table to discover groups and apply aggregate functions (if any).\r\nORDER BY [col1],[col2],&#8230;[coln]; Tells DBMS according to what columns it should sort the result. If two rows will have the same value in col1 it will try to sort them according to col2 and so on.\r\nGROUP BY [col1],[col2],&#8230;[coln]; Tells DBMS to group (aggregate) results with same value of column col1. You can use COUNT(col1), SUM(col1), AVG(col1) with it, if you want to count all items in group, sum all values or view average.\r\n\r\n<hr \/>\r\n\r\n<strong>22) What are the MySQL database files stored in system ?\r\nAns<\/strong>: Data is stored in name.myd\r\nTable structure is stored in name.frm\r\nIndex is stored in name.myi\r\n\r\n<hr \/>\r\n\r\n<strong>23) In how many ways we can retrieve data in the result set of MYSQL using PHP?\r\nAns:<\/strong>\r\n\r\nmysql_fetch_array &#8211; Fetch a result row as an associative array, a numeric array, or both\r\nmysql_fetch_assoc &#8211; Fetch a result row as an associative array\r\nmysql_fetch_object &#8211; Fetch a result row as an object\r\nmysql_fetch_row ?- Get a result row as an enumerated array\r\n\r\n<hr \/>\r\n\r\n<strong>24) How do you start and stop MySQL on Windows?<\/strong>\r\n\r\n<strong>Ans:<\/strong>\u00a0net start MySQL, net stop MySQL\r\n\r\n<hr \/>\r\n\r\n<strong>25) How do you start MySQL on Linux?<\/strong>\r\n\r\n<strong>Ans:<\/strong>\u00a0\/etc\/init.d\/mysql start\r\n\r\n<hr \/>\r\n\r\n<strong>26)Explain the difference between mysql and mysqli interfaces in PHP?<\/strong>\r\n\r\n<strong>Ans:<\/strong>\u00a0mysqli is the object- oriented version of mysql library functions.\r\n\r\n<hr \/>\r\n\r\n<strong>27) What\u2019s the default port for MySQL Server?<\/strong>\r\n\r\n<strong>Ans:<\/strong>\u00a0\u00a03306\r\n\r\n<hr \/>\r\n\r\n<strong>28) What does tee command do in MySQL?<\/strong>\r\n\r\n<strong>Ans:<\/strong>\u00a0 tee followed by a filename turns on MySQL logging to a specified file. It can be stopped by command notee.\r\n\r\n<hr \/>\r\n\r\n<strong>29) Can you save your connection settings to a conf file?<\/strong>\r\n\r\n<strong>Ans:<\/strong>\u00a0Yes, and name it ~\/.my.conf. You might want to change the permissions on the file to 600, so that it\u2019s not readable by others.\r\n\r\n<hr \/>\r\n\r\n<strong>30) How do you change a password for an existing user via mysqladmin?<\/strong>\r\n\r\n<strong>Ans:<\/strong>\u00a0mysqladmin -u root -p password &#8220;newpassword&#8221;\r\n\r\n<hr \/>\r\n\r\n<strong>31) Use mysqldump to create a copy of the database?<\/strong>\r\n\r\n<strong>Ans:\u00a0<\/strong>mysqldump -h mysqlhost -u username -p mydatabasename &gt; dbdump.sql\r\n\r\n<hr \/>\r\n\r\n<strong>32) What are some good ideas regarding user security in MySQL? &#8211;<\/strong>\r\n\r\n<strong>Ans:<\/strong>\u00a0There is no user without a password. There is no user without a user name. There is no user whose Host column contains % (which here indicates that the user can log in from anywhere in the network or the Internet). There are as few users as possible (in the ideal case only root) who have unrestricted access.\r\n\r\n<hr \/>\r\n\r\n<strong>33) Explain the difference between MyISAM Static and MyISAM Dynamic.<\/strong>\r\n\r\n<strong>Ans:\u00a0<\/strong>In MyISAM static all the fields have fixed width. The Dynamic MyISAM table would include fields such as TEXT, BLOB, etc. to accommodate the data types with various lengths. MyISAM Static would be easier to restore in case of corruption, since even though you might lose some data, you know exactly where to look for the beginning of the next record.\r\n\r\n<hr \/>\r\n\r\n<strong>34) What does myisamchk do?<\/strong>\r\n\r\n<strong>Ans:<\/strong>\u00a0It compressed the MyISAM tables, which reduces their disk usage.\r\n\r\n<hr \/>\r\n\r\n<strong>35) Explain advantages of InnoDB over MyISAM?<\/strong>\r\n\r\n<strong>Ans:<\/strong>\u00a0Row-level locking, transactions, foreign key constraints and crash recovery.\r\n\r\n<hr \/>\r\n\r\n<strong>36) Explain advantages of MyISAM over InnoDB?<\/strong>\r\n\r\n<strong>Ans:<\/strong>\u00a0Much more conservative approach to disk space management &#8211; each MyISAM table is stored in a separate file, which could be compressed then with myisamchk if needed. With InnoDB the tables are stored in tablespace, and not much further optimization is possible. All data except for TEXT and BLOB can occupy 8,000 bytes at most. No full text indexing is available for InnoDB. TRhe COUNT(*)s execute slower than in MyISAM due to tablespace complexity.\r\n\r\n<hr \/>\r\n\r\n<strong>37) What are HEAP tables in MySQL?<\/strong>\r\n\r\n<strong>Ans:<\/strong>\u00a0HEAP tables are in-memory. They are usually used for high- speed temporary storage. No TEXT or BLOB fields are allowed within HEAP tables. You can only use the comparison operators = and &lt;=&gt;. HEAP tables do not support AUTO_INCREMENT. Indexes must be NOT NULL.\r\n\r\n<hr \/>\r\n\r\n<strong>38) How do you control the max size of a HEAP table?<\/strong>\r\n\r\n<strong>Ans:<\/strong>\u00a0MySQL config variable max_heap_table_size.\r\n\r\n<hr \/>\r\n\r\n<strong>39) What are CSV tables?<\/strong>\r\n\r\n<strong>Ans:<\/strong>\u00a0Those are the special tables, data for which is saved into comma-separated values files. They cannot be indexed.\r\n\r\n<hr \/>\r\n\r\n<strong>40) Explain federated tables.<\/strong>\r\n\r\n<strong>Ans:<\/strong>\u00a0Introduced in MySQL 5.0, federated tables allow access to the tables located on other databases on other servers.\r\n\r\n<hr \/>\r\n\r\n<strong>41) What is SERIAL data type in MySQL?<\/strong>\r\n\r\n<strong>Ans:<\/strong>\u00a0BIGINT NOT NULL PRIMARY KEY AUTO_INCREMENT\r\n\r\n<hr \/>\r\n\r\n<strong>42: What happens when the column is set to AUTO INCREMENT and you reach the maximum value for that table?<\/strong>\r\n\r\n<strong>Ans:<\/strong>\u00a0It stops incrementing. It does not overflow to 0 to prevent data losses, but further inserts are going to produce an error, since the key has been used already.\r\n\r\n[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section bb_built=&#8221;1&#8243; prev_background_color=&#8221;#000000&#8243;][et_pb_row][et_pb_column type=&#8221;4_4&#8243;][et_pb_team_member _builder_version=&#8221;3.0.106&#8243; name=&#8221;Arun Gandham&#8221; position=&#8221;Author&#8221; facebook_url=&#8221;&#8221; twitter_url=&#8221;&#8221; google_url=&#8221;&#8221; linkedin_url=&#8221;&#8221; image_url=&#8221;https:\/\/asha24.net\/blog\/\/wp-content\/uploads\/2018\/03\/123456.gif&#8221; background_layout=&#8221;light&#8221; header_font=&#8221;Titillium Web|700|||||||&#8221; body_font=&#8221;Titillium Web||||||||&#8221; body_font_size=&#8221;16&#8243;]\r\n\r\nHola peeps! A fitness freak, a lover of games, I catch a flick on the weekends and write for you about current trends.\r\n\r\n[\/et_pb_team_member][\/et_pb_column][\/et_pb_row][\/et_pb_section]\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":4,"featured_media":48142,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[57],"tags":[58],"class_list":["post-48140","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-interview-questions","tag-interview-questions"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>MySQL Interview Questions And Answers - Asha24 Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/asha24.net\/blog\/mysql-interview-questions-and-answers\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MySQL Interview Questions And Answers - Asha24 Blog\" \/>\n<meta property=\"og:url\" content=\"https:\/\/asha24.net\/blog\/mysql-interview-questions-and-answers\/\" \/>\n<meta property=\"og:site_name\" content=\"Asha24 Blog\" \/>\n<meta property=\"article:published_time\" content=\"2018-01-31T00:27:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-03T12:23:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/asha24.net\/blog\/wp-content\/uploads\/2018\/03\/mysql-interview-questions-and-answers4.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"960\" \/>\n\t<meta property=\"og:image:height\" content=\"640\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mahesh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/asha24.net\/blog\/#website\",\"url\":\"https:\/\/asha24.net\/blog\/\",\"name\":\"Asha24 Blog\",\"description\":\"Dedication Towards Learning\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/asha24.net\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/asha24.net\/blog\/mysql-interview-questions-and-answers\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/asha24.net\/blog\/wp-content\/uploads\/2018\/03\/mysql-interview-questions-and-answers4.jpg\",\"contentUrl\":\"https:\/\/asha24.net\/blog\/wp-content\/uploads\/2018\/03\/mysql-interview-questions-and-answers4.jpg\",\"width\":960,\"height\":640},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/asha24.net\/blog\/mysql-interview-questions-and-answers\/#webpage\",\"url\":\"https:\/\/asha24.net\/blog\/mysql-interview-questions-and-answers\/\",\"name\":\"MySQL Interview Questions And Answers - Asha24 Blog\",\"isPartOf\":{\"@id\":\"https:\/\/asha24.net\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/asha24.net\/blog\/mysql-interview-questions-and-answers\/#primaryimage\"},\"datePublished\":\"2018-01-31T00:27:28+00:00\",\"dateModified\":\"2023-02-03T12:23:43+00:00\",\"author\":{\"@id\":\"https:\/\/asha24.net\/blog\/#\/schema\/person\/f6167b78bbaddfc399ae1154cd5b6759\"},\"breadcrumb\":{\"@id\":\"https:\/\/asha24.net\/blog\/mysql-interview-questions-and-answers\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/asha24.net\/blog\/mysql-interview-questions-and-answers\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/asha24.net\/blog\/mysql-interview-questions-and-answers\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/asha24.net\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MySQL Interview Questions And Answers\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/asha24.net\/blog\/#\/schema\/person\/f6167b78bbaddfc399ae1154cd5b6759\",\"name\":\"Mahesh\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/asha24.net\/blog\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/085c03e75ffb51af2509c1cfad9c7d78b30236d43a008db2e46f96e2f40c67fc?s=96&d=wavatar&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/085c03e75ffb51af2509c1cfad9c7d78b30236d43a008db2e46f96e2f40c67fc?s=96&d=wavatar&r=g\",\"caption\":\"Mahesh\"},\"url\":\"https:\/\/asha24.net\/blog\/author\/mahesh\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"MySQL Interview Questions And Answers - Asha24 Blog","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:\/\/asha24.net\/blog\/mysql-interview-questions-and-answers\/","og_locale":"en_US","og_type":"article","og_title":"MySQL Interview Questions And Answers - Asha24 Blog","og_url":"https:\/\/asha24.net\/blog\/mysql-interview-questions-and-answers\/","og_site_name":"Asha24 Blog","article_published_time":"2018-01-31T00:27:28+00:00","article_modified_time":"2023-02-03T12:23:43+00:00","og_image":[{"width":960,"height":640,"url":"https:\/\/asha24.net\/blog\/wp-content\/uploads\/2018\/03\/mysql-interview-questions-and-answers4.jpg","path":"\/home\/reviews981\/public_html\/asha24.net\/blog\/wp-content\/uploads\/2018\/03\/mysql-interview-questions-and-answers4.jpg","size":"full","id":48142,"alt":"","pixels":614400,"type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Written by":"Mahesh","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/asha24.net\/blog\/#website","url":"https:\/\/asha24.net\/blog\/","name":"Asha24 Blog","description":"Dedication Towards Learning","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/asha24.net\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/asha24.net\/blog\/mysql-interview-questions-and-answers\/#primaryimage","inLanguage":"en-US","url":"https:\/\/asha24.net\/blog\/wp-content\/uploads\/2018\/03\/mysql-interview-questions-and-answers4.jpg","contentUrl":"https:\/\/asha24.net\/blog\/wp-content\/uploads\/2018\/03\/mysql-interview-questions-and-answers4.jpg","width":960,"height":640},{"@type":"WebPage","@id":"https:\/\/asha24.net\/blog\/mysql-interview-questions-and-answers\/#webpage","url":"https:\/\/asha24.net\/blog\/mysql-interview-questions-and-answers\/","name":"MySQL Interview Questions And Answers - Asha24 Blog","isPartOf":{"@id":"https:\/\/asha24.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/asha24.net\/blog\/mysql-interview-questions-and-answers\/#primaryimage"},"datePublished":"2018-01-31T00:27:28+00:00","dateModified":"2023-02-03T12:23:43+00:00","author":{"@id":"https:\/\/asha24.net\/blog\/#\/schema\/person\/f6167b78bbaddfc399ae1154cd5b6759"},"breadcrumb":{"@id":"https:\/\/asha24.net\/blog\/mysql-interview-questions-and-answers\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/asha24.net\/blog\/mysql-interview-questions-and-answers\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/asha24.net\/blog\/mysql-interview-questions-and-answers\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/asha24.net\/blog\/"},{"@type":"ListItem","position":2,"name":"MySQL Interview Questions And Answers"}]},{"@type":"Person","@id":"https:\/\/asha24.net\/blog\/#\/schema\/person\/f6167b78bbaddfc399ae1154cd5b6759","name":"Mahesh","image":{"@type":"ImageObject","@id":"https:\/\/asha24.net\/blog\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/085c03e75ffb51af2509c1cfad9c7d78b30236d43a008db2e46f96e2f40c67fc?s=96&d=wavatar&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/085c03e75ffb51af2509c1cfad9c7d78b30236d43a008db2e46f96e2f40c67fc?s=96&d=wavatar&r=g","caption":"Mahesh"},"url":"https:\/\/asha24.net\/blog\/author\/mahesh\/"}]}},"_links":{"self":[{"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/posts\/48140","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/comments?post=48140"}],"version-history":[{"count":5,"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/posts\/48140\/revisions"}],"predecessor-version":[{"id":52150,"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/posts\/48140\/revisions\/52150"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/media\/48142"}],"wp:attachment":[{"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/media?parent=48140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/categories?post=48140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/tags?post=48140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}