Name

rebuild_members — re-interpolate the MEMBERS table for an individual

Synopsis

int rebuild_members ( sname);  
char(3) sname ;
 

Input

sname

A Sname.

Description

This procedure re-interpolates the MEMBERS table for a specific individual. The CENSUS table provides the data necessary to rebuild MEMBERS.

Caution

rebuild_members is something of a misnomer because the program assumes that MEMBERS already contains the (non-absent) CENSUS rows for the individual.[276]

Example

SELECT rebuild_members('FOO');



[276] Copying an individual's CENSUS rows into MEMBERS can be accomplished with code like the following:

BEGIN;
-- First remove existing census-like rows for individual "FOO"
DELETE FROM members 
       WHERE members.sname = 'FOO'
             AND members.origin <> 'I';
-- Then copy rows from CENSUS to MEMBERS.
INSERT INTO members (sname, date, grp, origin, interp)
  SELECT census.sname, census.date, census.grp, census.status, 0
    FROM census
    WHERE census.sname = 'FOO'
          AND census.status <> 'A';
COMMIT;


Page generated: 2016-07-22T23:08:47-04:00.