Professional Documents
Culture Documents
Exp No 4 Janhavi
Exp No 4 Janhavi
Live SQL
Home
\ Script ScArctiiponts
SQL Worksheet "EXPERIEMdit EANttriTbu
o My Session
Schema
Name EXPERIMENT NO 4
Quick SQL
Description JANHAVI MALI
My Scripts Area -
Visibility Private - you are the only person who can access
My Tutorials
Tags -
Code Library
Script Results We cannot determine the last run date for this script.
Statement 1
select course_id
Edit
from takes where semester = 'Fall' and year = 2009
and course_id in
(select course_id
from takes
where semester = 'Spring' and year = 2010)
no data found
Statement 2
select course_id
Edit
from teaches
where semester = 'Fall' and year=2009
minus
select course_id
from teaches
where semester = 'Spring' and year=2010
no data found
Statement 3
select name
Edit
from instructor
where not name = 'Mozart' and not name = 'Einstein'
https://livesql.oracle.com/apex/f?p=590:43:24785039077016::NO:::&success_msg=U2NyaXB0ICZxdW90O0VYUEVSSU1FTlQgTk8gNCZxdW90… 1/3
5/1/22, 9:46 PM Script
NA
Live SQL ME
El said
Home Kim
Crick
Brandt
o My Session Gold
Singh
Schema Katz
Sriniwasan
My Scripts Statement 4
select count(distinct sec_id) as students
Edit from teaches
My Tutorials where ID = 110011
Code Library
STUDENTS
0
Download CSV
Statement 5
select name
Edit
from instructor
where salary> some
(select salary from instructor
where dept_name = 'CSE')
no data found
Statement 6
select name
Edit
from instructor
where salary>some(select salary
from instructor where dept_name='CSE')
no data found
Statement 7
select dept_name
Edit
from instructor
group by dept_name
having avg(salary)>=all(select avg(salary) from instructor gr
DEPT_NAME
https://livesql.oracle.com/apex/f?p=590:43:24785039077016::NO:::&success_msg=U2NyaXB0ICZxdW90O0VYUEVSSU1FTlQgTk8gNCZxdW90… 2/3
5/1/22, 9:46 PM Script
Physics
Download CSV
https://livesql.oracle.com/apex/f?p=590:43:24785039077016::NO:::&success_msg=U2NyaXB0ICZxdW90O0VYUEVSSU1FTlQgTk8gNCZxdW90… 3/3
5/1/22, 9:46 PM Script
Script Update
Home
© 2022 Oracle · Live SQL 22.1.3, running Oracle Database 19c Enterprise Edition - 19.8.0.0.0 · Database
Dev Gym
SQL Worksheet
Built with using Oracle APEX · Privacy · Terms of Use
o
My Session
Schema
Quick SQL
My Tutorials
Code Library
https://livesql.oracle.com/apex/f?p=590:43:24785039077016::NO:::&success_msg=U2NyaXB0ICZxdW90O0VYUEVSSU1FTlQgTk8gNCZxdW90… 4/3