Hi,
How do I eliminate the $1 from the resultset? Here is my syntax:
( SELECT {'effDateFrom': MILLIS_TO_TZ(v.effDateFrom, 'Asia/Manila', '1111-11-11'), 'effDateTo': MILLIS_TO_TZ(v.effDateTo, 'Asia/Manila', '1111-11-11'), 'itemPrice': v.itemPrice} FROM r.itemPriceList AS v) AS itemPrice
Use VALUE. For example:
VALUE
( SELECT VALUE {'effDateFrom': MILLIS_TO_TZ(v.effDateFrom, 'Asia/Manila', '1111-11-11'), 'effDateTo': MILLIS_TO_TZ(v.effDateTo, 'Asia/Manila', '1111-11-11'), 'itemPrice': v.itemPrice} FROM r.itemPriceList AS v) AS itemPrice
Thank you, @ali.alsuliman. It worked.