Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started