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 2005 Forums
 Transact-SQL (2005)
 please help me

Author  Topic 

Ambikaa
Starting Member

43 Posts

Posted - 2008-08-22 : 11:18:59

Hi ,

i need a help. when i used this below query, i am getting wrong result

SELECT prty_Price FROM tbl_Property WHERE cast(replace(replace(replace(prty_Price,'$',''),',',''),'.','') as int)>= '200000' AND (cast(replace(replace(replace(prty_Price,'$',''),',',''),'.','') as int)<= '400000') AND prty_Deleted=0

output
prty_Price

3456.78
34,3467
200000
234544
345345
345345
3454.45



khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2008-08-22 : 11:28:38
what is the result that you want ?

What is the original value of prty_Price ?


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

Lamprey
Master Smack Fu Yak Hacker

4614 Posts

Posted - 2008-08-22 : 13:05:11
Duplicate: http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=109332
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-08-23 : 05:20:44
OP always duplicates the posts
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=109358

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -