﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2005 / T-SQL (SS2K5)  / distinct columns / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sat, 25 May 2013 02:06:01 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: distinct columns</title><link>http://www.sqlservercentral.com/Forums/Topic954310-338-1.aspx</link><description>It's not clear to me what you're looking for.What rows do you want to return?Simple scenario:col1	col2A1	1A1	2A2	3A2	4What would be your expected output?</description><pubDate>Sat, 17 Jul 2010 02:34:44 GMT</pubDate><dc:creator>LutzM</dc:creator></item><item><title>distinct columns</title><link>http://www.sqlservercentral.com/Forums/Topic954310-338-1.aspx</link><description>i have a table with no unique fields but and when i use distinct for column1 then it gives 3000 rows or values but when i use distinct for all the fields then it gives 7000 rows. I want all rows related to the column one ie. i want to get distict all rows on basis of coloumn1 ie 3000 rows of all fields.currently i m useing query :select distinct * from table1 where column1 in (select distinct column1 from table 1).but this is giving 7000 rows but dustinct column1 is only 3000 rows.</description><pubDate>Sat, 17 Jul 2010 00:01:59 GMT</pubDate><dc:creator>scottichrosaviakosmos</dc:creator></item></channel></rss>