VIEWS IN DATABASE Views in SQL are kind of virtual tables. A view also has rows and columns as they are in a real table in the database. We can create a view by selecting fields from one or more tables present in the database. A View can either have all the rows of a table or specific rows based on certain condition. There are two types of database views: 1. Dynamic views 2. Static views DYNAMIC VIEWS Dynamic views can contain data from one or two tables and automatically include all of the columns from the specified table or tables. Dynamic views are automatically updated when related objects or extended objects are created or changed. When you create a dynamic view with data from two tables, you must ensure that both tables have the same PRIMARYKEYCOLSEQ columns or contain unique indexes with the same column name in the same order. STATIC VIEWS Static views can contain data from multiple tables a...
Posts
Showing posts from December, 2022