title: How to replace UNION in sql query
body: <p>I have a table: attb</p>
  
  <pre><code>------------------------------------------------
  Id | Name | Code | Attribute | Amount 
  ------------------------------------------------
  1  | AV   | 123  | Alpha     | 233
  ------------------------------------------------
  2  | TV   | 122  | Beta      | 235
  ------------------------------------------------
  3  | TV   | 123  | Gama      | 238
  ------------------------------------------------
  4  | CD   | 122  | Beta      | 239
  ------------------------------------------------
  5  | TP   | 122  | Beta      | 240
  ------------------------------------------------
  6  | RX   | 123  | Alpha     | 241
  ------------------------------------------------
  </code></pre>
  
  <p>I'm querying it as:</p>
  
  <pre><code>select id,name, code, attribute, amount
  from attb
  where code = 123 and attribute='Alpha'
  UNION
  select id,name, code, attribute, amount
  from attb
  where code = 122;
  </code></pre>
  
  <p>It return the following</p>
  
  <hr>
  
  <pre><code>Id | Name | Code | Attribute | Amount 
  ------------------------------------------------
  1  | AV   | 123  | Alpha     | 233
  ------------------------------------------------
  2  | TV   | 122  | Beta      | 235
  ------------------------------------------------
  4  | CD   | 122  | Beta      | 239
  ------------------------------------------------
  5  | TP   | 122  | Beta      | 240
  ------------------------------------------------
  6  | RX   | 123  | Alpha     | 241
  ------------------------------------------------
  </code></pre>
  
  <p>Is there a way I can combine two queries instead of using UNION operator? or Any better implementation?</p>