Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
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.
Hai,I am useing Two table 1.select * from CC_ServicesPrice12121232312123123232.select * from CC_MoneyExchangeEuro7.4my query,select (a.Price/m.Euro)from CC_Services as a cross join CC_MoneyExchange as m I face Error --->Server: Msg 403, Level 16, State 1, Line 1Invalid operator for data type. Operator equals divide, type equals varchar.If you Know the solution replay me..Thanks in advance.
khtan
In (Som, Ni, Yak)
17689 Posts
Posted - 2009-06-15 : 23:40:12
use convert() to convert to integer or decimal data type before the division