Name ________________________________________________________________ Last 4 digits of PSID_______________
Suppose a student organization wished to "record attendance" at their events by the membership. A single workstation with a wireless internet connection will be used at all of the organization's events for this purpose. Assume there is a
membership database table named membership that already has data loaded for each member. The structure of the
Create a two pass *.asp program named take_attendance.asp to record a member's attendance at an event (i.e., insert a row into the event_attendance table) and update their event_count in the membership table. The program should:
<option value='17'>Habitat for Humanity for Fall 2011
where "17" would be the event_id and "Habitat for Humanity Fall 2011" would be the event_description from a row in the events table. Make the first (i.e., the most recent date) option tag "selected" (i.e., the first option tag has the "selected" attribute).
Show the code for: (a) Pass 1; (b) Pass2; and (c) the main routine. Perform NO data edits in Pass 1.
membership
events
event_attendance
member_id bigint identity (1,1),
psid bigint, [this is a 7 digit Peoplesoft ID]
first_name varchar(30),
last_name varchar(30),
email varchar(60),
joined_year int,
joined_month int,
joined_day int,
address1 varchar(40),
address2 varchar(40),
event_count int,
city varchar(25),
state varchar(2),
zip varchar(5),
phone varchar(10)
PRIMARY KEY (member_id)
event_id bigint identity (1,1),
event_description varchar(30),
event_year int,
event_month int,
event_day int
PRIMARY KEY (event_id)
attendance_id bigint identity (1,1),
event_id int,
member_psid int,
PRIMARY KEY (attendance_id)
Respond with "Insert Failed" if the task fails, else respond "Recorded your attendance data -- OK".
Respond with "Update Failed" if the task fails, else respond "Counted your the attendance -- OK".