SlideShare a Scribd company logo
1 of 1
Download to read offline
SQL(workbench): Write a script that contains the CREATE TABLE statements needed to
implement the following design:
(I've seen others on Chegg, but they don't work)
Solution
create database EX CREATE TABLE members(member_id int NOT NULL, first_name
varchar(60), last_name varchar(60), Address varchar(100), City varchar(40), City varchar(20),
PRIMARY KEY (member_id)) CREATE TABLE groups(group_id int NOT NULL,
group_name varchar(60), PRIMARY KEY (group_id)) CREATE TABLE members_groups(
member_id int, group_id int, FOREIGN KEY (member_id) REFERENCES
members(member_id), FOREIGN KEY (group_id) REFERENCES groups(group_id)) TO
DROP TABLES ----- DROP TABLE table_name

More Related Content

More from donohovalentinj6

Sympatric speciation is _____.initiated by the appearance of a geogr.pdf
Sympatric speciation is _____.initiated by the appearance of a geogr.pdfSympatric speciation is _____.initiated by the appearance of a geogr.pdf
Sympatric speciation is _____.initiated by the appearance of a geogr.pdfdonohovalentinj6
 
What is the evolutionary advantage of an exoskeleton A. it waterpro.pdf
What is the evolutionary advantage of an exoskeleton  A. it waterpro.pdfWhat is the evolutionary advantage of an exoskeleton  A. it waterpro.pdf
What is the evolutionary advantage of an exoskeleton A. it waterpro.pdfdonohovalentinj6
 
What is the probability that 5 out of 7 offspring in a monohybrid F2.pdf
What is the probability that 5 out of 7 offspring in a monohybrid F2.pdfWhat is the probability that 5 out of 7 offspring in a monohybrid F2.pdf
What is the probability that 5 out of 7 offspring in a monohybrid F2.pdfdonohovalentinj6
 
What are the characteristics of lifeSolutionAnswerChatac.pdf
What are the characteristics of lifeSolutionAnswerChatac.pdfWhat are the characteristics of lifeSolutionAnswerChatac.pdf
What are the characteristics of lifeSolutionAnswerChatac.pdfdonohovalentinj6
 
What all does the SHOW statement do in MySQLSolutionAs the co.pdf
What all does the SHOW statement do in MySQLSolutionAs the co.pdfWhat all does the SHOW statement do in MySQLSolutionAs the co.pdf
What all does the SHOW statement do in MySQLSolutionAs the co.pdfdonohovalentinj6
 
Using MATLAB (code must be written for MATLAB) and the concept of Ho.pdf
Using MATLAB (code must be written for MATLAB) and the concept of Ho.pdfUsing MATLAB (code must be written for MATLAB) and the concept of Ho.pdf
Using MATLAB (code must be written for MATLAB) and the concept of Ho.pdfdonohovalentinj6
 
three fossils are found in undisturbed layers of rock, or strata. Fo.pdf
three fossils are found in undisturbed layers of rock, or strata. Fo.pdfthree fossils are found in undisturbed layers of rock, or strata. Fo.pdf
three fossils are found in undisturbed layers of rock, or strata. Fo.pdfdonohovalentinj6
 
Use the rank correlation coefficient to test for a correlation betwe.pdf
Use the rank correlation coefficient to test for a correlation betwe.pdfUse the rank correlation coefficient to test for a correlation betwe.pdf
Use the rank correlation coefficient to test for a correlation betwe.pdfdonohovalentinj6
 
Think about what you now know about project delivery systems. Are th.pdf
Think about what you now know about project delivery systems. Are th.pdfThink about what you now know about project delivery systems. Are th.pdf
Think about what you now know about project delivery systems. Are th.pdfdonohovalentinj6
 
The brain stem is the link between what two parts What two structur.pdf
The brain stem is the link between what two parts  What two structur.pdfThe brain stem is the link between what two parts  What two structur.pdf
The brain stem is the link between what two parts What two structur.pdfdonohovalentinj6
 
Since 1942, Ernst Mayr defined species as populations that can re.pdf
Since 1942, Ernst Mayr defined species as populations that can re.pdfSince 1942, Ernst Mayr defined species as populations that can re.pdf
Since 1942, Ernst Mayr defined species as populations that can re.pdfdonohovalentinj6
 
Question Help More Info The beginning inventory numbers are as follow.pdf
Question Help More Info The beginning inventory numbers are as follow.pdfQuestion Help More Info The beginning inventory numbers are as follow.pdf
Question Help More Info The beginning inventory numbers are as follow.pdfdonohovalentinj6
 
please answer to all of the questions and write neatly. Other exer.pdf
please answer to all of the questions and write neatly. Other exer.pdfplease answer to all of the questions and write neatly. Other exer.pdf
please answer to all of the questions and write neatly. Other exer.pdfdonohovalentinj6
 
On anatomy atlases org or in your text study the process of spermatog.pdf
On anatomy atlases org or in your text study the process of spermatog.pdfOn anatomy atlases org or in your text study the process of spermatog.pdf
On anatomy atlases org or in your text study the process of spermatog.pdfdonohovalentinj6
 
Multiple choice questions please help.Janzen restored the pasturela.pdf
Multiple choice questions please help.Janzen restored the pasturela.pdfMultiple choice questions please help.Janzen restored the pasturela.pdf
Multiple choice questions please help.Janzen restored the pasturela.pdfdonohovalentinj6
 
Nitrogen is key to cellular growth. It is usually acquired from the a.pdf
Nitrogen is key to cellular growth. It is usually acquired from the a.pdfNitrogen is key to cellular growth. It is usually acquired from the a.pdf
Nitrogen is key to cellular growth. It is usually acquired from the a.pdfdonohovalentinj6
 
Let S1 and S2 be the matrices of the symmetry with respect to the ve.pdf
Let S1 and S2 be the matrices of the symmetry with respect to the ve.pdfLet S1 and S2 be the matrices of the symmetry with respect to the ve.pdf
Let S1 and S2 be the matrices of the symmetry with respect to the ve.pdfdonohovalentinj6
 
is a set of logically related ideas and symbols that represent what w.pdf
is a set of logically related ideas and symbols that represent what w.pdfis a set of logically related ideas and symbols that represent what w.pdf
is a set of logically related ideas and symbols that represent what w.pdfdonohovalentinj6
 
2) A group of scientists is studying two populations of elephant.pdf
2) A group of scientists is studying two populations of elephant.pdf2) A group of scientists is studying two populations of elephant.pdf
2) A group of scientists is studying two populations of elephant.pdfdonohovalentinj6
 
I have a CSI case to prosecute for Biology and I need to find the co.pdf
I have a CSI case to prosecute for Biology and I need to find the co.pdfI have a CSI case to prosecute for Biology and I need to find the co.pdf
I have a CSI case to prosecute for Biology and I need to find the co.pdfdonohovalentinj6
 

More from donohovalentinj6 (20)

Sympatric speciation is _____.initiated by the appearance of a geogr.pdf
Sympatric speciation is _____.initiated by the appearance of a geogr.pdfSympatric speciation is _____.initiated by the appearance of a geogr.pdf
Sympatric speciation is _____.initiated by the appearance of a geogr.pdf
 
What is the evolutionary advantage of an exoskeleton A. it waterpro.pdf
What is the evolutionary advantage of an exoskeleton  A. it waterpro.pdfWhat is the evolutionary advantage of an exoskeleton  A. it waterpro.pdf
What is the evolutionary advantage of an exoskeleton A. it waterpro.pdf
 
What is the probability that 5 out of 7 offspring in a monohybrid F2.pdf
What is the probability that 5 out of 7 offspring in a monohybrid F2.pdfWhat is the probability that 5 out of 7 offspring in a monohybrid F2.pdf
What is the probability that 5 out of 7 offspring in a monohybrid F2.pdf
 
What are the characteristics of lifeSolutionAnswerChatac.pdf
What are the characteristics of lifeSolutionAnswerChatac.pdfWhat are the characteristics of lifeSolutionAnswerChatac.pdf
What are the characteristics of lifeSolutionAnswerChatac.pdf
 
What all does the SHOW statement do in MySQLSolutionAs the co.pdf
What all does the SHOW statement do in MySQLSolutionAs the co.pdfWhat all does the SHOW statement do in MySQLSolutionAs the co.pdf
What all does the SHOW statement do in MySQLSolutionAs the co.pdf
 
Using MATLAB (code must be written for MATLAB) and the concept of Ho.pdf
Using MATLAB (code must be written for MATLAB) and the concept of Ho.pdfUsing MATLAB (code must be written for MATLAB) and the concept of Ho.pdf
Using MATLAB (code must be written for MATLAB) and the concept of Ho.pdf
 
three fossils are found in undisturbed layers of rock, or strata. Fo.pdf
three fossils are found in undisturbed layers of rock, or strata. Fo.pdfthree fossils are found in undisturbed layers of rock, or strata. Fo.pdf
three fossils are found in undisturbed layers of rock, or strata. Fo.pdf
 
Use the rank correlation coefficient to test for a correlation betwe.pdf
Use the rank correlation coefficient to test for a correlation betwe.pdfUse the rank correlation coefficient to test for a correlation betwe.pdf
Use the rank correlation coefficient to test for a correlation betwe.pdf
 
Think about what you now know about project delivery systems. Are th.pdf
Think about what you now know about project delivery systems. Are th.pdfThink about what you now know about project delivery systems. Are th.pdf
Think about what you now know about project delivery systems. Are th.pdf
 
The brain stem is the link between what two parts What two structur.pdf
The brain stem is the link between what two parts  What two structur.pdfThe brain stem is the link between what two parts  What two structur.pdf
The brain stem is the link between what two parts What two structur.pdf
 
Since 1942, Ernst Mayr defined species as populations that can re.pdf
Since 1942, Ernst Mayr defined species as populations that can re.pdfSince 1942, Ernst Mayr defined species as populations that can re.pdf
Since 1942, Ernst Mayr defined species as populations that can re.pdf
 
Question Help More Info The beginning inventory numbers are as follow.pdf
Question Help More Info The beginning inventory numbers are as follow.pdfQuestion Help More Info The beginning inventory numbers are as follow.pdf
Question Help More Info The beginning inventory numbers are as follow.pdf
 
please answer to all of the questions and write neatly. Other exer.pdf
please answer to all of the questions and write neatly. Other exer.pdfplease answer to all of the questions and write neatly. Other exer.pdf
please answer to all of the questions and write neatly. Other exer.pdf
 
On anatomy atlases org or in your text study the process of spermatog.pdf
On anatomy atlases org or in your text study the process of spermatog.pdfOn anatomy atlases org or in your text study the process of spermatog.pdf
On anatomy atlases org or in your text study the process of spermatog.pdf
 
Multiple choice questions please help.Janzen restored the pasturela.pdf
Multiple choice questions please help.Janzen restored the pasturela.pdfMultiple choice questions please help.Janzen restored the pasturela.pdf
Multiple choice questions please help.Janzen restored the pasturela.pdf
 
Nitrogen is key to cellular growth. It is usually acquired from the a.pdf
Nitrogen is key to cellular growth. It is usually acquired from the a.pdfNitrogen is key to cellular growth. It is usually acquired from the a.pdf
Nitrogen is key to cellular growth. It is usually acquired from the a.pdf
 
Let S1 and S2 be the matrices of the symmetry with respect to the ve.pdf
Let S1 and S2 be the matrices of the symmetry with respect to the ve.pdfLet S1 and S2 be the matrices of the symmetry with respect to the ve.pdf
Let S1 and S2 be the matrices of the symmetry with respect to the ve.pdf
 
is a set of logically related ideas and symbols that represent what w.pdf
is a set of logically related ideas and symbols that represent what w.pdfis a set of logically related ideas and symbols that represent what w.pdf
is a set of logically related ideas and symbols that represent what w.pdf
 
2) A group of scientists is studying two populations of elephant.pdf
2) A group of scientists is studying two populations of elephant.pdf2) A group of scientists is studying two populations of elephant.pdf
2) A group of scientists is studying two populations of elephant.pdf
 
I have a CSI case to prosecute for Biology and I need to find the co.pdf
I have a CSI case to prosecute for Biology and I need to find the co.pdfI have a CSI case to prosecute for Biology and I need to find the co.pdf
I have a CSI case to prosecute for Biology and I need to find the co.pdf
 

Recently uploaded

dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningMarc Dusseiller Dusjagr
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfPondicherry University
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
Philosophy of china and it's charactistics
Philosophy of china and it's charactisticsPhilosophy of china and it's charactistics
Philosophy of china and it's charactisticshameyhk98
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsNbelano25
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfstareducators107
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 

Recently uploaded (20)

dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learning
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Philosophy of china and it's charactistics
Philosophy of china and it's charactisticsPhilosophy of china and it's charactistics
Philosophy of china and it's charactistics
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 

SQL(workbench) Write a script that contains the CREATE TABLE statem.pdf

  • 1. SQL(workbench): Write a script that contains the CREATE TABLE statements needed to implement the following design: (I've seen others on Chegg, but they don't work) Solution create database EX CREATE TABLE members(member_id int NOT NULL, first_name varchar(60), last_name varchar(60), Address varchar(100), City varchar(40), City varchar(20), PRIMARY KEY (member_id)) CREATE TABLE groups(group_id int NOT NULL, group_name varchar(60), PRIMARY KEY (group_id)) CREATE TABLE members_groups( member_id int, group_id int, FOREIGN KEY (member_id) REFERENCES members(member_id), FOREIGN KEY (group_id) REFERENCES groups(group_id)) TO DROP TABLES ----- DROP TABLE table_name