podoc:number_of_location_references_sql_function
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
podoc:number_of_location_references_sql_function [2007/04/12 16:25] – Luud | podoc:number_of_location_references_sql_function [2007/04/23 14:31] (current) – Luud | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Database | + | ===== Database |
=== Name === | === Name === | ||
Line 6: | Line 6: | ||
=== Description === | === Description === | ||
+ | |||
+ | Counts the number of references to a particular location. | ||
+ | |||
+ | Tentative (is this correct?): this represents the number of photos in the database captured at the specified location. | ||
=== Purpose === | === Purpose === | ||
+ | |||
+ | To retrieve the number of references to a particular location. | ||
=== Schema === | === Schema === | ||
- | | + | <code sql> |
- | as ' | + | create function number_of_location_references(integer) returns bigint |
- | from photo, location | + | as ' |
- | | + | from photo, location |
- | | + | |
+ | | ||
+ | </ | ||
=== Related tables === | === Related tables === | ||
- | === Related indexes === | + | * [[location sql table|location]] |
- | + | * [[photo sql table|photo]] | |
- | === Related functions === | + | |
- | + | ||
- | === Related views === | + | |
=== History === | === History === | ||
Line 39: | Line 44: | ||
= Version 2.5 = | = Version 2.5 = | ||
- | | + | <code sql> |
- | as ' | + | create function number_of_location_references(integer) returns bigint |
- | from photo, location | + | as ' |
- | | + | from photo, location |
- | | + | |
+ | | ||
+ | </ | ||
podoc/number_of_location_references_sql_function.1176395104.txt.gz · Last modified: 2007/04/12 16:25 by Luud