Skip to content

Tag: informix

Informix doubly nested MULTISET remains empty

Given this schema: I tried running a query like this: But the output suggests that the inner most nested MULTISET query doesn’t work. The output is: Is this a known limitation or a bug? How can I work around this limitation? I’m using IBM Informix Dynamic Server Version 14.10.FC5DE Answer Just lik…

How to nest MULTISET in unnamed ROW in Informix?

Given this schema: The following query looks correct to me: But it produces some unspecified internal error: SQL Error [IX000]: User Defined Routine (collectionsend) execution failed. Is this a documented limitation? How can I work around this problem? I’m using IBM Informix Dynamic Server Version 14.10…

MERGE Statement is not working in Informix v10

I tried to use the merge statement to Insert/Update in Informix v10.0 but it throws a Syntax Error: Could you please help? Answer The MERGE statement was not available in Informix 10.00. It was added in 11.50 — see the MERGE statement in the SQL syntax manual. The new features page suggests it was added in 11…

SQL Informix advanced query

Let me try to explain what I want to do with my data. Structure of my data is as follows: I have 3 columns: date, id, and stage. Stages can be different numbers, but I’m interested in showing specific transition of some id from stage -1 to stage 1. Please see the example below. I have an id that was

How to count the difference in Informix SQL?

I’m counting number of rated calls and average rating in callcenter: (12 rated calls for sales and 4 rated calls for service). I can also count number of total calls (rated and unrated): (21 total calls for sales and 4 total calls for service). But I want to count only unrated calls. SQL request: runs s…