SQL question(在线等,谢谢!!)# Database - 数据库
B*a
1 楼
Tables and keys:
patient (patientID, lastName, firstName, bMonth, bDay, bYear,
accountID) key: patientID
account (accountID, balance, responsibleParty) key: accountID
visit (patientID, vMonth, vDay, vYear, description, charge,
doctorID) key: patientID, vMonth, vDay, vYear
doctor (doctorID, drName, degreeYear) key: doctorID
diagnosis (dCode, dDescription) key: dCode
visitDiagnosis (patientID, vMonth, vDay, vYear, dCode) key:
patientID, vMonth, vDay, vYear, dCode
Query: Which patient(s) have been
patient (patientID, lastName, firstName, bMonth, bDay, bYear,
accountID) key: patientID
account (accountID, balance, responsibleParty) key: accountID
visit (patientID, vMonth, vDay, vYear, description, charge,
doctorID) key: patientID, vMonth, vDay, vYear
doctor (doctorID, drName, degreeYear) key: doctorID
diagnosis (dCode, dDescription) key: dCode
visitDiagnosis (patientID, vMonth, vDay, vYear, dCode) key:
patientID, vMonth, vDay, vYear, dCode
Query: Which patient(s) have been