Consider the following table,
| Id | Value |
----------------
| 1 | 1 |
| 1 | 3 |
| 1 | 1 |
| 2 | 2 |
| 2 | 3 |
How to write a sql query to select Id which has values only in 1 or 3(considering above table, required id=1)