Creating a view makes it easier to call data from one library to another (for example, to transfer 209 libraries to 205 libraries).
Example: 209 libraries have different library names: Database (AIS20140417092531 film library) supplier Table (T_supplier), Database (AIS20140417092652) supplier table (T_supplier)
Vendor table data: Primary key (Fitemid), Vendor name (FName), etc.
Vendor table data: Primary key (Fitemid), Vendor name (FName), etc.
Now we have to put the supplier table of the library in 209 and the contents of the supplier table of the glue library into the 205 database, so that we can use the view to achieve the desired effect (example is that the example itself may be very irregular, but it is the approximate meaning)
SELECT Fitemid, FName, ' film ' as ' Fdbname '
From KIS. AIS20140417092531.dbo.t_Supplier as T_supplier_1
UNION All
SELECT Fitemid, FName, ' glue ' as ' fdbname '
From KIS. AIS20140417092652.dbo.t_Supplier as T_supplier_1
Use of Views in SQL (simple view) for entry-level