keepfoxing
Programmer
what i want is to display only the records being filtered with the value on the field of single and male.
how to do this using set filter?
thanks in advance
how to do this using set filter?
thanks in advance
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
USE labels
SET FILTER TO .F.
? EOF(), RECNO(), RECCOUNT()
LOCATE
? EOF(), RECNO(), RECCOUNT()
set filter to status = "Married" and status = "Single"
set filter to othercondition = "something" and othercondition2 = "something2" and status = "Married" or status = "Single"
Like saying you want a woman, who's honest and beautiful and faithful or rich.
has a condition on MAX(ageofchild)>12
CREATE CURSOR TheTable (name C(25),status C(10),children C(25),ageofchild I)
INSERT INTO TheTable VALUES ('doe','single','marry',11)
INSERT INTO TheTable VALUES ('doe','single','name2',15)
INSERT INTO TheTable VALUES ('doe','single','name5',18)
INSERT INTO TheTable VALUES ('john','single','name',13)
INSERT INTO TheTable VALUES ('john','single','name3',15)
INSERT INTO TheTable VALUES ('fox','single','name4',19)
* solution 1 aggregate
SELECT Name FROM TheTable GROUP BY Name HAVING MIN(AgeOfChild) > 12
* solution 2 subquery
SELECT distinct Name FROM TheTable WHERE name NOT in (SELECT name FROM TheTable WHERE AgeOfChild <= 12)