Introduction to JSON in SQL Databases
Storing JSON in json columns, indexing JSON paths, and building and reading JSON with T-SQL functions.
- 4 lessons
- Module quiz
Applications, APIs and language models exchange data as JSON. Modern SQL platforms store JSON natively in the json data type, index it, build it from rows and read it back into rows, so semi-structured data can live next to relational data.
What the exam expects
Questions test when to use JSON columns, the json type and JSON indexes, and the functions JSON_OBJECT, JSON_ARRAY, JSON_ARRAYAGG, JSON_VALUE, JSON_QUERY, JSON_CONTAINS and OPENJSON in realistic queries.
How this module is organized
Storing JSON with the json Data Type covers storage. Indexing JSON Documents covers indexing paths. Building JSON Objects and Arrays in T-SQL covers producing JSON. Reading and Searching JSON in T-SQL covers paths, extraction and shredding.