We've JSON entry in the MS SQL database. I would like to export JSON entry in the "Data" column which match with the list of EMPNO. Could someone please help?
ColumnName: Data
Data inside the column:
output:{
"Request":{
"Person":{
"DisplayName":"Test User",
"EMPNO":"000001",
"Entity":"01",
"Country":"AA"
},
"DomainOverride":null,
"ReasonForGen":"Only",
"Email":"[email protected]",
"CurrentSIP":"[email protected]"
},
"EmailAddress":"123@testcom",
"SIPAddress":"[email protected]",
"Status":"NoChange"
}
Query in layman language:
select DisplayName,EMPNO,Entity,Country,DomainOverride,ReasonForGen,Email
from Table1
where data.output.Request.EMPNO in ([EMPNO list])