Ask SQLServerCentral
We have expanded our forums with a new Question and Answer site based on the StackOverflow codebase. Please feel free to visit.
2009-10-12 (first published: 2009-10-09)
863 reads
We have expanded our forums with a new Question and Answer site based on the StackOverflow codebase. Please feel free to visit.
2009-10-12 (first published: 2009-10-09)
863 reads
2009-09-11
4,146 reads
SQLServerCentral is changing usernames for some of our members in an effort to clean things up. Read more about what will be happening on Tuesday, Sept. 15, 2009.
2009-09-14 (first published: 2009-09-11)
3,094 reads
SQLServerCentral is hosting an opening night party at the 2009 PASS Summit. Read more about this and learn how to get a ticket.
2009-08-19
91 reads
Get some details about the 2009 SQLServerCentral party at the PASS Summit in November.
2009-10-29 (first published: 2009-07-20)
2,195 reads
2009-07-09
30 reads
Are you looking to raise your profile? Add something to your resume? Consider writing for SQLServerCentral. Longtime author and expert David Poole gives us some hints.
2009-06-19
3,144 reads
How do you get help? You can post a question on SQLServerCentral, but to get the most help you can, read this article from MVP Gail Shaw.
2014-01-17 (first published: 2009-06-12)
65,217 reads
2009-05-26
45 reads
I have been a bit lax these past few days, but I have been having a bit of a writers block not knowing what to write about. Well, I realized this evening there is something worth writing about, and it is happening right now on SQLServerCentral.com. An...
2009-05-07
1,496 reads
By Steve Jones
Redgate is a for-profit company. We look to make money by building and selling...
I’ve uploaded the slides for my Techorama session Microsoft Fabric for Dummies and my...
If you've ever loaded a 2 GB CSV into pandas just to run a...
Comments posted to this topic are about the item Even When You Know What...
Comments posted to this topic are about the item The New Software Team
Comments posted to this topic are about the item Database Mail in SQL Server...
We create the following table and then insert some records in it:
create table t1 ( id int primary key, category char(1) not null, product varchar(50) ); insert into t1 values (1, 'A', 'Product 1'), (2, 'A', 'Product 2'), (3, 'A', 'Product 3'), (4, 'B', 'Product 4'), (5, 'B', 'Product 5');What happens if we execute the following query in both Sql Server and PostgreSQL?
select id,
category,
string_agg(product, ';')
over (partition by category order by id
rows between unbounded preceding and unbounded following) as stragg
from t1; See possible answers