home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
- VIEW(QUEL) 2/7/79 VIEW(QUEL)
-
-
-
- NAME
- view - define a virtual relation
-
- SYNOPSIS
- _d_e_f_i_n_e _v_i_e_w name (target-list) [ _w_h_e_r_e qual ]
-
- DESCRIPTION
- The syntax of the _v_i_e_w statement is almost identical to the
- _r_e_t_r_i_e_v_e _i_n_t_o statment; however, the data is not retrieved.
- Instead, the definition is stored. When the relation _n_a_m_e
- is later used, the query is converted to operate on the re-
- lations specified in the _t_a_r_g_e_t-_l_i_s_t.
-
- All forms of retrieval on the view are fully supported, but
- only a limited set of updates are supported because of
- anomolies which can appear. Almost no updates are supported
- on views which span more than one relation. No updates are
- supported that affect a domain in the qualification of the
- view or that affect a domain which does not translate into a
- simple attribute.
-
- In general, updates are supported if and only if it can be
- guaranteed (without looking at the actual data) that the
- result of updating the view is identical to that of updating
- the corresponding real relation.
-
- The person who defines a view must own all relations upon
- which the view is based.
-
- EXAMPLE
- range of e is employee
- range of d is dept
- define view empdpt (ename = e.name, e.sal, dname = d.name)
- where e.mgr = d.mgr
-
- SEE ALSO
- retrieve(quel), destroy(quel)
-
-