Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For the purpose of the following problems, use the ER diagram How do I change the above to have the Doctor ID as the first

image text in transcribed

For the purpose of the following problems, use the ER diagram

image text in transcribedimage text in transcribed

How do I change the above to have the Doctor ID as the first 2 letter of his first name followed by numbers. Eg. If the Doctors name is Ron Gates, then his DoctorID can be RO3283. The numbers do not exist else where in the database.

Person Personi FirstName Speciality Speciality SpecialityName LastName StreetAddress City Doctor Doctorid MedicalDegrees State Tip Personi PhoneNumber SSN DoctorSpeciality 8 Doctorib 8 Speciality D PVisitPrescription % Visit 8 PrescriptionID Patient 8 Patients SecPhone Number DOB Personi Patient Visit 8 VisitID Patienti Doctor VisitDate DocNote Prescription 8 Prescription PrescriptionName Test TestiD TestName PVisitTest 8 VisitD 8 TestID create table Person PersonID int not null Primary key, FirstName varchar(10), LastName varchar(10), StreetAddress varchar(30), City varchar(10), State char(2), Zip varchar(9), Phone Number varchar(15), SSN varchar(9) create table Doctor DoctorID varchar(6) not null Primary key, MedicalDegrees varchar(15), PersonID int, Foreign Key (PersonID) references Person (PersonID))

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Current Trends In Database Technology Edbt 2006 Edbt 2006 Workshops Phd Datax Iidb Iiha Icsnw Qlqp Pim Parma And Reactivity On The Web Munich Germany March 2006 Revised Selected Papers Lncs 4254

Authors: Torsten Grust ,Hagen Hopfner ,Arantza Illarramendi ,Stefan Jablonski ,Marco Mesiti ,Sascha Muller ,Paula-Lavinia Patranjan ,Kai-Uwe Sattler ,Myra Spiliopoulou ,Jef Wijsen

2006th Edition

3540467882, 978-3540467885

More Books

Students also viewed these Databases questions

Question

Explain how pulse code modulation (PCM) works.

Answered: 1 week ago