title: postgresql select different query for specific value on column
body: <pre><code>CREATE TABLE dtvs_risk_analizine_girmeme_tanimi_t
  (
    id bigint NOT NULL,
    aktif boolean NOT NULL,
    price1 double precision,
    price2 double precision,
    priceoperator integer,
  )
  WITH (
      OIDS=FALSE
  );
  ALTER TABLE dtvs_risk_analizine_girmeme_tanimi_t OWNER TO postgres;
  </code></pre>
  
  <p>hello oll my table like on the up side. 
  I have a price and I have many rules on the price column.
  I want to get all the column id value for my price value.</p>
  
  <p>If priceopetaror is 0 then price1 is bigger then my price
  else if priceopetaror is 1 then price1 is smaller then my price
  else if ........</p>
  
  <p>How I get all the row numbers for these rows.</p>