If both vendor and user tables have mutually exclusive unique identification numbers, you can have one column that uses this identifier as a "reporter".
If both of them have unique identification numbers, which can have overlapping values, you can use two columns for the identifier, for example:
`reporter_id`, `reporter_type`
where the type can be a value of type s or u to reflect table names. It will also eliminate all of these values created by the method suggested by you.
Finally, if both tables do not have unique identification numbers, give them one! People data tables work much better with primary keys!
Bryan wolfford
source share