My question is how to transform data from SQL table to JSON by SQL command. Here is a case: Suppose there is a table TABLE