Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Useing the RIGHT() command
Message
De
30/05/2002 11:43:12
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00663045
Message ID:
00663052
Vues:
17
Probably more than one solution here, but one possibility using your syntax is to try:

WHERE right(alltrim(users.email),7) = "@NY.COM";

as long as the email address actually ends in the pattern you indicate.

Bill


>I am haveing a problem trying to extract files conatining ONLY the following from a field = @NY.COM
>
>I have tried all forms of alltrim(), Right(), etc, but nothing sems to work...
>
>here is my SQL Query code:
>
>SELECT users.username, users.email;
> FROM mytable!users;
> WHERE alltrim(right(users.email,7)) = "@NY.COM";
> GROUP BY users.username
>
>Can anyone advise me where i am going wrong??
>
>TIA
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform