new2apache
Programmer
I need something similar to following
select * from table
where columX in (dat1,data2,...)
order by (sum (colum1 * colum2) group by colum3)
Is this possible? and what would be its syntax?
Basically how can I order the query result based on the sum of a column and this sum should be grouped by another column.
If anyone can help me that'd be great.
I hope my explaination is good enough for all to understand. I know its too complex even to explain
Thanks
Amar
select * from table
where columX in (dat1,data2,...)
order by (sum (colum1 * colum2) group by colum3)
Is this possible? and what would be its syntax?
Basically how can I order the query result based on the sum of a column and this sum should be grouped by another column.
If anyone can help me that'd be great.
I hope my explaination is good enough for all to understand. I know its too complex even to explain
Thanks
Amar