| T.R | Title | User | Personal Name
 | Date | Lines | 
|---|
| 385.1 | WHERE/IF Confusion ?? | OVAL::CARSED |  | Thu Dec 06 1990 04:01 | 14 | 
|  |     
    We don't have FOCUS V6.0 in Europe yet so I've no experience of the
    new WHERE statement (apart from reading the release notes) but, in your
    particular example, a simple IF statement should be suffice to produce
    the correct results i.e.
    
    		IF PRODT_FAMILY_CODE EQ 'SW'
    
    I believe the WHERE statement is used to compare the values in
    different fields on the database and not for testing against literals.
    
    Regards  -  David
    
    
 | 
| 385.2 | IF not available in TABLETALK | AIMHI::FORMALARIE |  | Thu Dec 06 1990 08:01 | 7 | 
|  |     Hi David,
    Yes, IF will work fine, but we want to use TABLETALK and IF isn't
    available using TABLETALK.  WHERE looks like the means to do
    record selections.
    
    thanks for the reply.
    Anne
 | 
| 385.3 | WHERE incomplete | CSS::PETROPH | Noting Ten Times the Speed of Love | Thu Dec 06 1990 13:17 | 22 | 
|  |     
    Anne,
    
    The following TABLETALK generated FEX works;
    
	TABLE FILE A1
	SUM ORDER_QTY
	BY PN
	WHERE (ORDER_TYPE  EQ 'I');
	END
    
    This edited version doesn't;
    
	TABLE FILE A1
	SUM ORDER_QTY
	BY PN
	WHERE ORDER_TYPE EQ 'I'
	END
    
    
    	Rich...
    
 | 
| 385.4 | Edit TABLTALK.FEX | AIMHI::FORMALARIE |  | Fri Dec 07 1990 14:44 | 9 | 
|  |     The problem seems to be with indexed files.  It has been reported to
    IBI FOCUS.  We're getting around it by creating the report in 
    TABLETALK and then editting it.
    
    Word is that WHERE will be removed from Version 6.1 in January.
    
    thanks for the help.
    
    -Anne
 |