Skip to content

UPDATE based on multiple “WHERE IN” conditions

Let’s say I have a table I want to update based on multiple conditions. Each of these conditions is an equal-sized array, and the only valid cases are the ones which match the same index in the arrays….

Multiple categories on one line

Trying to identify individuals in 2 groups, showing the id of the person, and the two group names on one line. Tried case statements and joins but they are showing up on multiple lines. So that one …

Identify database records that point to each other

Let’s say I have a database of user records and each time the user takes an action, a record is stored. Each action has a “parent” action in the database, and has a column that points to the id of …

Calculated fields on timescale

I’m trying to add calculated fields to my hypertable with sensor data, e.g., I would like to add the derivative of the volume readings to get the volume flow. I have tried to do this with a …

Sum of column from subquery

The below diagram represents relationships between three tables in an Access database. Table [Shared Mailbox] contains a list of shared mailboxes (SMB) in Exchange. Table [Shared Mailbox User] …

How to search JSON data associative array mysql 5.5

I have stored JSON associative array data in the column of the table in MySQL 5.5. I want to search in JSON at one specific array key with key and value my JSON structure : So for search by Key Value, I have this query : It is working fine but my problem is that I can not select Interface_1