Thank you!
I won’t be able to make it to the PASS Summit this year but I still consider myself part of...
2014-03-19
682 reads
I won’t be able to make it to the PASS Summit this year but I still consider myself part of...
2014-03-19
682 reads
True story: I worked in a computer lab many years ago and one day this guy (a grad student) checked...
2014-03-17
576 reads
Those people who are familiar with SQLCMD will recognize this command. It is used to connect to an instance from...
2014-03-13
1,445 reads
It is T-SQL Tuesday again and this month we are taking the road less traveled. Michael J Swart (b/t) has...
2014-03-11
1,294 reads
Warnings up front, this has some serious security implications. The method I’m going to use minimizes that somewhat but it’s...
2014-03-07 (first published: 2014-02-26)
2,580 reads
You can put pretty much any character you want into an object or schema name by enclosing the name in...
2014-03-05
732 reads
SQL Fiddle is a free website that you can use to demonstrate and save a query example in any one...
2014-03-03
3,064 reads
I recently saw an answer to this question on dba.stackexchange.com written by Martin Smith. It was probably one of the...
2014-02-24
1,103 reads
I feel like an old man opening a computer for the first time but I’ve finally signed up on twitter....
2014-02-20
510 reads
Not true. (Or I guess probably wouldn’t be posting about it would I?)
Probably the first thing I should point out...
2014-02-19 (first published: 2014-02-17)
2,623 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