MySQL Forums
Forum List  »  MySQL Workbench

Linking Tables
Posted by: Pete Watters
Date: September 25, 2017 06:19PM

I have a device table that has a mix of devices, by that I mean some IP devices that have a mac address and some that do not.

I have another table "IP Addresses" that have a row for each IP device (has a mac address that is unique)

If I have in the "DECICE TABLE" rows with a null value for the "mac address field)
which will have no entry in the IP Address" table
the primary key for the "IP Address" table is the mac address

how can I make this work

Options: ReplyQuote


Subject
Views
Written By
Posted
Linking Tables
766
September 25, 2017 06:19PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.