How easy to determine table dependencies ? TIP # 86
Determine the table dependencies is challenging sometime but we can easily resolve this by using a simple stored procedure which ...
2015-02-24
518 reads
Determine the table dependencies is challenging sometime but we can easily resolve this by using a simple stored procedure which ...
2015-02-24
518 reads
Security is always a concern for every database developer. How to secure valuable information is one of the major and...
2015-02-24
421 reads
It might be already known to you but I thought for sharing because I frequently use this command and it...
2015-02-22
385 reads
Why the SQL Server is running slow ?
What are the processes running currently on SQL SERVER instance ?
Many other like...
2015-02-19
434 reads
One of the good sentence I remember “When someone has teeth he/she is not having nuts and when someone has...
2015-02-12
363 reads
Friends,
Sometimes it might be possible that you have to run dos command from SQL SERVER. In such situation you have...
2015-02-05
26,533 reads
While working on a project sometimes it happened that we need to shift the database from one server to another...
2015-01-02
489 reads
Happy new year 2015 .
Suppose you have a source table and one destination table (Which is exact replica of source...
2015-01-01
274 reads
In last TIP #78 we have discussed Change tracker (CT) which was introduced in SQL SERVER 2008. CT feature only...
2014-12-27
1,034 reads
I am pretty much sure by the title of this post you had idea of the post content. Although I...
2014-12-21
687 reads
By HeyMo0sh
Over time, I’ve realised that one of the hardest parts of cloud management isn’t...
By HeyMo0sh
One of the biggest challenges I’ve faced in cloud operations is maintaining clear visibility...
By Steve Jones
I come to Heathrow often. Today is likely somewhere close to 60 trips to...
Comments posted to this topic are about the item Fun with JSON II
Comments posted to this topic are about the item Changing Data Types
Comments posted to this topic are about the item Answering Questions On Dropped Columns
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