Need to create a query file which consist of subquery like below,
Select Column_Name1,Sum(Total) as Total,Sum(Quantity) as Quantity
From
(Select Column_Name1,Count(Column_Name2) as Total,0 as Quantity
From Table_Name1
Group by Column_Name1
union all
Select Column_Name1,0 as Total,Count(Column_Name2) as Quantity
From Table_Name2
Group by Column_Name1)
Group by Column_Name1
having sum(Total) > 0
This query runs successfully in HFSQL control center. When i try to create in windev Query Editor is not allowing to create it.
How to do it Please help me.
I want to create a report based on this query.
Regards,
R.R.Siva Sangavi
Select Column_Name1,Sum(Total) as Total,Sum(Quantity) as Quantity
From
(Select Column_Name1,Count(Column_Name2) as Total,0 as Quantity
From Table_Name1
Group by Column_Name1
union all
Select Column_Name1,0 as Total,Count(Column_Name2) as Quantity
From Table_Name2
Group by Column_Name1)
Group by Column_Name1
having sum(Total) > 0
This query runs successfully in HFSQL control center. When i try to create in windev Query Editor is not allowing to create it.
How to do it Please help me.
I want to create a report based on this query.
Regards,
R.R.Siva Sangavi