Question

Ok i am going thru documentation i got to a point where the collation is the subject

Imagine this : in USA you have 30[color=#FF0000].[/color]00$ in BRAZIL you have 30[color=#FF0000],[/color]00 R$

-how can i solve this !! so that the database won't interpret it wrong ?

Vertica documentation [quote]Notes • Even though ICU locales can normally specify collation, currency, and calendar preferences, Vertica supports only the collation component. The SET DATESTYLE TO ... command provides some aspects of the calendar; [color=#FF0000]only dollars are supported for currency[/color]. Any keywords not relating to collation are rejected. [/quote]

Was it helpful?

Solution

The way I've implemented currency storage is to store the amount in a field and the currency type in another field.

If you're looking to just change the Currency Symbol in the results, check out Template patterns for Numeric Formatting page 271 in 6.0 SQL Reference Manual.pdf.

That is the only location in the doc that I found 'currency'.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top