Top SQL Server Interview Questions :: ALLInterview.com http://www.allinterview.com Top SQL Server Interview Questions en-us What are the all different types of Joins in SQL Server 2000, Anybod http://www.allinterview.com/showanswers/36608.html Different Types Of JOINS: Most of the joins you will come across are based on equality, with the equijoin being the most dominant. In this chapter you learned about equijoins; there are other types of joins you must become familiar wi How do we get month name in SQL Server 2000, Oracle, MS Access? http://www.allinterview.com/showanswers/28427.html select datename(mm,getdate()) Define candidate key, alternate key, composite key. http://www.allinterview.com/showanswers/23527.html A candidate key is one that can identify each row of a table uniquely. Generally a candidate key becomes the primary key of the table. If the table has more than one candidate key, one of them will become the primary key, and the rest are cal How do we get current date in SQL Server 2000, Oracle, MS Access? http://www.allinterview.com/showanswers/28430.html SELECT GETDATE() AS 'Current Date' GO Write a query to delete duplicate records in SQL SERVER http://www.allinterview.com/showanswers/61820.html DELETE FROM A WHERE (id NOT IN (SELECT MAX(ID) FROM A GROUP BY name)) suppose i have table called A. A has two coloumn id (identity) as int and What are the differences between stored procedure and functions in SQ http://www.allinterview.com/showanswers/28431.html The Text property exposes the Transact-SQL or other script that defines the referenced Microsoft? SQL Server? 2000 database object. The FunctionName property specifies the function name to call in the Microsoft? ActiveX? script associated wi write the query for find the top 2 highest salary in sql server http://www.allinterview.com/showanswers/57036.html select Distinct Top 2 Salary from EMP order by Salary desc how to find nth highest salary http://www.allinterview.com/showanswers/19459.html DECLARE @SQL VARCHAR(2000), @N INT SET @N = 5 SET @N = @N - 1 SET @sql = 'select top 1 salary from ABC where salary not in ( SELECT TOP ' + CAST(@n AS VARCHAR(100)) + ' salary FROM ABC ) ' SELECT @SQL EXEC (@SQL) Difference between Cluster and Non-cluster index? http://www.allinterview.com/showanswers/8164.html A clustered index is a special type of index that reorders the way records in the table are physically stored. Therefore table can have only one clustered index. The leaf nodes of a clustered index contain the data pages. A nonclustered inde Difference between writing SQL query and stored procedure ? http://www.allinterview.com/showanswers/20331.html compared with query, stored procedure is efficient and fast execution.Because stored procedure is program once it formed then execute as a program. What are constraints? Explain different types of constraints? http://www.allinterview.com/showanswers/11428.html constraint is a rule which can not be voilated by end users. Different types of constraints are available.They are:- 1)default constraint:-which is used to define a default value. 2)primary key:-the key which does not allows duplication and nu What are the magic tables in SQL Server 2000? http://www.allinterview.com/showanswers/28429.html The INSERTED and DELETED tables, popularly known as MAGIC TABLES, and update () and columns_updated() functions can be used to determine the changes being caused by the DML statements. Note that the Magic Table does not contain the information How to write query to Delete the records in child table and corresp http://www.allinterview.com/showanswers/32739.html delete from child_table, parent_table where child_table.parent_id=parent_table.parent_id What are Magic Table? http://www.allinterview.com/showanswers/37122.html Update and Delete are the 2 Magic Tables.. Can anybody explain me cold backup and hot backup? http://www.allinterview.com/showanswers/29327.html Cold Server backups goes for those machine which have software installed and configured and then turned off. Hot Server backups are those which frequently are turned on and ready to move into production mode immediately.