ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Databases  >>  SQL Server
 
 


 

 
 Oracle interview questions  Oracle Interview Questions
 SQL Server interview questions  SQL Server Interview Questions
 MS Access interview questions  MS Access Interview Questions
 MySQL interview questions  MySQL Interview Questions
 Postgre interview questions  Postgre Interview Questions
 Sybase interview questions  Sybase Interview Questions
 DB Architecture interview questions  DB Architecture Interview Questions
 DB Administration interview questions  DB Administration Interview Questions
 DB Development interview questions  DB Development Interview Questions
 SQL PLSQL interview questions  SQL PLSQL Interview Questions
 Databases AllOther interview questions  Databases AllOther Interview Questions
Question
how to delete duplicate rows from table
 Question Submitted By :: Bhaskar
I also faced this Question!!     Rank Answer Posted By  
 
  Re: how to delete duplicate rows from table
Answer
# 1
WITH T1 AS (Select *, ROW_NUMBER() OVER (PARTITION BY id 
Order By id) AS rowid From test)
 
Is This Answer Correct ?    0 Yes 0 No
Gayathri
 
  Re: how to delete duplicate rows from table
Answer
# 2
Name : New

Sno Name
1   Rajesh
2   Rajesh  
3   Raja
4   Raja
5   Arun
6   Bala

Delete From New Where Sno Not IN 
(Select Min(Sno) From New Group By Name)
 
Is This Answer Correct ?    1 Yes 0 No
Kumar.t
 
 
 

 
 
 
Other SQL Server Interview Questions
 
  Question Asked @ Answers
 
what is the order of execution of where,having,group by in select stement Tanla-Solutions4
What is a cursor in SQL Server 2000 and their types?  2
which query u can write to sql server doesn't work inbetween 7.00PM to nextday 9.00AM Wipro4
is it possible to use a variable in a query with the IN clause (a,b,c..z), without getting quotes or conversion errors?  1
Anyone please explain me the concept of Serialization?  2
How to Run a Query on a Remote SQL Server?  1
How will oyu test the stored procedure taking two parameters namely first name and last name returning full name?  3
What is the difference between constraints and triggers? Wipro5
What are the type of Indexes? which one is best, why?  5
what is mean by crystal repoart? ahere we will mainly use that?  1
What is the difference between having and where clause?  3
1.What is the deferece between DBMS & RDBMS? 2.How can you trouble shoot? If u will get error while installing sql server? 3.How can u trouble shoot slow running query? 4.how can u trouble log shipping errors? 5.why do we use merge replication instead of T.log replication? Microsoft4
What is the system function to get the current user's user id? HCL1
How do you use DBCC statements to monitor various aspects of a SQL server installation?  1
Which system tables contain information on privileges granted and privileges obtained  1
What is lock escalation?  1
I have a website that allows customers to browse and place orders for certain products. I have 2 tables; Customers and Orders. The Customers table holds the customer records and the Orders table holds the orders placed by the customer. Both tables are tied based on the field Cust_ID. Example of the data is shown below: Cust_ID Cust_Name Cust_ID Product Amount Order_Date 1001 John Tan 1001 P-5211 $120.00 2/13/2006 1002 Michael Wong 1001 K-1428 $88.90 1/11/2006 1003 Mary Cheong 1003 C-0923 $82.50 1/27/2006 1004 Ahmad Suffian 1003 K-1428 $88.90 2/2/2006 Write a single SQL statement that extracts all purchase records with the following criteria: 1. Customer names starting with “M” only. 2. Orders placed within the current month only. 3. Amount does not exceed $100.00 The list must be sorted by order date with the latest order showing on top. Techno-Solutions2
can we call functions from stored procedure in SQL Server 2005 ? How?  2
How to write stored procedure to update the data in 10 tables  3
How do you load large data to the SQL server database?  2
 
For more SQL Server Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com