Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1.Using a view, create a new table that has all the information for ND. **Using

ID: 3718081 • Letter: 1

Question

1.Using a view, create a new table that has all the information for ND.

**Using the ECCS database structure, write the SQL code to provide the result set requested.

tblCompanies

CoID

AutoNumber

CoName

Short Text

CoAdd

Short Text

City

Short Text

St

Short Text

Zip

Short Text

CoPhone

Short Text

CoTollFree

Short Text

CoFax

Short Text

CoEmail

Hyperlink

CoComment

Short Text

EDate

Date/Time

EBy

Short Text

MDate

Date/Time

MBy

Short Text

tblContacts

ContactID

AutoNumber

CoID

Number

FName

Short Text

LName

Short Text

SSN

Short Text

Title

Short Text

MContact

Yes/No

DPhone

Short Text

DCell

Short Text

DEmail

Hyperlink

CEBy

Short Text

CEDate

Date/Time

CMBy

Short Text

CMDate

Date/Time

tblEntries

EID

AutoNumber

ContactID

Number

Drug

Date/Time

OSHA

Date/Time

MSHA

Date/Time

ReInstate

Date/Time

EEBy

Short Text

EEDate

Date/Time

EMBy

Short Text

EMDate

Date/Time

tblStats

SID

AutoNumber

CompID

Number

SYear

Short Text

Injuries

Number

DaysLost

Number

Deaths

Number

OSHAIncidents

Number

ESBy

Short Text

ESDate

Date/Time

ESMBy

Short Text

ESMDate

Date/Time

tblCompanies

CoID

AutoNumber

CoName

Short Text

CoAdd

Short Text

City

Short Text

St

Short Text

Zip

Short Text

CoPhone

Short Text

CoTollFree

Short Text

CoFax

Short Text

CoEmail

Hyperlink

CoComment

Short Text

EDate

Date/Time

EBy

Short Text

MDate

Date/Time

MBy

Short Text

Explanation / Answer

You can create a new table with the view with the following query.

CREATE VIEW testView
AS
SELECT * INTO newTable FROM testView