SELECT cas lorsque [MOBILE/PHONE] comme [az]% 'alors nul autre extrémité [MOBILE/PHONE] en tant que [MOBILE/PHONE], cas où ISNUMERIC (email) = 0 alors EMAIL se termine comme EMAIL DE ( sélectionnez sélectionnez REMPLACER (SUBSTRING (droite (gauche (AC.Communication, charindex ('}', AC.Communication)), len (gauche (AC.Communication , charindex ('}', AC.Communication))) - charindex (':', gauche (AC.Communication, charindex ('}', AC.Communication)))), LEN (droite (gauche (AC.Communication, charindex ('}', AC.Communication)), len (à gauche (AC.Communication, charindex ('}', AC.Communication))) - charindex (':', left (AC.Communicatio n, charindex ('}', AC.Communication))))) - CHARINDEX (':', à droite (à gauche (AC.Communication, charindex ('}', AC.Communication)), len (à gauche (AC.Communication , charindex ('}', AC.Communication))) - charindex (':', gauche (AC.Communication, charindex ('}', AC.Communication)))))), 2, CHARINDEX (']', AC.Communication)), '"}', '') AS [MOBILE/PHONE], REMPLACER (REMPLACER (GAUCHE (droite) (AC.Communication, charindex (':', inverse (AC.Communication))), LEN (à droite (AC.Communication, charindex (':', reverse (AC.Communication)))) - charindex ('}', reverse (AC.Communication, charindex (':', reverse (AC.Communication)))))), ': "', » '),' " », '') AS EMAIL
de DimAccountContact comme AC
quelle version du serveur SQL vous utilisez? travailler avec des données json est pris en charge à partir du serveur sql 2016. https://docs.microsoft.com/en-us/sql/relational-databases/json/json-data-sql-server – Yeou
version 2016 sql – Balajirao