Write the SQL statement for the following: 1. Using the ON clause, display the advisor name and student name for all students in the BTech level 2. Display the student name, gender and department name of all students who belong to BSD department with the USING dause 3. Display the advisor name, student name and gender for all students who belong to Level 1, Level 2 or Level 3 by using the FROM clause 4. Display the department name and allowance of students 5. Display the advisor name, student name and department name

Database Systems: Design, Implementation, & Management
12th Edition
ISBN:9781305627482
Author:Carlos Coronel, Steven Morris
Publisher:Carlos Coronel, Steven Morris
Chapter8: Advanced Sql
Section: Chapter Questions
Problem 69C: Update the DETAILRENTAL table to set the values in DETAIL_RETURNDATE to include a time component....
icon
Related questions
Question
PRACTICE ACTIVITY FOR JOINS (using APEX)
Table name: ADVISORS
ADVISORID
ADVISORNAME
A102
Sami
A103
Alice
A104
Suad
Tamil
A105
A101
Arun
Table name: DEPARTMENTS
DEPTID
DEPTNAME
D102
ELC
D101
D103
IT
BSD
D104
ENG
Table name: STUDENTS
| STUDENTID
GENDER
STUDENTNAME
DOB
ALLOWANCE
DEPTID
ADVISORID
STUDENTLEVEL
AGE
S103
6/1/1999 Male
90 D102
A102
Level 1
Hisham
22
S102
Sara
12/30/1994 Female
45 D103
A104
Diploma
27
6/1/1999 Male
5/6/1995 Male
S101
Salim
45
D103
A104
Diploma
22
S107
Khalil
45
D101
A101
BTech
26
S109
Said
10/15/1992 Male
45
D104
A101
Advanced Diploma
29
S100
Ahmad
5/1/1995 Male
45
D101
A103
BTech
26
4/5/1998 Male
2/23/1992 Female
S104
Faisal
90 D104
A101
Advanced Diploma
23
S105
Fatima
90 D102
A102
Level 2
29
S106
Arwa
9/12/1999 Female
45
D102
A102
Level 3
22
S108
Ibtisam
8/13/1991 Female
90 0103
A104
Diploma
30
Write the SQL statement for the following:
1. Using the ON clause, display the advisor name and student name for all students in the BTech
level
2. Display the student name, gender and department name of all students who belong to BSD
department with the USING clause
3. Display the advisor name, student name and gender for all students who belong to Level 1, Level
2 or Level 3 by using the FROM clause
4. Display the department name and allowance of students
5. Display the advisor name, student name and department name
Transcribed Image Text:PRACTICE ACTIVITY FOR JOINS (using APEX) Table name: ADVISORS ADVISORID ADVISORNAME A102 Sami A103 Alice A104 Suad Tamil A105 A101 Arun Table name: DEPARTMENTS DEPTID DEPTNAME D102 ELC D101 D103 IT BSD D104 ENG Table name: STUDENTS | STUDENTID GENDER STUDENTNAME DOB ALLOWANCE DEPTID ADVISORID STUDENTLEVEL AGE S103 6/1/1999 Male 90 D102 A102 Level 1 Hisham 22 S102 Sara 12/30/1994 Female 45 D103 A104 Diploma 27 6/1/1999 Male 5/6/1995 Male S101 Salim 45 D103 A104 Diploma 22 S107 Khalil 45 D101 A101 BTech 26 S109 Said 10/15/1992 Male 45 D104 A101 Advanced Diploma 29 S100 Ahmad 5/1/1995 Male 45 D101 A103 BTech 26 4/5/1998 Male 2/23/1992 Female S104 Faisal 90 D104 A101 Advanced Diploma 23 S105 Fatima 90 D102 A102 Level 2 29 S106 Arwa 9/12/1999 Female 45 D102 A102 Level 3 22 S108 Ibtisam 8/13/1991 Female 90 0103 A104 Diploma 30 Write the SQL statement for the following: 1. Using the ON clause, display the advisor name and student name for all students in the BTech level 2. Display the student name, gender and department name of all students who belong to BSD department with the USING clause 3. Display the advisor name, student name and gender for all students who belong to Level 1, Level 2 or Level 3 by using the FROM clause 4. Display the department name and allowance of students 5. Display the advisor name, student name and department name
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Single Table
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage