Skip to content
Advertisement

Tag: where-clause

How to check json format in SQL?

I have a table with a column of type Nvarchar where json is stored. But the format of some of its columns is wrong. So I get an error when I parse them all. I want my query to ignore lines that have errors. It gives this error when I run on all lines: JSON text is not properly formatted.

Simple SQL CASE Question – from WHERE to CASE function

Sorry for the noob question, new to SQL here and would appreciate help 🙂 I have this SQL query: Will I have the same result if I use this query? (Am I applying the case function correctly here?) If not, can someone help me fix the query below, if possible? *EDIT The original query actually went like this, and I

Advertisement