Useful SQL JSON functions. I would like to include one more Aggregate function SQL JSON_ARRAYAGG into this list.
Create JSON object and push into JSON array based on condition or entire rows
select JSON_ARRAYAGG(JSON_OBJECT('Id':Id,'Name':Name,'phoneNumber':Phone,'State':state)) As JSON from Sample.Person.png)
- Log in to post comments
.png)
.png)