logo

Crowdly

Browser

Додати до Chrome

Questions Bank (1398906 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 les employés qui ne sont pas dans le département 3 ou 5 ?

A) SELECT * FROM Employee WHERE DepartmentID NOT IN (3,5);

B) SELECT * FROM Employee WHERE DepartmentID != (3,5);

C) SELECT * FROM Employee WHERE DepartmentID <> (3,5);

D) SELECT * FROM Employee WHERE DepartmentID NOT ANY (3,5);

Переглянути це питання

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 displays departments with more than 5 employees?

A) SELECT DepartmentID FROM Employee WHERE COUNT(*) > 5;

B) SELECT DepartmentID, COUNT(*) FROM Employee GROUP BY DepartmentID HAVING COUNT(*) > 5;

C) SELECT DepartmentID, COUNT(*) FROM Employee HAVING COUNT(*) > 5;

D) SELECT DepartmentID FROM Employee GROUP BY DepartmentID;

Переглянути це питання

A 1992 Roper poll found that 22% of Americans say that the Holocaust may not have happened. The actual question asked in the poll was:

Does it seem possible or impossible to you that the Nazi extermination of the Jews never happened?

and 22% responded “Possible.” The results of this poll cannot be trusted because

0%
0%
0%
0%
Переглянути це питання

A questionnaire on a table at a shopping centre was completed by 100 shoppers.

The results were used to claim that the average amount of money spent by Australians increased from the previous year.

Which one of the following biases makes this survey questionable?

0%
0%
0%
0%
Переглянути це питання

To assess the opinion of students about campus safety at your campus of Monash University, a reporter for the student newspaper interviews 15 students she meets walking on your campus late at night who are willing to give their opinion.

Reference: Ref 7-3

The biggest problem with this sample is that it is

Переглянути це питання

Olivia wants to learn a foreign language. To get an idea of how satisfied other students were after taking a foreign language course, she decides to take a random sample of 20 students.

She randomly selects 5 students from French, 5 from German, 5 from Spanish, and 5 from Chinese. What type of sampling design is this approach?

0%
0%
0%
0%
Переглянути це питання

A random sample of 800 airline passengers is wanted from 100 particular flights leaving Sydney Airport. Assume there are 200 passengers aboard each flight.

A numbered list of all 100 x 200 = 20,000 passengers on these flights was obtained. One passenger was drawn from each set of 20,000/800 = 25 passengers. Randomly choose among the first 25 passengers on the list to start, and then choose every 25th passenger until 800 passengers were obtained.

What type of sampling technique is this?

0%
0%
0%
0%
Переглянути це питання

Which of the following statements best describes the main difference between a survey and a census?

Переглянути це питання

Taxpayers in a population are listed in order of increasing income, with people with the lowest incomes listed first. A sample is selected by randomly choosing one of the first 1000 names, then choosing every 1000th name from that point forward.

What is the type of sampling design in this approach?

0%
0%
0%
0%
Переглянути це питання

Each month the census bureau mails survey forms to 250,000 households asking questions about the people living in the household and about such things as motor vehicles and housing costs. Telephone calls are made to households that don't return the form. In one month, responses were obtained from 240,000 of the households contacted.

Reference: Ref 7-1

The sample is

Переглянути це питання