podoc:view_random_photo_sql_view
This is an old revision of the document!
Database View Description of "view_random_photo"
Name
view_random_photo
Description
Purpose
Schema
create view view_random_photo as select photo_version.small_image_path, photo_version.medium_image_path, photo_version.large_image_path from photo, photo_version where photo.identifier=photo_version.photo and photo.identifier=(select cast(random()*count_photos() as integer));
Related tables
Related indexes
Related functions
Related sequences
History
Used first
Version 2.5
Used last
Still in use
Change history
= Version 2.5 =
create view view_random_photo as select small_image_path, medium_image_path, large_image_path from photo where photo.identifier=(select cast(random()*count_photos() as integer));
= Version 2.7 =
drop view view_random_photo; create view view_random_photo as select photo_version.small_image_path, photo_version.medium_image_path, photo_version.large_image_path from photo, photo_version where photo.identifier=photo_version.photo and photo.identifier=(select cast(random()*count_photos() as integer));
podoc/view_random_photo_sql_view.1176458676.txt.gz · Last modified: 2007/04/13 10:04 by Luud