0% found this document useful (0 votes)
67 views

Database Exercise: Primary KEY Field Name Data Type

1. Create an Access database called BDDH_Database with 5 tables: Collar, Survey, Assay, Lithology, tempResults. 2. Add fields and validation rules to the Collar, Survey, Assay, and Lithology tables as specified. Change number fields to double format with 2 decimal places. 3. Copy data from 5 Excel files into the corresponding tables. 4. Update Au_ppm and Ag_ppm in Assay table using values from tempResults table with an update query. 5. Create a select query showing average values for holes drilled from Jan 1, 2018 to Apr 25, 2018.

Uploaded by

Irvin Samaniego
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
67 views

Database Exercise: Primary KEY Field Name Data Type

1. Create an Access database called BDDH_Database with 5 tables: Collar, Survey, Assay, Lithology, tempResults. 2. Add fields and validation rules to the Collar, Survey, Assay, and Lithology tables as specified. Change number fields to double format with 2 decimal places. 3. Copy data from 5 Excel files into the corresponding tables. 4. Update Au_ppm and Ag_ppm in Assay table using values from tempResults table with an update query. 5. Create a select query showing average values for holes drilled from Jan 1, 2018 to Apr 25, 2018.

Uploaded by

Irvin Samaniego
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

DATABASE EXERCISE

*In general, delete all erroneous entries unless specified

**If data type is Number, change field size to Double, format to Fixed, decimal places to
two (2).

1. Create an Access Database (file name: BDDH_Database) with the following


tables:
a. Collar
b. Survey
c. Assay
d. Lithology
e. tempResults
2. Edit the Collar table with the following fields and corresponding data type

PRIMARY FIELD DATA


KEY NAME TYPE
Yes hole_id Short Text
No y Number
No x Number
No z Number
No max_depth Number
No date_drilled Date/Time

3. Input a field validation rule for the following fields in the Collar table
a. y – between 872,500 to 873,300
b. x – between 493,600 to 494,600
c. z – between 300 to 700
d. max_depth – greater than zero (0)
4. Edit the Survey table with the following fields and corresponding data type

PRIMARY FIELD DATA


KEY NAME TYPE
No hole_id Short Text
No depth Number
No azimuth Number
No dip Number

5. Input a field validation rule for the following fields in the Survey table
a. depth – greater than or equal to zero
b. azimuth – between 0 and 360
c. dip – between -90 and 90
6. Edit the Assay table with the following fields and corresponding data type

PRIMARY FIELD DATA


EXPRESSION
KEY NAME TYPE
No hole_id Short Text
Yes samp_id Short Text
No depth_from Number
No depth_to Number
No length Calculated depth_to – depth_from
No Au_ppm Number
No Ag_ppm Number
7. Input a field validation rule for the following fields in the Assay table
a. depth_from – greater than or equal to zero (0)
b. depth_to – greater than zero (0)
c. Au_ppm – greater than zero (0)
d. Ag_ppm – greater than zero (0)
8. Input a table validation rule for Assay table: depth_to > depth_from
9. Edit the Lithology table with the following fields and corresponding data type

PRIMARY FIELD NAME DATA


EXPRESSION
KEY TYPE
No hole_id Short Text
No depth_from Number
No depth_to Number
No length Calculated depth_to – depth_from
No litho Short Text
No structure Short Text
No alteration Short Text
No oxidation Short Text
No log_date Date/Time
No logged_by Short Text
No comments Long Text
No relog_date Date/Time
No relog_by Short Text
No relog_comments Long Text

10. Input a field validation rule for the following fields in the Assay table
a. depth_from – greater than or equal to zero (0)
b. depth_to – greater than zero (0)
11. Input a table validation rule for Lithology table: depth_to > depth_from
12. Edit the tempResult table with the following fields and corresponding data type
PRIMARY FIELD NAME DATA
EXPRESSION
KEY TYPE
No samp_id Short Text
No Au_ppm Number
No Ag_ppm Number
13. Copy the data from the following Excel files into the corresponding table

EXCEL FILE TABLE


BALABAG_DH_Collar_20190723.xlsx Collar
BALABAG_DH_Survey_20190723.xlsx Survey
BALABAG_DH_Assay_20190723.xlsx Assay
BALABAG_DH_GeologicLog_20190723.xls Lithology
x
AssayResults.xlsx tempResults

14. Update the Au_ppm & Ag_ppm values of the samples within the Assay table
using the values in tempResults using an Update Query. Save the Update
Query.
15. Create a Select Query showing the hole ids, y, x, z, average azimuth, average
dip, average Au_ppm, and average Ag_ppm for holes drilled between January 1,
2018 to April 25, 2018. Save the Select Query.

You might also like