Dear friends:
I have 2 tables (Members and Membercontacts).
membercontacts.memberid is referenced bt members.id
I want to display the members.memname, membercontacts.contactname, membercontacts.contactdetails where members.id=4
i cannot make any join that will display me a result containing at least the members.memname in case no fields are existing in members and membercontacts
Members
Id Memname
1 IBM Company
2 Spinneys
3 Mc Donalds
4 John Vai
Membercontacts
Id Memberid Contactname ContactDetails
1 1 Walter Smith Office Number 3
2 3 Dany Balian Marketing department
3 2 Frederick M. Customer service, Office #4
I want to make a join that will display the Membname in case no related fields exist in membercontacts
(id=4 memname=John Vai)
I am using the following and no result is output:
select m.memname,mc.contactname,mc.contactdetails from Members as m,Membercontacts as mc
where m.id=mc.memberid and m.id=4
Any help?
I have 2 tables (Members and Membercontacts).
membercontacts.memberid is referenced bt members.id
I want to display the members.memname, membercontacts.contactname, membercontacts.contactdetails where members.id=4
i cannot make any join that will display me a result containing at least the members.memname in case no fields are existing in members and membercontacts
Members
Id Memname
1 IBM Company
2 Spinneys
3 Mc Donalds
4 John Vai
Membercontacts
Id Memberid Contactname ContactDetails
1 1 Walter Smith Office Number 3
2 3 Dany Balian Marketing department
3 2 Frederick M. Customer service, Office #4
I want to make a join that will display the Membname in case no related fields exist in membercontacts
(id=4 memname=John Vai)
I am using the following and no result is output:
select m.memname,mc.contactname,mc.contactdetails from Members as m,Membercontacts as mc
where m.id=mc.memberid and m.id=4
Any help?