Skip to content
Home » SQL SERVER » SQL Interview Q & A » Page 4

SQL Interview Q & A

A Series of SQL Server basics to advanced level SQL Interview questions and answers that are commonly asked in interivew.

How to access a data of table from another database in SQL Server?

How to copy a data of table from another database in SQL Server?

Suppose, you have a database1 and table1 and one another database2 and table2  in SQL server.

Now you are required to select data of a table1 of database1 from database2 of table2.

What would be a query for that?

Loading

What is Correlated Subquery in SQL?

A correlated subquery is a subquery that uses the values of the outer query  and it is evaluated for each row processed by the outer query 

A correlated subquery  always depends on outer query for its value. Because of this dependency, a correlated subquery cannot be executed independently as a simple subquery .

Loading