datatypes icon indicating copy to clipboard operation
datatypes copied to clipboard

How we can application IN statement that in SQL with JSON query?

Open MuhmdHsn313 opened this issue 2 years ago • 0 comments

The Question

How we can application IN statement that in SQL with JSON query?

If I have a people table, and it has a column of JSON data type, and this column contains a key with the title age representing the age of the person, like

{
   "age": 24
}

How can I get people within a range of ages? i.e. how to apply IN that in SQL to a JSON stored in the database?

MuhmdHsn313 avatar Aug 10 '22 18:08 MuhmdHsn313