Is there a way to JOIN in caravel?

36 views
Skip to first unread message

Aram Lauxtermann

unread,
May 20, 2016, 10:40:25 AM5/20/16
to airbnb_caravel
Basically I have two tables in the same database and I want to join them.

Aka created a virtual column in one table that adds a friendly name:

SELECT database_1.*, database_2.device_type
FROM database_1  
INNER JOIN database_2 ON database_2.user_agent = database_1.agent

Is it possible to do this in caravel?

Tnx

Maxime Beauchemin

unread,
May 20, 2016, 12:15:15 PM5/20/16
to airbnb_caravel
You can use a view that has a join in it as a data source.

Max

Maxime Beauchemin

unread,
May 20, 2016, 2:39:51 PM5/20/16
to airbnb_caravel

Aram Lauxtermann

unread,
May 22, 2016, 7:36:05 AM5/22/16
to airbnb_caravel
PS.

Or is there a way to at a table do a JOIN on it and save it?

Because I can JOIN in SQL page. The only problem is that I cannot create a view, because I get a alert that states that this feature is not implemented yet.

Tnx

Maxime Beauchemin

unread,
May 22, 2016, 11:28:03 AM5/22/16
to airbnb_caravel
Yes, it's not implemented yet. In the meantime you just have to run a `CREATE VIEW foo {my_sql_statement_with_join_in_it};` against your database and use `foo` as a source.
Message has been deleted

Aram Lauxtermann

unread,
May 23, 2016, 4:57:15 AM5/23/16
to airbnb_caravel
Tnx
Reply all
Reply to author
Forward
0 new messages