Search found 3 matches

by sach
Mon Jul 02, 2012 7:20 am
Forum: Vertica SQL
Topic: Query to get Count
Replies: 1
Views: 4777

Query to get Count

Hi, I have table DESC SUCC_COUNT FAIL_COUNT ================================== ABC 5 1 BCD 7 2 Here my intension is to find the sum of SUCC_COUNT and FAIL_COUNT for list of DESC. I have a possible list of values for DESC . DESC values should be among (ABC,BCD,CDE,XYZ). Here there are cases where som...
by sach
Mon Jul 02, 2012 7:20 am
Forum: Vertica SQL
Topic: Query Vertica through Shell script
Replies: 5
Views: 27621

Re: Query Vertica through Shell script

Hi,

I was able to connect to vertica as below

vsql -U ${VERTICA_USR} -d ${VERTICA_DB} -c "<sql query>' -At -o <output_file> -F ',' -q.

The above resulted the output without header and comma separated

Thanks
Sach
by sach
Sun Jul 01, 2012 5:34 am
Forum: Vertica SQL
Topic: Query Vertica through Shell script
Replies: 5
Views: 27621

Query Vertica through Shell script

Hi,

Is there any sample example to connect to Vertica and execute sql's through shell script ?.I tried with option \i <file.sql>, but the vertica ignores the arguments...

Thanks in Advance,
Sach

Go to advanced search