New SQL Server Interview Questions :: ALLInterview.com http://www.allinterview.com New SQL Server Interview Questions en-us What is Files and Filegroups in SQL Server & it's implement http://www.allinterview.com/showanswers/101370.html Usage of different filegroups is a very good feature that is available in SQL Server as well as many other RDBMS (though in other RDBMS like Oracle and DB2 UDB, the concept is a bit different for tablespaces but similar feature exists). File What is the disadvantage of using subquery exact after a select stat http://www.allinterview.com/showanswers/101291.html A successfully created SSIS package in SQL Server 2005 runs fine in http://www.allinterview.com/showanswers/100839.html After recovering the database by using tail log backup.How to verify http://www.allinterview.com/showanswers/100618.html what is macro? http://www.allinterview.com/showanswers/100274.html WHICH INDEX IS FAST CLUSTER AND NON CLUSTER INDEX http://www.allinterview.com/showanswers/100205.html CLUSTER INDEX BCZ THAT WORK PHYSICALLY(MEANS ALREADY IN DEC OR ASC ORDER) BUT NON CLUSTER INDEX WORK DYNAMICALLY. event classes in sql server http://www.allinterview.com/showanswers/100157.html cursors,t-sql,stored procedures,databse,errors and warnings, locks,objects,performance,scans,security audit,transactions, user configurable these comes under sql server profile WHAT IS UNIQUE IDENTIFIER DATA TYPE? http://www.allinterview.com/showanswers/100156.html unique identifier data type size is 16 bits. while creating table we have to create unique identifier datatype column. it will create unique identity column with 16 charcters ex: create table a( id uniqueidentifier default newid (),....),newid( A left outer join B B right outer join A gives the same result the http://www.allinterview.com/showanswers/100152.html how to get the maximum among two tables,for example table 1 (dep1) h http://www.allinterview.com/showanswers/100150.html Use Cursors: declare Cursor_Name cursor scroll for select max(salary) as salary from dep1 union select max(salary) as salart from dep2 order by salary desc open Cursor_Name fetch absolute 1 from Cursor_Name deallocate Cursor_Name One table Test with single column. These are the values in the table http://www.allinterview.com/showanswers/99775.html Delete duplicate rows from a table without primary key by using a si http://www.allinterview.com/showanswers/99774.html Execute the following query for each duplicate value. 1.Delete duplicate of empname='A' delete top(select count(*)-1 from employee where empname='A') from employee where empname='A' 2.Delete duplicate of empnam Please get the 4 th maximum salary from a table without using any sq http://www.allinterview.com/showanswers/99773.html DECLARE @test TABLE(Empnm VARCHAR(10), Salary VARCHAR(10)) INSERT INTO @test (Empnm, Salary ) SELECT 'A', '200' UNION ALL SELECT 'B', '300' UNION ALL SELECT 'A', '200' UNION ALL One table Test with single column. These are the values in the table http://www.allinterview.com/showanswers/99749.html 9. Write a query to list a new column with the difference in temp of http://www.allinterview.com/showanswers/99739.html select t1.name + ' and ' t2.name , t2.temp -t1.temp from temp t1 join temp t2 on t2.id=t1.id+1