[QGIS-trac] Re: [Quantum GIS] #1555: A more efficient SQL query for uniqueness

Quantum GIS qgis at qgis.org
Thu Feb 19 17:55:15 EST 2009


#1555: A more efficient SQL query for uniqueness
----------------------------------------------------+-----------------------
        Reporter:  gjm                              |         Owner:  nobody
            Type:  enhancement                      |        Status:  new   
        Priority:  minor: annoyance or enhancement  |     Milestone:        
       Component:  Data Provider                    |       Version:  HEAD  
      Resolution:                                   |      Keywords:        
Platform_version:                                   |      Platform:  All   
        Must_fix:  No                               |   Status_info:  0     
----------------------------------------------------+-----------------------
Comment (by jef):

 another candidate:

 {{{
 SELECT NOT EXISTS (SELECT %1 FROM %2.%3 GROUP BY %1 HAVING COUNT(*)>1) as
 isunique;
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/1555#comment:2>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list