Search found 47 matches

by debfawn
Sat Mar 28, 2015 11:10 am
Forum: Vertica SQL
Topic: TOP WITH TIES in Vertica?
Replies: 4
Views: 8998

Re: TOP WITH TIES in Vertica?

Awesome as usual! Thanks!!!
by debfawn
Thu Mar 26, 2015 2:15 pm
Forum: Vertica SQL
Topic: TOP WITH TIES in Vertica?
Replies: 4
Views: 8998

TOP WITH TIES in Vertica?

SQL Server has a TOP n WITH TIES command that will return the greatest n values and includes ties (those that are equal). In Vertica we have the LIMIT command and I can get the TOP 3 values using a LIMIT 3 in combination with ordering the data descending... dbadmin=> select * from top; numbers -----...
by debfawn
Thu Jan 29, 2015 2:12 pm
Forum: vSQL
Topic: -a vs -e option of vsql
Replies: 1
Views: 14769

-a vs -e option of vsql

Can someone explain to me what is the difference between the -a (Echo all input from script) and -e (Echo commands sent to server) command line options of vsql? They seem to do the same exact thing!
by debfawn
Fri Dec 20, 2013 4:21 pm
Forum: vSQL
Topic: No result set produces file with size zero (prefer no file)
Replies: 2
Views: 16933

Re: No result set produces file with size zero (prefer no fi

Thanks! I can add the delete command to my scripts. Good idea 8-)
by debfawn
Thu Dec 19, 2013 3:17 pm
Forum: New to Vertica
Topic: sql formatting in vertica
Replies: 4
Views: 10222

Re: sql formatting in vertica

Thanks for sharing this. Does anyone know how to do the same when executing a query from the command line?
by debfawn
Tue Dec 17, 2013 4:46 pm
Forum: Vertica SQL
Topic: ROUND function produces too many decimal places
Replies: 2
Views: 8187

Re: ROUND function produces too many decimal places

Thanks, Jim. Sorry, I should have searched the site before posting :oops:
by debfawn
Tue Dec 17, 2013 2:20 pm
Forum: vSQL
Topic: No result set produces file with size zero (prefer no file)
Replies: 2
Views: 16933

No result set produces file with size zero (prefer no file)

Good morning! From the vsql command line, I am running a query which does not produce a result set. The -o option creates a file having a size of zero. Example: [dbadmin@vertica-1]$ vsql -Atc "select * from dual where 1 = 2" -o /home/dbadmin/test.txt [dbadmin@vertica-1]$ ls -lrt /home/dbadmin/test.t...

Go to advanced search