DBA Team Structure – Thoughts From Real Life
I once talked about the DBA team building about 3 years ago, now when I look back, I still believe...
2011-11-20
3,340 reads
I once talked about the DBA team building about 3 years ago, now when I look back, I still believe...
2011-11-20
3,340 reads
I once wrote a post to find the largest tables in a database, and now after studying PowerShell, I feel...
2011-09-18
2,039 reads
I feel somehow sad today (Aug 31, 2011) to see one of my colleagues “laid-off”. I put quotation mark around...
2011-09-01
1,891 reads
As a DBA, we have a lot to work on and also we have a lot to learn about. The...
2011-08-20
1,396 reads
One of interesting tasks I once had is to check the # of code lines for all user stored procedures (SPs)...
2011-08-14
1,402 reads
In my company, every two years, we have a tradition to collectively ponder at the technology road map for the...
2011-08-13
2,337 reads
For almost all sql backup jobs, we want to have a step to delete old backup files older than a...
2011-08-06
4,527 reads
From time to time, I need to find the largest tables in terms of rows / used space / total space etc....
2010-09-28
33,137 reads
One of my test servers, due to the unexpected growth of a user db, the local drive is used up,...
2010-08-13
12,003 reads
Recently quite a few MVPs (here, here and here ) are handling out MSDN Ultimate subscriptions in the community. What interests...
2010-07-08
1,169 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 Database Mail in SQL Server...
Comments posted to this topic are about the item Stairway to Reliable Database Deployment...
Comments posted to this topic are about the item QUOTENAME Quote Parameters
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