List of the Entities and attribute of the Database CWG (Canberra…
Question Answered step-by-step List of the Entities and attribute of the Database CWG (Canberra… List of the Entities and attribute of the Database CWG (Canberra Work Group) Customer(CustomerNo, firstName, lastName,postalAddress, homeAddress(streetNumber, streetName, suburb, post-code,city), Gender, Services,telephoneNo) CustomerNextOfKin(nextOfkinNo,firstName,lastName,telephoneNo,address(streetNumber,streetName,suburb,post-code,city,state) Repair Services(ServiceName, serviceNo, serviceType, Price) Staff(StaffNo,firstName, lastName, staffNo, gender, dateOfBirth, salary, position, sectionName, officeNumber, internalTelephoneNo) Section(SectionName, emailAddress, location, telephoneNo, faxNo) Course(CourseNo, courseName, startDate, endDate, courseFee, instructorNo, instructorName) Instructor(InstructorNo, firstName, lastName , position, gender, dateOfBirth, salary, internalTelNo, sectionNo, officeNo) Payment(PaymentNo, customerNo, invoiceNo, amountPaid, dateOfPaid) Notice(NoticeNo, customerNo,invoiceNo,dateOfIssueOfNotice) Receipt(ReceiptNo, customerName,dateOfPayment, amountPaid, invoiceNo, paymentNo) Customer Request( JobNo, customerName, repairNo, repairName, dateOfJobLodgement, staffName) Appointment Reservation( ReservationNo,customerFirstName, lastName, contactNo, commenceTime, dateOfAppointment) Appointment Quotations( CustomerNo, customerPropertyAddress, staff No, repairDescription, quotationPrice) Repair Details( RepairNo,customerName, customerTelNo, postalAddress, dateAndTimeOfRepair, repairerName) Invoice (InvoiceNo, repairNo, paymentDueDate, amountToBePaid, propertyAddress,customerName, Staff Name,) Seminar Booking( BookingNo, customerNo, customerName, seminarRoomNo, dateAndTimeOfBookedRoom) Staff Booking( StaffNo, staffFirstName, staffLastName, position, dateAndTimeOfBookedRoom) Part 3 SQL [25 marks total]Based on the entities, attributes, and primary keys of your solution for Canberra Work Group (CWG) in Part 2 of this Take-Home Assessment paper, Write the following queries using SQL:1. List details of all customers from Canberra that have enrolled in a course order by Customer Number.[5 Marks]2. How many customers from Canberra have enrolled in a course conducted by an instructor with Instructor Number = 12345?[5 Marks]3. List the number of male staff in each section.[5 Marks]4. List the first and last name of all female staff that have made an appointment with a customer from Canberra for repair work.[5 Marks]5. What is the average salary of male staff from Canberra?[5 Marks] Computer Science Engineering & Technology Software engineering BUSINESS 5915 Share QuestionEmailCopy link Comments (0)


