SlideShare a Scribd company logo
1 of 2
Download to read offline
only question 1 to 7
CREATE TABLE BRIDAL_PARTY ( EMAIL VARCHAR (25) PRIMARY KEY, F_NAME
VARCHAR(25), L_NAME VARCHAR(25), GENDER VARCHAR(25), DOB DATE ,
BRIDAL_ADDRESS VARCHAR(25), MOBILE INTEGER ) CREATE TABLE EMPLOYEE (
ID INTEGER PRIMARY KEY , NAME_FIRST VARCHAR(25), NAME_LAST VARCHAR
(25), EMPLOYMENT_DATE DATE, ADDRESS VARCHAR (25) , JOB_DESCRIPTION
VARCHAR (25) ) CREATE TABLE VENUE ( ID INTEGER PRIMARY KEY, FIRST_NAME
VARCHAR (25), V_LOCATION VARCHAR(25), V_ADDRESS VARCHAR (25),
MAX_CAPACITY INTEGER, V_DESCRIPTION VARCHAR(25) ) CREATE TABLE
WEDDING ( ID INTEGER PRIMARY KEY, WED_DATE DATE, MAX_BUDGET
INTEGER, START_TIME time, MARRAIAGE_OFFICER VARCHAR (25), OWNEREMAIL
VARCHAR (25), VENUE_ID INTEGER, CARTERER_ID INTEGER ) CREATE TABLE
ATTENDANCE ( BP_EMAIL VARCHAR (25), WED_ID INTEGER, ROLE_ VARCHAR
(25), EMP_ID INTEGER ) CREATE TABLE THEME ( WED_ID INTEGER PRIMARY KEY,
FIRST_NAME VARCHAR(25), "DESCRIPTION" VARCHAR (25) ) CREATE TABLE
OUT_OF_TOWN ( WED_ID INTEGER PRIMARY KEY, HOTEL_NAME VARCHAR(25) )
CREATE TABLE CATERER ( C_ID INTEGER PRIMARY KEY, C_NAME VARCHAR (25),
EMAIL VARCHAR (25), SUB_ID INTEGER ) CREATE TABLE CATERER_PHONE (
PHONE INTEGER, CID INTEGER PRIMARY KEY ) ALTER TABLE EMPLOYEE ADD
GENDER VARCHAR (5) DEFAULT('F'); ALTER TABLE EMPLOYEE ADD CONSTRAINT
FK_GENDER CHECK (GENDER IN ('M','F')); ALTER TABLE EMPLOYEE DROP
COLUMN GENDER; ALTER TABLE EMPLOYEE DROP CONSTRAINT FK_GENDER
ALTER TABLE WEDDING ADD CONSTRAINT FK_OWNEREMAIL FOREIGN KEY
(OWNEREMAIL) references BRIDAL_PARTY( EMAIL); ALTER TABLE WEDDING
ADDCONSTRAINT FK_VENUE_ID FOREIGN KEY (VENUE_ID)references VENUE (ID);
ALTER TABLE WEDDING ADDCONSTRAINT FK_CARTER_ID FOREIGN KEY
(CARTERER_ID) references CATERER (C_ID); ALTER TABLE ATTENDANCE ADD
CONSTRAINT FK_BP_EMAIL FOREIGN KEY (BP_EMAIL) REFERENCES
BRIDAL_PARTY (EMAIL); ALTER TABLE ATTENDANCE ADDCONSTRAINT
FK_WED_ID FOREIGN KEY (WED_ID) REFERENCES WEDDING (ID); ALTER TABLE
ATTENDANCE ADDCONSTRAINT FK_EMP_ID FOREIGN KEY (EMP_ID)
REFERENCES EMPLOYEE (ID); ALTER TABLE THEME ADD CONSTRAINT
FK_WED_ID2 FOREIGN KEY (WED_ID) REFERENCES WEDDING (ID); ALTER TABLE
OUT_OF_TOWN ADD CONSTRAINT FK_WED_ID3 FOREIGN KEY (WED_ID)
REFERENCES WEDDING (ID); ALTER TABLE CATERER ADD CONSTRAINT
FK_SUB_ID FOREIGN KEY (C_ID) REFERENCES CATERER (C_ID); ALTER TABLE
CATERER_PHONE ADD CONSTRAINT FK_CID FOREIGN KEY (CID) REFERENCES
CATERER (C_ID); SELECT * FROM CATERER ALTER TABLE CATERER ADD COST
INT;

More Related Content

More from aliracreations

One common result of phospholipid signaling pathways downstream of G.pdf
One common result of phospholipid signaling pathways downstream of G.pdfOne common result of phospholipid signaling pathways downstream of G.pdf
One common result of phospholipid signaling pathways downstream of G.pdfaliracreations
 
Once you have completed your Exploratory research you have decided t.pdf
Once you have completed your Exploratory research you have decided t.pdfOnce you have completed your Exploratory research you have decided t.pdf
Once you have completed your Exploratory research you have decided t.pdfaliracreations
 
Once you have your list, respond to the followingList the current.pdf
Once you have your list, respond to the followingList the current.pdfOnce you have your list, respond to the followingList the current.pdf
Once you have your list, respond to the followingList the current.pdfaliracreations
 
One day, Alex got tired of climbing in a gym and decided to take a v.pdf
One day, Alex got tired of climbing in a gym and decided to take a v.pdfOne day, Alex got tired of climbing in a gym and decided to take a v.pdf
One day, Alex got tired of climbing in a gym and decided to take a v.pdfaliracreations
 
On November 1, 2021 a company sign a $200,000.12 percent six-month n.pdf
On November 1, 2021 a company sign a $200,000.12 percent six-month n.pdfOn November 1, 2021 a company sign a $200,000.12 percent six-month n.pdf
On November 1, 2021 a company sign a $200,000.12 percent six-month n.pdfaliracreations
 
On January 1, Year 2, Kincaid Companys Accounts Receivable and the .pdf
On January 1, Year 2, Kincaid Companys Accounts Receivable and the .pdfOn January 1, Year 2, Kincaid Companys Accounts Receivable and the .pdf
On January 1, Year 2, Kincaid Companys Accounts Receivable and the .pdfaliracreations
 
On January 1, 2021, Daniel Corp. acquired 80 of the voting common s.pdf
On January 1, 2021, Daniel Corp. acquired 80 of the voting common s.pdfOn January 1, 2021, Daniel Corp. acquired 80 of the voting common s.pdf
On January 1, 2021, Daniel Corp. acquired 80 of the voting common s.pdfaliracreations
 
On December 31, Year 3, Mueller Corp. acquired 80 of the outstandin.pdf
On December 31, Year 3, Mueller Corp. acquired 80 of the outstandin.pdfOn December 31, Year 3, Mueller Corp. acquired 80 of the outstandin.pdf
On December 31, Year 3, Mueller Corp. acquired 80 of the outstandin.pdfaliracreations
 
No plagiarism. At least 250 wordsWhat is the relationship be.pdf
No plagiarism. At least 250 wordsWhat is the relationship be.pdfNo plagiarism. At least 250 wordsWhat is the relationship be.pdf
No plagiarism. At least 250 wordsWhat is the relationship be.pdfaliracreations
 
On August 1, 2024, Trico Technologies, an aeronautic electronics com.pdf
On August 1, 2024, Trico Technologies, an aeronautic electronics com.pdfOn August 1, 2024, Trico Technologies, an aeronautic electronics com.pdf
On August 1, 2024, Trico Technologies, an aeronautic electronics com.pdfaliracreations
 
On April 1, Mathis purchased merchandise on account from Reece with .pdf
On April 1, Mathis purchased merchandise on account from Reece with .pdfOn April 1, Mathis purchased merchandise on account from Reece with .pdf
On April 1, Mathis purchased merchandise on account from Reece with .pdfaliracreations
 
On 1 January 2021, Alpha Ltd sold inventory to Beta Ltd for $90 000..pdf
On 1 January 2021, Alpha Ltd sold inventory to Beta Ltd for $90 000..pdfOn 1 January 2021, Alpha Ltd sold inventory to Beta Ltd for $90 000..pdf
On 1 January 2021, Alpha Ltd sold inventory to Beta Ltd for $90 000..pdfaliracreations
 
New York State, county, city, school district, and other government .pdf
New York State, county, city, school district, and other government .pdfNew York State, county, city, school district, and other government .pdf
New York State, county, city, school district, and other government .pdfaliracreations
 
Objective The purpose of this exercise is to create a Linked List d.pdf
Objective The purpose of this exercise is to create a Linked List d.pdfObjective The purpose of this exercise is to create a Linked List d.pdf
Objective The purpose of this exercise is to create a Linked List d.pdfaliracreations
 
nsan davranlar �almasnda, �rg�tsel liderler insanlarn deerleri, tutu.pdf
nsan davranlar �almasnda, �rg�tsel liderler insanlarn deerleri, tutu.pdfnsan davranlar �almasnda, �rg�tsel liderler insanlarn deerleri, tutu.pdf
nsan davranlar �almasnda, �rg�tsel liderler insanlarn deerleri, tutu.pdfaliracreations
 
nsan adaptasyonu genetik, geliimsel, iklimlendirme ve k�lt�rel olmak.pdf
nsan adaptasyonu genetik, geliimsel, iklimlendirme ve k�lt�rel olmak.pdfnsan adaptasyonu genetik, geliimsel, iklimlendirme ve k�lt�rel olmak.pdf
nsan adaptasyonu genetik, geliimsel, iklimlendirme ve k�lt�rel olmak.pdfaliracreations
 
Nurse is performing a vaginal exan on a patient who is in labor .pdf
Nurse is performing a vaginal exan on a patient who is in labor .pdfNurse is performing a vaginal exan on a patient who is in labor .pdf
Nurse is performing a vaginal exan on a patient who is in labor .pdfaliracreations
 
Nowadays, due to the sophistication of adversarial attack vectors, t.pdf
Nowadays, due to the sophistication of adversarial attack vectors, t.pdfNowadays, due to the sophistication of adversarial attack vectors, t.pdf
Nowadays, due to the sophistication of adversarial attack vectors, t.pdfaliracreations
 
Novak proposes a �new theology� and �a new type of religion� (plural.pdf
Novak proposes a �new theology� and �a new type of religion� (plural.pdfNovak proposes a �new theology� and �a new type of religion� (plural.pdf
Novak proposes a �new theology� and �a new type of religion� (plural.pdfaliracreations
 
Norve� ve Almanya i�in Ekonomik Karmaklk G�zlemevindeki (oec.world).pdf
Norve� ve Almanya i�in Ekonomik Karmaklk G�zlemevindeki (oec.world).pdfNorve� ve Almanya i�in Ekonomik Karmaklk G�zlemevindeki (oec.world).pdf
Norve� ve Almanya i�in Ekonomik Karmaklk G�zlemevindeki (oec.world).pdfaliracreations
 

More from aliracreations (20)

One common result of phospholipid signaling pathways downstream of G.pdf
One common result of phospholipid signaling pathways downstream of G.pdfOne common result of phospholipid signaling pathways downstream of G.pdf
One common result of phospholipid signaling pathways downstream of G.pdf
 
Once you have completed your Exploratory research you have decided t.pdf
Once you have completed your Exploratory research you have decided t.pdfOnce you have completed your Exploratory research you have decided t.pdf
Once you have completed your Exploratory research you have decided t.pdf
 
Once you have your list, respond to the followingList the current.pdf
Once you have your list, respond to the followingList the current.pdfOnce you have your list, respond to the followingList the current.pdf
Once you have your list, respond to the followingList the current.pdf
 
One day, Alex got tired of climbing in a gym and decided to take a v.pdf
One day, Alex got tired of climbing in a gym and decided to take a v.pdfOne day, Alex got tired of climbing in a gym and decided to take a v.pdf
One day, Alex got tired of climbing in a gym and decided to take a v.pdf
 
On November 1, 2021 a company sign a $200,000.12 percent six-month n.pdf
On November 1, 2021 a company sign a $200,000.12 percent six-month n.pdfOn November 1, 2021 a company sign a $200,000.12 percent six-month n.pdf
On November 1, 2021 a company sign a $200,000.12 percent six-month n.pdf
 
On January 1, Year 2, Kincaid Companys Accounts Receivable and the .pdf
On January 1, Year 2, Kincaid Companys Accounts Receivable and the .pdfOn January 1, Year 2, Kincaid Companys Accounts Receivable and the .pdf
On January 1, Year 2, Kincaid Companys Accounts Receivable and the .pdf
 
On January 1, 2021, Daniel Corp. acquired 80 of the voting common s.pdf
On January 1, 2021, Daniel Corp. acquired 80 of the voting common s.pdfOn January 1, 2021, Daniel Corp. acquired 80 of the voting common s.pdf
On January 1, 2021, Daniel Corp. acquired 80 of the voting common s.pdf
 
On December 31, Year 3, Mueller Corp. acquired 80 of the outstandin.pdf
On December 31, Year 3, Mueller Corp. acquired 80 of the outstandin.pdfOn December 31, Year 3, Mueller Corp. acquired 80 of the outstandin.pdf
On December 31, Year 3, Mueller Corp. acquired 80 of the outstandin.pdf
 
No plagiarism. At least 250 wordsWhat is the relationship be.pdf
No plagiarism. At least 250 wordsWhat is the relationship be.pdfNo plagiarism. At least 250 wordsWhat is the relationship be.pdf
No plagiarism. At least 250 wordsWhat is the relationship be.pdf
 
On August 1, 2024, Trico Technologies, an aeronautic electronics com.pdf
On August 1, 2024, Trico Technologies, an aeronautic electronics com.pdfOn August 1, 2024, Trico Technologies, an aeronautic electronics com.pdf
On August 1, 2024, Trico Technologies, an aeronautic electronics com.pdf
 
On April 1, Mathis purchased merchandise on account from Reece with .pdf
On April 1, Mathis purchased merchandise on account from Reece with .pdfOn April 1, Mathis purchased merchandise on account from Reece with .pdf
On April 1, Mathis purchased merchandise on account from Reece with .pdf
 
On 1 January 2021, Alpha Ltd sold inventory to Beta Ltd for $90 000..pdf
On 1 January 2021, Alpha Ltd sold inventory to Beta Ltd for $90 000..pdfOn 1 January 2021, Alpha Ltd sold inventory to Beta Ltd for $90 000..pdf
On 1 January 2021, Alpha Ltd sold inventory to Beta Ltd for $90 000..pdf
 
New York State, county, city, school district, and other government .pdf
New York State, county, city, school district, and other government .pdfNew York State, county, city, school district, and other government .pdf
New York State, county, city, school district, and other government .pdf
 
Objective The purpose of this exercise is to create a Linked List d.pdf
Objective The purpose of this exercise is to create a Linked List d.pdfObjective The purpose of this exercise is to create a Linked List d.pdf
Objective The purpose of this exercise is to create a Linked List d.pdf
 
nsan davranlar �almasnda, �rg�tsel liderler insanlarn deerleri, tutu.pdf
nsan davranlar �almasnda, �rg�tsel liderler insanlarn deerleri, tutu.pdfnsan davranlar �almasnda, �rg�tsel liderler insanlarn deerleri, tutu.pdf
nsan davranlar �almasnda, �rg�tsel liderler insanlarn deerleri, tutu.pdf
 
nsan adaptasyonu genetik, geliimsel, iklimlendirme ve k�lt�rel olmak.pdf
nsan adaptasyonu genetik, geliimsel, iklimlendirme ve k�lt�rel olmak.pdfnsan adaptasyonu genetik, geliimsel, iklimlendirme ve k�lt�rel olmak.pdf
nsan adaptasyonu genetik, geliimsel, iklimlendirme ve k�lt�rel olmak.pdf
 
Nurse is performing a vaginal exan on a patient who is in labor .pdf
Nurse is performing a vaginal exan on a patient who is in labor .pdfNurse is performing a vaginal exan on a patient who is in labor .pdf
Nurse is performing a vaginal exan on a patient who is in labor .pdf
 
Nowadays, due to the sophistication of adversarial attack vectors, t.pdf
Nowadays, due to the sophistication of adversarial attack vectors, t.pdfNowadays, due to the sophistication of adversarial attack vectors, t.pdf
Nowadays, due to the sophistication of adversarial attack vectors, t.pdf
 
Novak proposes a �new theology� and �a new type of religion� (plural.pdf
Novak proposes a �new theology� and �a new type of religion� (plural.pdfNovak proposes a �new theology� and �a new type of religion� (plural.pdf
Novak proposes a �new theology� and �a new type of religion� (plural.pdf
 
Norve� ve Almanya i�in Ekonomik Karmaklk G�zlemevindeki (oec.world).pdf
Norve� ve Almanya i�in Ekonomik Karmaklk G�zlemevindeki (oec.world).pdfNorve� ve Almanya i�in Ekonomik Karmaklk G�zlemevindeki (oec.world).pdf
Norve� ve Almanya i�in Ekonomik Karmaklk G�zlemevindeki (oec.world).pdf
 

Recently uploaded

EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxLigayaBacuel1
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 

Recently uploaded (20)

EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptx
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"
 

only question 1 to 7 CREATE TABLE BRIDAL_PARTY ( EMAIL VARCHAR (.pdf

  • 1. only question 1 to 7 CREATE TABLE BRIDAL_PARTY ( EMAIL VARCHAR (25) PRIMARY KEY, F_NAME VARCHAR(25), L_NAME VARCHAR(25), GENDER VARCHAR(25), DOB DATE , BRIDAL_ADDRESS VARCHAR(25), MOBILE INTEGER ) CREATE TABLE EMPLOYEE ( ID INTEGER PRIMARY KEY , NAME_FIRST VARCHAR(25), NAME_LAST VARCHAR (25), EMPLOYMENT_DATE DATE, ADDRESS VARCHAR (25) , JOB_DESCRIPTION VARCHAR (25) ) CREATE TABLE VENUE ( ID INTEGER PRIMARY KEY, FIRST_NAME VARCHAR (25), V_LOCATION VARCHAR(25), V_ADDRESS VARCHAR (25), MAX_CAPACITY INTEGER, V_DESCRIPTION VARCHAR(25) ) CREATE TABLE WEDDING ( ID INTEGER PRIMARY KEY, WED_DATE DATE, MAX_BUDGET INTEGER, START_TIME time, MARRAIAGE_OFFICER VARCHAR (25), OWNEREMAIL VARCHAR (25), VENUE_ID INTEGER, CARTERER_ID INTEGER ) CREATE TABLE ATTENDANCE ( BP_EMAIL VARCHAR (25), WED_ID INTEGER, ROLE_ VARCHAR (25), EMP_ID INTEGER ) CREATE TABLE THEME ( WED_ID INTEGER PRIMARY KEY, FIRST_NAME VARCHAR(25), "DESCRIPTION" VARCHAR (25) ) CREATE TABLE OUT_OF_TOWN ( WED_ID INTEGER PRIMARY KEY, HOTEL_NAME VARCHAR(25) ) CREATE TABLE CATERER ( C_ID INTEGER PRIMARY KEY, C_NAME VARCHAR (25), EMAIL VARCHAR (25), SUB_ID INTEGER ) CREATE TABLE CATERER_PHONE ( PHONE INTEGER, CID INTEGER PRIMARY KEY ) ALTER TABLE EMPLOYEE ADD GENDER VARCHAR (5) DEFAULT('F'); ALTER TABLE EMPLOYEE ADD CONSTRAINT FK_GENDER CHECK (GENDER IN ('M','F')); ALTER TABLE EMPLOYEE DROP COLUMN GENDER; ALTER TABLE EMPLOYEE DROP CONSTRAINT FK_GENDER ALTER TABLE WEDDING ADD CONSTRAINT FK_OWNEREMAIL FOREIGN KEY (OWNEREMAIL) references BRIDAL_PARTY( EMAIL); ALTER TABLE WEDDING ADDCONSTRAINT FK_VENUE_ID FOREIGN KEY (VENUE_ID)references VENUE (ID); ALTER TABLE WEDDING ADDCONSTRAINT FK_CARTER_ID FOREIGN KEY (CARTERER_ID) references CATERER (C_ID); ALTER TABLE ATTENDANCE ADD CONSTRAINT FK_BP_EMAIL FOREIGN KEY (BP_EMAIL) REFERENCES BRIDAL_PARTY (EMAIL); ALTER TABLE ATTENDANCE ADDCONSTRAINT FK_WED_ID FOREIGN KEY (WED_ID) REFERENCES WEDDING (ID); ALTER TABLE ATTENDANCE ADDCONSTRAINT FK_EMP_ID FOREIGN KEY (EMP_ID) REFERENCES EMPLOYEE (ID); ALTER TABLE THEME ADD CONSTRAINT FK_WED_ID2 FOREIGN KEY (WED_ID) REFERENCES WEDDING (ID); ALTER TABLE OUT_OF_TOWN ADD CONSTRAINT FK_WED_ID3 FOREIGN KEY (WED_ID)
  • 2. REFERENCES WEDDING (ID); ALTER TABLE CATERER ADD CONSTRAINT FK_SUB_ID FOREIGN KEY (C_ID) REFERENCES CATERER (C_ID); ALTER TABLE CATERER_PHONE ADD CONSTRAINT FK_CID FOREIGN KEY (CID) REFERENCES CATERER (C_ID); SELECT * FROM CATERER ALTER TABLE CATERER ADD COST INT;