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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 distinct records
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Posting Yak Master

152 Posts

Posted - 11/11/2013 :  01:51:50  Show Profile  Send desikankannan a Yahoo! Message  Reply with Quote
i try to get distinct records from a table

select distinct FuneralSite from deathdata

fetching records 259

i want to get address,state ,zip from the above record

i tried blow query but its wrong

select distinct FuneralSite,adress from deathdata
fetching reocrds 400

pls help me to


Very Important crosS Applying yaK Herder

52326 Posts

Posted - 11/11/2013 :  02:42:41  Show Profile  Reply with Quote
then you need to decide which address you need to return with each of the site
The reason why count goes over 259 is because you've multiple addresses associated with each of the FuneralSite.

SQL Server MVP
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000