Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Distinct not giving distinct values
Message
De
18/01/2008 18:07:41
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01283146
Message ID:
01283149
Vues:
14
DISTINCT applies to the entire row, not individual columns.

>I am trying to get distinct values on one of the character type column that has numerical values. The field is called e_pic.
>
>
>SELECT DISTINCT e_pic as imageid, e_dob as dob, e_empstatus as extrahelp, e_flg13 as eyes, e_id as eid,;
>		e_flg14 as wt, e_flg15 as ht, e_flg16 as pmt, e_fname as firstname, e_lname as lastname, ;
>		e_mi as mi, e_phq as division,  e_unit as unit, e_class as pos_class ;
>				from rv_employee_tbl_c_drive INTO CURSOR crs_data ORDER BY imageid
>BROWSE
>
>
>the result is still returning duplicate values. What am I doing wrong here?
>thanks in advance..
>
>nick
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform