{"id":8653,"date":"2019-01-15T17:41:12","date_gmt":"2019-01-15T17:41:12","guid":{"rendered":"https:\/\/www.monsterindia.com\/career-advice\/8-advanced-sql-server-questions-you-should-know-to-crack-your-next-interview-8653\/"},"modified":"2023-03-24T15:46:53","modified_gmt":"2023-03-24T10:16:53","slug":"8-advanced-sql-server-questions-you-should-know-to-crack-your-next-interview","status":"publish","type":"post","link":"https:\/\/www.foundit.sg\/career-advice\/8-advanced-sql-server-questions-you-should-know-to-crack-your-next-interview\/","title":{"rendered":"8 advanced SQL Server Questions you should know to crack your next interview"},"content":{"rendered":"\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\"><\/span><\/p>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">Congratulations on getting called for a SQL Server Interview. You\u2019re just one step away from fulfilling your dream career as SQL Server Developer. However, scoring an interview call is just half the battle won. It&#8217;s always difficult to predict what to expect when going in for that SQL Server interview. <\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\"><strong>Here, we list a few frequently asked SQL questions that should help you crack your next SQL interview. <\/strong><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\"><strong>1. Can you explain the different types of SQL commands?<\/strong> <\/span><\/h3>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">There are five distinct types of SQL commands which can be classified as under: <\/span><\/p>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">\u2022 DML \u2013 Data Manipulation Language <\/span><br><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">\u2022 DCL \u2013 Data Control Language <\/span><br><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">\u2022 DDL \u2013 Data Definition Language <\/span><br><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">\u2022 TCL \u2013 Transaction Control Language <\/span><br><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">\u2022 DQL \u2013 Data Query Language <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\"><strong>2. What is Fill Factor and the default fill factor value?<\/strong> <\/span><\/h3>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">Fill Factor can be described as a setting that applies to Indexes in SQL Server. Whenever an index page is rebuilt or created, fill factor value is used to determine how much data or percentage of space is written to it\/filled by it. By default, the fill factor value is set to 100, which is the same as value 0. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\"><strong>3. Can you touch upon the recovery models available for a database?<\/strong> <\/span><\/h3>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">There are three recovery models available for a database. <\/span><\/p>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">\u2022 Full recovery model <\/span><br><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">\u2022 Bulk-Logged recovery model <\/span><br><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">\u2022 Simple recovery model <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\"><strong>4. Can you explain the concept of SQL Constraints?<\/strong> <\/span><\/h3>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">SQL constraints are used to specify rules for the data that can be entered into a table. These constraints can be applied on a column level or table level. SQL constraints not only helps in preventing errors but also aids in improving the reliability of the database on the whole. Some of the commonly used constraints are as listed below: <\/span><\/p>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">\u2022 NOT NULL Constraint <\/span><br><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">\u2022 DEFAULT Constraint <\/span><br><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">\u2022 UNIQUE Constraint <\/span><br><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">\u2022 CHECK Constraint <\/span><br><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">\u2022 INDEX Constraint <\/span><br><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">\u2022 PRIMARY KEY Constraint <\/span><br><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">\u2022 FOREIGN KEY Constraint <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\"><strong>5. Can you explain which authentication modes are in SQL Server?<\/strong> <\/span><\/h3>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">There are two authentication modes available for use in SQL Server. <\/span><\/p>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">\u2022 Windows mode \u2013\u202fdefault mode that cannot be disabled. <\/span><br><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">\u2022 Mixed Mode \u2013 enables both SQL and Windows authentication. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\"><strong>6. Can you uncover the difference between a UNION and a JOIN?<\/strong> <\/span><\/h3>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">Although both, Unions and Joins can be used in order to combine data from one or more tables, the key differentiator lies in how the data is combined. While a union selects rows to combine data, a Join selects columns from two or more tables to combine data. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\"><strong>7. What are the properties of a transaction?<\/strong> <\/span><\/h3>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">Commonly referred to as ACID properties, there are four properties of ACID which guarantee that the database transactions are processed accurately and reliably at all times. <\/span><\/p>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">\u2022 Atomicity <\/span><br><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">\u2022 Consistency <\/span><br><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">\u2022 Isolation <\/span><br><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">\u2022 Durability <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\"><strong>8. What are the different types of attributes?<\/strong> <\/span><\/h3>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">An attribute constitutes a character and describes the various characteristics of an entity. They are as below: <\/span><\/p>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">\u2022 Simple\/ Atomic Attribute <\/span><br><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">\u2022 Composite\/ Compound Attribute that can be split into columns <\/span><br><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">\u2022 Single-Valued Attribute <\/span><br><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">\u2022 Multi-valued Attribute <\/span><br><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">\u2022 Derived Attribute <\/span><br><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">\u2022 Computed Attribute <\/span><br><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">\u2022 Derived persistent Attribute <\/span><br><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">\u2022 Key Attributes <\/span><br><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">\u2022 Non-key Attributes <\/span><br><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">\u2022 Optional\/ null value Attributes <\/span><\/p>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">Besides the above-mentioned list of questions, we have compiled an additional list of eight Frequently Asked Questions to help you crack your all-important SQL Server interview. <\/span><\/p>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">1. Explain what Replication is along with the different types of Replication and their uses? <\/span><br><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">2. Explain the concept of an ER Diagram? <\/span><br><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">3. What is Normalization and describe the different forms of Normalization? <\/span><br><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">4. Describe what a Subquery is and highlight the various types of sub-query <\/span><br><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">5. What are various types of Operators available in SQL? <\/span><br><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">6. Touch upon the difference between Delete and Truncate? <\/span><br><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">7. What are the various string functions available in SQL? <\/span><br><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">8. Explain the concept of Self-Join and Cross-Join in SQL? <\/span><\/p>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">Although it&#8217;s easy to get flustered during an interview but it&#8217;s important that you always stay calm and focused. Keep in mind that interviewers don\u2019t always expect you to know all the answers. Sometimes, they just may be testing your ability to keep composed and analyse whether you crack under pressure. If you hit a roadblock or find yourself unable to answer any question, don\u2019t fret. Take some time to gather your thoughts and try to work through your thoughts on how to approach the question.<\/span><\/p>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\"><strong>Looking for SQL Server Jobs in top cities? Click at the links below:<\/strong><\/span><\/p>\n\n\n\n<p><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">\u2022 <a title=\"SQL Server Jobs in Bangalore\" href=\"https:\/\/www.monsterindia.com\/search\/sql-server-jobs-in-bengaluru-bangalore\" target=\"_blank\" rel=\"noopener\">SQL Server Jobs in Bangalore<\/a><\/span><br><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">\u2022 <a title=\"SQL Server Jobs in Mumbai\" href=\"https:\/\/www.monsterindia.com\/search\/sql-server-jobs-in-mumbai\" target=\"_blank\" rel=\"noopener\">SQL Server Jobs in Mumbai<\/a><\/span><br><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">\u2022 <a title=\"SQL Server Jobs in Chennai\" href=\"https:\/\/www.monsterindia.com\/search\/sql-server-jobs-in-chennai\" target=\"_blank\" rel=\"noopener\">SQL Server Jobs in Chennai<\/a><\/span><br><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">\u2022 <a title=\"SQL Server Jobs in Hyderabad\" href=\"https:\/\/www.monsterindia.com\/search\/sql-server-jobs-in-hyderabad-secunderabad\" target=\"_blank\" rel=\"noopener\">SQL Server Jobs in Hyderabad<\/a><\/span><br><span style=\"font-family: verdana,geneva,sans-serif;font-size: 12pt\">\u2022 <a title=\"SQL Server Jobs in Pune\" href=\"https:\/\/www.monsterindia.com\/search\/sql-server-jobs-in-pune\" target=\"_blank\" rel=\"noopener\">SQL Server Jobs in Pune<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Congratulations on getting called for a SQL Server Interview. You\u2019re just one step away from fulfilling your dream career as SQL Server Developer. However, scoring an interview call is just half the battle won. It&#8217;s always difficult to predict what to expect when going in for that SQL Server interview. Here, we list a few [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":8654,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[147],"tags":[],"class_list":{"0":"post-8653","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-interview-questions"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.foundit.sg\/career-advice\/wp-json\/wp\/v2\/posts\/8653","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.foundit.sg\/career-advice\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.foundit.sg\/career-advice\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.foundit.sg\/career-advice\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.foundit.sg\/career-advice\/wp-json\/wp\/v2\/comments?post=8653"}],"version-history":[{"count":2,"href":"https:\/\/www.foundit.sg\/career-advice\/wp-json\/wp\/v2\/posts\/8653\/revisions"}],"predecessor-version":[{"id":15943,"href":"https:\/\/www.foundit.sg\/career-advice\/wp-json\/wp\/v2\/posts\/8653\/revisions\/15943"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.foundit.sg\/career-advice\/wp-json\/wp\/v2\/media\/8654"}],"wp:attachment":[{"href":"https:\/\/www.foundit.sg\/career-advice\/wp-json\/wp\/v2\/media?parent=8653"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.foundit.sg\/career-advice\/wp-json\/wp\/v2\/categories?post=8653"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.foundit.sg\/career-advice\/wp-json\/wp\/v2\/tags?post=8653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}