Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For the EMPLOYEE table on page 12, show the output of the following Structured Query Language (SQL) query: (3 points) SELECT STORE_CODE, COUNT(*) AS Total

  1. For the EMPLOYEE table on page 12, show the output of the following Structured Query Language (SQL) query:

(3 points)

SELECT STORE_CODE, COUNT(*) AS Total

FROM EMPLOYEE

WHERE EMP_LNAME Like 'S%'

GROUP BY STORE_CODE

HAVING COUNT(*) > 1;

EMPLOYEE

EMP_CODE

EMP_TITLE

EMP_LNAME

EMP_FNAME

EMP_INITIAL

EMP_DOB

STORE_CODE

1

Mr.

Williamson

John

W

21-May-64

3

2

Ms.

Ratula

Nancy

T

09-Feb-69

2

3

Ms.

Greenboro

Lottie

R

02-Oct-61

4

4

Mrs.

Rumpersfro

Jennie

S

01-Jun-71

5

5

Mr.

Smith

Robert

L

23-Nov-59

3

6

Mr.

Renselaer

Cary

A

25-Dec-65

1

7

Mr.

Ogallo

Roberto

S

31-Jul-62

3

8

Ms.

Johnsson

Elizabeth

I

10-Sep-68

1

9

Mr.

Eindsmar

Jack

W

19-Apr-55

2

10

Mrs.

Jones

Rose

R

06-Mar-66

4

11

Mr.

Broderick

Tom

S

21-Oct-72

3

12

Mr.

Washington

Alan

Y

08-Sep-74

2

13

Mr.

Smith

Peter

N

25-Aug-64

3

14

Ms.

Smith

Sherry

H

25-May-66

4

15

Mr.

Olenko

Howard

U

24-May-64

5

16

Mr.

Archialo

Barry

V

03-Sep-60

5

17

Ms.

Grimaldo

Jeanine

K

12-Nov-70

4

18

Mr.

Rosenberg

Andrew

D

24-Jan-71

4

19

Mr.

Rosten

Peter

F

03-Oct-68

4

20

Mr.

Mckee

Robert

S

06-Mar-70

1

21

Ms.

Baumann

Jennifer

A

11-Dec-74

3

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_2

Step: 3

blur-text-image_3

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

Spatial Databases A Tour

Authors: Shashi Shekhar, Sanjay Chawla

1st Edition

0130174807, 978-0130174802

More Books

Students also viewed these Databases questions

Question

Discuss three main reasons people decide to become entrepreneurs.

Answered: 1 week ago

Question

Draw a neat sketch of Time Study Form.

Answered: 1 week ago

Question

Find dy/dx if x = te, y = 2t2 +1

Answered: 1 week ago