Search found 22 matches

by heather
Thu Jun 19, 2014 2:54 pm
Forum: New to Vertica Database Administration
Topic: How do I add a column to a primary key?
Replies: 2
Views: 8553

Re: How do I add a column to a primary key?

Ok, that's what I figured. Thank you for writing back. Oh, and good to know about the not null constraint added :!:
by heather
Wed Jun 18, 2014 12:00 pm
Forum: New to Vertica Database Administration
Topic: How do I add a column to a primary key?
Replies: 2
Views: 8553

How do I add a column to a primary key?

Hi!

Can I add a column to a primary key, or will I have to drop the current primary key and add a new one?
by heather
Wed Apr 16, 2014 5:10 pm
Forum: New to Vertica Database Administration
Topic: USER_SESSIONS data retention period?
Replies: 2
Views: 7565

USER_SESSIONS data retention period?

What is the retention period for the data in the user_sessions table? It doesn't seem very long, like 2 days maybe... :cry: vertica=> select sysdate, min(session_start_timestamp) from user_sessions; sysdate | min ----------------------------+------------------------------- 2014-04-16 09:09:45.784007...
by heather
Tue Sep 24, 2013 4:23 pm
Forum: New to Vertica Database Development
Topic: Weird behavior with RANDOMINT
Replies: 7
Views: 36757

Re: Weird behavior with RANDOMINT

Jim, I just saw your reply. That did work! But it seems weird to me. dbadmin=> update rand_test a set rn = (select randomint(10) from rand_test b where b.id = a.id); OUTPUT -------- 3 (1 row) dbadmin=> select * from rand_test; id | rn ----+---- 1 | 0 2 | 8 3 | 9 (3 rows) Hmm. Is there some sort of h...
by heather
Tue Sep 24, 2013 4:19 pm
Forum: New to Vertica Database Development
Topic: Weird behavior with RANDOMINT
Replies: 7
Views: 36757

Re: Weird behavior with RANDOMINT

sKwa, Here are the details: dbadmin=> select version(); version ------------------------------------ Vertica Analytic Database v6.1.2-0 (1 row) dbadmin=> \dt rand_test; List of tables Schema | Name | Kind | Owner | Comment --------+-----------+-------+---------+--------- public | rand_test | table |...
by heather
Tue Sep 24, 2013 4:05 pm
Forum: vSQL
Topic: Display View Column Names in vsql
Replies: 5
Views: 24654

Re: Display View Column Names in vsql

Thanks, sKwa! That's cool! I will use this solution :D :D :D
by heather
Tue Sep 24, 2013 4:04 pm
Forum: New to Vertica Database Development
Topic: Weird behavior with RANDOMINT
Replies: 7
Views: 36757

Re: Weird behavior with RANDOMINT

Thanks, Jim! That seemed to work... but not when it is part of an update statement. dbadmin=> select * from rand_test; id | rn ----+---- 1 | 2 | 3 | (3 rows) dbadmin=> update rand_test set rn = randomint(10); OUTPUT -------- 3 (1 row) dbadmin=> select * from rand_test; id | rn ----+---- 1 | 5 2 | 2 ...

Go to advanced search