Re: DISTINCT - Mailing list pgsql-sql

From Christopher Kings-Lynne
Subject Re: DISTINCT
Date
Msg-id GNELIHDDFBOCMGBFGEFOIEDICEAA.chriskl@familyhealth.com.au
Whole thread Raw
In response to DISTINCT  (Rudi Starcevic <rudi@oasis.net.au>)
List pgsql-sql
> SELECT
>     DISTINCT phone,
>     company_name,
>     address,
>     state,
>     idc_desc_1,
>     street_number,
>     street_name,
>     street_xtra,
>     suburb,
>     postcode,
>     area_code,
>     ac_phone,
>     fax_area_code,
>     fax_phone,
>     fax_ac_phone,
>     latitude,
>     longitude
> INTO export_temp
> FROM export;

SELECT   DISTINCT ON (phone)   phone,   company_name,   address,   state,   idc_desc_1,   street_number,   street_name,
 street_xtra,   suburb,   postcode,   area_code,   ac_phone,   fax_area_code,   fax_phone,   fax_ac_phone,   latitude,
longitude
 
INTO export_temp
FROM export;



pgsql-sql by date:

Previous
From: Rudi Starcevic
Date:
Subject: DISTINCT
Next
From: Rudi Starcevic
Date:
Subject: Re: DISTINCT