SQL Saturday #28 (Baton Rouge) – All about User Groups
This year at SQL Saturday #28 we will be featuring a User Group Booth alongside the Sponsor booths. The User Group...
2010-06-29
1,566 reads
This year at SQL Saturday #28 we will be featuring a User Group Booth alongside the Sponsor booths. The User Group...
2010-06-29
1,566 reads
OK, are you ready to start the MDX journey. In MDX Puzzle #1 posting I presented you with the challenge...
2010-06-28
886 reads
MDX Puzzle #1
Recently, I embarked on a mission to become proficient at writing MDX queries. This is a challenge, as...
2010-06-22
683 reads
Register: Click Here
Submitted Sessions: Click Here
Twitter: @SQLSatBR
On August 14, 2010 at Louisiana State University SQL Saturday #28 will be held. ...
2010-06-22
505 reads
I was recently asked if it was possible to name an excel tab based on a page in a reporting...
2010-06-21
2,712 reads
When building a warehouse there is a common practice of adding an Unknown row to the Dimension tables. For me,...
2010-06-15
1,421 reads
Download Sample Project: Parameterized Report
In a recent forum post on BIDN.com a person asked how to filter the result on...
2010-06-13
2,269 reads
We are scheduling more and more events daily on the SQL Lunch. Just as a reminder here are a few...
2010-06-10
521 reads
Saturday I drove up to Pensacola for SQL Saturday #22. Me and several others from Baton Rouge, including my two...
2010-06-08
703 reads
In an enterprise with several SQL Server instances it is pivotal that you keep track of each instance and its...
2010-06-02
727 reads
If you've ever loaded a 2 GB CSV into pandas just to run a...
By James Serra
What problem is Fabric Ontology trying to solve? For years, most data conversations have...
By Steve Jones
Recently I ran across some code that used a lot of QUOTENAME() calls. A...
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...
Comments posted to this topic are about the item The string_agg function
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