G
Guest
I have three tables tbl_Payments with pmt_Payment_Cust_Id relating to
tbl_Subscriptions with sub_Cust_ID
and the third table, tlkp_Subscription_Names using sn_Abbrev as a join to tbl_Subscriptions sub_Newsletter_Code field.
When I run a query asking for
sub_Cust_Id from tbl_Subscriptions, sub_Newsletter_Code from tbl_subscriptions (using criteria Not like "F*"), sub_Subscr_Status from tbl_Subscriptions (using "A" as a criteria), sub_Billing_Frequency from tbl_Subscriptions (with select criteria "A" or "Q" or "M" or "S"), sn_Billing_Type from tlkp_Subscription_Names (using "R" criteria), sub_Subscr_End_Date from tbl_Subscriptions (using criteria >=#1/5/2004#) and lastly pmt_Payment_method from tbl_Payments I get the Cartesian product result in my query. Does this mean that my relations to the tables are incorrect and that I have to do a subquery or Union select statement? The tlkp_Subscription_Names table has no way to relate customer_id which I believe is the problem-but I have to have this table so that I can get the pmt_Payment_Method field in the results. How can I do this? Unfortunately I am not that well versed in SQL, Select statements and Union queries and the like.
Any information you can give me is greatly appreciated! Thanks in advance.
tbl_Subscriptions with sub_Cust_ID
and the third table, tlkp_Subscription_Names using sn_Abbrev as a join to tbl_Subscriptions sub_Newsletter_Code field.
When I run a query asking for
sub_Cust_Id from tbl_Subscriptions, sub_Newsletter_Code from tbl_subscriptions (using criteria Not like "F*"), sub_Subscr_Status from tbl_Subscriptions (using "A" as a criteria), sub_Billing_Frequency from tbl_Subscriptions (with select criteria "A" or "Q" or "M" or "S"), sn_Billing_Type from tlkp_Subscription_Names (using "R" criteria), sub_Subscr_End_Date from tbl_Subscriptions (using criteria >=#1/5/2004#) and lastly pmt_Payment_method from tbl_Payments I get the Cartesian product result in my query. Does this mean that my relations to the tables are incorrect and that I have to do a subquery or Union select statement? The tlkp_Subscription_Names table has no way to relate customer_id which I believe is the problem-but I have to have this table so that I can get the pmt_Payment_Method field in the results. How can I do this? Unfortunately I am not that well versed in SQL, Select statements and Union queries and the like.
Any information you can give me is greatly appreciated! Thanks in advance.