Member Login

Username
Password
Forget Password
New Sign Up
Search Forum

Buy Support
Incidents

If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:

Click Here
If you can't login and post questions or you are having trouble viewing forum posts:
Click Here
Callback
Support

If you live in USA, UK, Canada, Australia or New Zealand, you can leave us details on your question and request us to call you back and discuss them with you personally  (charges apply).

Click Here
 
Buy Support
Incidents
If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:
Click Here

Forum : like statement for qodbc driverSearch Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC v7 Forum

 New Topic 
 
 Post Reply 
[1]  
 like statement for qodbc driver 
 Author   Message 
  Jeff Rice 
  
 Group: Members 
 Posts: 1 
 Joined: 2007-02-14 
 Profile
 Posted : 2007-02-14 07:16:09
 I am curious if there is an available syntax similar to select * from tablename where description like 'text%'.  I want to only pull out item records that have a description starting with a few particular characters.  Any help would be appreciated.

Jeff 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-02-14 08:26:21

There's no problem with LIKE anyvalue, and you can even use the LOWER function to catch both C and c like this:

SELECT Sales.RefNumber,Sales.BillAddressAddr1,Sales.Type,Sales.TxnDate FROM Sales
WHERE Sales.BillAddressAddr1 = 'Customer Name'
AND Sales.TxnDate <= {d '2006-04-09'} AND {fn LCASE(Sales.Type)} LIKE 'c%' ORDER BY RefNumber

Tthe following query shows how a like "i%" works to find "Invoice" type sales:

SELECT Sales.RefNumber,Sales.BillAddressAddr1,Sales.Type,Sales.TxnDate FROM Sales
where {fn LCASE(Sales.Type)} LIKE 'i%' ORDER BY RefNumber

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to