podoc:number_of_film_references_sql_function
Database Function Description of "number_of_film_references"
Name
number_of_film_references
Description
Counts the number of references for a particular film.
Tentative (is this correct?): this represents the number of photos in the database captured on the specified film.
Purpose
To retrieve the number of references to a particular film.
Schema
CREATE FUNCTION number_of_film_references(INTEGER) RETURNS BIGINT AS 'select count(photo_tech.identifier) from photo_tech, film where photo_tech.film=film.identifier and film.identifier = $1' LANGUAGE 'sql';
Related tables
History
Used first
Version 2.5
Used last
Still in use
Change history
= Version 2.5 =
CREATE FUNCTION number_of_film_references(INTEGER) RETURNS BIGINT AS 'select count(photo_tech.identifier) from photo_tech, film where photo_tech.film=film.identifier and film.identifier = $1' LANGUAGE 'sql';
podoc/number_of_film_references_sql_function.txt · Last modified: 2007/04/23 14:30 by Luud