im doing some basic sql stuff for my database management question and i created the following quiry and am getting duplicate results:
select distinct bank_customer.customer_fname, bank_customer.Customer_lname, bank_account.bank_account_id,
bank_account.bank_account_type
from bank_customer, bank_account
order by Customer_lname;
there are 5 customers, and in the output im getting the names in order, but each name appears 5 times with 1 of each account number, can anyone help me isolate that??
thanks.
select distinct bank_customer.customer_fname, bank_customer.Customer_lname, bank_account.bank_account_id,
bank_account.bank_account_type
from bank_customer, bank_account
order by Customer_lname;
there are 5 customers, and in the output im getting the names in order, but each name appears 5 times with 1 of each account number, can anyone help me isolate that??
thanks.