Scalable Database Server, HiRDB Version 8 Description
You can create a virtual table by selecting specific rows and columns from a table that is actually stored in a database (called a base table). Such a virtual table is called a view table. By creating a view table that makes only specified columns available to the public, you can effectively protect the remainder of the data. In addition, the resulting reduction in the number of columns to be manipulated improves the operability of the table.
To create a view table, you must execute the CREATE VIEW of the definition SQL. Figure 3-20 shows an example of a view table.
Figure 3-20 Example of a view table
CREATE VIEW VSTOCK AS SELECT PCODE,SQUANTITY,PRICE FROM STOCK WHERE PNAME = N'Socks'
All Rights Reserved. Copyright (C) 2007, Hitachi, Ltd.