Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Iif in a dbf file

$
0
0
Hi

I have used the command WITH IIF for dbf-tables as
Code:

USE filename.dbf
ALTER TABLE filename.dbf
REPLACE ALL ColA WITH IIF(year>0,1,0)
COPY TO Result.dbf
CLOSE TABLES

But now I have several dbf-files so

Code:

...
REPLACE ALL ColA WITH IIF(((File1ColA + File2ColA) /File3ColA) >0,1,0)
...

I can create a new table with File1ColA, File2ColA and File3ColA and then do the WITH IIF. But is this really necessary?

Viewing all articles
Browse latest Browse all 13329

Trending Articles