Search found 51 matches
- Fri Dec 28, 2012 9:25 pm
- Forum: Vertica SQL
- Topic: Convert to currency
- Replies: 9
- Views: 18107
Re: Convert to currency
Awesome, thanks knicely! But, now that I look at the results I kind of like a little white space (maybe just 1 space) between the "$' and the dollar amount. I noticed that the white space increases as I add more "9" characters in the format string than are actually in the number. The output is alway...
- Fri Dec 28, 2012 1:58 pm
- Forum: Vertica SQL
- Topic: Convert to currency
- Replies: 9
- Views: 18107
Re: Convert to currency
Thanks for providing that link, sKwa! I must have searched for the wrong topic. I followed the example and it worked! dbadmin> export LC_ALL=en_US.UTF-8 dbadmin> vsql SET Welcome to vsql, the Vertica Analytic Database interactive terminal. Type: \h or \? for help with vsql commands \g or terminate w...
- Thu Dec 27, 2012 9:55 pm
- Forum: Vertica SQL
- Topic: Convert to currency
- Replies: 9
- Views: 18107
Convert to currency
Hi, I'm trying to use the "L" template pattern when using the to_number function but it doesn't seem to work in vsql. dbadmin=> \d salary; List of Fields by Tables Schema | Table | Column | Type | Size | Default | Not Null | Primary Key | Foreign Key --------------+--------+--------+--------------+-...
- Mon Dec 17, 2012 2:55 pm
- Forum: New to Vertica Database Administration
- Topic: Limit rows by user?
- Replies: 5
- Views: 9575
Re: Limit rows by user?
Cool, thanks! I was able to create a view like you suggested
- Mon Dec 17, 2012 1:26 pm
- Forum: New to Vertica Database Administration
- Topic: Limit rows by user?
- Replies: 5
- Views: 9575
Re: Limit rows by user?
Thanks for your response, jpcavanaugh. Do you mean that I should not allow the users to read from table and then create a view for each user and control who sees what via the WHERE clause in the view? Is that possible? According to the documentation: If a non-owner runs a SELECT query on the view, t...
- Fri Dec 14, 2012 1:15 pm
- Forum: New to Vertica Database Administration
- Topic: Limit rows by user?
- Replies: 5
- Views: 9575
Limit rows by user?
Hello, How can I limit the data in a table to a subset of rows for particular users? What I mean is say I have a column called business_unit in a table named org. I only want user A to be able to query rows from the org table where the business_unit is 'Accounting' and I only want user B to be able ...
- Sat Jul 21, 2012 12:36 am
- Forum: Announcements, Events and Activities
- Topic: Vertica License Price and Return !
- Replies: 11
- Views: 29796
Re: Vertica License Price and Return !
Thanks for the great post! It's always a hard sale internally when bringing in new technology.