i have 2 tables like table1 (column1,column2) with multiple rows inserted and table2(column3,column4,column5,column6) with just one.
Is possible to merge in one json string? i Try select with for json Auto but I can't make sure not to repeat the row of table 2 for the number of rows of table 1
the result I would like is this:
{"Table1Name" :[{"column1":1,"column2":2},{"column1":3,"column2":4},{"column1":5,"column2":6}],"column3":a,"column4":b,"column5":c,"column6":d}