Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 problems in migrating from access to sql server

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-11-12 : 13:50:26
kamal writes "I am facing a problem when i convert my access database to SQl server. My query is as follows

SELECT Sum (Questions.[Question TypeID]=1) AS TotScaleType, Sum(Questions.[Question TypeID]=2) AS TotNumType, Sum(Questions.[Question TypeID]=5) as TotListType FROM Questions WHERE Questions.FormID=56

it works with Access but SQL server does not take sum (Questions.[Question TypeID]=1) . It gives error near = . Tell me what will be the best way to overcome this problem if possible without making change in query"
   

- Advertisement -