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
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Query for fectching records

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-02-19 : 09:26:32
sushil writes "How can i fetch in a single query

If table contains 10 records in that 6 are unique and 2 are repeated.I need to fetch the 6 unique records plus 2 records also without repetation."

JustinBigelow
SQL Gigolo

1157 Posts

Posted - 2002-02-19 : 09:31:26
You can use the DISTINCT keyword to remove dupes. See BOL for more info.

Justin

Go to Top of Page
   

- Advertisement -