SlideShare a Scribd company logo
1 of 1
Download to read offline
Question 6: Provide SQL that creates two database tables: Employee and Department, as follows:
(Please choose appropriate data types and their lengths for all the attributes) a) The attributes of
Employee table are empNumber, firstName, lastName, middleName, DOB, SSN, and
deptNumber. b) The attributes of Department table are deptNumber, and deptName. c) Make
empNumber and deptNumber primary keys in their respective tables. d) Make deptNumber in
Employee table, a foreign key. e) Make all attributes NOT NULL in both tables except middleName
and deptNumber in Employee table.

More Related Content

More from adamswatch

Quickly research the benefits and risks of Artificial Intell.pdf
Quickly research the benefits and risks of Artificial Intell.pdfQuickly research the benefits and risks of Artificial Intell.pdf
Quickly research the benefits and risks of Artificial Intell.pdfadamswatch
 
Queue Class Write a Queue class using doublylinked structu.pdf
Queue Class Write a Queue class using doublylinked structu.pdfQueue Class Write a Queue class using doublylinked structu.pdf
Queue Class Write a Queue class using doublylinked structu.pdfadamswatch
 
Questions on Voters Registration a What are the qualific.pdf
Questions on Voters Registration   a What are the qualific.pdfQuestions on Voters Registration   a What are the qualific.pdf
Questions on Voters Registration a What are the qualific.pdfadamswatch
 
Questions relating to PartyList System of Representation .pdf
Questions relating to PartyList System of Representation  .pdfQuestions relating to PartyList System of Representation  .pdf
Questions relating to PartyList System of Representation .pdfadamswatch
 
Queston 1 a The purpose of Cache is to Increase response ti.pdf
Queston 1 a The purpose of Cache is to Increase response ti.pdfQueston 1 a The purpose of Cache is to Increase response ti.pdf
Queston 1 a The purpose of Cache is to Increase response ti.pdfadamswatch
 
QUESTIONS TRUE OR FALSE 1 As the raw material of the plasti.pdf
QUESTIONS TRUE OR FALSE 1 As the raw material of the plasti.pdfQUESTIONS TRUE OR FALSE 1 As the raw material of the plasti.pdf
QUESTIONS TRUE OR FALSE 1 As the raw material of the plasti.pdfadamswatch
 
Questions on Host Range Study the diagram on the next page a.pdf
Questions on Host Range Study the diagram on the next page a.pdfQuestions on Host Range Study the diagram on the next page a.pdf
Questions on Host Range Study the diagram on the next page a.pdfadamswatch
 
QUESTIONS Some protocols call for a shorter incubation time .pdf
QUESTIONS Some protocols call for a shorter incubation time .pdfQUESTIONS Some protocols call for a shorter incubation time .pdf
QUESTIONS Some protocols call for a shorter incubation time .pdfadamswatch
 
Questions for Endocrine system 1 Compare autocrine paracr.pdf
Questions for Endocrine system 1 Compare autocrine paracr.pdfQuestions for Endocrine system 1 Compare autocrine paracr.pdf
Questions for Endocrine system 1 Compare autocrine paracr.pdfadamswatch
 
Questions on Differences in Virulence Study the diagram on t.pdf
Questions on Differences in Virulence Study the diagram on t.pdfQuestions on Differences in Virulence Study the diagram on t.pdf
Questions on Differences in Virulence Study the diagram on t.pdfadamswatch
 
Questions for hearing and equilibrium the ear 1 What are .pdf
Questions for hearing and equilibrium the ear 1 What are .pdfQuestions for hearing and equilibrium the ear 1 What are .pdf
Questions for hearing and equilibrium the ear 1 What are .pdfadamswatch
 
Questions 912 A study was conducted testing whether memory.pdf
Questions 912 A study was conducted testing whether memory.pdfQuestions 912 A study was conducted testing whether memory.pdf
Questions 912 A study was conducted testing whether memory.pdfadamswatch
 
Questions 3 Please represent the integer numbers in the fol.pdf
Questions 3 Please represent the integer numbers in the fol.pdfQuestions 3 Please represent the integer numbers in the fol.pdf
Questions 3 Please represent the integer numbers in the fol.pdfadamswatch
 
Questions 2 A01B0110C1101999D00006E06432F5882 Pl.pdf
Questions 2 A01B0110C1101999D00006E06432F5882 Pl.pdfQuestions 2 A01B0110C1101999D00006E06432F5882 Pl.pdf
Questions 2 A01B0110C1101999D00006E06432F5882 Pl.pdfadamswatch
 
Questions 16 1 Describe common documents found in an acut.pdf
Questions 16 1 Describe common documents found in an acut.pdfQuestions 16 1 Describe common documents found in an acut.pdf
Questions 16 1 Describe common documents found in an acut.pdfadamswatch
 
Question 72 from page 88 Rosner Study Guide Chapter 07 S.pdf
Question 72 from page 88 Rosner Study Guide Chapter 07 S.pdfQuestion 72 from page 88 Rosner Study Guide Chapter 07 S.pdf
Question 72 from page 88 Rosner Study Guide Chapter 07 S.pdfadamswatch
 
QUESTIONAs a final year Information Technology student of .pdf
QUESTIONAs a final year Information Technology student of .pdfQUESTIONAs a final year Information Technology student of .pdf
QUESTIONAs a final year Information Technology student of .pdfadamswatch
 
QUESTION TWO Your Group was integrating a biometric system w.pdf
QUESTION TWO Your Group was integrating a biometric system w.pdfQUESTION TWO Your Group was integrating a biometric system w.pdf
QUESTION TWO Your Group was integrating a biometric system w.pdfadamswatch
 
Question1 If Mr Mehta is an Insurance Advisor and in month.pdf
Question1 If Mr Mehta is an Insurance Advisor and in month.pdfQuestion1 If Mr Mehta is an Insurance Advisor and in month.pdf
Question1 If Mr Mehta is an Insurance Advisor and in month.pdfadamswatch
 
Question 6Calculate and interpret the following ratios .pdf
Question 6Calculate and interpret the following ratios .pdfQuestion 6Calculate and interpret the following ratios .pdf
Question 6Calculate and interpret the following ratios .pdfadamswatch
 

More from adamswatch (20)

Quickly research the benefits and risks of Artificial Intell.pdf
Quickly research the benefits and risks of Artificial Intell.pdfQuickly research the benefits and risks of Artificial Intell.pdf
Quickly research the benefits and risks of Artificial Intell.pdf
 
Queue Class Write a Queue class using doublylinked structu.pdf
Queue Class Write a Queue class using doublylinked structu.pdfQueue Class Write a Queue class using doublylinked structu.pdf
Queue Class Write a Queue class using doublylinked structu.pdf
 
Questions on Voters Registration a What are the qualific.pdf
Questions on Voters Registration   a What are the qualific.pdfQuestions on Voters Registration   a What are the qualific.pdf
Questions on Voters Registration a What are the qualific.pdf
 
Questions relating to PartyList System of Representation .pdf
Questions relating to PartyList System of Representation  .pdfQuestions relating to PartyList System of Representation  .pdf
Questions relating to PartyList System of Representation .pdf
 
Queston 1 a The purpose of Cache is to Increase response ti.pdf
Queston 1 a The purpose of Cache is to Increase response ti.pdfQueston 1 a The purpose of Cache is to Increase response ti.pdf
Queston 1 a The purpose of Cache is to Increase response ti.pdf
 
QUESTIONS TRUE OR FALSE 1 As the raw material of the plasti.pdf
QUESTIONS TRUE OR FALSE 1 As the raw material of the plasti.pdfQUESTIONS TRUE OR FALSE 1 As the raw material of the plasti.pdf
QUESTIONS TRUE OR FALSE 1 As the raw material of the plasti.pdf
 
Questions on Host Range Study the diagram on the next page a.pdf
Questions on Host Range Study the diagram on the next page a.pdfQuestions on Host Range Study the diagram on the next page a.pdf
Questions on Host Range Study the diagram on the next page a.pdf
 
QUESTIONS Some protocols call for a shorter incubation time .pdf
QUESTIONS Some protocols call for a shorter incubation time .pdfQUESTIONS Some protocols call for a shorter incubation time .pdf
QUESTIONS Some protocols call for a shorter incubation time .pdf
 
Questions for Endocrine system 1 Compare autocrine paracr.pdf
Questions for Endocrine system 1 Compare autocrine paracr.pdfQuestions for Endocrine system 1 Compare autocrine paracr.pdf
Questions for Endocrine system 1 Compare autocrine paracr.pdf
 
Questions on Differences in Virulence Study the diagram on t.pdf
Questions on Differences in Virulence Study the diagram on t.pdfQuestions on Differences in Virulence Study the diagram on t.pdf
Questions on Differences in Virulence Study the diagram on t.pdf
 
Questions for hearing and equilibrium the ear 1 What are .pdf
Questions for hearing and equilibrium the ear 1 What are .pdfQuestions for hearing and equilibrium the ear 1 What are .pdf
Questions for hearing and equilibrium the ear 1 What are .pdf
 
Questions 912 A study was conducted testing whether memory.pdf
Questions 912 A study was conducted testing whether memory.pdfQuestions 912 A study was conducted testing whether memory.pdf
Questions 912 A study was conducted testing whether memory.pdf
 
Questions 3 Please represent the integer numbers in the fol.pdf
Questions 3 Please represent the integer numbers in the fol.pdfQuestions 3 Please represent the integer numbers in the fol.pdf
Questions 3 Please represent the integer numbers in the fol.pdf
 
Questions 2 A01B0110C1101999D00006E06432F5882 Pl.pdf
Questions 2 A01B0110C1101999D00006E06432F5882 Pl.pdfQuestions 2 A01B0110C1101999D00006E06432F5882 Pl.pdf
Questions 2 A01B0110C1101999D00006E06432F5882 Pl.pdf
 
Questions 16 1 Describe common documents found in an acut.pdf
Questions 16 1 Describe common documents found in an acut.pdfQuestions 16 1 Describe common documents found in an acut.pdf
Questions 16 1 Describe common documents found in an acut.pdf
 
Question 72 from page 88 Rosner Study Guide Chapter 07 S.pdf
Question 72 from page 88 Rosner Study Guide Chapter 07 S.pdfQuestion 72 from page 88 Rosner Study Guide Chapter 07 S.pdf
Question 72 from page 88 Rosner Study Guide Chapter 07 S.pdf
 
QUESTIONAs a final year Information Technology student of .pdf
QUESTIONAs a final year Information Technology student of .pdfQUESTIONAs a final year Information Technology student of .pdf
QUESTIONAs a final year Information Technology student of .pdf
 
QUESTION TWO Your Group was integrating a biometric system w.pdf
QUESTION TWO Your Group was integrating a biometric system w.pdfQUESTION TWO Your Group was integrating a biometric system w.pdf
QUESTION TWO Your Group was integrating a biometric system w.pdf
 
Question1 If Mr Mehta is an Insurance Advisor and in month.pdf
Question1 If Mr Mehta is an Insurance Advisor and in month.pdfQuestion1 If Mr Mehta is an Insurance Advisor and in month.pdf
Question1 If Mr Mehta is an Insurance Advisor and in month.pdf
 
Question 6Calculate and interpret the following ratios .pdf
Question 6Calculate and interpret the following ratios .pdfQuestion 6Calculate and interpret the following ratios .pdf
Question 6Calculate and interpret the following ratios .pdf
 

Recently uploaded

Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 

Recently uploaded (20)

Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 

Question 6 Provide SQL that creates two database tables Em.pdf

  • 1. Question 6: Provide SQL that creates two database tables: Employee and Department, as follows: (Please choose appropriate data types and their lengths for all the attributes) a) The attributes of Employee table are empNumber, firstName, lastName, middleName, DOB, SSN, and deptNumber. b) The attributes of Department table are deptNumber, and deptName. c) Make empNumber and deptNumber primary keys in their respective tables. d) Make deptNumber in Employee table, a foreign key. e) Make all attributes NOT NULL in both tables except middleName and deptNumber in Employee table.