how would the SELECT to  return only records with more than one
occurrences  of id_table1? example:
 -- Table1
 -- id --
-------------------------
    1
    2


-- Table2
   id  --- | id_table1 | name
  ----------------------------------------------
   4  ---- | -----  1 ------ |   Tom
   5  ---- | -----  1 ------ |   Luci
   6  ---- | -----  2 ------ |  Cleber   ------>this can not return




-- 
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql

Reply via email to