Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
  HXTT Cobol v2.1
  HXTT DBF v5.2
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Excel v4.2
  HXTT Paradox v5.2
  HXTT Text(CSV) v5.2
  HXTT XML v1.2
Offshore Outsourcing
Oracle Data Import/Export
DB2 Data Import/Export
Sybase Data Import/Export
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
   
   
   
Hongxin Technology & Trade Ltd. of Xiangtan City (abbr, HXTT)

HXTT DBF
excluding deleted records in Join query
Paul Hall
2008-01-09 13:49:10.0
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.0
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.0
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.0
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
 

Address: 9 Station Rd., Xiangtan City, Hunan Province, P.R. China
Postcode: 411100
Phone: (86)731-58225727
Fax: (86)731-58225727
Email: webmaster@hxtt.com
Copyright © 1999-2011 Hongxin Technology & Trade Ltd. | All Rights Reserved. | Privacy | Legal | Sitemap