title: How to find proper User between two tables
body: <p>I have something like this in two tables on my database</p>
  
  <p>"User" table</p>
  
  <pre><code>userId         viewsIDS       
    1            1,2,3,4,5        
    2           2,4,6,12,13       
    3             1,4,5           
   ...             ...            
  </code></pre>
  
  <p>"View" table</p>
  
  <pre><code>viewID        webpageId       
    1              1            
    2              1            
    3              2            
    4              3
    5              3
    6              3            
   ...            ...
  </code></pre>
  
  <p>Now, which query should I use to find user IDs just having the webpage IDs?</p>
  
  <p>I guess should somehow group "viewIDs" from "View" table and then check if one of these IDs is in the User "viewIDS" field so take the userID out, but I don't know which query would make this the better way possible.</p>