logo

Crowdly

Browser

Add to Chrome

Questions Bank (1398916 total)

Schéma relationnel :

  1. Employee (EmployeeID, FirstName, LastName, Email, Phone, HireDate, Salary, #DepartmentID)
  2. Department (DepartmentID, DepartmentName, #ManagerID)
  3. Project (ProjectID, ProjectName, StartDate, EndDate, Budget)
  4. Employee_Project (#EmployeeID, #ProjectID, Role, AssignmentDate)

Explication des relations :

  • Employee (EmployeeID) est la clé primaire.
  • Department (DepartmentID) est la clé primaire.
  • Project (ProjectID) est la clé primaire.
  • Employee_Project (#EmployeeID, #ProjectID) est une clé primaire composite (relation plusieurs-à-plusieurs entre Employee et Project).
  • Employee(#DepartmentID) → Department(DepartmentID) : Un employé appartient à un département.
  • Department(#ManagerID) → Employee(EmployeeID) : Un manager est un employé.
  • Employee_Project(#EmployeeID) → Employee(EmployeeID)
  • Employee_Project(#ProjectID) → Project(ProjectID)
QUESTION
Quelle requête affiche le nombre d'employés par département ?

A) SELECT COUNT(*) FROM Employee;

B) SELECT DepartmentID, COUNT(*) FROM Employee;

C) SELECT DepartmentID, COUNT(*) FROM Employee GROUP BY DepartmentID;

D) SELECT DepartmentID, COUNT(*) FROM Employee HAVING COUNT(*) > 1;

View this question
Ordne den drei gebraeuchlichen Verfahren ihren Typ zu
View this question
View this question
If two goods are perfect substitutes, then their
View this question
A change in the price of a good has
View this question
Welche der drei CIA - Schutzziele kann man mit Kryptographie erreichen? (2 Richtige)
0%
0%
0%
View this question

Ja taisnstūra paralēlskaldņa pamata malu garumi ir 9 cm un 12 cm, bet diagonālšķēlums ir kvadrāts, tad paralēlskaldņa augstums ir ... cm.

 

Atbildē raksti tikai skaitli!

View this question

Relational Schema:

Employee (EmployeeID, FirstName, LastName, Email, Phone, HireDate, Salary, #DepartmentID)

Department (DepartmentID, DepartmentName, #ManagerID)

Project (ProjectID, ProjectName, StartDate, EndDate, Budget)

Employee_Project (#EmployeeID, #ProjectID, Role, AssignmentDate)

Explanation of Relationships:

  • Employee (EmployeeID) is the primary key.
  • Department (DepartmentID) is the primary key.
  • Project (ProjectID) is the primary key.
  • Employee_Project (#EmployeeID, #ProjectID) is a composite primary key (many-to-many relationship between Employee and Project).
  • Employee(#DepartmentID) REFERENCES Department(DepartmentID): An employee belongs to a department.
  • Department(#ManagerID) REFERENCES Employee(EmployeeID): A manager is an employee.
  • Employee_Project(#EmployeeID) REFERENCES Employee(EmployeeID)
  • Employee_Project(#ProjectID) REFERENCES Project(ProjectID)
QUESTION

Which query selects employees whose salary is greater than all employees in department 2?

A) SELECT * FROM Employee WHERE Salary > ALL (SELECT Salary FROM Employee WHERE DepartmentID = 2);

B) SELECT * FROM Employee WHERE Salary > (SELECT Salary FROM Employee WHERE DepartmentID = 2);

C) SELECT * FROM Employee WHERE Salary > ANY (SELECT Salary FROM Employee WHERE DepartmentID = 2);

D) SELECT * FROM Employee WHERE Salary IN (SELECT Salary FROM Employee WHERE DepartmentID = 2);

0%
0%
0%
0%
View this question
View this question
View this question