SELECT
c.contact_id,
c.email,
af.*
FROM
contacts AS c
INNER JOIN
contacts_to_accounts AS c2a
ON c.contact_id = c2a.contact_id
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
* | |
FROM | |
events AS e | |
INNER JOIN | |
contacts AS c | |
ON e.contact_id = c.contact_id | |
LIMIT 1000; |
SELECT
e.event_id,
e.event_timestamp,
e.event,
c.contact_id,
c.email
FROM
events AS e
SELECT schemaname, tablename, "column", "type"
FROM pg_table_def
WHERE tablename = 'TABLE_NAME';
SELECT DISTINCT schemaname, tablename FROM pg_table_def;
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="stylesheet" type="text/css" href="css/normalize.css"> | |
</head> | |
<body> | |
</body> |
NewerOlder