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
 Transact-SQL (2000)
 Join- help

Author  Topic 

sqldbaa
Starting Member

32 Posts

Posted - 2009-04-06 : 10:01:35
Hi

I have two tables

Table 1

Price[Char(11)] TYPE[Char(1)]
10.333 S
10.3 B
10.33 B

Table 2

Price[Char(11)] TYPE[Char(1)]
10.3330 S
10.30 B
10.333 B

I have to make a join on price column.If the there zero after the decimal point, should not be considered.

eg. 10.333 and 10.3330 are same

The output should be

Price TYPE
10.333 S
10.3 B


sakets_2000
Master Smack Fu Yak Hacker

1472 Posts

Posted - 2009-04-06 : 10:22:52
10.333 is listed for type 'B' too in your 2nd table??
Go to Top of Page
   

- Advertisement -