Name (please print)____________________________ last 4 digits of Student Number______________
Signature______________________________________disc-nt userid _________________
1. (50 points) An architectural firm maintains a database of architectural project data. A project table contains the descriptive data for each project. Assume the project table has:
project_id int not null,
project_name varchar(30) not null,
primary key (project_id)
Further, there is a table of documents called doc_table that contains the information related to where the documents for a project are stored. Specifically, doc_table has:
project_id int not null,
doc_num int IDENTITY (1,1),
doc_type char(1) not null, ["D"=drawing, "R"=report, "C"=correspondence, "M"=memo]
doc_desc varchar(30) not null,
doc_file_name varchar(60),
doc_date varchar(30),
primary key (project_id,doc_num)
Write an insert program for adding new documents to a project. This will be a three step (pass) process:
2. (50 points) Using the data in the doc_table above, write an asp program that shows the entire contents of the table ordered: first by doc_type in ascending order, then by project_id in ascending order, then by doc_num in ascending order. DO NOT INCLUDE project_name from the project table. The data should be in a 1 pixel bordered table with 6 columns: document type, project id, document number, document description, document filename, document date.