Think Using .. In Code Is A Time Saver? Think Again!
Ok, so what is this 4 part naming convention? It is the way the SQL Server (and other DBs out...
2016-09-23
491 reads
Ok, so what is this 4 part naming convention? It is the way the SQL Server (and other DBs out...
2016-09-23
491 reads
You’ve got your team; now you need to find a somewhere to host your event. If you are lucky, you...
2016-09-22
413 reads
I just released an update to the sp_WOxCompliant script to fix a couple of issues. You can download it here! What...
2016-09-22
482 reads
A lot of these types of events are pulled together by the local user group. If there is none, it...
2016-08-31
730 reads
To kick off this series, I thought it would be worthwhile to discuss why it is I step up to...
2016-08-26
439 reads
This month’s T-SQL Tuesday (#080) is being hosted by Chris Yates (B|T) (Happy B-day Chris!). He decided that this month’s...
2016-07-12
526 reads
A while ago I was watching Shark Tank on TV and at one point Robert Herjavich (T|B) made the great...
2016-06-29
694 reads
No Sessions For You! The announcements of the speakers and sessions selected for the PASS Summit 2016 were recently announced,...
2016-06-24
422 reads
You have brains in your head. You have feet in your shoes. You can steer yourself in any direction you...
2016-04-28
803 reads
Aliases! They can be quite helpful, but they can also be a major pain when setting up new servers or...
2016-03-09
798 reads
I’ve been thinking a lot lately about what it actually takes to make an...
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...
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