Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
  HXTT Cobol v5.0
  HXTT DBF v7.1
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Excel v6.1
  HXTT Json v1.0
  HXTT Paradox v7.1
  HXTT PDF v2.0
  HXTT Text(CSV) v7.1
  HXTT Word v1.1
  HXTT XML v4.0
Offshore Outsourcing
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
   
   
   
Heng Xing Tian Tai Lab of Xi'an City (abbr, HXTT)

HXTT DBF
excluding deleted records in Join query
Paul Hall
2008-01-09 13:49:10
How can I exclude deleted records in a special 2-table query?
for example:

Select cc.lastname, tt.invoicetot from customers cc, transactions tt
where cc.custnum = 12345

The VFP transaction table has some deleted records that haven't
been "packed"...I want to exclude them from the query.

Can you suggest a technique that is supported by your DBF driver?

Thanks
excluding deleted records in Join query
Paul Hall
2008-01-09 14:24:16
as further explanation:
I am using ColdFusion and have set the datasource to
include deleted records (yields MUCH faster performance
on most queries...but, causes a problem on the occasional
lookup query where we have deleted records.)

Is there a way to temporarily change the setting on
Set Deleted, for just a single query?

Thx Paul
Re:excluding deleted records in Join query
HXTT Support
2008-01-09 17:47:36
You can use deleted function,
DELETED([cTableAlias | nWorkArea]): returns a logical value that indicates whether the current record is marked for deletion.

For instance, where deleted('atable')=false
where not deleted('abc')
Re:Re:Re:excluding deleted records in Join query
HXTT Support
2008-01-09 18:39:16
Select cc.lastname, tt.invoicetot from customers cc, transactions tt
where cc.custnum = 12345 and not deleted('customers')

Search Key   Search by Last 50 Questions




Google
 

Email: webmaster@hxtt.com
Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Sitemap