We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 601984f commit 597a31dCopy full SHA for 597a31d
sqlscript/Qry_JSON_columns.json
@@ -2,7 +2,7 @@
2
"name": "Qry_JSON_columns",
3
"properties": {
4
"content": {
5
- "query": "SELECT JSON_VALUE(doc, '$.product_name') AS product,\n JSON_VALUE(doc, '$.list_price') AS price\nFROM\n OPENROWSET(\n BULK 'https://knoxlakegen2.blob.core.windows.net/etlload/*.json',\n FORMAT = 'csv',\n FIELDTERMINATOR ='0x0b',\n FIELDQUOTE = '0x0b',\n ROWTERMINATOR = '0x0b'\n ) WITH (doc NVARCHAR(MAX)) as rows",
+ "query": "SELECT JSON_VALUE(doc, '$.product_name') AS product,\n JSON_VALUE(doc, '$.list_price') AS price,\n JSON_VALUE(doc, '$.product_id') as ID\nFROM\n OPENROWSET(\n BULK 'https://knoxlakegen2.blob.core.windows.net/etlload/*.json',\n FORMAT = 'csv',\n FIELDTERMINATOR ='0x0b',\n FIELDQUOTE = '0x0b',\n ROWTERMINATOR = '0x0b'\n ) WITH (doc NVARCHAR(MAX)) as rows",
6
"metadata": {
7
"language": "sql"
8
},
0 commit comments