<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Paco Zarate &#187; SQL Server</title>
	<atom:link href="http://nazcasistemas.com/blogs/pacozarate/category/desarrollo/sql-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://nazcasistemas.com/blogs/pacozarate</link>
	<description>Tecnilogiando</description>
	<lastBuildDate>Thu, 18 Apr 2013 03:39:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
		<item>
		<title>SQL Server &#8211; Como hacer un distinct con un campo texto</title>
		<link>http://nazcasistemas.com/blogs/pacozarate/2011/11/04/sql-server-como-hacer-un-distinct-con-un-campo-texto/</link>
		<comments>http://nazcasistemas.com/blogs/pacozarate/2011/11/04/sql-server-como-hacer-un-distinct-con-un-campo-texto/#comments</comments>
		<pubDate>Fri, 04 Nov 2011 20:25:36 +0000</pubDate>
		<dc:creator>pacozarate</dc:creator>
				<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://nazcasistemas.com/blogs/pacozarate/?p=130</guid>
		<description><![CDATA[Los campos tipo texto por default no le puedes aplicar el distinct.&#160; Para hacerlo hay que construirlo de la siguiente manera: Ej. en la tabla Clientes quiero obtener todos los nombres de clientes sin repetir: select distinct (Convert(VARCHAR(MAX), NOMBRE_CLIENTE)) from Clientes Ojo, el distinct tambien se puede usar para mas de un campo: select distint]]></description>
			<content:encoded><![CDATA[<p>Los campos tipo texto por default no le puedes aplicar el distinct.&nbsp;</p>
<p>Para hacerlo hay que construirlo de la siguiente manera:</p>
<p>Ej. en la tabla Clientes quiero obtener todos los nombres de clientes sin repetir:</p>
<p>select distinct (Convert(VARCHAR(MAX), NOMBRE_CLIENTE)) from Clientes</p>
<p>Ojo,</p>
<p>el distinct tambien se puede usar para mas de un campo:</p>
<p>select distint numFolio, Fecha from Facturas</p>
<p>&nbsp;</p>
<p>Saludos&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://nazcasistemas.com/blogs/pacozarate/2011/11/04/sql-server-como-hacer-un-distinct-con-un-campo-texto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
