sorry, last line S/B
WHERE (((Field1) Like "abc*"));
Main Topics
Browse All TopicsCan someone point me to some manual/examples of querys against a clarion / tps database via ODBC.
I'm trying to do a like querey eg.
"SELECT Field1, Field2 FROM ATable WHERE Field1 like 'abc%' "
and keep getting a [ ERROR [S0000] [TopSpeed Corp.][TopSpeed ODBC Driver]Invalid operand for operator: LIKE ]
& a Top Records eg.
"SELECT Top 100 * FROM ATable"
and keep getting a [ERROR [42000] [TopSpeed Corp.][TopSpeed ODBC Driver]Expected lexical element not found: FROM]
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
that didn't actually work.. I did figure it out that the % wild card worked on a text column but not a numeric column??
eg. "SELECT Field1, Field2 FROM ATable WHERE Field1 like 'abc%' " <== this worked on a text column but not a Numeric??
Also do you know how to do that TOP statement as well or where a reference info may be??
Well I think I found part of me answers, Oh well if anyones trying the find the answers to this or need some help with like querys on any type of non string columns
"SELECT Field1, Field2 FROM ATable WHERE {fn convert(Field1,SQL_CHAR)} LIKE 'abc%'"
or even a not case sensitivity where clause
"SELECT Field1, Field2 FROM ATable WHERE {fn lcase(Field1)} like 'abc%'"
of course there is performance hit's with these methods also.
Thanks anyway
From memory it's not free heres what I believed we used. cheap enough though if it's data you really need.
http://www.softvelocity.co
download
http://www.softvelocity.co
There are about 60 tables so that may be a bit of a job to do as a favour for someone you don't know
:)
I found a cheap application called clarion viewer (http://www.scalabium.com/
which costs 20 euros and seems like it will do the trick.
Thanks so much for the offer
Business Accounts
Answer for Membership
by: tonydemarcoPosted on 2007-08-02 at 09:02:40ID: 19618237
replace; "SELECT Field1, Field2 FROM ATable WHERE Field1 like 'abc%' "
with:
SELECT Field1
FROM ATable
WHERE (((Field1) Like "abc"));