DotNetGnat
Programmer
Guys,
does this kind of query work in sybase database?
i tried but i am getting error near ')'. What is the proper syntax for query like this.
Thanks
-DNG
does this kind of query work in sybase database?
Code:
select T.location,
sum(T.Price) 'TotPrice',
Count(distinct T.ItemNum) 'TotItems'
from (select t1.location 'location',
t5.price 'price',
t2.itemnum 'ItemNum'
from table t1,
table t2,
table t3,
table t4,
table t5
where t1.id = t2.id so on...) T
Group by T.Location
i tried but i am getting error near ')'. What is the proper syntax for query like this.
Thanks
-DNG