podoc:view_lens_sql_view
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
podoc:view_lens_sql_view [2007/04/20 16:16] – Luud | podoc:view_lens_sql_view [2007/10/19 20:13] (current) – Luud | ||
---|---|---|---|
Line 17: | Line 17: | ||
s_max_focal_length, | s_max_focal_length, | ||
date_of_purchase, | date_of_purchase, | ||
- | manufacturer.url, | + | manufacturer.url, |
+ | exiftool_lens_id | ||
from lens_type, lens, manufacturer, | from lens_type, lens, manufacturer, | ||
| | ||
Line 92: | Line 93: | ||
date_of_purchase, | date_of_purchase, | ||
manufacturer.url, | manufacturer.url, | ||
+ | from lens_type, lens, manufacturer, | ||
+ | | ||
+ | from focal_length) as t_min_focal_length, | ||
+ | | ||
+ | from focal_length) as t_max_focal_length, | ||
+ | | ||
+ | aperture) as t_min_aperture, | ||
+ | | ||
+ | aperture) as t_max_aperture | ||
+ | where lens_type.manufacturer = manufacturer.identifier | ||
+ | and lens_type.identifier = lens.type | ||
+ | and lens_type.min_focal_length = t_min_focal_length.identifier | ||
+ | and lens_type.max_focal_length = t_max_focal_length.identifier | ||
+ | and lens_type.min_aperture = t_min_aperture.identifier | ||
+ | and lens_type.max_aperture = t_max_aperture.identifier | ||
+ | and lens.access_rights = access_type.identifier | ||
+ | order by manufacturer.name, | ||
+ | </ | ||
+ | |||
+ | = Version 2.34 = | ||
+ | |||
+ | <code sql> | ||
+ | drop view view_lens; | ||
+ | |||
+ | create view view_lens as | ||
+ | select lens.identifier, | ||
+ | s_min_aperture, | ||
+ | s_max_focal_length, | ||
+ | date_of_purchase, | ||
+ | manufacturer.url, | ||
+ | exiftool_lens_id | ||
from lens_type, lens, manufacturer, | from lens_type, lens, manufacturer, | ||
| |
podoc/view_lens_sql_view.1177085761.txt.gz · Last modified: 2007/04/20 16:16 by Luud