Yes, you are right..I used the second query ...and got the result..
select substring(convert(varchar (10),convert(money,sum(dis)),1),1,(select len(convert(varchar (10),convert(money,sum(dis)),1 ) )-3 from master_file
where year(h_date) = '2001'
and cat in ('371','372','373')
and sex = 'f'...
I mean i don't want decimal value as the result.
I am looking for 21,340 instead of 21,340.06
sorry, i should have mentioned it in the last thread only.
Malli.
When the going gets tough,
Tough gets going..........
Thanks DBomrrsm,
My query is:
select convert(varchar (10),convert(money,sum(dis)),1) from master_table
where year(h_date) = '2001'
and cat in ('370','371','372')
---------
55,581.00
(1 row(s) affected)
I got (,) But still i have problem with decimal values.
Malli.
When the going gets...
Hi all,
Can anybody tell me how to put a comma between the digits of a number which i got from the query.I mean is there any CAST/CONVERT/...? FUNCTION TO DO THIS.
Ex: I have to print 10000 as 10,000
7896 as 7,896
Thanz in Advance...
Vmrao.
Malli.
When the going gets...
Nothing has been changed...everything is same as before.
My query is of 1031 lines ....Is this anyway related(1031 lines)
Malli.
When the going gets tough,
Tough gets going..........
Thanks Kusch
...No.. the database is accessible by many machines on the network..Multiuser mode
Malli.
When the going gets tough,
Tough gets going..........
hi
I'm working on MS SQL server 7.0/client machine.Actual server is on some other machine on the network.
protocol used: named pipes
everything worked fine till yesterday.
now i am unable to run multiple queries/connections.If i try to run a second query in query analyzer, the connection is...
hi
I'm working on MS SQL server 7.0/client machine.Actual server is on some other machine on the network.
protocol used: named pipes
everything worked fine till yesterday.
now i am unable to run multiple queries/connections.If i try to run a second query in query analyzer, the connection is...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.