Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. How many records will be retrieved by the following query on tables AGENT and AREA? SELECT * FROM agent ag, area a WHERE ag.agentarea

1. How many records will be retrieved by the following query on tables AGENT and AREA?

SELECT *

FROM agent ag, area a

WHERE ag.agentarea = a.areaid;

0

5

4 (not correct)

3

2. ENROLLMENT AND COURSE

Observe the ENROLLMENT AND COURSE database:

ENROLLMENT

EmpID

EmpName

CourseID

111

Joe

AMG

222

Bob

AMG

333

Lisa

PMG

444

Sue

AMG

COURSE

CourseID

CourseName

AMG

Anger Management

PMG

Project Management

This database will be used for the following questions citing tables ENROLLMENT and COURSE.

What will be the result of the following query?

SELECT count(*) FROM enrollment GROUP BY courseid;

1,3

1

4 (not correct)

3

3. BEVERAGE

Observe the table BEVERAGE:

BEVERAGE

BevID BevName BevType

B1 ZenMaster Tea

B2 LillyChai Tea

B3 AwakeBrew Coffee

B4 MintMild Tea

B5 MintBlast Tea

B6 RoastPal Coffee

Which of the following queries on table BEVERAGE will return number 2 as a result?

None of the above

SELECT COUNT(*) FROM beverage;

SELECT COUNT(bevname) FROM beverage; (not correct)

SELECT COUNT(bevtype) FROM beverage;

4. Which of the following statements would be used to drop a column from the table?

INSERT INTO

ALTER TABLE

DROP TABLE (not correct)

CREATE TABLE

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

Practical Azure SQL Database For Modern Developers Building Applications In The Microsoft Cloud

Authors: Davide Mauri, Silvano Coriani, Anna Hoffma, Sanjay Mishra, Jovan Popovic

1st Edition

1484263693, 978-1484263693

More Books

Students also viewed these Databases questions