<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-20434908.post8325545424620129216..comments</id><updated>2011-12-12T11:08:01.603+02:00</updated><category term='MongoDB'/><category term='Vista'/><category term='Delver'/><category term='MySQL'/><category term='MySQL Connector'/><category term='Chrome'/><category term='Linux'/><category term='Mac'/><category term='SQL Server'/><category term='Misc'/><category term='Databases'/><category term='Windows'/><category term='Google'/><category term='InnoDB'/><title type='text'>Comments on Rational Relational: Emulating MySQL’s GROUP_CONCAT() Function in SQL S...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.shlomoid.com/feeds/8325545424620129216/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20434908/8325545424620129216/comments/default'/><link rel='alternate' type='text/html' href='http://blog.shlomoid.com/2008/11/emulating-mysqls-groupconcat-function.html'/><author><name>Shlomo Priymak</name><uri>https://profiles.google.com/116089576530899793016</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-MBtwyrFVHws/AAAAAAAAAAI/AAAAAAABFDw/7IPBTg5WJWE/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-20434908.post-3869498834496765465</id><published>2011-12-12T11:07:10.189+02:00</published><updated>2011-12-12T11:07:10.189+02:00</updated><title type='text'>It works but it causes some issues.
The characters...</title><content type='html'>It works but it causes some issues.&lt;br /&gt;The characters &amp;amp;, &amp;lt;, and &amp;gt; are always entitized to &amp;amp;, &amp;lt;, and &amp;gt; respectively.&lt;br /&gt;&lt;br /&gt;How do we avoid it?&lt;br /&gt;&lt;br /&gt;Please reply</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20434908/8325545424620129216/comments/default/3869498834496765465'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20434908/8325545424620129216/comments/default/3869498834496765465'/><link rel='alternate' type='text/html' href='http://blog.shlomoid.com/2008/11/emulating-mysqls-groupconcat-function.html?showComment=1323680830189#c3869498834496765465' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.shlomoid.com/2008/11/emulating-mysqls-groupconcat-function.html' ref='tag:blogger.com,1999:blog-20434908.post-8325545424620129216' source='http://www.blogger.com/feeds/20434908/posts/default/8325545424620129216' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1282756118'/></entry><entry><id>tag:blogger.com,1999:blog-20434908.post-9061373504121015571</id><published>2011-07-12T07:26:38.566+03:00</published><updated>2011-07-12T07:26:38.566+03:00</updated><title type='text'>DECLARE @x varchar(8000)
SELECT @x = COALESCE(@x+&amp;...</title><content type='html'>DECLARE @x varchar(8000)&lt;br /&gt;SELECT @x = COALESCE(@x+&amp;#39;, &amp;#39;,&amp;#39;&amp;#39;)+ISNULL(GROUPNAME,&amp;#39;&amp;#39;) FROM [whims2].[dbo].[UM_TGROUP]&lt;br /&gt;SELECT @x</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20434908/8325545424620129216/comments/default/9061373504121015571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20434908/8325545424620129216/comments/default/9061373504121015571'/><link rel='alternate' type='text/html' href='http://blog.shlomoid.com/2008/11/emulating-mysqls-groupconcat-function.html?showComment=1310444798566#c9061373504121015571' title=''/><author><name>Kashif</name><uri>http://www.blogger.com/profile/05845986619159674085</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.shlomoid.com/2008/11/emulating-mysqls-groupconcat-function.html' ref='tag:blogger.com,1999:blog-20434908.post-8325545424620129216' source='http://www.blogger.com/feeds/20434908/posts/default/8325545424620129216' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-512091893'/></entry><entry><id>tag:blogger.com,1999:blog-20434908.post-3651076985869840290</id><published>2011-03-17T12:36:52.261+02:00</published><updated>2011-03-17T12:36:52.261+02:00</updated><title type='text'>How can i group_concat two columns using cross app...</title><content type='html'>How can i group_concat two columns using cross apply? &lt;br /&gt;&lt;br /&gt;For example,&lt;br /&gt;&lt;br /&gt;select group_concat(DATA_TYPE) as data_types, group_concat(column_name) as column_names from information_schema.columns group by table_name&lt;br /&gt;&lt;br /&gt;your help is much appreciated.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20434908/8325545424620129216/comments/default/3651076985869840290'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20434908/8325545424620129216/comments/default/3651076985869840290'/><link rel='alternate' type='text/html' href='http://blog.shlomoid.com/2008/11/emulating-mysqls-groupconcat-function.html?showComment=1300358212261#c3651076985869840290' title=''/><author><name>Mathan</name><uri>http://www.blogger.com/profile/05361556646686083591</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.shlomoid.com/2008/11/emulating-mysqls-groupconcat-function.html' ref='tag:blogger.com,1999:blog-20434908.post-8325545424620129216' source='http://www.blogger.com/feeds/20434908/posts/default/8325545424620129216' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1140692844'/></entry><entry><id>tag:blogger.com,1999:blog-20434908.post-4829766354854813114</id><published>2009-11-06T23:08:16.962+02:00</published><updated>2009-11-06T23:08:16.962+02:00</updated><title type='text'>you need to account for no values  - 



    SELEC...</title><content type='html'>you need to account for no values  - &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    SELECT table_name,&lt;br /&gt;   case when LEN(column_names) &amp;gt; 0 &lt;br /&gt;   then LEFT(column_names,LEN(column_names) - 1)   &lt;br /&gt;   else &amp;#39;&amp;#39; end AS column_names&lt;br /&gt;    FROM   (SELECT table_name,&lt;br /&gt;                   (SELECT column_name + &amp;#39;,&amp;#39; AS [text()]&lt;br /&gt;                    FROM   information_schema.columns AS internal&lt;br /&gt;                    WHERE  internal.table_name = table_names.table_name&lt;br /&gt;                    FOR xml PATH (&amp;#39;&amp;#39;)&lt;br /&gt;                   ) AS column_names&lt;br /&gt;            FROM   (SELECT   table_name&lt;br /&gt;                    FROM     information_schema.columns&lt;br /&gt;                    GROUP BY table_name) AS table_names) AS pre_trimmed;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20434908/8325545424620129216/comments/default/4829766354854813114'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20434908/8325545424620129216/comments/default/4829766354854813114'/><link rel='alternate' type='text/html' href='http://blog.shlomoid.com/2008/11/emulating-mysqls-groupconcat-function.html?showComment=1257541696962#c4829766354854813114' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.shlomoid.com/2008/11/emulating-mysqls-groupconcat-function.html' ref='tag:blogger.com,1999:blog-20434908.post-8325545424620129216' source='http://www.blogger.com/feeds/20434908/posts/default/8325545424620129216' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1610629537'/></entry><entry><id>tag:blogger.com,1999:blog-20434908.post-8415973468772780648</id><published>2009-07-24T21:07:46.012+03:00</published><updated>2009-07-24T21:07:46.012+03:00</updated><title type='text'>thank you very much, worked like a charm</title><content type='html'>thank you very much, worked like a charm</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20434908/8325545424620129216/comments/default/8415973468772780648'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20434908/8325545424620129216/comments/default/8415973468772780648'/><link rel='alternate' type='text/html' href='http://blog.shlomoid.com/2008/11/emulating-mysqls-groupconcat-function.html?showComment=1248458866012#c8415973468772780648' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.shlomoid.com/2008/11/emulating-mysqls-groupconcat-function.html' ref='tag:blogger.com,1999:blog-20434908.post-8325545424620129216' source='http://www.blogger.com/feeds/20434908/posts/default/8325545424620129216' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1817102365'/></entry><entry><id>tag:blogger.com,1999:blog-20434908.post-5939948175854254286</id><published>2008-11-29T00:19:00.000+02:00</published><updated>2008-11-29T00:19:00.000+02:00</updated><title type='text'>Thanks for the tip.</title><content type='html'>Thanks for the tip.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20434908/8325545424620129216/comments/default/5939948175854254286'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20434908/8325545424620129216/comments/default/5939948175854254286'/><link rel='alternate' type='text/html' href='http://blog.shlomoid.com/2008/11/emulating-mysqls-groupconcat-function.html?showComment=1227910740000#c5939948175854254286' title=''/><author><name>nathany</name><uri>http://www.blogger.com/profile/17602902852018295760</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.shlomoid.com/2008/11/emulating-mysqls-groupconcat-function.html' ref='tag:blogger.com,1999:blog-20434908.post-8325545424620129216' source='http://www.blogger.com/feeds/20434908/posts/default/8325545424620129216' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-7069136'/></entry><entry><id>tag:blogger.com,1999:blog-20434908.post-6036054428470884445</id><published>2008-11-09T19:36:00.000+02:00</published><updated>2008-11-09T19:36:00.000+02:00</updated><title type='text'>Thanks for this, I just tried to integrate this in...</title><content type='html'>Thanks for this, I just tried to integrate this into an SQL Server application I am working on. I will do some benchmarks next week to see if this actually improves performance.&lt;BR/&gt;&lt;BR/&gt;Briefly what I am doing is the following:&lt;BR/&gt;I have a search interface that can return a few upto  a couple thousand results. In practice I am only interested in displaying upto 50 (actually the user can also ask to get upto 1000 returned if he insists), however I am always expected to show a count of all possible results (total as well as grouped by one criteria).&lt;BR/&gt;&lt;BR/&gt;The solution we found gave us the best performance was to just fetch the id's and to throw that into an IN statement that fetches the actual data to display (and then again in a second query that fetches the "reason" why something was included since we are searching way more fields than are displayed in the end).&lt;BR/&gt;&lt;BR/&gt;Now my obvious worry is that I do not really want to fetch 1000 rows one at a time in the worst case. Then again it might not matter, since PHP will by default fetch the entire result set anyways and will just buffer them in the client. But its still an interesting excurs into some more advanced SQL Server constructs.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20434908/8325545424620129216/comments/default/6036054428470884445'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20434908/8325545424620129216/comments/default/6036054428470884445'/><link rel='alternate' type='text/html' href='http://blog.shlomoid.com/2008/11/emulating-mysqls-groupconcat-function.html?showComment=1226252160000#c6036054428470884445' title=''/><author><name>lsmith</name><uri>http://www.blogger.com/profile/11436800881283286350</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.shlomoid.com/2008/11/emulating-mysqls-groupconcat-function.html' ref='tag:blogger.com,1999:blog-20434908.post-8325545424620129216' source='http://www.blogger.com/feeds/20434908/posts/default/8325545424620129216' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1997774081'/></entry></feed>
