Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

3query.sql 672 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  1. --1 Print all the projects in which a specified student is involved
  2. SELECT pname
  3. FROM Project
  4. WHERE pid IN (SELECT pid FROM Assigned WHERE sid = (SELECT sid FROM Student WHERE sname = 'Landen'));
  5. --Print all the people working on a specified project.
  6. SELECT fname
  7. FROM Faculty
  8. WHERE fid IN (SELECT pi FROM Project WHERE pname = 'Website Redesign')
  9. OR fid IN (SELECT copi FROM Project WHERE pname = 'Website Redesign');
  10. --Print all the projects supervised by a specified faculty within a specified time range.
  11. SELECT pname
  12. FROM Project
  13. WHERE pi = (SELECT fid FROM Faculty WHERE fname = 'Jane')
  14. AND sdate >= '2024-02-15'
  15. AND edate <= '2024-05-15';
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...