number_of_film_references
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.
To retrieve the number of references to a particular film.
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';
Version 2.5
Still in use
= 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';