Is there any way to insert data from Json which data stored in several rows, insert into a regular table at first I try to use FOR JSON AUTO but it returns NULL
SELECT *
FROM OPENJSON((SELECT * FROM JsonOneColumn))
Json table is like this
| Value |
| --------------------------------------------------------------- |
| {"Fname":"Cake","Fcount":3,"FDate":"2020-02-13","Fregion":"UK"} |
| {"Fname":"Coca","Fcount":5,"FDate":"2020-02-13","Fregion":"US"} |
...
it should be like this:
| Fname | Fcount | FDate | Fregion |
| ----- | ------ | -------- | ------- |
| Cake | 3 |2020-02-13| UK |
| Coca | 5 |2020-02-13| US |
JsonOneColumnthe name of the table where the json data are being stored?JSONstored asVARCHAR?