I am using vfp6 I am trying to do this query in two table
one name customer other one name Hist_order. Hist_order keep the information about history oder information. I am trying to get informantion about customer who place the order in may and also place the order in june.I try to run this query result is blank. Can any one tell me what I am doing wrong and How to do it right.
SELECT Customer.phone, Customer.name, Customer.strt_num,;
Customer.strt_name, Hist_ord.ord_date;
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 <= "20020631";
GROUP BY Customer.phone
one name customer other one name Hist_order. Hist_order keep the information about history oder information. I am trying to get informantion about customer who place the order in may and also place the order in june.I try to run this query result is blank. Can any one tell me what I am doing wrong and How to do it right.
SELECT Customer.phone, Customer.name, Customer.strt_num,;
Customer.strt_name, Hist_ord.ord_date;
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 <= "20020631";
GROUP BY Customer.phone