skip to Main Content

jsonb_strip_nulls equivalent in sql server

I'm using next request to get json from some json type column in POSTGRES: SELECT jsonb_strip_nulls(json_build_object( 'employee', c."info"->'employee2', 'product', c."info"->'product2' )::jsonb) as info FROM item."Item" AS c WHERE "rootId" = '40a8cb67-84f8-33b5-87dc-e1b039858d43' GROUP BY "id") ...; jsonb_strip_nulls omits unnecessary fields with…

VIEW QUESTION
Back To Top
Search