I have a table ,one of the table filed is json format: How can I select all rows that "to_status" is 3 or 2 ? Any friend can help? ...
I have a table ,one of the table filed is json format: How can I select all rows that "to_status" is 3 or 2 ? Any friend can help? ...
In postgresql, I have a simple one JSONB column data store: I need to convert consequent pairs of values into data points, essentially calling the ...
I have an array of strings, some of which may be repeated. I am trying to build a query which returns a single json object where the keys are the dist ...
I have JSON data in 2 tables of Postgresql 13. I am trying to join them using the like operator. But since the data in the field is JSON I am getting ...
I have a table as follows in PostgreSQL: I want to get records with user: "user1" and permission: 2(in other words permission & 2 = 2). The res ...
Suppose I had rows like id group1 group2 value 5 1 2 55 5 ...
I have a rows that have json formatted as [{"FIRST": {"0": 1580, "1": 1745, "2": 2050, "3": 2395}}, {"SECOND": {"1": 1895, "2": 2431}}] Because of ...
I have a table column that contains a list of user ids in json format (the column type is character varying at the moment): I have figured out that ...
A table: CREATE TABLE events_holder( id serial primary key, version int not null, data jsonb not null ); Data field can be very very la ...
MongoDB has an $exists operator to check if a key exists in the document or not. It works with true and false. Postgres can also have JSON data store ...
I have jsonb field 'data' in my table. I can get value of subKey by select data#>'{key1,subKey}' from table.How to insert a path into select if the ...
I have the following table in PostgreSQL: Inside that table I have a column data which has JSONB datatype and contains values like this: Here is ...
I have a table with JSONb column which holds data like this: stats example: And I want to count % of new / production / delivered of car's brand ...
Thanks in advance. Assume, I have a table that contains the value in an array something like this. I want to find which row contains 'c' in conte ...
I want to update the available to false where toy->id=27. Can any give me the laravel eloquent query for this? Thanks. ...
I have the attendee table that has a jsonb array field called eventfilters. Given the query filter array of the same signature (form) as the eventfil ...
I want to index the JSONB field with GIN indexing. Inside this field, I have an array of objects. Precisely, this is how it looks (shortened second ob ...
This is my query and it works. I store the list of dictionaries inside my jsonb column. Is there any way to write this without jsonb_path_exists() ...
I would like to design a query where I can combine two jsonb with an unknown number/set of elements in postgreSQL in a controlled manner. The jsonb op ...
I am trying to construct a query that returns an array of customer carts and all of their items, e.g. Tables: cart: id, customer_id item: cart_id, ...