I am useing vfp6 I have to table one has all the information about customer other one has all the order history of customer ord_date is (c) field. date store as
ymd format example 20020801. I want to run a query where I
can find out about customer who place the order in may and
also place the order in june. Customer I want to see they must meet both condition may and june. when ever I run this query I get zero result. I can run as may or june but some how I don't know how to run order in may and june. some one please help me.
SELECT Customer.phone, Customer.name, Customer.strt_num,;
Customer.strt_name, Customer.city, Customer.state_prov,;
Customer.first_ord, Customer.last_ord;
FROM customer INNER JOIN hist_ord ;
ON Customer.phone = Hist_ord.phone;
WHERE Hist_ord.ord_date >= "20020501";
AND Hist_ord.ord_date <= "20020531";
AND Hist_ord.ord_date >= "20020601";
AND Hist_ord.ord_date <= "20020630";
ORDER BY Customer.phone
ymd format example 20020801. I want to run a query where I
can find out about customer who place the order in may and
also place the order in june. Customer I want to see they must meet both condition may and june. when ever I run this query I get zero result. I can run as may or june but some how I don't know how to run order in may and june. some one please help me.
SELECT Customer.phone, Customer.name, Customer.strt_num,;
Customer.strt_name, Customer.city, Customer.state_prov,;
Customer.first_ord, Customer.last_ord;
FROM customer INNER JOIN hist_ord ;
ON Customer.phone = Hist_ord.phone;
WHERE Hist_ord.ord_date >= "20020501";
AND Hist_ord.ord_date <= "20020531";
AND Hist_ord.ord_date >= "20020601";
AND Hist_ord.ord_date <= "20020630";
ORDER BY Customer.phone