Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This exercise is based on the tables shown in the figure from the Adventure Works 2008 database. These tables can be found on the SQL

image text in transcribed
image text in transcribed
This exercise is based on the tables shown in the figure from the Adventure Works 2008 database. These tables can be found on the SQL server via remote desktop. Department (Huma 9 DepartmentID Name GroupName ModifiedDate Employee Department History (Hu 8 Business EntryID 8 DepartmentID Shift 9 StartDate EndDate ModifiedDate 8 EmployeePay History - Employee (Human Resources) BusinessEntryID 8 Business EntityID RateChangeDate National DNumber Rate LoginID PayFrequency Organization Node Modifled Date OrganizationLevel Job Title BirthDate Marital Status Gender HireDate Please write the SQL statements to answer the following questions. 9. Google and learn about the SQL function "Case...When...End". Use this function to show the number of female, male, and total number of current employees Female Male Total 84 206 290 1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

2nd Edition

0470624701, 978-0470624708

More Books

Students also viewed these Databases questions

Question

=+ Should the MNE belong (why, why not)?

Answered: 1 week ago

Question

=+ What is the role of government in bargaining?

Answered: 1 week ago