Skip to content
Advertisement

How to implement OPENJSON Having JSON code as a text inside a column. How do i use OPENJSON on the column of a table in AZURE SQL Dataware House?

Eg: RAW DATA

Want to apply OPENJSON on Discounts and have below OUTPUT:

Advertisement

Answer

I’ve updated my answer, please add ; after the insert statement.

  1. Create table and insert two rows:
  1. Then we can use following sql to query the data.

3.The result is as follows:
enter image description here

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement