SlideShare a Scribd company logo
Homework 4
Given the relations below, create the database tables using SQL
DDL (Data Definition Language). Assume the following
attribute data types:
StudentID (integer, primary key)
StudentName (25 characters)
FacultyID (integer, primary key)
FacultyName (25 characters)
CourseID (8 characters, primary key)
DateQualified (date)
SectionNo (integer, primary key)
Semester (7 characters)
STUDENT (
StudentID
, StudentName)
StudentID
StudentName
38214
Alvaro
54907
Letterman
66324
Troy
70542
Myra
……….
FACULTY (
FacultyID
, FacultyName)
FacultyID
FacultyName
1123
Cooper
4237
Burgess
5115
May
……..
COURSE (
CourseID
, CourseName)
CourseID
CourseName
CMIS 320
Relational Database
CMIS 102
Algorithm Design
CMIS 420
Advance Relational Database
CMIS 170
Introduction to XML
CMSC 100
Intro to Computer Science
……..
QUALIFIED (
FacultyID
,
CourseID
, DateQualified)
FacultyID
CourseID
DateQualified
1123
CMIS 102
9/2014
1123
CMIS 170
9/2014
4237
CMIS 420
9/2012
4237
CMIS 320
9/2013
5115
CMIS 102
9/2011
5115
CMIS 170
9/2011
……….
SECTION (
SectionNo
,
Semester
,
CourseID
SectionNo
Semester
CourseID
3115
FALL-2014
CMIS 320
3116
FALL-2014
CMIS 320
3117
FALL-2014
CMIS 102
3118
FALL-2014
CMIS 420
……….
REGISTRATION (
StudentID,
SectionNo
,
Semester
)
StudentID,
SectionNo
Semester
38214
3117
FALL-2014
54907
3117
FALL-2014
54907
3118
FALL-2014
66324
3116
FALL-2014
…..
After creating the tables above, write SQL statements to answer
the following questions. Submit your work as a text file
containing the 6 SQL statements.
a)
What is the name of the faculty member whose ID is 1123?
b)
What is the smallest section number used in the FALL-2014
semester?
c)
How many students are enrolled in Section 3117 of FALL-2014?
d)
Create an SQL command that will modify the name of course
CMIS 320 from Relational Database to Relational Database
Concepts and Applications
e)
Write a command that will remove Barry from the Student table
f)
Write statement to add an attribute, Class to the Student table?
You are also required to submit a SQL script file for
Assignment 4
Please ask questions of anything you don't understand.

More Related Content

Similar to Homework 4Given the relations below, create the database tables .docx

Intro
IntroIntro
2005 fall cs523_lecture_4
2005 fall cs523_lecture_42005 fall cs523_lecture_4
2005 fall cs523_lecture_4
abhineetverma
 
SQL DDL: tricks and tips (JProf#27, Minsk, 24th September)
SQL DDL: tricks and tips (JProf#27, Minsk, 24th September)SQL DDL: tricks and tips (JProf#27, Minsk, 24th September)
SQL DDL: tricks and tips (JProf#27, Minsk, 24th September)
Mikalai Sitsko
 
SQL
SQLSQL
PHP - Getting good with MySQL part I
PHP - Getting good with MySQL part IPHP - Getting good with MySQL part I
PHP - Getting good with MySQL part I
Firdaus Adib
 
When to no sql and when to know sql javaone
When to no sql and when to know sql   javaoneWhen to no sql and when to know sql   javaone
When to no sql and when to know sql javaone
Simon Elliston Ball
 
L1 Intro to Relational DBMS LP.pdfIntro to Relational .docx
L1 Intro to Relational DBMS LP.pdfIntro to Relational .docxL1 Intro to Relational DBMS LP.pdfIntro to Relational .docx
L1 Intro to Relational DBMS LP.pdfIntro to Relational .docx
DIPESH30
 
Introduction to database systems cse 444
Introduction to database systems cse 444Introduction to database systems cse 444
Introduction to database systems cse 444
Nur Saleha
 
MySQL JDBC Tutorial
MySQL JDBC TutorialMySQL JDBC Tutorial
MySQL JDBC Tutorial
webhostingguy
 
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
Beat Signer
 
XML on SQL Server
XML on SQL ServerXML on SQL Server
XML on SQL Server
torp42
 
Neo4j.pptx
Neo4j.pptxNeo4j.pptx
Neo4j.pptx
Habiba Abderrahim
 
MIS5101 WK10 Outcome Measures
MIS5101 WK10 Outcome MeasuresMIS5101 WK10 Outcome Measures
MIS5101 WK10 Outcome Measures
Steven Johnson
 
Data Mining for Developers
Data Mining for DevelopersData Mining for Developers
Data Mining for Developers
llangit
 
Lecture 00 introduction to course
Lecture 00 introduction to courseLecture 00 introduction to course
Lecture 00 introduction to course
emailharmeet
 
R data interfaces
R data interfacesR data interfaces
R data interfaces
Bhavesh Sarvaiya
 
Cs501 intro
Cs501 introCs501 intro
Cs501 intro
Kamal Singh Lodhi
 
Redis Project: Relational databases & Key-Value systems
Redis Project: Relational databases & Key-Value systemsRedis Project: Relational databases & Key-Value systems
Redis Project: Relational databases & Key-Value systems
Stratos Gounidellis
 
MSBI Online Training in India
MSBI Online Training in IndiaMSBI Online Training in India
MSBI Online Training in India
united global soft
 
MSBI Online Training in Hyderabad
MSBI Online Training in HyderabadMSBI Online Training in Hyderabad
MSBI Online Training in Hyderabad
united global soft
 

Similar to Homework 4Given the relations below, create the database tables .docx (20)

Intro
IntroIntro
Intro
 
2005 fall cs523_lecture_4
2005 fall cs523_lecture_42005 fall cs523_lecture_4
2005 fall cs523_lecture_4
 
SQL DDL: tricks and tips (JProf#27, Minsk, 24th September)
SQL DDL: tricks and tips (JProf#27, Minsk, 24th September)SQL DDL: tricks and tips (JProf#27, Minsk, 24th September)
SQL DDL: tricks and tips (JProf#27, Minsk, 24th September)
 
SQL
SQLSQL
SQL
 
PHP - Getting good with MySQL part I
PHP - Getting good with MySQL part IPHP - Getting good with MySQL part I
PHP - Getting good with MySQL part I
 
When to no sql and when to know sql javaone
When to no sql and when to know sql   javaoneWhen to no sql and when to know sql   javaone
When to no sql and when to know sql javaone
 
L1 Intro to Relational DBMS LP.pdfIntro to Relational .docx
L1 Intro to Relational DBMS LP.pdfIntro to Relational .docxL1 Intro to Relational DBMS LP.pdfIntro to Relational .docx
L1 Intro to Relational DBMS LP.pdfIntro to Relational .docx
 
Introduction to database systems cse 444
Introduction to database systems cse 444Introduction to database systems cse 444
Introduction to database systems cse 444
 
MySQL JDBC Tutorial
MySQL JDBC TutorialMySQL JDBC Tutorial
MySQL JDBC Tutorial
 
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
 
XML on SQL Server
XML on SQL ServerXML on SQL Server
XML on SQL Server
 
Neo4j.pptx
Neo4j.pptxNeo4j.pptx
Neo4j.pptx
 
MIS5101 WK10 Outcome Measures
MIS5101 WK10 Outcome MeasuresMIS5101 WK10 Outcome Measures
MIS5101 WK10 Outcome Measures
 
Data Mining for Developers
Data Mining for DevelopersData Mining for Developers
Data Mining for Developers
 
Lecture 00 introduction to course
Lecture 00 introduction to courseLecture 00 introduction to course
Lecture 00 introduction to course
 
R data interfaces
R data interfacesR data interfaces
R data interfaces
 
Cs501 intro
Cs501 introCs501 intro
Cs501 intro
 
Redis Project: Relational databases & Key-Value systems
Redis Project: Relational databases & Key-Value systemsRedis Project: Relational databases & Key-Value systems
Redis Project: Relational databases & Key-Value systems
 
MSBI Online Training in India
MSBI Online Training in IndiaMSBI Online Training in India
MSBI Online Training in India
 
MSBI Online Training in Hyderabad
MSBI Online Training in HyderabadMSBI Online Training in Hyderabad
MSBI Online Training in Hyderabad
 

More from trishamassafd7p

How does ideology inform curriculum How does one’s positionality ( .docx
How does ideology inform curriculum How does one’s positionality ( .docxHow does ideology inform curriculum How does one’s positionality ( .docx
How does ideology inform curriculum How does one’s positionality ( .docx
trishamassafd7p
 
How does the current landscape of global HRM impact HR planning W.docx
How does the current landscape of global HRM impact HR planning W.docxHow does the current landscape of global HRM impact HR planning W.docx
How does the current landscape of global HRM impact HR planning W.docx
trishamassafd7p
 
How does Hobbess view of man differ from that of Locke and Rousseau.docx
How does Hobbess view of man differ from that of Locke and Rousseau.docxHow does Hobbess view of man differ from that of Locke and Rousseau.docx
How does Hobbess view of man differ from that of Locke and Rousseau.docx
trishamassafd7p
 
How is your body capable of producing movementUse your existing k.docx
How is your body capable of producing movementUse your existing k.docxHow is your body capable of producing movementUse your existing k.docx
How is your body capable of producing movementUse your existing k.docx
trishamassafd7p
 
How is beauty prejudice similar to other forms of discrimination, su.docx
How is beauty prejudice similar to other forms of discrimination, su.docxHow is beauty prejudice similar to other forms of discrimination, su.docx
How is beauty prejudice similar to other forms of discrimination, su.docx
trishamassafd7p
 
How does a capitalistic economy create social inequality or a divid.docx
How does a capitalistic economy create social inequality or a divid.docxHow does a capitalistic economy create social inequality or a divid.docx
How does a capitalistic economy create social inequality or a divid.docx
trishamassafd7p
 
How has HIVAIDS affected the population distribution in Africa (esp.docx
How has HIVAIDS affected the population distribution in Africa (esp.docxHow has HIVAIDS affected the population distribution in Africa (esp.docx
How has HIVAIDS affected the population distribution in Africa (esp.docx
trishamassafd7p
 
How does defining a project relate to project planningWhy is it i.docx
How does defining a project relate to project planningWhy is it i.docxHow does defining a project relate to project planningWhy is it i.docx
How does defining a project relate to project planningWhy is it i.docx
trishamassafd7p
 
How does personality develop and evolve over a life spanThrough.docx
How does personality develop and evolve over a life spanThrough.docxHow does personality develop and evolve over a life spanThrough.docx
How does personality develop and evolve over a life spanThrough.docx
trishamassafd7p
 
How do termites direct or control their daily activities Who coordi.docx
How do termites direct or control their daily activities Who coordi.docxHow do termites direct or control their daily activities Who coordi.docx
How do termites direct or control their daily activities Who coordi.docx
trishamassafd7p
 
How do you think Eriksons Eight Stages of Development could affec.docx
How do you think Eriksons Eight Stages of Development could affec.docxHow do you think Eriksons Eight Stages of Development could affec.docx
How do you think Eriksons Eight Stages of Development could affec.docx
trishamassafd7p
 
How do you know if your technical communication is successful That .docx
How do you know if your technical communication is successful That .docxHow do you know if your technical communication is successful That .docx
How do you know if your technical communication is successful That .docx
trishamassafd7p
 
How do these gender-based cultural differences play out in communica.docx
How do these gender-based cultural differences play out in communica.docxHow do these gender-based cultural differences play out in communica.docx
How do these gender-based cultural differences play out in communica.docx
trishamassafd7p
 
How do you identify the requirements for any Information System chan.docx
How do you identify the requirements for any Information System chan.docxHow do you identify the requirements for any Information System chan.docx
How do you identify the requirements for any Information System chan.docx
trishamassafd7p
 
How do the ‘Strictly Come Dancing’ judges adapt their spoken languag.docx
How do the ‘Strictly Come Dancing’ judges adapt their spoken languag.docxHow do the ‘Strictly Come Dancing’ judges adapt their spoken languag.docx
How do the ‘Strictly Come Dancing’ judges adapt their spoken languag.docx
trishamassafd7p
 
How do different groups influence a person’s presentation of self T.docx
How do different groups influence a person’s presentation of self T.docxHow do different groups influence a person’s presentation of self T.docx
How do different groups influence a person’s presentation of self T.docx
trishamassafd7p
 
How did European thinkers in the past centuries view the past of the.docx
How did European thinkers in the past centuries view the past of the.docxHow did European thinkers in the past centuries view the past of the.docx
How did European thinkers in the past centuries view the past of the.docx
trishamassafd7p
 
How did you conduct your searchHow did you narrow down yo.docx
How did you conduct your searchHow did you narrow down yo.docxHow did you conduct your searchHow did you narrow down yo.docx
How did you conduct your searchHow did you narrow down yo.docx
trishamassafd7p
 
How common is it for children to experience this kind of traumaAr.docx
How common is it for children to experience this kind of traumaAr.docxHow common is it for children to experience this kind of traumaAr.docx
How common is it for children to experience this kind of traumaAr.docx
trishamassafd7p
 
How can the two stories by Flannery OConnor  Good Country People.docx
How can the two stories by Flannery OConnor  Good Country People.docxHow can the two stories by Flannery OConnor  Good Country People.docx
How can the two stories by Flannery OConnor  Good Country People.docx
trishamassafd7p
 

More from trishamassafd7p (20)

How does ideology inform curriculum How does one’s positionality ( .docx
How does ideology inform curriculum How does one’s positionality ( .docxHow does ideology inform curriculum How does one’s positionality ( .docx
How does ideology inform curriculum How does one’s positionality ( .docx
 
How does the current landscape of global HRM impact HR planning W.docx
How does the current landscape of global HRM impact HR planning W.docxHow does the current landscape of global HRM impact HR planning W.docx
How does the current landscape of global HRM impact HR planning W.docx
 
How does Hobbess view of man differ from that of Locke and Rousseau.docx
How does Hobbess view of man differ from that of Locke and Rousseau.docxHow does Hobbess view of man differ from that of Locke and Rousseau.docx
How does Hobbess view of man differ from that of Locke and Rousseau.docx
 
How is your body capable of producing movementUse your existing k.docx
How is your body capable of producing movementUse your existing k.docxHow is your body capable of producing movementUse your existing k.docx
How is your body capable of producing movementUse your existing k.docx
 
How is beauty prejudice similar to other forms of discrimination, su.docx
How is beauty prejudice similar to other forms of discrimination, su.docxHow is beauty prejudice similar to other forms of discrimination, su.docx
How is beauty prejudice similar to other forms of discrimination, su.docx
 
How does a capitalistic economy create social inequality or a divid.docx
How does a capitalistic economy create social inequality or a divid.docxHow does a capitalistic economy create social inequality or a divid.docx
How does a capitalistic economy create social inequality or a divid.docx
 
How has HIVAIDS affected the population distribution in Africa (esp.docx
How has HIVAIDS affected the population distribution in Africa (esp.docxHow has HIVAIDS affected the population distribution in Africa (esp.docx
How has HIVAIDS affected the population distribution in Africa (esp.docx
 
How does defining a project relate to project planningWhy is it i.docx
How does defining a project relate to project planningWhy is it i.docxHow does defining a project relate to project planningWhy is it i.docx
How does defining a project relate to project planningWhy is it i.docx
 
How does personality develop and evolve over a life spanThrough.docx
How does personality develop and evolve over a life spanThrough.docxHow does personality develop and evolve over a life spanThrough.docx
How does personality develop and evolve over a life spanThrough.docx
 
How do termites direct or control their daily activities Who coordi.docx
How do termites direct or control their daily activities Who coordi.docxHow do termites direct or control their daily activities Who coordi.docx
How do termites direct or control their daily activities Who coordi.docx
 
How do you think Eriksons Eight Stages of Development could affec.docx
How do you think Eriksons Eight Stages of Development could affec.docxHow do you think Eriksons Eight Stages of Development could affec.docx
How do you think Eriksons Eight Stages of Development could affec.docx
 
How do you know if your technical communication is successful That .docx
How do you know if your technical communication is successful That .docxHow do you know if your technical communication is successful That .docx
How do you know if your technical communication is successful That .docx
 
How do these gender-based cultural differences play out in communica.docx
How do these gender-based cultural differences play out in communica.docxHow do these gender-based cultural differences play out in communica.docx
How do these gender-based cultural differences play out in communica.docx
 
How do you identify the requirements for any Information System chan.docx
How do you identify the requirements for any Information System chan.docxHow do you identify the requirements for any Information System chan.docx
How do you identify the requirements for any Information System chan.docx
 
How do the ‘Strictly Come Dancing’ judges adapt their spoken languag.docx
How do the ‘Strictly Come Dancing’ judges adapt their spoken languag.docxHow do the ‘Strictly Come Dancing’ judges adapt their spoken languag.docx
How do the ‘Strictly Come Dancing’ judges adapt their spoken languag.docx
 
How do different groups influence a person’s presentation of self T.docx
How do different groups influence a person’s presentation of self T.docxHow do different groups influence a person’s presentation of self T.docx
How do different groups influence a person’s presentation of self T.docx
 
How did European thinkers in the past centuries view the past of the.docx
How did European thinkers in the past centuries view the past of the.docxHow did European thinkers in the past centuries view the past of the.docx
How did European thinkers in the past centuries view the past of the.docx
 
How did you conduct your searchHow did you narrow down yo.docx
How did you conduct your searchHow did you narrow down yo.docxHow did you conduct your searchHow did you narrow down yo.docx
How did you conduct your searchHow did you narrow down yo.docx
 
How common is it for children to experience this kind of traumaAr.docx
How common is it for children to experience this kind of traumaAr.docxHow common is it for children to experience this kind of traumaAr.docx
How common is it for children to experience this kind of traumaAr.docx
 
How can the two stories by Flannery OConnor  Good Country People.docx
How can the two stories by Flannery OConnor  Good Country People.docxHow can the two stories by Flannery OConnor  Good Country People.docx
How can the two stories by Flannery OConnor  Good Country People.docx
 

Recently uploaded

A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
simonomuemu
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
Assessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptxAssessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptx
Kavitha Krishnan
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 

Recently uploaded (20)

A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
Assessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptxAssessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptx
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 

Homework 4Given the relations below, create the database tables .docx

  • 1. Homework 4 Given the relations below, create the database tables using SQL DDL (Data Definition Language). Assume the following attribute data types: StudentID (integer, primary key) StudentName (25 characters) FacultyID (integer, primary key) FacultyName (25 characters) CourseID (8 characters, primary key) DateQualified (date) SectionNo (integer, primary key) Semester (7 characters) STUDENT ( StudentID , StudentName) StudentID StudentName 38214 Alvaro 54907 Letterman 66324 Troy 70542 Myra ………. FACULTY (
  • 2. FacultyID , FacultyName) FacultyID FacultyName 1123 Cooper 4237 Burgess 5115 May …….. COURSE ( CourseID , CourseName) CourseID CourseName CMIS 320 Relational Database CMIS 102 Algorithm Design CMIS 420 Advance Relational Database CMIS 170 Introduction to XML CMSC 100 Intro to Computer Science ……..
  • 3. QUALIFIED ( FacultyID , CourseID , DateQualified) FacultyID CourseID DateQualified 1123 CMIS 102 9/2014 1123 CMIS 170 9/2014 4237 CMIS 420 9/2012 4237 CMIS 320 9/2013 5115 CMIS 102 9/2011 5115 CMIS 170 9/2011 ………. SECTION ( SectionNo , Semester
  • 4. , CourseID SectionNo Semester CourseID 3115 FALL-2014 CMIS 320 3116 FALL-2014 CMIS 320 3117 FALL-2014 CMIS 102 3118 FALL-2014 CMIS 420 ………. REGISTRATION ( StudentID, SectionNo , Semester ) StudentID, SectionNo Semester 38214 3117 FALL-2014 54907
  • 5. 3117 FALL-2014 54907 3118 FALL-2014 66324 3116 FALL-2014 ….. After creating the tables above, write SQL statements to answer the following questions. Submit your work as a text file containing the 6 SQL statements. a) What is the name of the faculty member whose ID is 1123? b) What is the smallest section number used in the FALL-2014 semester? c) How many students are enrolled in Section 3117 of FALL-2014? d) Create an SQL command that will modify the name of course
  • 6. CMIS 320 from Relational Database to Relational Database Concepts and Applications e) Write a command that will remove Barry from the Student table f) Write statement to add an attribute, Class to the Student table? You are also required to submit a SQL script file for Assignment 4 Please ask questions of anything you don't understand.