Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

WRITE the compilable SQL query. DRAW the resulting Relation. a. Retrieve all male students. Return Last Name, First Name, and Gender. b. Retrieve t.utor Key,

WRITE the compilable SQL query. DRAW the resulting Relation.

a. Retrieve all male students. Return Last Name, First Name, and Gender.

b. Retrieve t.utor Key, Course KEY, Session Date, and Student Key from scheduled sessions BETWEEN 11/1/2009 and 11/15/2009.

c. Retrieve the COUNT of all students over 25 and rename the output Total over 25.

d. Retrieve t.utor Key and number of sessions (rename Total Sessions) of t.utors that have less than four sessions scheduled.

e. Create a view vw_Sessions for the students to look at the t.utoring sessions. It should contain

T.utorLastName aliased as [T.utor],

StudentKey AS [ Student],

SessionDateKey AS [ Date],

SessionTimeKey AS [ Time],

CourseKey AS [ Course]

f. Using the View vw_Sessions retrieve the distinct list of t.utors.

NOTE: I had to place a period in the word t.utor, becuase it's apparently an illegal word to post on here.

image text in transcribed

image text in transcribed

image text in transcribedimage text in transcribedimage text in transcribed

Tutor Table Data: Tutorkey 980010000 Robarts TulorLast Name TudorFIrstName TutorPhone Tutormalil TutorHireDate TuterStatus Marth Susan Danle Natian 2065551467 moberts@yahoo com 1/6/2010 Actve 10001 |Brown 90010012 Foster 980010003 Andn 980010004 ests 21/2009 Active 2065553490 Foster32aol.com 212/2009 Actve 3065556320 Null 2065652985 gngrndmal com 3/15/2009 32/2009 Course Table Data: CourseKey CourselName TC110 TC220 TC255 MAT107 ENG211 WEB110 ITC226 Introduction to Database Systams Analysis Applled Math Technical Witng Beginning Web Page Design Bac xrtm Daabase Administation CourseDescription Programming using C Overview of dalabase design and topics Systams anatysis and design Applied malth for computers Technlcal writing tor Information technology SQL Server administration Ethnicity Table Data: EtbnleityKey ElbnleltyDeseription Asan AtrAm Hispanic Padilic MIdhast Other White. European origin Chinese, Japanese, Korean, Southaast Asian lcan Amarican or of Atrican Mexican.Central or Soutn American, Carbbean Pasitic istander Arabic or Porstan Cther or not disclosed

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2018 Dublin Ireland September 10 14 2018 Proceedings Part 1 Lnai 11051

Authors: Michele Berlingerio ,Francesco Bonchi ,Thomas Gartner ,Neil Hurley ,Georgiana Ifrim

1st Edition

3030109240, 978-3030109240

More Books

Students also viewed these Databases questions

Question

=+ What is the role of government in bargaining?

Answered: 1 week ago

Question

=+ Who is the negotiation partner at company level?

Answered: 1 week ago

Question

=+Which associations exist?

Answered: 1 week ago