There are 2 tables.
The first one has a SerialNo field of type nvarchar , in which eight-digit values are written in the form '20030001', '20030002', etc.
In the second table there is the same SerialNo field, but with the int type (example 30001, 30002).
How to connect tables in a query by the contents of these fields?