For better Sql code use fake tables
When unit testing code there is a really powerful feature that is either called mocking or faking or sometimes using...
2014-11-18
56 reads
When unit testing code there is a really powerful feature that is either called mocking or faking or sometimes using...
2014-11-18
56 reads
When unit testing code there is a really powerful feature that is either called mocking or faking or sometimes using...
2014-11-18
48 reads
I recently had the chance honour to spend twenty minutes talking to Boris Hristov about testing with Sql Server for his Google Hangouts series, catch the video here
One of...
2014-11-02
5 reads
I recently had the chance honour to spend twenty minutes talking to Boris Hristov about testing with Sql Server for...
2014-11-02
63 reads
I recently had the chance honour to spend twenty minutes talking to Boris Hristov about testing with Sql Server for...
2014-11-02
47 reads
I was asked an interesting question about collations in sql server recently about where variables in a script got their collation's from. I really wasn't too sure of the...
2014-10-22
9 reads
I was asked an interesting question about collations in sql server recently about where variables in a script got their...
2014-10-22
60 reads
I was asked an interesting question about collations in sql server recently about where variables in a script got their...
2014-10-22
41 reads
I have worked as a DBA and also as a Sql Server developer and in many roles had full access to production, it is OK though I know what...
2014-10-21
8 reads
I have worked as a DBA and also as a Sql Server developer and in many roles had full access...
2014-10-21
41 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...
Tlp/Wa_Cs:0817-866-887 Jl. Brigjen Sudiarto No.294, Palebon, Kec. Pedurungan, Kota Semarang, Jawa Tengah 50273
Tlp/Wa_Cs:0817-866-887 Jl. Majapahit No.112, Pandean Lamper, Kec. Gayamsari, Kota Semarang, Jawa Tengah 50161
Tlp/Wa_Cs:0817-866-887 Jl. Jenderal Ahmad Yani No.24-26, Panderejo, Kec. Banyuwangi, Kabupaten Banyuwangi, Jawa Timur 68416
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