I know how to join 2 tables. My joindef and erddef are done in ServiceCenter.
The problem I have is to sort data on a specific field name. Here is my example:
QUERY #1
SELECT
probsummarym1.number, probsummarym1.category, probsummarym1.open.time, probsummarym1.company, probsummarym1.product.type, probsummarym1.user.priority, probsummarym1.last.activity, activitym1.operator, activitym1.description
FROM
probsummarym1 ,
activitym1
WHERE
probsummarym1.number = activitym1.number AND
ORDER BY
probsummarym1.company ASC
When I run this query, data are not displayed correctly. They are ordered by probsummarym1.number instead of probsummarym1.compagny like I specified.
QUERY #2
SELECT
probsummarym1.number, probsummarym1.category, probsummarym1.open.time, probsummarym1.company, probsummarym1.product.type, probsummarym1.user.priority, probsummarym1.last.activity
FROM
probsummarym1
ORDER BY
probsummarym1.company ASC
When I run this query, data are displayed correctly ordered by probsummarym1.company.
Why this happen? Is it because in query #1 there is a join between two files? (My joindef and erddef are done in ServiceCenter)
That's strange!! May be it's a bug in the ODBC driver!! ???


Reply With Quote
Bookmarks