0% found this document useful (0 votes)
3 views1 page

SQL CODE

The document provides SQL code for creating various tables related to a church management system, including Service, Event, Facility, Report, Pastor, Member, Donation, Group, Ministry, and Volunteer. Each table is defined with relevant fields such as IDs, names, dates, and descriptions. This structure is designed to manage and organize information effectively within the church context.

Uploaded by

Ej Soriano
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)
3 views1 page

SQL CODE

The document provides SQL code for creating various tables related to a church management system, including Service, Event, Facility, Report, Pastor, Member, Donation, Group, Ministry, and Volunteer. Each table is defined with relevant fields such as IDs, names, dates, and descriptions. This structure is designed to manage and organize information effectively within the church context.

Uploaded by

Ej Soriano
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/ 1

ELOIENAI JOHN S.

SORIANO
BTVT Ed - 2C

SQL CODE/MAPPING
1.SERVICE
CREATE TABLE Service (
ServiceID INT PRIMARY KEY,
ServiceName VARCHAR(255),
ServiceDate DATE,
ServiceTime TIME
);

CREATE TABLE Event (


EventID INT PRIMARY KEY,
EventName VARCHAR(255),
EventDate DATE,
EventTime TIME
);

CREATE TABLE Facility (


FacilityID INT PRIMARY KEY,
FacilityName VARCHAR(255),
FacilityDescription TEXT,
FacilityCapacity INT(255)
);

CREATE TABLE Report (


ReportID INT PRIMARY KEY,
ReportType VARCHAR(255),
ReportDate DATE,
ReportDetails TEXT
);

CREATE TABLE Pastor (


PastorID INT PRIMARY KEY,
Name VARCHAR(255),
ContactNumber INT(11),
Role VARCHAR(255)
);

CREATE TABLE Member (


MemberID INT PRIMARY KEY,
Name VARCHAR(255),
MemberStatus VARCHAR(255),
ContactInformation VARCHAR(255)
);

CREATE TABLE Donation (


DonationID INT PRIMARY KEY,
DonorName VARCHAR(255),
DonationAmount INT(255),
DonationDate DATE
);

CREATE TABLE Group (


GroupID INT PRIMARY KEY,
GroupName VARCHAR(255),
GroupMembers TEXT,
GroupLeader VARCHAR(255)
);

CREATE TABLE Ministry (


MinistryID INT PRIMARY KEY,
MinistryName VARCHAR(255),
MinistryDescription TEXT,
MinistryLeader VARCHAR(255)
);

CREATE TABLE Volunteer (


VolunteerID INT PRIMARY KEY,
VolunteerName VARCHAR(255),
ContactNumber INT(11),
VolunteerRole VARCHAR(255)
);

You might also like