Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Column not found in SQL select
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Column not found in SQL select
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01033245
Message ID:
01033245
Views:
52
I have a sql select statement that I must be doing something simple to mess up:
(simplified version of code....)
select *, iif("M"$pmdata.fterms,1,2) as fdatedue ;
from pmdata, inv_pend where fdatedue = 1
The message I get is "column fdatedue not found"

If I run without the where clause, I get the column, named and populated just how I want.

How do I reference a calculated column in a where clause?
Steve Howie, owner
DaSH Technology
Denver, CO
Next
Reply
Map
View

Click here to load this message in the networking platform