Question: Consider the following database for projects in a class: Student(sid, name, dept) Project(pid, topic, budget) Team(sid, pid) Relation Student contains a row for each student
Consider the following database for projects in a class:
- Student(sid, name, dept)
- Project(pid, topic, budget)
- Team(sid, pid)
Relation Student contains a row for each student with a unique id, student name, and the department of each student. Each row in relation Project holds the unique id of a project, the topic area the students will be working on, and the estimated budget for the project. Finally, the table Team captures the assignments of students to projects.
Select all the SQL queries that would display the details of all projects with an estimated budget that falls in the range of between $50 and $500?
ANSWER CHOICES:
| a | SELECT * FROM project WHERE budget !<50 and budget !> 500; | |
| b | SELECT * FROM project WHERE budget >= 50 AND budget <= 500; | |
| c | SELECT * FROM project WHERE budget BETWEEN 50 AND 500; | |
| d | SELECT * FROM project WHERE budget > 50 AND budget < 500; |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
