Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Odd results on SQL Select
Message
From
15/06/2006 11:22:05
 
 
To
15/06/2006 11:09:47
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01129147
Message ID:
01129308
Views:
7
Hello Cetin,

In this example, I wanted 1 record returned...and SET ANSI of course solved that. I want to have one view that could return one record if both parameters are the same, or a range of records. The BETWEEN is another solution for me to consider. But there is also the need to retrieve all items that start with the same style number (your LIKE example). So I'm probably going to end up with multiple views anyway.

Thanks for the reply,

steve

>>
>>Trying to make a parameterized view that can get a range of records, or only one record if start and ending values are the same. But it is a bust at this point.
>>
>What do you want from SQL? 1 result or 4?
>
>* Only exact match - independant from set ansi
>select * from itemMast where itemnum == "B2456DI14"
>*ANSI dependant
>select * from itemMast where itemnum = "B2456DI14"
>*ANSI independant
>select * from itemMast where itemnum like "B2456DI14%"
>
>set exact has no effect on SQL.
>Cetin
Steve Gibson
Previous
Reply
Map
View

Click here to load this message in the networking platform