I have two tables
MD_Master (Medical checks) Id ... CD_Personal (Personal Checks) Id ...
Each fieldname in both tables are different names, types, and data.
However, each has a Primary Key Id, and can potentially conflict with eath other.
i.e. Id 101 can exist in both MD_Master and CD_Personal
I would like to create a view combing both tables (combining MD_Medical and CD_Personal Id fields) but I don’t know how to handle the Ids.
I would like the view to have a Numeric(19,0) for Id.
Would it be possible to select and do a union of these two diffeent tables and create a unique ID?
Thanks
You can try something like this:
In your case: