Question: Database Table Structures - Database Name - KeyToneIncEmployee Field NameData TypeKeyfnametext ( 1 5 ) MinittextLnametext ( 1 5 ) ssntext ( 9 ) PrimaryBdatedateAddresstext
Database Table Structures Database Name KeyToneIncEmployee Field NameData TypeKeyfnametextMinittextLnametextssntextPrimaryBdatedateAddresstextSextextSalaryNumber decimalSuperssntextForeign Ssn in EmployeeDnoNumber Foreign Dnumber in DepartmentDepartmentField NameData TypeKeyDnametextDnumberNumberPrimaryMgrssntextForeign Ssn in EmployeeMgrstartdate dateDeptLocationsField NameData TypeConstraintKeyDnumberNumbernot nullprimary,foreign Dnumber in DepartmentDlocationtextnot nullprimaryProjectField NameData TypeKeyPnametextPnumberNumberPrimaryPlocationtextDnumNumberForeign Dnumber in DepartmentWorksOnField NameData TypeKeyEssntextPrimary Foreign Ssn in EmployeePnoNumberPrimary Foreign Pnumber in ProjectHoursNumber decimalDependentField NameData TypeKeyEssntextPrimaryDependentnametextPrimarySextextBdatedateRelationshiptextCreate appropriate relations among tables,The Tables' DataEmployeeFnameMinitLnameSsnBdateAddressSexSalarySuperssnDnoJohnBSmith Fondren, Houston, TXMFranklinTWong Voss, Houston, TXMJoyceAEnglish Rice, Houston, TXFRameshKNaranyan Fire Oak, Humble, TXMJamesEBorg Stone, Houston, TXMNULLJenniferSWallace Berry, Bellaire, TXFAhmadVJabbar Dallas, Houston, TXMAliciaJZelaya Castle, Spring, TXFDepartmentDnameDnumberMgrssnMgrstartdateHeadquartersAdministrationResearchDeptLocationsDnumberDlocationHoustonStaffordBellaireHoustonSugarlandProjectPnamePnumberPlocationDnumProductXBellaireProductYSugarlandProductZHoustonComputerizationStaffordReorganizationHoustonNewbenefitsStaffordDependentEssnDependentnameSexBdateRelationshipAliceFDaughterElizabethFSpouseJohnMSonMichaelMSonAliceFDaughterJoytFSpouseTheodoreMSonAbnerMSpouseWorksOnEssnPnoHoursqueries :List the first name, last name, Supervisor's first and last name, Department number and the average salary for everyone in AdministrationFor every the employee with a dependent, list the dependent's first name, the employee's last name, and relation to the employee.List the name of employees with a dependent named "Alice" and the relationship to the employee.List everyone who works in Research name and salaryFor each project, list project name, location, department and the superior of everyone working on that project.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
