title: Select values in SQL that do not have other corresponding values except those that i search for
body: <p>I have a table in my database:</p>
  
  <pre><code>Name  |  Element
   1         2
   1         3
   4         2
   4         3
   4         5
  </code></pre>
  
  <p>I need to make a query that for a number of arguments will select the value of Name that has on the right side these and only these values.
  E.g.:
  arguments are 2 and 3, the query should return only 1 and not 4 (because 4 also has 5). For arguments 2,3,5 it should return 4.</p>
  
  <p>My query looks like this:</p>
  
  <pre><code>SELECT name FROM aggregations WHERE (element=2 and name in (select name from aggregations where element=3))
  </code></pre>
  
  <p>What do i have to add to this query to make it not return 4?</p>