Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 qestion in interview

Author  Topic 

messi
Starting Member

47 Posts

Posted - 2009-01-14 : 13:18:15
Hello every one,
i had a question in interview :
the question is employee 1 enter data for client x
employee 2 enter date for client y
employee 3,4 and 5 enter data for client x
i want to delete the repeated data entered by employee 3,4,5
keep data entered by employee 1

any can help plz

Messi

TG
Master Smack Fu Yak Hacker

6065 Posts

Posted - 2009-01-14 : 14:46:32
I can see why they are interviewing. They fired the previous DBA that didn't put any constraints on the database to prevent duplicate data.

Be One with the Optimizer
TG
Go to Top of Page

rohitkumar
Constraint Violating Yak Guru

472 Posts

Posted - 2009-01-14 : 15:05:00
ha ha :)
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-01-14 : 23:57:33
look for ROW_NUMBER() function in books online
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-01-14 : 23:58:24
or read this article
http://sqlblogcasts.com/blogs/madhivanan/archive/2007/08/27/multipurpose-row-number-function.aspx
Go to Top of Page

messi
Starting Member

47 Posts

Posted - 2009-01-15 : 13:38:23
Thanks every one for help...
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-01-15 : 23:20:08
welcome
Go to Top of Page
   

- Advertisement -