Hello,
I'm using this query on an ASP page (the database is SQL Server):
The query works without "t.newtechnology=0"; after adding it, the query still works on the SQL Server's Qyery Analyzer but on the asp page I get an empty recordset. On the database, the field in question (newtechnology) contains 0 or 1, and when I change the query to "t.newtechnology=1" it works just fine.
What on earth can cause this inconsistency?
Thanks for your help
Yael
I'm using this query on an ASP page (the database is SQL Server):
Code:
SELECT g.groupcode,g.groupname,isnull(sum(p.vallastyear),0) AS Kamutlastyear,
isnull(sum(p.valthisyear),0) AS Kamutthisyear FROM tblgroups g, tbltrufot t, tblparetob p WHERE t.newtechnology=0 AND g.groupcode=t.groupcode AND p.trufacode=t.trufacode GROUP BY g.groupname,g.groupcode ORDER By g.groupcode DESC
The query works without "t.newtechnology=0"; after adding it, the query still works on the SQL Server's Qyery Analyzer but on the asp page I get an empty recordset. On the database, the field in question (newtechnology) contains 0 or 1, and when I change the query to "t.newtechnology=1" it works just fine.
What on earth can cause this inconsistency?
Thanks for your help
Yael