Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Useing the RIGHT() command
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00663045
Message ID:
00663050
Views:
13
Try
SELECT users.username, users.email;
  FROM mytable!users ;
  WHERE users.email LIKE "%@NY.COM" ;
  GROUP BY users.username
* or
...
  WHERE users.email LIKE "%@NY.COM%" ;
...
>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
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform