drsql@hotmail.com


SQLServerCentral Editorial

What Counts For a DBA: Ego

Leaving aside, for a second, Freud’s psychoanalytical definitions, the term “ego” generally refers to a person’s sense of self, and their self-esteem. In casual usage, however, it usually appears in the adjectival form, “egotistical” (most often followed by “jerk”). You don’t need to be a jerk to be a DBA; humility is important. However, ego is important […]

You rated this post out of 5. Change rating

2021-06-26

290 reads

SQLServerCentral Editorial

What counts for a DBA: Foresight

Of all the valuable attributes of a DBA, from passion to humility to practicality, perhaps one of the most important attributes may turn out to be the most seemingly nebulous: foresight. According to Free Dictionary, foresight is the "perception of the significance and nature of events before they have occurred". Foresight does not come naturally to most people, as the […]

You rated this post out of 5. Change rating

2021-05-15

316 reads

SQLServerCentral Editorial

A New World of Data

I started in the early days of SQL Server, when having a gigabyte of disk storage was unheard of, much less a gigabyte of RAM. My watch has more storage space than the mainframe we replaced with an early version of SQL Server years ago. The technical possibilities and amounts of data we are capable […]

You rated this post out of 5. Change rating

2020-02-15

134 reads

SQLServerCentral Editorial

Why Getting Data Right Matters

An InfoWorld article from 2017 suggests that 80 percent of a data scientist’s job is cleaning and transforming data, and I believe this is probably only true for organizations that spend at least an average effort in designing and implementing their data storage. These persons who have trained to analyze data using complex math formulas […]

You rated this post out of 5. Change rating

2020-02-01

188 reads

SQLServerCentral Editorial

Is Forgiveness Possible?

Recently, there was a prominent film director fired from directing an episode in a very entertaining and profitable movie franchise. His firing was for tweets he made that were in very bad taste. And bad doesn’t begin to cover it, they were about topics that were universally despicable. What made this interesting was not that […]

(1)

You rated this post out of 5. Change rating

2018-09-10

63 reads

SQLServerCentral Editorial

Why Volunteering May be a Bad Idea for You

Recently, as I was doing some work for the upcoming PASS Summit, a question popped in my head: “Why am I doing this?” It reminded me of the time when I was young (and idealistic). I went to the leader of a non-profit group asked about making it my permanent vocation. The leader looked at […]

(1)

You rated this post out of 5. Change rating

2018-07-30

80 reads

SQLServerCentral Editorial

Providing Feedback to Speakers

One of the greatest things that has arisen in the past 10 years or so is a veritable stream of great conferences for people to learn how to write better software, many of them low cost or even free. In the Data Platform community, we have had nearly 800 free SQL Saturday events around the […]

(3)

You rated this post out of 5. Change rating

2018-06-18

50 reads

SQLServerCentral Editorial

What Counts for a DBA – Inspirations

In order to be great, you need to have an idea what great is. A quote I use in every one of my database design presentations is by one of my non-technical inspirations, C. S. Lewis. The quote is from his book, An Experiment in Criticism. “There are no variations except for those who know […]

You rated this post out of 5. Change rating

2018-02-26

47 reads

SQLServerCentral Editorial

Why deadlines stink, and are so necessary

I hate deadlines. Really. I truly hate them. The problem is: they are usually unrealistic, often not much more than a wild guess. They restrict the amount of time that I can spend in preparation and research so that I can do things right; they squeeze the artistic quality out of my work as a […]

You rated this post out of 5. Change rating

2017-05-01

54 reads

Blogs

In-Person CISA Training – April 13-16, 2026

By

I will be leading an in-person Certified Information Systems Auditor (CISA) exam prep class...

EightKB 2026

By

EightKB is back again for 2026! The biggest online SQL Server internals conference is...

The FinOps Lifecycle: From Budgeting to Reporting

By

Working in DevOps long enough teaches you two universal truths: That’s exactly why I...

Read the latest Blogs

Forums

VS Code, Unresolved References.

By mjdemaris

Hi all, I just started using VS Code to work with DB projects.  I...

Fun with JSON II

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Fun with JSON II

Changing Data Types

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Changing Data Types

Visit the forum

Question of the Day

Fun with JSON II

I have some data in a table:

CREATE TABLE #test_data
(
    id INT PRIMARY KEY,
    name VARCHAR(100),
    birth_date DATE
);

-- Step 2: Insert rows  
INSERT INTO #test_data
VALUES
(1, 'Olivia', '2025-01-05'),
(2, 'Emma', '2025-03-02'),
(3, 'Liam', '2025-11-15'),
(4, 'Noah', '2025-12-22');
If I run this query, how many rows are returned?
SELECT t1.[key] AS row,
       t2.*
FROM OPENJSON(
     (
         SELECT t.* FROM #test_data AS t FOR JSON PATH
     )
             ) t1
    CROSS APPLY OPENJSON(t1.value) t2;

See possible answers