podoc:view_contact_sql_view
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
podoc:view_contact_sql_view [2007/04/12 12:23] – created Luud | podoc:view_contact_sql_view [2007/04/20 15:40] (current) – Luud | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Database View Description ===== | + | ===== Database View Description |
=== Name === | === Name === | ||
+ | |||
+ | view_contact | ||
=== Description === | === Description === | ||
Line 9: | Line 11: | ||
=== Schema === | === Schema === | ||
- | === Related tables=== | + | <code sql> |
+ | create view view_contact as | ||
+ | select client.identifier, | ||
+ | from client, users, client_status | ||
+ | where client.client | ||
+ | and client.status | ||
+ | order by users.last_name, | ||
+ | </ | ||
- | === Related | + | === Related |
- | === Related indexes === | + | * [[client sql table|client]] |
- | + | * [[client_status sql table|client_status]] | |
- | === Related functions === | + | * [[users sql table|users]] |
=== History === | === History === | ||
Line 31: | Line 40: | ||
= Version 2.5 = | = Version 2.5 = | ||
- | | + | <code sql> |
- | ... | + | create view view_contact as |
- | ); | + | select client.identifier, client.users, client.client, users.last_name, |
+ | | ||
+ | where client.client = users.identifier | ||
+ | and client.status = client_status.identifier | ||
+ | order by users.last_name, | ||
+ | </ |
podoc/view_contact_sql_view.1176380581.txt.gz · Last modified: 2007/04/12 12:23 by Luud