5.2.2 Table 2: t_sca
Comment: Table for supplementary phone questionnaire for scallop fishers in the diary survey. Currently for the Central region only.
Attributes Data Type Null? Comment
resp integer No Unique 4-digit number for each respondent to the survey.
area_sca character(4,1) No Area made trips to for scallops:
GLDB = Golden Bay,
TASB = Tasman Bay (incl. Croisilles Harbour),
PELO = Pelorus Sound,
QCSD = Queen Charlotte Sound (incl. Tory Channel),
CORO
= Coromandel Peninsula,
STEW = Stewart Island,
ELSW = Elsewhere.
no_trips smallint Number of SCA trips to area.
limit smallint Number of trips to area caught limit bag of 50 SCA .
avg_ctch smallint Average SCA catch this season on trips to area.
survey character(5,1) No Survey code, 3 chars for region + 2 numeric for yr.
Creator: dba
Indices: UNIQUE t_sca_pk ON (survey, resp, area_sca)
5.2.3 Table 3: t_response
Comment: Table of response status for those considered valid diarists, eg if they went fishing or not etc
Attributes Data Type Null? Comment
key longinteger No Primary key generated from a counter.
zonel smallint No 1-digit code to denote the zone the respondent lives in.
resp longinteger No Unique 4-digit number for each respondent to the survey.
year_s integer 4 digit year of start of the quarter or other time period
month_s smallint Month start (range 1-12)
day_s smallint Day start
year_f integer 4 digit year finish
month_f smallint Month finish (range 1-12)
day_f smallint Day finish
quarter smallint quarter of the year
(range 1-4)
response smallint response status for the quarter or other time period, refer to Appendix 3 of the database documentation for the codes.
weighting decimal(11,9) weighting factor, used for scaling up catches.
survey character(5,1) Survey code, 3 chars for region + 2 numeric for yr.
Creator: dba
Indices: PRIMARY KEY BTREE ON (key)
UNIQUE t_response_pk ON (resp, survey, year_s, month_s)
NORMAL (2, 15) response_survey_ndx ON (survey)
NORMAL (2, 15) response_resp_ndx ON (resp)
5.2.4 Table.4: t_effort
Comment: This table contains diarist's data on their effort for one fishing trip as a recreational angler.
Attributes Data Type Null? Comment
trip_no longinteger No Unique sequential for each trip in the survey.
resp integer Unique 4-digit number for each respondent to the survey.
resp_status smallint Status of diarist:1=fishing; 2=no fishing; 3=no response; 4=withdrew; 5=not included; 6=deceased
quarter character(1,1) 3 month period of the year.
fish_date character(8,1) Date of the fishing trip, format as punched .
trip_date date(4) Date of the fishing trip.
zonel smallint 1-digit code to denote the zone the respondent lives in.
resp_locn character(30,1) Where the respondents residence is located.
fish_zone smallint 2-digit code for the zone fished in during a fishing trip (refer t_zonef_codes and Appendix 4 of the database documentation).
CRAarea character(1,1) Rock Lobster area code, A thru H correspond to QMA's
CRA1 thru CRA5, & CRA7 thru 9 respectively .
smatch '[A-H]'
SCAarea smallint Scallop area, refer to Appendix 4 of the database documentation for areas.
fish_loc character(3,1) Locality code, for where fished, (refer t_locality_codes).
locality character(60,1) Locality name, where fished as recorded by the diarist
qma smallint Quota Management Area
hrs decimal(4,1) Time (decimal hours) spent fishing during the trip.
ramp character(3,1) ramp code for Boat departure point eg ramp or marina, refer t_ramp_codes
target_sp character(35,1) List of 3-char codes (separated by commas) for each of the species targetted by the angler during the fishing trip (see rdb:curr_spp).
fish_meth character(2,1) 2 char code for the type of fishing method used in a fishing trip (refer t_fishmeth_codes)
meth_type smallint Code to identify which fishing method coding series was used (refer t_fishmeth_codes)
boat smallint 1-digit code for type of boat used in a fishing trip, refer to Appendix 3 of the database documentation.
group_size smallint Number of people in the fishing group
survey character(5,1) No Survey code, 3 chars for region + 2 numerics for yr refer t_survey_codes.
comments character(70,1)
Creator: dba
Referential: INVALID BOAT CODES (boat) INSERT t_boat_codes (boat)
INVALID FISH_LOC (fish_loc) INSERT t_locality_codes (fish_loc)
INVALID RAMP (ramp) INSERT t_ramp_codes (ramp)
INVALID SURVEY (survey) INSERT t_survey_codes (survey)
INVALID FISH ZONE (fish_zone, survey) INSERT t_zonef_codes (fish_zone, survey)
INVALID FISH METH (fish_meth, meth_type) INSERT t_fishmeth_codes (fish_meth, meth_type)
Indices: UNIQUE effort_indx ON (trip_no)
NORMAL (2, 15) eff_resp_indx ON (resp)
NORMAL (2, 15) eff_zonl_indx ON (zonel)
NORMAL (2, 15) eff_zonf_indx ON (fish_zone)
NORMAL (2, 15) eff_gear_indx ON (fish_meth)
NORMAL (2, 15) eff_boat_indx ON (boat)
NORMAL (2, 15) eff_target_indx ON (target_sp)
NORMAL (2, 15) eff_survey_indx ON (survey)
NORMAL (2, 15) eff_date_indx ON (trip_date)
5.2.5 Table 5: t_catch
Comment: This table contains diarist's data on the catch from a fishing trip.
Attributes Data Type Null? Comment
trip_no longinteger No Unique sequential for each trip in the survey.
species character(3,1) No 3-char code for species caught, refer rdb:curr_spp.
no_caught integer Number of the species caught during the trip.
weight decimal(4,1) Weight (decimal kg) of the species caught.
survey character(5,1) No Survey code, 3 chars for region + 2 numerics for yr
Creator: dba
Referential: NO SUCH TRIP (trip_no) INSERT t_effort (trip_no)
t_catch invalid species (species) INSERT
{/data/db2/rdb,neptune.niwa.cri.nz,rdb} :species_master (code)
Indices: NORMAL (2, 15) ctch_spp_indx ON (species)
NORMAL (2, 15) ctch_survey_ndx ON (survey)
UNIQUE ctch_indx ON (trip_no, species)
5.2.6 Table 6: t_lgth
Comment: Diarist's fish length measurements.
Attributes Data Type Null? Comment
trip_no longinteger Trip number.
resp longinteger No Respondent number.
trip_date date(4) Date of the fishing trip.
species character(3,1) No 3-char species code, refer rdb:curr_spp.
lgth integer No Length of the fish in cm.
sex character(1,1) Sex code: 1=Male, 2=Female.
no_fish integer Number of fish.
survey character(5,1) No Survey code, 3 chars for region + 2 numerics for yr
Creator: dba
Indices: NORMAL (2, 15) lgth_date_ndx ON (trip_date)
NORMAL (2, 15) lgth_resp_ndx ON (resp)