Technological Movements and the Herd Mentality....
It's amazing to me how the herd mentality works in Technology (and many other things) sometimes. I get the idea...
2011-11-29
1,156 reads
It's amazing to me how the herd mentality works in Technology (and many other things) sometimes. I get the idea...
2011-11-29
1,156 reads
Doing some work with converting Multi-Statement TVFs to Inline TVFs and I'm finding that the Inline TVFs cannot use the...
2011-11-08
674 reads
As if I needed any further convincing that nested views were bad....
The other day I had to write a particularly...
2011-02-15
1,166 reads
Found an interesting issue last week....it goes like this:
If you are using INSTEAD OF triggers on views (in SQL 2005)...
2010-12-23
774 reads
According to BOL, "Key-range locks protect a range of rows implicitly included in a record set being read by a...
2010-09-22
1,034 reads
Over the past few days I have been thinking that the Software Industry is in drastic need of a Professional...
2010-07-14
1,287 reads
Just saw something interesting....we have a requirement to divide a result set into a certain number of groups that have...
2010-06-09
718 reads
Just ran into an interesting issue AGAIN. It seems that when you nest views in a query you are opening...
2010-04-05
8,618 reads
It occurred to me the other day that it might be interesting to manage aggregates in an SQL Server database...
2010-03-22
853 reads
I'm doing some interesting research on using BiTemporal tables and I was wondering if anyone out there has any real-world...
2010-03-11
713 reads
By Kevin3NF
Common Reasons for Emergency SQL calls If you are a production DBA (or Accidental...
By Steve Jones
I grabbed this book over the 2024 holiday season as it was on sale...
By Steve Jones
Investing small amounts of money over a long time works miracles, but no one...
When running clone sql is changing one specific table to History table and its...
Comments posted to this topic are about the item What is time?
Hello experts, The following SQL update is failing to install on some of our...
Consider the following script for a Sql Server database with Compatibility Level at least 130 (Sql Server 2016):
create table tjson ( id int primary key, j1 varchar(max), j2 varchar(max), j3 varchar(max)); insert into tjson (id, j1, j2, j3) values (1, '[{"c11":"value11A", "c12":"value12A"},{"c11":"value11B", "c12":"value12B"}]', '[{"c21":"value21A", "c22":"value22A"},{"c21":"value21B", "c22":"value22B"}]', '[{"c31":"value31A", "c32":"value32A"},{"c31":"value31B", "c32":"value32B"}]');How many rows does the Query Optimizer estimate for the following query?
select id, c1.c11, c2.c21, c2.c22, c3.c31, c3.c32 from tjson cross apply openjson(j1) with( c11 varchar(50) '$.c11', c12 varchar(50) '$.c12') c1 cross apply openjson(j2) with( c21 varchar(50) '$.c21', c22 varchar(50) '$.c22') c2 cross apply openjson(j3) with( c31 varchar(50) '$.c31', c32 varchar(50) '$.c32') c3;See possible answers