0% found this document useful (0 votes)
25 views2 pages

Table Name: Eventrequest Statement

The document defines a table called EventRequest that will store information about event requests. The table has 11 columns to track details like the event number, date, facility, customer, estimated cost, audience size, and more. It includes constraints to ensure required fields are filled and that values are within the expected ranges.

Uploaded by

Hareem Aslam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views2 pages

Table Name: Eventrequest Statement

The document defines a table called EventRequest that will store information about event requests. The table has 11 columns to track details like the event number, date, facility, customer, estimated cost, audience size, and more. It includes constraints to ensure required fields are filled and that values are within the expected ranges.

Uploaded by

Hareem Aslam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Table Name: EventRequest

Statement:
CREATE TABLE EventRequest

( EventNo VARCHAR2(8) CONSTRAINT ErqEventNoRequired NOT NULL,

DateHeld DATE CONSTRAINT ErqDateHeldRequired NOT NULL,

DateReq DATE CONSTRAINT ErqDateReqRequired NOT NULL,

FacNo VARCHAR(8) CONSTRAINT ErqFacNoRequired NOT NULL,

CustNo VARCHAR(8) CONSTRAINT ErqCustNoRequired NOT NULL,

DateAuth DATE ,

Status CHAR(10) CONSTRAINT ErqStatusRequired NOT NULL, -- {Approved, Pending,


Denied}

EstCost DECIMAL(10,2) CONSTRAINT ErqEstCostRequired NOT NULL, -- Max $99999.99

EstAudience DECIMAL(10) CONSTRAINT ErqEstAudienceRequired NOT NULL, -- Max 99999 people

BudNo VARCHAR2(8) ,

CONSTRAINT PK_EVENT_REQUEST PRIMARY KEY (EventNo),

CONSTRAINT FK_EVENT_REQUEST_CUSTOMER FOREIGN KEY (CustNo) REFERENCES Customer


(CustNo),

CONSTRAINT FK_EVENT_REQUEST_FACILITY FOREIGN KEY (FacNo) REFERENCES Facility (FacNo),

CONSTRAINT EVENT_REQUEST_STATUS CHECK (Status IN ('Approved', 'Pending', 'Denied')),

CONSTRAINT EVENT_REQUEST_AUDIENCE_POS CHECK (EstAudience > 0)

);
Screen Snapshot:

You might also like