create an ERD  with oracle data modeler  DROP TABLE gym_user; DROP TABLE administration; DROP TABLE FAQ; DROP TABLE feedback; DROP TABLE

create an ERD  with oracle data modeler 

DROP TABLE gym_user;
DROP TABLE administration;
DROP TABLE FAQ;
DROP TABLE feedback;
DROP TABLE schedule;
DROP TABLE crowd_meter;

CREATE TABLE gym_user (
user_id INT(8) NOT NULL,
fname VARCHAR(15) NOT NULL,
lname VARCHAR(15) NOT NULL,
email VARCHAR(50) NOT NULL,
address VARCHAR(400) NOT NULL,
phone_num VARCHAR(12) NOT NULL,
DOB DATE NOT NULL,
PRIMARY KEY (user_id)
) ENGINE=InnoDB;

CREATE TABLE administration (
username VARCHAR(30) PRIMARY KEY,
fname VARCHAR(15) NOT NULL,
lname VARCHAR(15) NOT NULL,
email VARCHAR(50) NOT NULL,
password VARCHAR(255) NOT NULL
) ENGINE=InnoDB;

CREATE TABLE FAQ (
question VARCHAR(255) PRIMARY KEY,
answer VARCHAR(255) NOT NULL
) ENGINE=InnoDB;

CREATE TABLE feedback (
feedback_id INT PRIMARY KEY,
feedback_text VARCHAR(255) NOT NULL,
feedback_date DATE NOT NULL
) ENGINE=InnoDB;

CREATE TABLE schedule (
schedule_id INT PRIMARY KEY,
duration INT NOT NULL,
announcement_text TEXT NOT NULL
) ENGINE=InnoDB;

CREATE TABLE crowd_meter (
current INT(3) PRIMARY KEY,
user_id INT(8) NOT NULL,
time_entery VARCHAR(4),
FOREIGN KEY (user_id) REFERENCES gym_user(user_id)
) ENGINE=InnoDB;

INSERT INTO gym_user (user_id, fname, lname, email, address, phone_num, DOB) VALUES
(‘87959403’, ‘Travis’, ‘James’, ‘[email protected]’, ‘203 Kimberly Rd, Winchester VA’, ‘540-533-6738’, ‘2003-03-01’);

INSERT INTO crowd_meter (current, user_id, time_entery) VALUES
(‘1’, ‘87959403’, ‘1300’);

INSERT INTO administration (username, fname, lname, email, password) VALUES
(‘coach.spring’, ‘Coach’, ‘Spring’, ‘[email protected]’, ‘securepass456’);

INSERT INTO FAQ (question, answer) VALUES
(‘Is the Gym only for student athletes?’, ‘No the gym is for everyone’);

INSERT INTO schedule (schedule_id, duration, announcement_text) VALUES
(‘1’, ‘1’, ‘*Special Announcement: Due to the unforeseen snowstorm the gym along with the school will be closed.’);

INSERT INTO feedback (feedback_id, feedback_text, feedback_date) VALUES
(‘1’, ‘Great practice today!’, ‘2025-03-20’);

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

SQL help Exercise 8: Write your SQL statement in a file named CIS276DA_Lesson3Exercise8_MEID.sql. Run the script and export the results to

SQL help Exercise 8: Write your SQL statement in a file named CIS276DA_Lesson3Exercise8_MEID.sql. Run the script and export the results to CIS276DA_Lesson3Exercise8_MEID.csv. Exercise 9: Write your SQL statement in a file named CIS276DA_Lesson3Exercise9_MEID.sql. Run the script and export the results to CIS276DA_Lesson3Exercise9_MEID.csv. Exercise 10: Write your SQL statement in a

SQL Statements Exercise 8: Write your SQL statement in a file named CIS276DA_Lesson3Exercise8_MEID.sql. Run the script and export the results to

SQL Statements Exercise 8: Write your SQL statement in a file named CIS276DA_Lesson3Exercise8_MEID.sql. Run the script and export the results to CIS276DA_Lesson3Exercise8_MEID.csv. Exercise 9: Write your SQL statement in a file named CIS276DA_Lesson3Exercise9_MEID.sql. Run the script and export the results to CIS276DA_Lesson3Exercise9_MEID.csv. Exercise 10: Write your SQL statement in a

An interrupt occurs. Data transfer for the current application completes. Execute kernel function in kernel mode. Transfer execution to

An interrupt occurs. Data transfer for the current application completes. Execute kernel function in kernel mode. Transfer execution to another application. An interrupt occurs. Block the current application. Data transfer for the current application completes. Transfer execution from another application back to the kernel in kernel mode. this are the option give me the

Project 1: Develop Cloud Migration Plan  Step 4: Install AWS Application Discovery Agent  At this point in the migration planning process, you’ve

Project 1: Develop Cloud Migration Plan  Step 4: Install AWS Application Discovery Agent  At this point in the migration planning process, you’ve considered premigration issues, reviewed premigration assessment tools, and familiarized yourself with AWS Application Discovery Services. You are now ready to install and test the AWS Application Discovery Agent.

Discussion: Evaluation of AWS Application Discovery Service

Discussion: Evaluation of AWS Application Discovery Service Contains unread posts Now that you have discussed the data migration and application migration strategies, you will discuss and evaluate AWS Application Discovery Service. You should ensure that you cover the following areas: · What is agent-based discovery? · What is agentless discovery?