Ask Your Question
0

Database Query

asked 2012-07-12 13:40:05 +0200

aburrow gravatar image aburrow
1 1

updated 2013-01-28 23:14:41 +0200

qubit gravatar image qubit flag of United States
5693 3 48 41

I'm trying to setup a query that displays MemberID and Total Payments in two columns.

That part I've done quite easily. What I need to do is display the Total Payments column in dollar format. The field is stored in the table as "Double", my SQL Statement currently is " SELECT "MemberID", SUM( "PaymentAmount" ) AS "Total Payments" FROM "Payments" GROUP BY "MemberID" ORDER BY "MemberID" ASC "

I've done some more testing. If I remove the "SUM" syntax and just show the "Payments" field it displays in currency format. It appears that something in the "SUM" command is stripping out the currency format.

Thanks

delete close flag offensive retag edit

1 Answer

Sort by » oldest newest most voted
0

answered 2013-03-06 10:40:18 +0200

qubit gravatar image qubit flag of United States
5693 3 48 41

Hi @aburrow,

Do you think that there's something wrong with what SUM() is returning to you?

Please try installing the latest release of LO and see if that shows the same problem.

link delete flag offensive edit

Login/Signup to Answer

Donate

LibreOffice is made available by volunteers around the globe, backed by a charitable Foundation. Please support our efforts: Your donation helps us to deliver a better product!

Question tools

Follow

subscribe to rss feed

Stats

Asked: 2012-07-12 13:40:05 +0200

Seen: 103 times

Last updated: Mar 06