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 : Calculated FieldsSearch Forum

Forum Home > FlexODBC - ODBC Driver for DataFlex Embedded DBMS > FlexODBC Forum

 New Topic 
 
 Post Reply 
[1]  
 Calculated Fields 
 Author   Message 
  Andrew Hawken 
  
 Group: Members 
 Posts: 6 
 Joined: 2008-12-10 
 Profile
 Posted : 2009-01-15 01:16:33
Is it possible to return calculated fields :

select myid, ((myint1 = 0) & (myint2 <>0))  as mycalc from mytable

Thanks

Andrew
 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2009-01-15 11:04:59

Calculated columns are possible:

Select (InvoiceLineQuantity * InvoiceLineRate) as CalculatedTotal from InvoiceLine

but your example is an conditional expression.

 

  Top 
  Andrew Hawken 
  
 Group: Members 
 Posts: 6 
 Joined: 2008-12-10 
 Profile
 Posted : 2009-01-15 20:51:21
Thanks Tom.  Technically your example is also an expression.  I think you are implying that basic calculations are possible but nothing more.  No {fn EVAL(xxx)} for instance ? 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2009-01-16 09:46:42

Correct, but you can now use CASE. Case and Union have been added to QODBC v9, see: Release 9.0.0.249 Fixes, but still have to be added to FlexODBC.

For more QODBC functions click here. (A lot to these are supported by FlexODBC also).

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to