Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i asked for this problem and i recived this solution and it's not working, I need another one please - Making a construction table Building

i asked for this problem and i recived this solution and it's not working, I need another one please
image text in transcribed
image text in transcribed
- Making a construction table Building table: CREATE TABLE (Bu Code INT PRIMARY KEY, Bu Name VARCHAR(255), Bu Location VARCHAR(255)); - Creating Room table - Creating the Room Class table. CREATE TABLE Room (Room Code INT PRIMARY KEY, Room Name VARCHAR(255), Bu Code INT, FOREIGN KEY (Bu Code) REFERENCES Building(Bu Code) Create the Room Class table by entering the following information: Room Class (Room Code INT, Class Code INT, Time VARCHAR(255), FOREIGN KEY (Room Code) REFERENCES Room(Room Code), FOREIGN KEY (Class Code) REFERENCES Class(Class Code) Make a table called Class with the following columns: Class Code (INT PRIMARY KEY), Class Name (VARCHAR(255), Room Code (INT), Foreign Key (Room Code) REFERENCES Room(Room Code); \begin{tabular}{|l|l|} \hline \multicolumn{2}{|c|}{ Class } \\ \hline PK & Class_Code \\ FK & Class_Name \\ Room_Code \\ \hline \end{tabular}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2022 Grenoble France September 19 23 2022 Proceedings Part 4 Lnai 13716

Authors: Massih-Reza Amini ,Stephane Canu ,Asja Fischer ,Tias Guns ,Petra Kralj Novak ,Grigorios Tsoumakas

1st Edition

3031264118, 978-3031264115

More Books

Students also viewed these Databases questions