vertica

Datawarehouse duplicate dimension rows

We're starting to load up a datawarehouse with data from event logs. We have a normal star schema where a row in the fact table represents one event. Our dimension tables are a typical combination of user_agent, ip, referal, page, etc. One dimension table looks like this: create table referal_dim( id integer, domain varchar(255),...

Is there a "Force Index" equivalent in Vertica?

Is there a "Force Index" from MySQL equivalent in Vertica DB? ...

Given Start Time , End Time & Secs. Obtain secs in a specific Hour

I'm using Vertica Database. I am trying to get the total secs in a particular hour from the following example session data. Any sample SQL code would be very helpful - Thanks start time end time session length(secs) 2010-02-21 20:30:00 2010-02-21 23:30:00 10800 2010-02-21 21:30:00 2010-02-21 22:...

How do I do a Crosstab in Vertica

What is the Vertica equivalent of crosstab or pivot table found in PostgreSQL and other RDBMS's? ...

How do I Put Several Select Statements into Different Columns

I basically have 7 select statements that I need to have the results output into separate columns. Normally I would use a crosstab for this but I need a fast efficient way to go about this as there are over 7 billion rows in the table. I am using the vertica database system. Below is an example of my statements: SELECT COUNT(user_id)...

Using an ODBC application with a JDBC driver

My company uses Vertica. We have Python applications that connect to it with pyodbc. I do most of my development on a Mac (Snow Leopard) and unfortunately Vertica has not released ODBC drivers for Mac. They do have JDBC drivers though. I don't think developing in Jython is a good compromise. Is there any way to use JDBC drivers with...