podoc:view_client_sql_view
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
podoc:view_client_sql_view [2007/04/13 09:08] – Luud | podoc:view_client_sql_view [2007/04/20 15:39] (current) – Luud | ||
---|---|---|---|
Line 11: | Line 11: | ||
=== Schema === | === Schema === | ||
- | | + | <code sql> |
- | select client.identifier, | + | create view view_client as |
- | from client, users, client_status | + | select client.identifier, |
- | | + | users.first_name, |
- | | + | client.trusted |
- | | + | |
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
=== Related tables === | === Related tables === | ||
Line 23: | Line 27: | ||
* [[client_status sql table|client_status]] | * [[client_status sql table|client_status]] | ||
* [[users sql table|users]] | * [[users sql table|users]] | ||
- | |||
- | === Related indexes === | ||
- | |||
- | === Related functions === | ||
- | |||
- | === Related sequences === | ||
=== History === | === History === | ||
Line 44: | Line 42: | ||
= Version 2.5 = | = Version 2.5 = | ||
- | | + | <code sql> |
- | select client.identifier, | + | create view view_client as |
- | from client, users, client_status | + | select client.identifier, |
- | | + | from client, users, client_status |
- | | + | |
- | order by users.last_name, | + | |
+ | order by users.last_name, | ||
+ | </ | ||
+ | |||
+ | = Version 2.19 = | ||
+ | |||
+ | <code sql> | ||
+ | drop view view_client; | ||
+ | create view view_client as | ||
+ | select client.identifier, | ||
+ | | ||
+ | | ||
+ | from client, users, client_status | ||
+ | where client.client = users.identifier | ||
+ | and client.status = client_status.identifier | ||
+ | order by users.last_name, | ||
+ | </ | ||
podoc/view_client_sql_view.txt · Last modified: 2007/04/20 15:39 by Luud