T-SQL 2012 Interview questions
Q: Given two tables T1 and T2 with same structure. If T1 has 20 records and T2 has 35 records, then the Full Join should result in how many records?
A: 50 records.
Q: What is difference between Equi-Join and NonEqui-Join?
A: If all columns in the ON clause are matched on
equality ( using operator = ) the join is called "Equi-Join". If one or more columns are
using an inequality comparison (using operators like <>, >, >=, <, <=, != ) the join is called "Nonequi-Join".
Q: Given table Country with one column with values India, Australia and England in specified order. Write a T-SQL query to display knockout matches between teams in the specified order:
India vs Australia
India vs England
England vs Australia
Q:
Given table T1 with ID column and row values 3, 10, 19, 20. Find
missing values starting with the minimum and maximum from table.
Please leave your suggestions and feedback by commenting
No comments:
Post a Comment