{"id":52,"date":"2026-07-02T16:05:48","date_gmt":"2026-07-02T10:35:48","guid":{"rendered":"https:\/\/smitabharat.com\/blog\/?p=52"},"modified":"2026-07-14T23:02:11","modified_gmt":"2026-07-14T17:32:11","slug":"database-interview-questions","status":"publish","type":"post","link":"https:\/\/smitabharat.com\/blog\/database-interview-questions\/","title":{"rendered":"Database Interview Questions"},"content":{"rendered":"<h2>1.what is index<\/h2>\n<p>A <strong>database index<\/strong> is a <strong>performance optimization<\/strong> tool that allows the database to find rows <strong>faster<\/strong> when you query by specific columns.<\/p>\n<p>CREATE INDEX idx_users_email ON users(email);<\/p>\n<p>idx_users_email is the name of the index.<\/p>\n<p>It improves performance for queries filtering by email.<\/p>\n<p><strong>\ud83d\udcc8 Types of Indexes<\/strong><\/p>\n<table>\n<thead>\n<tr>\n<td><strong>Type<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>Single-column index<\/strong><\/td>\n<td>Index on one column (e.g., email)<\/td>\n<\/tr>\n<tr>\n<td><strong>Multi-column (composite)<\/strong><\/td>\n<td>Index on multiple columns (e.g., first_name, last_name)<\/td>\n<\/tr>\n<tr>\n<td><strong>Unique index<\/strong><\/td>\n<td>Prevents duplicate values<\/td>\n<\/tr>\n<tr>\n<td><strong>Full-text index<\/strong><\/td>\n<td>Used for keyword searches in text<\/td>\n<\/tr>\n<tr>\n<td><strong>Primary key<\/strong><\/td>\n<td>Automatically indexed<\/td>\n<\/tr>\n<tr>\n<td><strong>Foreign key<\/strong><\/td>\n<td>Often indexed for JOIN performance<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Trade-offs<\/strong><\/p>\n<table>\n<thead>\n<tr>\n<td><strong>Pros<\/strong><\/td>\n<td><strong>Cons <\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Speeds up SELECT queries<\/td>\n<td>Slows down INSERT\/UPDATE\/DELETE<\/td>\n<\/tr>\n<tr>\n<td>Helps enforce uniqueness<\/td>\n<td>Takes up extra storage<\/td>\n<\/tr>\n<tr>\n<td>Improves JOIN performance<\/td>\n<td>Needs to be managed carefully<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h2>2.\u00a0what are keys in database<\/h2>\n<p>In a <strong>database<\/strong>, <strong>keys<\/strong> are columns or combinations of columns that are used to <strong>identify<\/strong>, <strong>link<\/strong>, or <strong>enforce rules<\/strong> on data. They&#8217;re essential for <strong>ensuring data integrity<\/strong>, optimizing performance, and enabling relationships between tables.<\/p>\n<ol>\n<li><strong> Primary Key<\/strong><\/li>\n<\/ol>\n<ul>\n<li>A <strong>unique identifier<\/strong> for each row in a table.<\/li>\n<li>Cannot be NULL or duplicated.<\/li>\n<li>Every table should have <strong>one<\/strong> primary key.<\/li>\n<\/ul>\n<ol start=\"2\">\n<li><strong> Foreign Key<\/strong><\/li>\n<\/ol>\n<ul>\n<li>A column in one table that <strong>references the primary key<\/strong> in another table.<\/li>\n<li>Used to create <strong>relationships<\/strong> between tables.<\/li>\n<\/ul>\n<ol start=\"3\">\n<li><strong> Unique Key<\/strong><\/li>\n<\/ol>\n<ul>\n<li>Enforces that all values in the column are <strong>distinct<\/strong>.<\/li>\n<li>Like a primary key, but a table can have <strong>multiple unique keys<\/strong>.<\/li>\n<\/ul>\n<ol start=\"4\">\n<li><strong> Composite Key<\/strong><\/li>\n<\/ol>\n<ul>\n<li>A key made up of <strong>multiple columns<\/strong>.<\/li>\n<li>Uniquely identifies a row using the <strong>combination<\/strong> of values.<\/li>\n<\/ul>\n<ol start=\"5\">\n<li><strong> Candidate Key<\/strong><\/li>\n<\/ol>\n<ul>\n<li>A column (or set of columns) that can <strong>uniquely identify<\/strong> a row.<\/li>\n<li>The <strong>best candidate<\/strong> is chosen as the primary key.<\/li>\n<li>Others can be considered as <strong>alternate keys<\/strong>.<\/li>\n<\/ul>\n<ol start=\"6\">\n<li><strong> Super Key<\/strong><\/li>\n<\/ol>\n<ul>\n<li>Any set of columns that can uniquely identify a row.<\/li>\n<li>All candidate keys are super keys, but not all super keys are candidate keys.<\/li>\n<\/ul>\n<ol start=\"7\">\n<li><strong> Index Key (Not a constraint, but performance-related)<\/strong><\/li>\n<\/ol>\n<ul>\n<li>Columns used in an <strong>index<\/strong> to speed up searching.<\/li>\n<li>Often overlaps with primary\/foreign\/unique keys.<\/li>\n<\/ul>\n<table>\n<thead>\n<tr>\n<td><strong>Key Type<\/strong><\/td>\n<td><strong>Purpose<\/strong><\/td>\n<td><strong>Can be Null?<\/strong><\/td>\n<td><strong>Must Be Unique?<\/strong><\/td>\n<td><strong>Max per table<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Primary Key<\/td>\n<td>Uniquely identifies each row<\/td>\n<td>\u274c<\/td>\n<td>\u2705<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>Foreign Key<\/td>\n<td>Links to another table<\/td>\n<td>\u2705 (default)<\/td>\n<td>\u274c<\/td>\n<td>Many<\/td>\n<\/tr>\n<tr>\n<td>Unique Key<\/td>\n<td>Ensures uniqueness<\/td>\n<td>\u2705<\/td>\n<td>\u2705<\/td>\n<td>Many<\/td>\n<\/tr>\n<tr>\n<td>Composite Key<\/td>\n<td>Combines columns as key<\/td>\n<td>\u274c<\/td>\n<td>\u2705<\/td>\n<td>1 (as PK)<\/td>\n<\/tr>\n<tr>\n<td>Candidate Key<\/td>\n<td>Eligible to be a primary key<\/td>\n<td>\u274c<\/td>\n<td>\u2705<\/td>\n<td>Many<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h2>3. What is diff between MongoDB and MySQL<\/h2>\n<table>\n<thead>\n<tr>\n<td><strong>Feature<\/strong><\/td>\n<td><strong>MongoDB<\/strong><\/td>\n<td><strong>MySQL<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>Type<\/strong><\/td>\n<td>NoSQL (Document-oriented)<\/td>\n<td>SQL (Relational Database)<\/td>\n<\/tr>\n<tr>\n<td><strong>Data Format<\/strong><\/td>\n<td>JSON-like documents (BSON)<\/td>\n<td>Structured tables with rows &amp; columns<\/td>\n<\/tr>\n<tr>\n<td><strong>Schema<\/strong><\/td>\n<td><strong>Schema-less<\/strong> (dynamic fields)<\/td>\n<td><strong>Fixed schema<\/strong> (defined tables)<\/td>\n<\/tr>\n<tr>\n<td><strong>Query Language<\/strong><\/td>\n<td>MongoDB Query Language (MQL)<\/td>\n<td>SQL (Structured Query Language)<\/td>\n<\/tr>\n<tr>\n<td><strong>Joins<\/strong><\/td>\n<td>Limited $lookup, not native<\/td>\n<td>Strong native JOIN support<\/td>\n<\/tr>\n<tr>\n<td><strong>Transactions<\/strong><\/td>\n<td>Supported (since v4.0)<\/td>\n<td>Fully supported<\/td>\n<\/tr>\n<tr>\n<td><strong>Best For<\/strong><\/td>\n<td>Unstructured or semi-structured data<\/td>\n<td>Structured and relational data<\/td>\n<\/tr>\n<tr>\n<td><strong>Scaling<\/strong><\/td>\n<td>Horizontal (sharding)<\/td>\n<td>Mostly vertical (scaling up server)<\/td>\n<\/tr>\n<tr>\n<td><strong>Storage<\/strong><\/td>\n<td>Documents stored in collections<\/td>\n<td>Rows stored in tables<\/td>\n<\/tr>\n<tr>\n<td><strong>Use Case<\/strong><\/td>\n<td>Fast dev, flexible data (e.g. logs, JSON APIs)<\/td>\n<td>Financial systems, relational apps<\/td>\n<\/tr>\n<tr>\n<td><strong>Performance<\/strong><\/td>\n<td>Faster with large, unstructured data<\/td>\n<td>Faster with complex queries &amp; joins<\/td>\n<\/tr>\n<tr>\n<td><strong>ACID Compliance<\/strong><\/td>\n<td>Partial (now full in latest versions)<\/td>\n<td>Full ACID compliance<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><strong>\u2705 Choose MongoDB When:<\/strong><\/p>\n<ul>\n<li>You want fast prototyping or flexible schema<\/li>\n<li>You deal with JSON or nested data<\/li>\n<li>You&#8217;re building real-time analytics, IoT, or document storage<\/li>\n<\/ul>\n<p><strong>\u2705 Choose MySQL When:<\/strong><\/p>\n<ul>\n<li>You need complex queries, joins, and constraints<\/li>\n<li>You require strict schema and relationships<\/li>\n<\/ul>\n<h2>4.What is Left Join?<\/h2>\n<ul>\n<li>Returns all rows from the left table (table A),<\/li>\n<li>And the matching rows from the right table (table B).<\/li>\n<li>If no match is found in the right table, the result will contain NULL for right table\u2019s columns.<\/li>\n<\/ul>\n<p>Syntax:<\/p>\n<p>SELECT A.id, A.name, B.order_id<\/p>\n<p>FROM Customers A<\/p>\n<p>LEFT JOIN Orders B<\/p>\n<p>ON A.id = B.customer_id;<\/p>\n<h2>5. What is Right Join?<\/h2>\n<ul>\n<li>Returns all rows from the right table (table B),<\/li>\n<li>And the matching rows from the left table (table A).<\/li>\n<li>If no match is found in the left table, the result will contain NULL for left table\u2019s columns.<\/li>\n<\/ul>\n<p>Syntax:<\/p>\n<p>SELECT A.id, A.name, B.order_id<\/p>\n<p>FROM Customers A<\/p>\n<p>RIGHT JOIN Orders B<\/p>\n<p>ON A.id = B.customer_id;<\/p>\n<h2>6. I have Employee table and below column emp_id, dept_id, salary and i want to find 4 employee maximum salry from multiple departments.give sql query for that.<\/h2>\n<p>&nbsp;<\/p>\n<p>SELECT emp_id, dept_id, salary<\/p>\n<p>FROM (<\/p>\n<p>SELECT<\/p>\n<p>emp_id,<\/p>\n<p>dept_id,<\/p>\n<p>salary,<\/p>\n<p>ROW_NUMBER() OVER (PARTITION BY dept_id ORDER BY salary DESC) AS rn<\/p>\n<p>FROM Employee<\/p>\n<p>) AS ranked<\/p>\n<p>WHERE rn &lt;= 4;<\/p>\n<h2>7.Diff Between Having vs Where and Primary Key vs Unique key?<\/h2>\n<h3>WHERE vs HAVING<\/h3>\n<p>\ud83d\udc49 <strong>WHERE:<\/strong> filters before grouping<br \/>\n\ud83d\udc49 <strong>HAVING:<\/strong> filters after GROUP BY<\/p>\n<h3>1. Primary Key vs Unique Key<\/h3>\n<table>\n<thead>\n<tr>\n<td><strong>Primary Key<\/strong><\/td>\n<td><strong>Unique Key<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Only one per table<\/td>\n<td>Multiple allowed<\/td>\n<\/tr>\n<tr>\n<td>Cannot be NULL<\/td>\n<td>Can be NULL<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2><strong>8. Primary key vs Unique key?<\/strong><\/h2>\n<ul>\n<li>Primary key: unique + NOT NULL + identifies row<\/li>\n<li>Unique key: unique but can allow NULL (depends DB)<\/li>\n<li><strong>Foreign key?<\/strong><\/li>\n<\/ul>\n<p>\u2705 <strong>Answer:<\/strong><br \/>\nMaintains relationship between tables.<br \/>\nEnsures referenced row exists.<\/p>\n<h2>9. Does sql.Open() create a database connection immediately?<\/h2>\n<p>No. sql.Open() initializes a *sql.DB, which represents a pool of connections. It validates the configuration but doesn&#8217;t necessarily establish a connection immediately. Calling db.Ping() or executing the first query causes an actual connection attempt.<\/p>\n<h2>10. Is sql.DB thread-safe?<\/h2>\n<p>Yes. A single *sql.DB is safe for concurrent use by multiple goroutines and should generally be shared across your application.<\/p>\n<h2>11.What happens if all connections are busy?<\/h2>\n<p>If the number of in-use connections reaches MaxOpenConns, additional requests wait until a connection is returned to the pool (or until the operation times out if a context deadline is reached).<\/p>\n<h2>12. Should you call sql.Open() for every request?<\/h2>\n<p>No. Create one *sql.DB when your application starts and reuse it. Creating a new *sql.DB for every request defeats the purpose of connection pooling and can hurt performance.<\/p>\n<p>For Golang backend interviews, this is one of the most commonly asked database topics. Understanding how database\/sql manages connection pooling and how to tune SetMaxOpenConns, SetMaxIdleConns, SetConnMaxLifetime, and SetConnMaxIdleTime is often expected.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.what is index A database index is a performance optimization tool that allows the database to find rows faster when you query by specific columns. CREATE INDEX idx_users_email ON users(email); idx_users_email is the name of the index. It improves performance for queries filtering by email. \ud83d\udcc8 Types of Indexes Type Description Single-column index Index on&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-52","post","type-post","status-publish","format-standard","hentry","category-blog-post"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Database Interview Questions - Smita Bharat 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:\/\/smitabharat.com\/blog\/database-interview-questions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Database Interview Questions - Smita Bharat Blog\" \/>\n<meta property=\"og:description\" content=\"1.what is index A database index is a performance optimization tool that allows the database to find rows faster when you query by specific columns. CREATE INDEX idx_users_email ON users(email); idx_users_email is the name of the index. It improves performance for queries filtering by email. \ud83d\udcc8 Types of Indexes Type Description Single-column index Index on...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/smitabharat.com\/blog\/database-interview-questions\/\" \/>\n<meta property=\"og:site_name\" content=\"Smita Bharat Blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-02T10:35:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-07-14T17:32:11+00:00\" \/>\n<meta name=\"author\" content=\"Smita\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Smita\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/database-interview-questions\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/database-interview-questions\\\/\"},\"author\":{\"name\":\"Smita\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#\\\/schema\\\/person\\\/8d82457aaa3ced63e3f875cb5a31ce4c\"},\"headline\":\"Database Interview Questions\",\"datePublished\":\"2026-07-02T10:35:48+00:00\",\"dateModified\":\"2026-07-14T17:32:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/database-interview-questions\\\/\"},\"wordCount\":998,\"commentCount\":0,\"articleSection\":[\"Blog Post\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/smitabharat.com\\\/blog\\\/database-interview-questions\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/database-interview-questions\\\/\",\"url\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/database-interview-questions\\\/\",\"name\":\"Database Interview Questions - Smita Bharat Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#website\"},\"datePublished\":\"2026-07-02T10:35:48+00:00\",\"dateModified\":\"2026-07-14T17:32:11+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#\\\/schema\\\/person\\\/8d82457aaa3ced63e3f875cb5a31ce4c\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/database-interview-questions\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/smitabharat.com\\\/blog\\\/database-interview-questions\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/database-interview-questions\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Database Interview Questions\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/\",\"name\":\"Smita Bharat Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#\\\/schema\\\/person\\\/8d82457aaa3ced63e3f875cb5a31ce4c\",\"name\":\"Smita\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c2cc9a654a17e3944ea74c7317b81fa65c28ba7d50a629a551b0c9b321308883?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c2cc9a654a17e3944ea74c7317b81fa65c28ba7d50a629a551b0c9b321308883?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c2cc9a654a17e3944ea74c7317b81fa65c28ba7d50a629a551b0c9b321308883?s=96&d=mm&r=g\",\"caption\":\"Smita\"},\"sameAs\":[\"https:\\\/\\\/smitabharat.com\\\/blog\"],\"url\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/author\\\/smita_bharat_wp\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Database Interview Questions - Smita Bharat 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:\/\/smitabharat.com\/blog\/database-interview-questions\/","og_locale":"en_US","og_type":"article","og_title":"Database Interview Questions - Smita Bharat Blog","og_description":"1.what is index A database index is a performance optimization tool that allows the database to find rows faster when you query by specific columns. CREATE INDEX idx_users_email ON users(email); idx_users_email is the name of the index. It improves performance for queries filtering by email. \ud83d\udcc8 Types of Indexes Type Description Single-column index Index on...","og_url":"https:\/\/smitabharat.com\/blog\/database-interview-questions\/","og_site_name":"Smita Bharat Blog","article_published_time":"2026-07-02T10:35:48+00:00","article_modified_time":"2026-07-14T17:32:11+00:00","author":"Smita","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Smita","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/smitabharat.com\/blog\/database-interview-questions\/#article","isPartOf":{"@id":"https:\/\/smitabharat.com\/blog\/database-interview-questions\/"},"author":{"name":"Smita","@id":"https:\/\/smitabharat.com\/blog\/#\/schema\/person\/8d82457aaa3ced63e3f875cb5a31ce4c"},"headline":"Database Interview Questions","datePublished":"2026-07-02T10:35:48+00:00","dateModified":"2026-07-14T17:32:11+00:00","mainEntityOfPage":{"@id":"https:\/\/smitabharat.com\/blog\/database-interview-questions\/"},"wordCount":998,"commentCount":0,"articleSection":["Blog Post"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/smitabharat.com\/blog\/database-interview-questions\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/smitabharat.com\/blog\/database-interview-questions\/","url":"https:\/\/smitabharat.com\/blog\/database-interview-questions\/","name":"Database Interview Questions - Smita Bharat Blog","isPartOf":{"@id":"https:\/\/smitabharat.com\/blog\/#website"},"datePublished":"2026-07-02T10:35:48+00:00","dateModified":"2026-07-14T17:32:11+00:00","author":{"@id":"https:\/\/smitabharat.com\/blog\/#\/schema\/person\/8d82457aaa3ced63e3f875cb5a31ce4c"},"breadcrumb":{"@id":"https:\/\/smitabharat.com\/blog\/database-interview-questions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/smitabharat.com\/blog\/database-interview-questions\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/smitabharat.com\/blog\/database-interview-questions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/smitabharat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Database Interview Questions"}]},{"@type":"WebSite","@id":"https:\/\/smitabharat.com\/blog\/#website","url":"https:\/\/smitabharat.com\/blog\/","name":"Smita Bharat Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/smitabharat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/smitabharat.com\/blog\/#\/schema\/person\/8d82457aaa3ced63e3f875cb5a31ce4c","name":"Smita","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/c2cc9a654a17e3944ea74c7317b81fa65c28ba7d50a629a551b0c9b321308883?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c2cc9a654a17e3944ea74c7317b81fa65c28ba7d50a629a551b0c9b321308883?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c2cc9a654a17e3944ea74c7317b81fa65c28ba7d50a629a551b0c9b321308883?s=96&d=mm&r=g","caption":"Smita"},"sameAs":["https:\/\/smitabharat.com\/blog"],"url":"https:\/\/smitabharat.com\/blog\/author\/smita_bharat_wp\/"}]}},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/posts\/52","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/comments?post=52"}],"version-history":[{"count":5,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/posts\/52\/revisions"}],"predecessor-version":[{"id":62,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/posts\/52\/revisions\/62"}],"wp:attachment":[{"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/media?parent=52"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/categories?post=52"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/tags?post=52"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}