Search found 1825 matches

by JimKnicely
Thu Jun 14, 2012 7:03 pm
Forum: Vertica SQL
Topic: ROLLUP function in Vertica?
Replies: 6
Views: 14420

Re: ROLLUP function in Vertica?

That's a much better suggestion :!:
by JimKnicely
Thu Jun 14, 2012 6:29 pm
Forum: Vertica SQL
Topic: ROLLUP function in Vertica?
Replies: 6
Views: 14420

Re: ROLLUP function in Vertica?

Hi, I do not think that Vertica has the ROLLUP function, but you can fake it so that a query's output would look like Oracle's output: Example: dbadmin=> select * from region; region -------- east north south west (4 rows) dbadmin=> select * from sale; year | month | region | tot_sales ------+------...
by JimKnicely
Thu Jun 14, 2012 3:25 pm
Forum: Vertica SQL
Topic: Selecting a Random Set of Rows from a Table
Replies: 8
Views: 26253

Re: Selecting a Random Set of Rows from a Table

insert into ColorsRand select subquery.colour from (select random() + randomint(100), colour from Colors order by 1) as subquery limit 3; If you need to do this on a larger scale, you can change the subquery just a tad so that you won't need to call the random() function... insert into ColorsRand s...
by JimKnicely
Fri Jun 08, 2012 2:54 pm
Forum: Request for New Forums Categories
Topic: Add "General" Vertica forum?
Replies: 1
Views: 16672

Re: Add "General" Vertica forum?

Piglet,

A "General" forum has been added under the "General" forum category.

viewforum.php?f=60

Thanks for the suggestion!
by JimKnicely
Wed Jun 06, 2012 1:51 pm
Forum: Vertica Database Development
Topic: Do we have ADD_YEARS() Function in vertica?
Replies: 3
Views: 9657

Re: Do we have ADD_YEARS() Function in vertica?

You can also use the ADD_MONTHS() built in function to add years... dbadmin=> SELECT add_months(DATE '2012-06-06', 12) add_1_year, dbadmin-> add_months(DATE '2012-06-06', 24) add_2_years, dbadmin-> add_months(DATE '2012-06-06', 6) add_half_year, dbadmin-> add_months(DATE '2012-06-06', 30) add_2_and_...
by JimKnicely
Tue Jun 05, 2012 1:39 pm
Forum: New to Vertica Database Administration
Topic: Change table column's data type
Replies: 10
Views: 28635

Re: Change table column's data type

Great news, Vertica 6.0 gives us the ability to change a table column's data type... Here's an excerpt from the New Feature's Guide: Using new parameters in the ALTER TABLE statement, you can now perform the following operations: Change, reorganize, and remove tble partitions Add table columns with ...
by JimKnicely
Tue Jun 05, 2012 1:35 pm
Forum: New to Vertica
Topic: How to drop columns from a table
Replies: 6
Views: 20977

Re: How to drop columns from a table

Great news, Vertica 6.0 supports a DROP COLUMN feature: Here's an excerpt from the New Feature's Guide: Using new parameters in the ALTER TABLE statement, you can now perform the following operations: Change, reorganize, and remove tble partitions Add table columns with a default derived expression ...

Go to advanced search