Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Thanks. Accepted as answer as it is a direct alternative to what I was doing in Oracle. Commented Apr 3, 2012 at 10:13
  • @CSharpened what is the query for Oracle? Commented Apr 18, 2013 at 19:41
  • 2
    This is an extremely fragile answer - e.g,. if a table called your_table appears in a schema that is higher up in search_path. My PostGIS database has monthly schema, each with identical table names; using this answer, vicmap201208.address would be found before vicmap201910.address because vicmap201208 appears before vicmap201910 on search_path (for good reasons that I wouldn't want to change just to make a bad answer work). [As it happens, the column names are constant across schemas: that's not the point] Commented Dec 3, 2019 at 5:27