Hi
I have a table MyFiles with columns Id, FileName, FolderName, KeyPairs. The last one (nvarchar(MAX)) contains JSON text like this:
{"Licence No ": "12345", "ID Number ": "345678", "Class ": "1AC ", "Card Number ": "6 666 666 666 ", "Expiry Date ": "22 DEC 2016 "}
I need to write a query which will return the following data:
Id, FileName, FolderName, [Licence No], Class, [Expiry Date]
with a filter where [Expiry Date] is greater than the current date.
If any of [Licence No], Class, [Expiry Date] is not present in KeyPairs column, it should return NULL for that column.
Thanks.