Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sql command
Message
From
24/07/2006 14:58:52
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
MS SQL Server
Miscellaneous
Thread ID:
01139315
Message ID:
01139383
Views:
11
There is a better way I'm sure:

SELECT field1 FROM table1 WHERE (alltrim(field1) $ field1)


>hi all,
>i have a friend who is trying to do a sql command but is not having any luck. basically he wants to return field1 from table 1 where field2 occurs in field1. i am not great with sub querys but is this easy/possible to do? i suppose it would go something like in pyudocode
>
>select table1.field1 from table1 where table1.field2 is found anywhere in table1.field1
>
>~M
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform