Skip to content

Instantly share code, notes, and snippets.

@ks--ks
Created August 2, 2018 18:12
Show Gist options
  • Select an option

  • Save ks--ks/3cf81b1ded91f051b784706387017aa6 to your computer and use it in GitHub Desktop.

Select an option

Save ks--ks/3cf81b1ded91f051b784706387017aa6 to your computer and use it in GitHub Desktop.
SELECT av.sapdate AS date,
lower(av.state) AS state,
lower(av.source) AS source,
av.act_v AS act_view,
a.act::int AS act,
FROM action_view av
LEFT OUTER JOIN actions a ON av.idp = a.id
ORDER BY date;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment