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)
 how to compare float to varchar

Author  Topic 

vandalesm
Starting Member

8 Posts

Posted - 2004-10-14 : 01:19:13
how to compare float to varchar data type

for example

------------
select a.c1, a.c2, a.c3 from table1 a inner join table2 b on a.c1 >= b.c1 and a.c3 <= b.c2
------------

table1
c1 = float
c2 = float
c3 = float

table 2
c1 = varchar
c2 = varchar
c3 = varchar

jen
Master Smack Fu Yak Hacker

4110 Posts

Posted - 2004-10-14 : 01:31:35
use cast or convert...

--------------------
keeping it simple...
Go to Top of Page
   

- Advertisement -