Asp.net Solution | sql tips

Here Reader, We are provide all question yhose asked in interview. you are read this blog and prepare for asp.net interview.

get only unique row and delete all duplicate row

delete from table1 where                
EmpID in(select cId from table1 group by cid having count(*) >1)
Posted by deepak at 11:22 pm No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: get only unique value in sql server

delete duplicate value in sql server

DELETE
FROM MyTable
WHERE ID NOT IN
(
SELECT MAX(ID)
FROM MyTable
GROUP BY column1,
column)
Posted by deepak at 11:21 pm No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: delete duplicate value
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Popular Posts

  • state management
     More Details :  Live Training in jaipur State management is the process by which you maintain state and page information over multip...
  • Difference between SqlDataAdapter or sqlDataReader ?
     More Details :  Live Training in jaipur Ques.1 :  Difference between SqlDataAdapter or sqlDataReader ? Ans  :      1.A DataReader w...
  • Rename database in sql 2008
    Rename Database in sql server 2008 1.        How to create database in sql server 2008 USE Master; Go CREATE DATABASE SALA...
  • Cursor in SQL
    We can say that cursor is row pointer in a set of rows (result set).Which points a single row at time in result set. But can move to other...
  • Remove All User Defined Store procedures, Views and Triggers
    interesting things  in SQL if you have a list of Store Procedures ,Views and triggers  in your database and reason  being you want to dele...
  • what is abstract class ?
     More Details :  Live Training in jaipur Abstract class is a class that can not be instantiated, it exists extensively for inheritance ...
  • What is the difference between user and custom controls?
    User controls are easier to create whereas custom controls require extra effort. User controls are used when the layout is static wher...
  • Example DataAdapter : use DataAdapter in asp.net
    DataAdapter Example :  This is a example of  dataadapter. < %@ Page  Language = "C#"  % >    < %@ Import  Namesp...
  • Only Number validation in Textbox of ASP.NET Using Regular Expression validator
    Only numbers can enter into that Textbox We can use Regular expression validator for this: In the validation expression property ke...
  • MultiPle Inheritance
    Can you use multiple inheritance in .NET? .NET supports only single inheritance. However the purpose is accomplished using multiple inte...

Blog Archive

  • ▼  2014 (3)
    • ▼  April (2)
      • get only unique row and delete all duplicate row
      • delete duplicate value in sql server
    • ►  March (1)
  • ►  2013 (3)
    • ►  March (3)
  • ►  2012 (19)
    • ►  June (19)

About Me

deepak
View my complete profile
Simple theme. Powered by Blogger.