1. Write a query for the HR department to produce the addresses of all the departments. Use the
LOCATIONS and COUNTRIES tables. Show the location ID, street address, city, state or province, and
country in the output. Use a NATURAL JOIN to produce the results.
2. The HR department needs a report of all employees. Write a query to display the last name,
department number, and department name for all employees.
3. The HR department needs a report of employees in Toronto. Display the last name, job, department
number, and department name for all employees who work in Toronto.
4. Create a report to display employees’ last name and employee number along with their manager’s
last name and manager number. Label the columns Employee, Emp#, Manager, and Mgr#,
respectively.
5. Display all employees including King, who has no manager. Order the results by the employee
number.
6. Create a report for the HR department that displays employee last names, department numbers,
and all the employees who work in the same department as a given employee. Give each column an
appropriate label.
7. The HR department needs a report on job grades and salaries. create a query that displays the
name, job, department name, salary, and grade for all employees.
8. The HR department wants to determine the names of all employees who were hired after Davies.
Create a query to display the name and hire date of any employee hired after employee Davies.
9. The HR department needs to find the names and hire dates for all employees who were hired before
their managers, along with their managers’ names and hire dates.
1 . เขียนแบบสอบถามสำหรับแผนก HR เพื่อสร้างที่อยู่ของทุกแผนก ใช้สถานที่และประเทศตาราง แสดงสถานที่ตั้ง ID , ที่อยู่ , เมือง , รัฐหรือจังหวัดประเทศในการส่งออก ใช้ร่วมกับธรรมชาติ ผลิตผล2 . ฝ่ายบุคคลต้องการรายงานของพนักงานทั้งหมด เขียน query เพื่อแสดงนามสกุลแผนกหมายเลข และชื่อหน่วยงานสำหรับพนักงานทุกคน3 . ฝ่ายบุคคลต้องการรายงานของพนักงานในโตรอนโต แสดงงานชื่อ ล่าสุด กรมหมายเลข และชื่อกรมพนักงานทั้งหมดที่ทำงานในโตรอนโต4 . สร้างรายงานเพื่อแสดงชื่อและหมายเลขของพนักงานเมื่อพนักงานพร้อมกับผู้จัดการของพวกเขานามสกุลและผู้จัดการจำนวน ป้ายชื่อคอลัมน์พนักงาน , พนักงาน # ผู้จัดการ และ # Mgr ,ตามลำดับ5 . แสดงพนักงานทุกคนรวมทั้งกษัตริย์ที่ไม่มีผู้จัดการ ผลการสั่งซื้อโดยพนักงานหมายเลข6 . สร้างรายงานสำหรับแผนก HR พนักงานล่าสุดที่แสดงชื่อ , หมายเลขแผนกและพนักงานที่ทำงานในแผนกเดียวกับ ให้พนักงาน ให้แต่ละคอลัมน์เป็นป้ายที่เหมาะสม7 . ฝ่ายบุคคลต้องการรายงานในระดับงาน และเงินเดือน สร้างแบบสอบถามที่แสดงชื่องาน ชื่อแผนก เงินเดือน และเกรด สำหรับพนักงานทุกคน8 . ฝ่ายบุคคลต้องการที่จะตรวจสอบชื่อของพนักงานที่ได้รับการว่าจ้างจาก เดวี่ส์สร้างแบบสอบถามเพื่อแสดงชื่อและจ้างพนักงานจ้างพนักงานวันที่ใด ๆหลังจากที่ เดวี่ส์9 . ฝ่ายบุคคลจะต้องค้นหาชื่อ และจ้างพนักงานที่จ้างวันที่ทั้งหมดก่อนผู้จัดการของพวกเขาพร้อมกับชื่อของผู้จัดการของพวกเขาและจ้างวันที่
การแปล กรุณารอสักครู่..
