Search found 77 matches
- Thu Jan 09, 2014 4:54 pm
- Forum: New to Vertica Database Administration
- Topic: Is there a Compatibility level option in Vertica?
- Replies: 1
- Views: 4799
Is there a Compatibility level option in Vertica?
Hi, SQL Sever has a nice option called "Compatibility level" which lets me run the DB is a mode compatible with SQL Server 2005 (90), SQL Server 2008 (100), or SQL Server 2012 (110). Forgive me if this is too stupid of a question, but is there a similar option is Vertica? So, if I have Vertica 7 ins...
- Thu Jan 02, 2014 12:58 pm
- Forum: Vertica SQL
- Topic: Negative value in LEFT function cause error
- Replies: 2
- Views: 8226
Re: Negative value in LEFT function cause error
Wow... Duh! I feel dumb. Thanks, Jim. That will work for me.
- Tue Dec 31, 2013 7:26 pm
- Forum: Vertica SQL
- Topic: Negative value in LEFT function cause error
- Replies: 2
- Views: 8226
Negative value in LEFT function cause error
Hello,
I have some sql code (I did not write it) that uses negative argument values in the left function. But when I run the code I get an error. Like this:
Is there a work around for this?
Thanks!
I have some sql code (I did not write it) that uses negative argument values in the left function. But when I run the code I get an error. Like this:
Code: Select all
dbadmin=> select left('The small pig', -3);
ERROR 4039: Negative substring length not allowed
Thanks!
- Fri Dec 13, 2013 9:34 pm
- Forum: Vertica Premium Edition
- Topic: New SHA Security Functions (Convert Value Back)
- Replies: 2
- Views: 16971
New SHA Security Functions (Convert Value Back)
Howdy! Vertica 7 has the new SHA() security functions. dbadmin=> select sha256('Dog'); sha256 ------------------------------------------------------------------ 0eb129bf94594aaeee66e38361d7be212cd927c3df4dd92e3ded2e0da0c7ad88 (1 row) Is there a way I can covert " 0eb129bf94594aaeee66e38361d7be212cd9...
- Thu Nov 14, 2013 5:11 pm
- Forum: New to Vertica SQL
- Topic: Need to add days to a date, excluding SAT and SUN
- Replies: 1
- Views: 5566
Need to add days to a date, excluding SAT and SUN
Hi gurus,
I have a need to add X days to a date but exclude adding any Saturday or Sundays. Today is 11/14/2013. I want to add 12 days. The result I would like is 12/01/2013 (Monday) and not 11/26/2013 (Tuesday).
Is there a simple way to accomplish this in Vertica SQL?
I have a need to add X days to a date but exclude adding any Saturday or Sundays. Today is 11/14/2013. I want to add 12 days. The result I would like is 12/01/2013 (Monday) and not 11/26/2013 (Tuesday).
Is there a simple way to accomplish this in Vertica SQL?
- Thu Nov 14, 2013 4:59 pm
- Forum: New to Vertica Database Administration
- Topic: Error: Cannot alter size of column
- Replies: 2
- Views: 7484
Re: Error: Cannot alter size of column
Thanks, scutter! I finally got time to look into this issue again and you were correct! I fixed it.
- Wed Nov 06, 2013 2:51 pm
- Forum: New to Vertica Database Administration
- Topic: Error: Cannot alter size of column
- Replies: 2
- Views: 7484
Error: Cannot alter size of column
Hello! How do I fix this this error? I thought we could increase the size of a varchar column in a table? dbadmin=> ALTER table readers.book_digest ALTER COLUMN digest_desc SET DATA TYPE VARCHAR (100); ROLLBACK 2353: Cannot alter type of column "digest_desc" since it is referenced in the segmentatio...