Friday, October 4, 2013

[SQL Server] Finding and picking from Duplicates...

[SQL Server] Finding and picking from Duplicates...


Finding and picking from Duplicates...

Posted: 04 Oct 2013 04:31 AM PDT

This should be simple but I' having a hard time wrapping my head around this one late on a friday afternoon.I have a table containing people and except for one or two fields, the entire record could be a duplicate and should be treated as so. For example:FirstName, LastName, Address, City, State, SSN, SomeNumber***************************************************John, Doe, 123 Street, Atlanta, GA, 3000, 123456789, 001John, Doe, 123 Street, Atlanta, GA, 3000, 123456789, 004John, Doe, 123 Street, Atlanta, GA, 3000, 123456789, 007How can I write a select statement to just get the most recently created record like:John, Doe, 123 Street, Atlanta, GA, 3000, 123456789, 007???

SQL Error message - explanation

Posted: 03 Oct 2013 11:26 PM PDT

What does this error message mean when a application is connected to a SQL database?'Index was out of range. Must be non-negative and less than the size of the collection.Parameter name: index'Thanks

No comments:

Post a Comment

Search This Blog