| 4D v20exists_predicate | ||||||||||||||
| 
 | 
    4D v20
 exists_predicate 
         | |||||||||||||
| EXISTS (subquery) | ||
An exists_predicate is used to indicate a subquery and then check whether it returns anything. This is done by passing the EXISTS keyword followed by the subquery.
This example returns the total sales when there is a store in the region specified:
SELECT SUM (Sales)
FROM Store_Information
WHERE EXISTS
(SELECT * FROM Geography
WHERE region_name = 'West')
	Produkt: 4D
	Thema: Syntax rules
	
        
        
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	4D -  SQL Reference ( 4D v20)
	
	
 Fehler melden
Fehler melden