Re: how to suppress zeroes after decimal and whole no. should remain same
From: Anith Sen (anith_at_bizdatasolutions.com)
Date: 09/23/04
- Previous message: Vishal Parkar: "Re: how to suppress zeroes after decimal and whole no. should remain same"
- In reply to: hari: "how to suppress zeroes after decimal and whole no. should remain same"
- Next in thread: Steve Kass: "Re: how to suppress zeroes after decimal and whole no. should remain same"
- Reply: Steve Kass: "Re: how to suppress zeroes after decimal and whole no. should remain same"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 23 Sep 2004 14:44:10 -0500
You can try the following expression:
LEFT( c, LEN( c ) - PATINDEX( '%[1-9]%', REVERSE( c ) ) + 1 )
: where c is your column
-- Anith
- Previous message: Vishal Parkar: "Re: how to suppress zeroes after decimal and whole no. should remain same"
- In reply to: hari: "how to suppress zeroes after decimal and whole no. should remain same"
- Next in thread: Steve Kass: "Re: how to suppress zeroes after decimal and whole no. should remain same"
- Reply: Steve Kass: "Re: how to suppress zeroes after decimal and whole no. should remain same"
- Messages sorted by: [ date ] [ thread ]