SlideShare a Scribd company logo
Create Student Project Database with insert, select, update, and delete.
Part I
- Create Student Table (Student) 10 Students
STUDENT NO TEXT (3) PRIMARYKEY
STUDENT_NAME TEXT (10)
STUDENT_DOB DATE
STUDENT_DOJ DATE
- Create Project Table (Project) 3 projects, Name, C++/Java/VB
PRJ_NO TEXT (3) PRIMARY KEY
PRJ_NAME TEXT (15)
PRJ_PLATFORM TEXT (10)
- Create Student Project Table (StudentProject) Student#, Project#, Role(programmer, manager,
or analyst)
STUDENT_NO TEXT (3)
PRJ_NO TEXT (3)
DESIGNATION TEXT (10)
PRIMARYKEY (STUDENT_NO,PRJ_NO,DESIGNATION)
FOREIGN KEY(STUDENT_NO)
FOREIGN KEY(PRJ_NO)
Solution
CREATE TABLE Student
(
STUDENT_NO CHAR(3) NOT NULL PRIMARY KEY,
STUDENT_NAME CHAR(10),
STUDENT_DOB DATE,
STUDENT_DOJ DATE
)
CREATE TABLE Project
(
PRJ_NO CHAR(3) NOT NULL PRIMARY KEY,
PRJ_NAME CHAR(15),
PRJ_PLATFORM CHAR(10)
)
CREATE TABLE StudentProject
(
STUDENT_NO CHAR(3) REFERENCES Student,
PRJ_NO CHAR(3) REFERENCES Project,
DESIGNATION CHAR(10),
PRIMARY KEY(STUDENT_NO,PRJ_NO,DESIGNATION)
)
INSERT INTO Student VALUES ('AB0',"Paul",'1992-05-12','2016-02-12');
INSERT INTO Student VALUES ('AB1',"Sam",'1992-06-11','2016-03-11');
INSERT INTO Student VALUES ('AB2',"Raul",'1992-03-11','2016-04-05');
INSERT INTO Student VALUES ('AB3',"John",'1992-07-09','2016-05-12');
INSERT INTO Student VALUES ('AB4',"Mike",'1992-02-06','2016-06-02');
INSERT INTO Student VALUES ('AB5',"Ram",'1992-01-03','2016-07-06');
INSERT INTO Student VALUES ('AB6',"Jin",'1992-05-12','2016-08-03');
INSERT INTO Student VALUES ('AB7',"Frodo",'1992-08-02','2016-09-12');
INSERT INTO Student VALUES ('AB8',"Bill",'1992-09-01','2016-11-04');
INSERT INTO Student VALUES ('AB9',"Tom",'1992-06-12','2016-12-12');
SELECT * FROM Student;
UPDATE Student
SET STUDENT_DOB='1992-03-04',STUDENT_DOJ='1991-03-04'
WHERE STUDENT_NO='AB5';
INSERT INTO Project VALUES ('XY0',"C++","Coding");
INSERT INTO Project VALUES ('XY1',"JAVA","Theory");
INSERT INTO Project VALUES ('XY2',"VB","Design");
DELETE FROM Project WHERE PRJ_PLATFORM="Design"; //It Deletes row number 3
from Project table
SELECT * FROM Project;
INSERT INTO StudentProject VALUES ('AB0',XY0,"Programmer");
INSERT INTO StudentProject VALUES ('AB1',XY1,"Manager");
INSERT INTO StudentProject VALUES ('AB2',XY2,"Analyst");
INSERT INTO StudentProject VALUES ('AB3',XY0,"Programmer");
INSERT INTO StudentProject VALUES ('AB4',XY1,"Manager");
INSERT INTO StudentProject VALUES ('AB5',XY2,"Analyst");
INSERT INTO StudentProject VALUES ('AB6',XY0,"Programmer");
INSERT INTO StudentProject VALUES ('AB7',XY1,"Manager");
INSERT INTO StudentProject VALUES ('AB8',XY2,"Analyst");
INSERT INTO StudentProject VALUES ('AB9',XY0,"Programmer");
SELECT * FROM StudentProject;

More Related Content

Similar to Create Student Project Database with insert, select, update, and del.pdf

History of C#
History of C#History of C#
History of C#
aschlapsi
 
Tactical data engineering
Tactical data engineeringTactical data engineering
Tactical data engineering
Julian Hyde
 
MongoDB Project: Relational databases to Document-Oriented databases
MongoDB Project: Relational databases to Document-Oriented databasesMongoDB Project: Relational databases to Document-Oriented databases
MongoDB Project: Relational databases to Document-Oriented databases
Lamprini Koutsokera
 
Time card system
Time card systemTime card system
Time card system
Smit Patel
 
Micro project project co 3i
Micro project project co 3iMicro project project co 3i
Micro project project co 3i
ARVIND SARDAR
 
CP Handout#10
CP Handout#10CP Handout#10
CP Handout#10
trupti1976
 
Chap07
Chap07Chap07
Chap07
Terry Yoast
 
IDP_Project_2nd_Presentation_PPT Template.ppt
IDP_Project_2nd_Presentation_PPT Template.pptIDP_Project_2nd_Presentation_PPT Template.ppt
IDP_Project_2nd_Presentation_PPT Template.ppt
AryanPatel959700
 
mongoDB Project: Relational databases & Document-Oriented databases
mongoDB Project: Relational databases & Document-Oriented databasesmongoDB Project: Relational databases & Document-Oriented databases
mongoDB Project: Relational databases & Document-Oriented databases
Stratos Gounidellis
 
Programming Fundamentals
Programming FundamentalsProgramming Fundamentals
Programming Fundamentals
Trivuz ত্রিভুজ
 
UNIANOVA class BY trouble METHOD=SSTYPE(3) INTERCEPT=INCLU.docx
UNIANOVA class BY trouble  METHOD=SSTYPE(3)  INTERCEPT=INCLU.docxUNIANOVA class BY trouble  METHOD=SSTYPE(3)  INTERCEPT=INCLU.docx
UNIANOVA class BY trouble METHOD=SSTYPE(3) INTERCEPT=INCLU.docx
willcoxjanay
 
Query optimization in SQL
Query optimization in SQLQuery optimization in SQL
Query optimization in SQL
Abdul Rehman
 
intro-slides.pdf very important for computer science students
intro-slides.pdf very important for computer science studentsintro-slides.pdf very important for computer science students
intro-slides.pdf very important for computer science students
sairevanth504
 
Project3
Project3Project3
Project3
ARVIND SARDAR
 
Android best practices
Android best practicesAndroid best practices
Android best practices
Jose Manuel Ortega Candel
 
Retour sur la Microsoft //Build 2018
Retour sur la Microsoft //Build 2018Retour sur la Microsoft //Build 2018
Retour sur la Microsoft //Build 2018
Timothé Larivière
 
Running Head STUDENT RECORD KEEPING SYSTEM DATABASE PROJECT 1.docx
Running Head STUDENT RECORD KEEPING SYSTEM DATABASE PROJECT  1.docxRunning Head STUDENT RECORD KEEPING SYSTEM DATABASE PROJECT  1.docx
Running Head STUDENT RECORD KEEPING SYSTEM DATABASE PROJECT 1.docx
jeanettehully
 
Lesson 10
Lesson 10Lesson 10
Lesson 10
Gene Babon
 
Introducing ms sql_server_updated
Introducing ms sql_server_updatedIntroducing ms sql_server_updated
Introducing ms sql_server_updated
leetinhf
 
Ada lab manual
Ada lab manualAda lab manual
Ada lab manual
aman713418
 

Similar to Create Student Project Database with insert, select, update, and del.pdf (20)

History of C#
History of C#History of C#
History of C#
 
Tactical data engineering
Tactical data engineeringTactical data engineering
Tactical data engineering
 
MongoDB Project: Relational databases to Document-Oriented databases
MongoDB Project: Relational databases to Document-Oriented databasesMongoDB Project: Relational databases to Document-Oriented databases
MongoDB Project: Relational databases to Document-Oriented databases
 
Time card system
Time card systemTime card system
Time card system
 
Micro project project co 3i
Micro project project co 3iMicro project project co 3i
Micro project project co 3i
 
CP Handout#10
CP Handout#10CP Handout#10
CP Handout#10
 
Chap07
Chap07Chap07
Chap07
 
IDP_Project_2nd_Presentation_PPT Template.ppt
IDP_Project_2nd_Presentation_PPT Template.pptIDP_Project_2nd_Presentation_PPT Template.ppt
IDP_Project_2nd_Presentation_PPT Template.ppt
 
mongoDB Project: Relational databases & Document-Oriented databases
mongoDB Project: Relational databases & Document-Oriented databasesmongoDB Project: Relational databases & Document-Oriented databases
mongoDB Project: Relational databases & Document-Oriented databases
 
Programming Fundamentals
Programming FundamentalsProgramming Fundamentals
Programming Fundamentals
 
UNIANOVA class BY trouble METHOD=SSTYPE(3) INTERCEPT=INCLU.docx
UNIANOVA class BY trouble  METHOD=SSTYPE(3)  INTERCEPT=INCLU.docxUNIANOVA class BY trouble  METHOD=SSTYPE(3)  INTERCEPT=INCLU.docx
UNIANOVA class BY trouble METHOD=SSTYPE(3) INTERCEPT=INCLU.docx
 
Query optimization in SQL
Query optimization in SQLQuery optimization in SQL
Query optimization in SQL
 
intro-slides.pdf very important for computer science students
intro-slides.pdf very important for computer science studentsintro-slides.pdf very important for computer science students
intro-slides.pdf very important for computer science students
 
Project3
Project3Project3
Project3
 
Android best practices
Android best practicesAndroid best practices
Android best practices
 
Retour sur la Microsoft //Build 2018
Retour sur la Microsoft //Build 2018Retour sur la Microsoft //Build 2018
Retour sur la Microsoft //Build 2018
 
Running Head STUDENT RECORD KEEPING SYSTEM DATABASE PROJECT 1.docx
Running Head STUDENT RECORD KEEPING SYSTEM DATABASE PROJECT  1.docxRunning Head STUDENT RECORD KEEPING SYSTEM DATABASE PROJECT  1.docx
Running Head STUDENT RECORD KEEPING SYSTEM DATABASE PROJECT 1.docx
 
Lesson 10
Lesson 10Lesson 10
Lesson 10
 
Introducing ms sql_server_updated
Introducing ms sql_server_updatedIntroducing ms sql_server_updated
Introducing ms sql_server_updated
 
Ada lab manual
Ada lab manualAda lab manual
Ada lab manual
 

More from arkleatheray

briefly write about the Aridity of Subtropics Causes, locations, etc.pdf
briefly write about the Aridity of Subtropics Causes, locations, etc.pdfbriefly write about the Aridity of Subtropics Causes, locations, etc.pdf
briefly write about the Aridity of Subtropics Causes, locations, etc.pdf
arkleatheray
 
Compare and contrast the Mann-Whitney (aka Wilcoxon Rank Sum) Test w.pdf
Compare and contrast the Mann-Whitney (aka Wilcoxon Rank Sum) Test w.pdfCompare and contrast the Mann-Whitney (aka Wilcoxon Rank Sum) Test w.pdf
Compare and contrast the Mann-Whitney (aka Wilcoxon Rank Sum) Test w.pdf
arkleatheray
 
Determine whether the following statements about the accumulated eang.pdf
Determine whether the following statements about the accumulated eang.pdfDetermine whether the following statements about the accumulated eang.pdf
Determine whether the following statements about the accumulated eang.pdf
arkleatheray
 
Discuss the changing demographics of Entrepreneurs and give an examp.pdf
Discuss the changing demographics of Entrepreneurs and give an examp.pdfDiscuss the changing demographics of Entrepreneurs and give an examp.pdf
Discuss the changing demographics of Entrepreneurs and give an examp.pdf
arkleatheray
 
Data StructuresPlease I need help completing this c++ program..pdf
Data StructuresPlease I need help completing this c++ program..pdfData StructuresPlease I need help completing this c++ program..pdf
Data StructuresPlease I need help completing this c++ program..pdf
arkleatheray
 
Before 1980, most cell control and management software was written b.pdf
Before 1980, most cell control and management software was written b.pdfBefore 1980, most cell control and management software was written b.pdf
Before 1980, most cell control and management software was written b.pdf
arkleatheray
 
at age 51 can you take early distributions from traditional IRA for .pdf
at age 51 can you take early distributions from traditional IRA for .pdfat age 51 can you take early distributions from traditional IRA for .pdf
at age 51 can you take early distributions from traditional IRA for .pdf
arkleatheray
 
What is a view What is it used for Give examples when a view can b.pdf
What is a view What is it used for Give examples when a view can b.pdfWhat is a view What is it used for Give examples when a view can b.pdf
What is a view What is it used for Give examples when a view can b.pdf
arkleatheray
 
^^^Q3. I am trying to implement double linked list but I was faile.pdf
^^^Q3. I am trying to implement double linked list but I was faile.pdf^^^Q3. I am trying to implement double linked list but I was faile.pdf
^^^Q3. I am trying to implement double linked list but I was faile.pdf
arkleatheray
 
What is the evolutionary basis for sexual reproductionSolution.pdf
What is the evolutionary basis for sexual reproductionSolution.pdfWhat is the evolutionary basis for sexual reproductionSolution.pdf
What is the evolutionary basis for sexual reproductionSolution.pdf
arkleatheray
 
Why is it that the Grams stain is not appropriate for acid fast ba.pdf
Why is it that the Grams stain is not appropriate for acid fast ba.pdfWhy is it that the Grams stain is not appropriate for acid fast ba.pdf
Why is it that the Grams stain is not appropriate for acid fast ba.pdf
arkleatheray
 
Why does this version of the swap function fail to work Is there a f.pdf
Why does this version of the swap function fail to work Is there a f.pdfWhy does this version of the swap function fail to work Is there a f.pdf
Why does this version of the swap function fail to work Is there a f.pdf
arkleatheray
 
Which of the following is NOT a reason why heat is a bad method to ov.pdf
Which of the following is NOT a reason why heat is a bad method to ov.pdfWhich of the following is NOT a reason why heat is a bad method to ov.pdf
Which of the following is NOT a reason why heat is a bad method to ov.pdf
arkleatheray
 
What are the trends in browsersSolution1.chrome Google chrom.pdf
What are the trends in browsersSolution1.chrome Google chrom.pdfWhat are the trends in browsersSolution1.chrome Google chrom.pdf
What are the trends in browsersSolution1.chrome Google chrom.pdf
arkleatheray
 
The probability of a persons being left-handed is .12. In the 1992.pdf
The probability of a persons being left-handed is .12. In the 1992.pdfThe probability of a persons being left-handed is .12. In the 1992.pdf
The probability of a persons being left-handed is .12. In the 1992.pdf
arkleatheray
 
The mass of a radioactive substance follows a continuous exponential.pdf
The mass of a radioactive substance follows a continuous exponential.pdfThe mass of a radioactive substance follows a continuous exponential.pdf
The mass of a radioactive substance follows a continuous exponential.pdf
arkleatheray
 
The groin is also known as the _____ region. crural inguinal perin.pdf
The groin is also known as the _____ region.  crural  inguinal  perin.pdfThe groin is also known as the _____ region.  crural  inguinal  perin.pdf
The groin is also known as the _____ region. crural inguinal perin.pdf
arkleatheray
 
short answer List and describe two advances during the Industrial Re.pdf
short answer List and describe two advances during the Industrial Re.pdfshort answer List and describe two advances during the Industrial Re.pdf
short answer List and describe two advances during the Industrial Re.pdf
arkleatheray
 
SheilaSalmonella agar is _ because _ breaks down amino acids that co.pdf
SheilaSalmonella agar is _ because _ breaks down amino acids that co.pdfSheilaSalmonella agar is _ because _ breaks down amino acids that co.pdf
SheilaSalmonella agar is _ because _ breaks down amino acids that co.pdf
arkleatheray
 
Security Challenges Please respond to the followingDistributed .pdf
Security Challenges Please respond to the followingDistributed .pdfSecurity Challenges Please respond to the followingDistributed .pdf
Security Challenges Please respond to the followingDistributed .pdf
arkleatheray
 

More from arkleatheray (20)

briefly write about the Aridity of Subtropics Causes, locations, etc.pdf
briefly write about the Aridity of Subtropics Causes, locations, etc.pdfbriefly write about the Aridity of Subtropics Causes, locations, etc.pdf
briefly write about the Aridity of Subtropics Causes, locations, etc.pdf
 
Compare and contrast the Mann-Whitney (aka Wilcoxon Rank Sum) Test w.pdf
Compare and contrast the Mann-Whitney (aka Wilcoxon Rank Sum) Test w.pdfCompare and contrast the Mann-Whitney (aka Wilcoxon Rank Sum) Test w.pdf
Compare and contrast the Mann-Whitney (aka Wilcoxon Rank Sum) Test w.pdf
 
Determine whether the following statements about the accumulated eang.pdf
Determine whether the following statements about the accumulated eang.pdfDetermine whether the following statements about the accumulated eang.pdf
Determine whether the following statements about the accumulated eang.pdf
 
Discuss the changing demographics of Entrepreneurs and give an examp.pdf
Discuss the changing demographics of Entrepreneurs and give an examp.pdfDiscuss the changing demographics of Entrepreneurs and give an examp.pdf
Discuss the changing demographics of Entrepreneurs and give an examp.pdf
 
Data StructuresPlease I need help completing this c++ program..pdf
Data StructuresPlease I need help completing this c++ program..pdfData StructuresPlease I need help completing this c++ program..pdf
Data StructuresPlease I need help completing this c++ program..pdf
 
Before 1980, most cell control and management software was written b.pdf
Before 1980, most cell control and management software was written b.pdfBefore 1980, most cell control and management software was written b.pdf
Before 1980, most cell control and management software was written b.pdf
 
at age 51 can you take early distributions from traditional IRA for .pdf
at age 51 can you take early distributions from traditional IRA for .pdfat age 51 can you take early distributions from traditional IRA for .pdf
at age 51 can you take early distributions from traditional IRA for .pdf
 
What is a view What is it used for Give examples when a view can b.pdf
What is a view What is it used for Give examples when a view can b.pdfWhat is a view What is it used for Give examples when a view can b.pdf
What is a view What is it used for Give examples when a view can b.pdf
 
^^^Q3. I am trying to implement double linked list but I was faile.pdf
^^^Q3. I am trying to implement double linked list but I was faile.pdf^^^Q3. I am trying to implement double linked list but I was faile.pdf
^^^Q3. I am trying to implement double linked list but I was faile.pdf
 
What is the evolutionary basis for sexual reproductionSolution.pdf
What is the evolutionary basis for sexual reproductionSolution.pdfWhat is the evolutionary basis for sexual reproductionSolution.pdf
What is the evolutionary basis for sexual reproductionSolution.pdf
 
Why is it that the Grams stain is not appropriate for acid fast ba.pdf
Why is it that the Grams stain is not appropriate for acid fast ba.pdfWhy is it that the Grams stain is not appropriate for acid fast ba.pdf
Why is it that the Grams stain is not appropriate for acid fast ba.pdf
 
Why does this version of the swap function fail to work Is there a f.pdf
Why does this version of the swap function fail to work Is there a f.pdfWhy does this version of the swap function fail to work Is there a f.pdf
Why does this version of the swap function fail to work Is there a f.pdf
 
Which of the following is NOT a reason why heat is a bad method to ov.pdf
Which of the following is NOT a reason why heat is a bad method to ov.pdfWhich of the following is NOT a reason why heat is a bad method to ov.pdf
Which of the following is NOT a reason why heat is a bad method to ov.pdf
 
What are the trends in browsersSolution1.chrome Google chrom.pdf
What are the trends in browsersSolution1.chrome Google chrom.pdfWhat are the trends in browsersSolution1.chrome Google chrom.pdf
What are the trends in browsersSolution1.chrome Google chrom.pdf
 
The probability of a persons being left-handed is .12. In the 1992.pdf
The probability of a persons being left-handed is .12. In the 1992.pdfThe probability of a persons being left-handed is .12. In the 1992.pdf
The probability of a persons being left-handed is .12. In the 1992.pdf
 
The mass of a radioactive substance follows a continuous exponential.pdf
The mass of a radioactive substance follows a continuous exponential.pdfThe mass of a radioactive substance follows a continuous exponential.pdf
The mass of a radioactive substance follows a continuous exponential.pdf
 
The groin is also known as the _____ region. crural inguinal perin.pdf
The groin is also known as the _____ region.  crural  inguinal  perin.pdfThe groin is also known as the _____ region.  crural  inguinal  perin.pdf
The groin is also known as the _____ region. crural inguinal perin.pdf
 
short answer List and describe two advances during the Industrial Re.pdf
short answer List and describe two advances during the Industrial Re.pdfshort answer List and describe two advances during the Industrial Re.pdf
short answer List and describe two advances during the Industrial Re.pdf
 
SheilaSalmonella agar is _ because _ breaks down amino acids that co.pdf
SheilaSalmonella agar is _ because _ breaks down amino acids that co.pdfSheilaSalmonella agar is _ because _ breaks down amino acids that co.pdf
SheilaSalmonella agar is _ because _ breaks down amino acids that co.pdf
 
Security Challenges Please respond to the followingDistributed .pdf
Security Challenges Please respond to the followingDistributed .pdfSecurity Challenges Please respond to the followingDistributed .pdf
Security Challenges Please respond to the followingDistributed .pdf
 

Recently uploaded

C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
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
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
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
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
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
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
NgcHiNguyn25
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 
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
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
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
 

Recently uploaded (20)

C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
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
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
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
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 
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
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.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
 

Create Student Project Database with insert, select, update, and del.pdf

  • 1. Create Student Project Database with insert, select, update, and delete. Part I - Create Student Table (Student) 10 Students STUDENT NO TEXT (3) PRIMARYKEY STUDENT_NAME TEXT (10) STUDENT_DOB DATE STUDENT_DOJ DATE - Create Project Table (Project) 3 projects, Name, C++/Java/VB PRJ_NO TEXT (3) PRIMARY KEY PRJ_NAME TEXT (15) PRJ_PLATFORM TEXT (10) - Create Student Project Table (StudentProject) Student#, Project#, Role(programmer, manager, or analyst) STUDENT_NO TEXT (3) PRJ_NO TEXT (3) DESIGNATION TEXT (10) PRIMARYKEY (STUDENT_NO,PRJ_NO,DESIGNATION) FOREIGN KEY(STUDENT_NO) FOREIGN KEY(PRJ_NO) Solution CREATE TABLE Student ( STUDENT_NO CHAR(3) NOT NULL PRIMARY KEY, STUDENT_NAME CHAR(10), STUDENT_DOB DATE, STUDENT_DOJ DATE ) CREATE TABLE Project ( PRJ_NO CHAR(3) NOT NULL PRIMARY KEY, PRJ_NAME CHAR(15), PRJ_PLATFORM CHAR(10) )
  • 2. CREATE TABLE StudentProject ( STUDENT_NO CHAR(3) REFERENCES Student, PRJ_NO CHAR(3) REFERENCES Project, DESIGNATION CHAR(10), PRIMARY KEY(STUDENT_NO,PRJ_NO,DESIGNATION) ) INSERT INTO Student VALUES ('AB0',"Paul",'1992-05-12','2016-02-12'); INSERT INTO Student VALUES ('AB1',"Sam",'1992-06-11','2016-03-11'); INSERT INTO Student VALUES ('AB2',"Raul",'1992-03-11','2016-04-05'); INSERT INTO Student VALUES ('AB3',"John",'1992-07-09','2016-05-12'); INSERT INTO Student VALUES ('AB4',"Mike",'1992-02-06','2016-06-02'); INSERT INTO Student VALUES ('AB5',"Ram",'1992-01-03','2016-07-06'); INSERT INTO Student VALUES ('AB6',"Jin",'1992-05-12','2016-08-03'); INSERT INTO Student VALUES ('AB7',"Frodo",'1992-08-02','2016-09-12'); INSERT INTO Student VALUES ('AB8',"Bill",'1992-09-01','2016-11-04'); INSERT INTO Student VALUES ('AB9',"Tom",'1992-06-12','2016-12-12'); SELECT * FROM Student; UPDATE Student SET STUDENT_DOB='1992-03-04',STUDENT_DOJ='1991-03-04' WHERE STUDENT_NO='AB5'; INSERT INTO Project VALUES ('XY0',"C++","Coding"); INSERT INTO Project VALUES ('XY1',"JAVA","Theory"); INSERT INTO Project VALUES ('XY2',"VB","Design"); DELETE FROM Project WHERE PRJ_PLATFORM="Design"; //It Deletes row number 3 from Project table SELECT * FROM Project; INSERT INTO StudentProject VALUES ('AB0',XY0,"Programmer"); INSERT INTO StudentProject VALUES ('AB1',XY1,"Manager"); INSERT INTO StudentProject VALUES ('AB2',XY2,"Analyst"); INSERT INTO StudentProject VALUES ('AB3',XY0,"Programmer"); INSERT INTO StudentProject VALUES ('AB4',XY1,"Manager"); INSERT INTO StudentProject VALUES ('AB5',XY2,"Analyst"); INSERT INTO StudentProject VALUES ('AB6',XY0,"Programmer");
  • 3. INSERT INTO StudentProject VALUES ('AB7',XY1,"Manager"); INSERT INTO StudentProject VALUES ('AB8',XY2,"Analyst"); INSERT INTO StudentProject VALUES ('AB9',XY0,"Programmer"); SELECT * FROM StudentProject;