All fields

“Joins” in Information Technology

24 questions across 2 technologies.

Information Technology

24 questions in 2 technologies

#QuestionTechnologyTopicLevel
1What common mistakes do developers make when writing multi table joins that can lead to unexpectedly large or incorrect result sets? SQL Server › JoinsSQL ServerJoinsIntermediate
2How should you structure Firestore data using subcollections and denormalization to design efficient queries, given that Firestore does not support traditional relational joins across separate collections? Flutter › Cloud Firestore & Firebase StorageFlutterCloud Firestore & Firebase StorageAdvanced
3What is an INNER JOIN, and how does it combine data from two tables? SQL Server › JoinsSQL ServerJoinsBeginner
4What is the difference between a LEFT JOIN and a RIGHT JOIN? SQL Server › JoinsSQL ServerJoinsBeginner
5How do you find rows that exist in one table but have no matching row in another table using a join? SQL Server › JoinsSQL ServerJoinsIntermediate
6What is a FULL OUTER JOIN, and when would you use one instead of a LEFT or RIGHT JOIN? SQL Server › JoinsSQL ServerJoinsIntermediate
7How does a CROSS JOIN work, and what are some legitimate use cases for it despite the risk of accidentally creating a huge result set? SQL Server › JoinsSQL ServerJoinsAdvanced
8How does SQL Server's query optimizer decide which physical join algorithm, such as nested loops, merge join, or hash join, to actually use for a given query? SQL Server › JoinsSQL ServerJoinsAdvanced
9How does the GROUP BY clause work together with aggregate functions? SQL Server › Aggregate Functions & GROUP BYSQL ServerAggregate Functions & GROUP BYBeginner
10How do you define multiple common table expressions within a single query? SQL Server › Common Table Expressions (CTEs)SQL ServerCommon Table Expressions (CTEs)Beginner
11What is a foreign key constraint, and how does it help maintain data integrity between two related tables? SQL Server › Constraints (Primary Key, Foreign Key, Check & Unique)SQL ServerConstraints (Primary Key, Foreign Key, Check & Unique)Beginner
12How do you write a query that retrieves data from a table on a linked server? SQL Server › Linked ServersSQL ServerLinked ServersBeginner
13What is a subquery in SQL Server, and how is it typically used within a larger query? SQL Server › SubqueriesSQL ServerSubqueriesBeginner
14What is the difference between a correlated and a non correlated subquery? SQL Server › SubqueriesSQL ServerSubqueriesBeginner
15What is a hash join, and how does SQL Server use it to combine two tables? SQL Server › Hash Indexes & Hash Join OperationsSQL ServerHash Indexes & Hash Join OperationsBeginner
16How do you convert a JSON array stored in a column into a relational table format that can be queried like normal rows? SQL Server › JSON Support in SQL ServerSQL ServerJSON Support in SQL ServerIntermediate
17What is the difference between using EXISTS and IN when checking for the presence of related data with a subquery? SQL Server › SubqueriesSQL ServerSubqueriesIntermediate
18How do you use a subquery within the SELECT list to calculate a related aggregate value alongside each row of the outer query? SQL Server › SubqueriesSQL ServerSubqueriesIntermediate
19How do you use the query and nodes methods to work with repeating elements within an XML document, such as a list of items in an order? SQL Server › XML Data Type & QueryingSQL ServerXML Data Type & QueryingIntermediate
20How do you design a schema to properly handle a many to many relationship between two entities, such as students and courses? SQL Server › Data Types & Schema DesignSQL ServerData Types & Schema DesignAdvanced
21How does dynamic data masking behave differently when a masked column is used in a JOIN, WHERE clause, or exported through an application, compared to a simple SELECT query? SQL Server › Dynamic Data MaskingSQL ServerDynamic Data MaskingAdvanced
22How would you use query hints to influence the optimizer's behavior when you have determined the default execution plan is genuinely suboptimal? SQL Server › Query Optimization & PlansSQL ServerQuery Optimization & PlansAdvanced
23How would you rewrite a slow correlated subquery as an equivalent, potentially faster JOIN based query? SQL Server › SubqueriesSQL ServerSubqueriesAdvanced
24How does the SQL Server query optimizer typically handle and potentially transform a subquery internally when generating an execution plan? SQL Server › SubqueriesSQL ServerSubqueriesAdvanced