Alfaking
2009-07-15 17:18:28 UTC
Hi,
I'm trying this
"select count(*) as Column1,
(select count(*) from Table1 where Table1.Cond = 'X'
and Table1.column3=alias1.column3 ) as Column2,
Column3
from table1 as alias1 group by Column3 order by column1 Desc"
It works fine in sql server 2005, but it's not working in sql ce 3.5
sp1.
the result is
column1|column2|column3 --> from 1 table, but with 2 different
conditions
this should be used in a vb.net application.
any help ?
I'm trying this
"select count(*) as Column1,
(select count(*) from Table1 where Table1.Cond = 'X'
and Table1.column3=alias1.column3 ) as Column2,
Column3
from table1 as alias1 group by Column3 order by column1 Desc"
It works fine in sql server 2005, but it's not working in sql ce 3.5
sp1.
the result is
column1|column2|column3 --> from 1 table, but with 2 different
conditions
this should be used in a vb.net application.
any help ?