If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Corel Paradox > Paradox query reference field value in same table

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-09-09, 10:58
ParaDi ParaDi is offline
Registered User
 
Join Date: Jul 2008
Posts: 6
Paradox query reference field value in same table

I would appreciate any help with the following Paradox 12 problem.

I need to reference another field value in the same table in my query but don't know the syntax. To keep it simple. Say I have a table named tbl_cost.db with fields cost1 and cost2. I want my query to display only those records where cost1 is greater than cost2. The simple > cost2 in cost1 doesn't work. I have also tried numerous combinations such as below.


| cost1
> tbl_cost.db.cost2

> tbl_cost.db."cost2"

> tbl_cost.db.["cost2"]

> tbl_cost.db.[cost2]

> [tbl_cost.db].[cost2]

> ([tbl_cost.db].[cost2])

> (tbl_cost.db."cost2")

> ([tbl_cost.db].["cost2"])
Reply With Quote
  #2 (permalink)  
Old 10-09-09, 19:16
Steve Green Steve Green is offline
Registered User
 
Join Date: Dec 2007
Posts: 273
you have to learn how to use example elements.. same table and/or different table, same concept..

manaually, it's the F5 key.. in code, it's the underscore.. example:

| cost-1 | cost-2|
| _a | > _a |
__________________
--
Steven Green - Myrtle Beach, South Carolina USA

http://www.OasisTradingPost.com

Oasis Trading Post
- Collectibles and Memorabilia
- Vintage Lego Sets and Supplies
Reply With Quote
  #3 (permalink)  
Old 10-13-09, 10:09
ParaDi ParaDi is offline
Registered User
 
Join Date: Jul 2008
Posts: 6
Thank you. That was just what I needed.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On