2010-12-23
3,452 reads
2010-12-23
3,452 reads
I have added 2 functions here, one for email validation and another to split the string by specified separator by user.
2010-12-23 (first published: 2010-12-11)
1,694 reads
A Stored Procedure for your tools database. It lists uncompressed tables and indexes and also generates the SQL to compress them.
2010-12-22 (first published: 2009-08-27)
949 reads
Report unusual conditions that may be filling up your transaction log.
2010-12-22
533 reads
A generic character padding function. Useful for situations where you need fixed width formatting e.g. email reports.
2010-12-20 (first published: 2010-03-31)
2,307 reads
Script to get a list of publications an article is in
2010-12-17 (first published: 2010-12-08)
3,782 reads
This script reveals the state of your indexes. It breaks down the indexes where they are partitioned, matching the index to it’s partition and filegroup.
2010-12-16 (first published: 2010-04-22)
7,566 reads
This function evaluates the statement like '4+5*6-3' and returns the numeric value.It is just like Eval funcction in javascript.
2010-12-15 (first published: 2010-12-08)
1,061 reads
2010-12-14 (first published: 2010-11-30)
3,848 reads
Script to grant exec permission to all sps in a db
2010-12-13 (first published: 2010-12-09)
1,733 reads
By Steve Jones
Redgate is a for-profit company. We look to make money by building and selling...
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...
Tlp/Wa_Cs:0817-866-887 Jl. MT. Haryono No.657, Wonodri, Kec. Semarang Sel., Kota Semarang, Jawa Tengah 50242...
Tlp/Wa_Cs:0817-866-887 Jl. Tomang Raya No.64, RT.2/RW.3, Jatipulo, Kec. Palmerah, Kota Jakarta Barat, Daerah Khusus...
Comments posted to this topic are about the item The New Software Team
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