SQL Server Interview Questions
Questions Answers Views Company eMail

What is the Difference Between Primary and Foreign Key?

Accenture, Deloitte, JPMorgan Chase, Maveric,

812

What are the differences between DDL, DML and DCL in SQL?

ABB, Aspire, Infogain,

1009

What does REVERT do in SQL Server 2005?

HCL,

764

If you're given a raw data table, how would perform etl (extract, transform, load) with sql to obtain the data in a desired format?

Facebook,

780

how would you write a sql query to compute a frequency table of a certain attribute involving two joins? What changes would you need to make if you want to order by or group by some attribute? What would you do to account for nulls?

Facebook,

1420

how would you improve etl (extract, transform, load) throughput?

LinkedIn,

820

define and explain the differences between clustered and non-clustered indexes.

Microsoft,

908

what are the different ways to return the rowcount of a table?

Microsoft,

796

what is datawarehouse?

Informatica,

901

We are updating a field in sql and alter the row also.after giving the commit command the system is crashed.what will happen to the commands given,whether it will update and alter the table or not?

Amdocs, Apps Associates,

1176

how will add additional conditions in sql?

Amdocs, Apps Associates,

790

What are SSL and TSL protocols?

Wipro,

789

What is the difference between Normalization and De-normalization?

TCS,

835

What does COMMIT command do?

Amdocs,

839

Write a program to fetch first 10 records from a file?

Amdocs,

826


Un-Answered Questions { SQL Server }

why would you use sql agent? : Sql server database administration

850


What are the restraints imposed on the table design by a merge replication?

834


What are the steps you must follow to hide sql server instances?

762


Explain what are the different index configurations a table can have?

902


How to change the name of a database user?

788


hi, the following are the outputs of sp_spaceused and sp_tempdbspace sp_spaceused ------------ database size unallocated size tempdb 77752.95 MB 28026.99 MB sp_tempdbspace ------------- database size spaceused tempdb 77752.945312 1.007812 the unused space in sp_spaceused is nearly 28 Gb and in sp_tempdbspace is nearly 76 Gb cany any one explain about this output and why its giving different results.

2727


What are the different types of lock modes in sql server 2000?

688


What is a rownum?

728


What is the guest user account in sql server? What login is it mapped to it? : sql server security

819


What are the advantages of stored procedure in sql server?

695


Difference between Inner vs outer joins?

746


How many full-text indexes can a table have?

771


What are extended events in sql server?

729


What is query cost in sql server?

812


How to get the number of affected rows?

777