Hi All,
I am very new to Informix Database and first time i am working on it.
I have one query in MySQL and try to execute in Informix database.
when i try to execute the below query in informix i am getting syntax error.
this query is working fine and returns optimistic result in mysql.
can you please help me out to execute the below query.
Table Content:
SNO elementname
1 start
2 start
3 start
4 EnglishOperator
5 EnglishOperator
6 EnglishOperator
7 EnglishOperator
8 ArabicOperator
9 ArabicOperator
10 ArabicOperator
11 ArabicOperator
12 ArabicOperator
Expected Output:
Start_Count English_Count Arabic_Count
3 4 5
Mysql Query: it is working fine.
Select Eng_count , start_count ,Arabic_count
From (
Select count(1) Eng_count
From vxmlelement
Where elementname = 'EnglishOperator'
) t1,
(
Select count(1) start_count
From vxmlelement
Where elementname = 'start'
) t2,
(
Select count(1) Arabic_count
From vxmlelement
Where elementname = 'ArabicOpearator'
) t3;
Regards
subu
I am very new to Informix Database and first time i am working on it.
I have one query in MySQL and try to execute in Informix database.
when i try to execute the below query in informix i am getting syntax error.
this query is working fine and returns optimistic result in mysql.
can you please help me out to execute the below query.
Table Content:
SNO elementname
1 start
2 start
3 start
4 EnglishOperator
5 EnglishOperator
6 EnglishOperator
7 EnglishOperator
8 ArabicOperator
9 ArabicOperator
10 ArabicOperator
11 ArabicOperator
12 ArabicOperator
Expected Output:
Start_Count English_Count Arabic_Count
3 4 5
Mysql Query: it is working fine.
Select Eng_count , start_count ,Arabic_count
From (
Select count(1) Eng_count
From vxmlelement
Where elementname = 'EnglishOperator'
) t1,
(
Select count(1) start_count
From vxmlelement
Where elementname = 'start'
) t2,
(
Select count(1) Arabic_count
From vxmlelement
Where elementname = 'ArabicOpearator'
) t3;
Regards
subu