Select - SQL gives inconsistent results 
Author Message
 Select - SQL gives inconsistent results

I am trying to do a select as follows:

"select A.1, A.2, A.3 from A, B where B.4 = {var} and A.1 = B.1 into ..."

The field # 1 in A and B are identical in type and length
Field # 1 in B can appear multiple times for a single field # 4.
Field # 1 in A can appear multiple times.

The results of the query with specific info should find five occurrences of field #1 in B
resulting in 8 records in the final result.

This query omits only ONE of the five occurrences in B if I use the form:

                        and alltrim(A.1) == alltrim(B.1)

Any other combination of equal signs or an alltrim on only one side of the equation
results in the correct answer.



Sat, 21 Nov 1998 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Different results with SELECT SQL and DELETE SQL.

2. Select - SQL without a result set

3. what settings can effect results of SELECT SQL

4. SELECT - SQL result set dependant on whether table is indexed

5. SELECT SQL return wrong result

6. FP 2.5 erratic Select SQL results when using date fields

7. results: Filtering no-match record/field (SELECT-SQL)

8. IIF results in a Select - SQL statement

9. Slow SQL Select results - help?

10. Problem of putting the result of SQL Select to an existing table

11. How to process SELECT SQL results ?

12. SQL - result result order

 

 
Powered by phpBB® Forum Software