DROP INDEX and CREATE INDEX vs ALTER INDEX REBUILD
I saw someone ask a few weeks ago if it was faster to drop and re-create an index or do...
2014-12-11
3,422 reads
I saw someone ask a few weeks ago if it was faster to drop and re-create an index or do...
2014-12-11
3,422 reads
Almost four months ago I posted my goals for the next year in my two year anniversary post. I pretty...
2014-12-09
757 reads
The other day I was answering a question about clustered indexes and it lead indirectly to a twitter conversation on...
2014-12-08 (first published: 2014-12-01)
6,992 reads
INSERT INTO SELECT and SELECT INTO may be very similar commands but they have some important differences. Every now and...
2014-12-03
16,434 reads
You see dozens of blog posts and articles about how the order of a result set is not guaranteed without...
2014-12-01 (first published: 2014-11-19)
9,662 reads
Kenneth Fisher:
I really enjoyed writing this post last year and honestly still enjoy reading it myself. And since tomorrow is...
2014-11-26
1,056 reads
Every now and again you see articles and posts about putting sp_ at the beginning of a stored procedure. So...
2014-11-24
1,093 reads
We have been using a CMS (Central Management Server) at my office for the last few years. Even beyond the...
2014-11-24 (first published: 2014-11-17)
6,995 reads
Every now and again you realize that the primary key for a table does not uniquely describe a row. Not...
2014-11-13
1,093 reads
What have I learned recently? Well as it happens I learned something rather interesting recently and was actually trying to...
2014-11-11
1,669 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