1.In the First question.
The query needs to display the name of departments ,So we will select Department
and the art has to be in the name,so using % wildcard on both before and after art "%are%" will give us the department that has art in anywhere in the name.
SELECT Department
FROM Student
WHERE Department LIKE "%art%"; //when you use pattern matching you use LIKE.
2.In the second question
We need email of student with scholarship less than 5000 So the condition will be t.scholarship < 5000
In the query we have to take a column from one table and the column for the condition is in another table,so it is better to mention table name with the column name.
SELECT s.Email //here S will be for the student table as email is in that table.
FROM Student s,Tuition t //comma is the correct way to separate both tables
WHERE t.Scholarship < 5000;
1 pts Based on the following ER Diagram from the database called "Student Financial." What SQL...
1. Consider the following ER diagram. Stung StuName Grade SubCode SubName STUDENT has an ENROLMENT > -Fora + SUBJECT a. Convert this ERD to a Relational Schema. Indicate all Pks and FKs. b. What is the PK of ENROLMENT? C. Write the SQL statement to create a student: STU101 Henry Bloggs d. Write the SQL statement to create a subject: INF10004 Database Analysis and Design e. Write the SQL statement to create an enrolment: Enrol Henry into Database Analysis and...
In using a database created from this model, which of the following SQL queries would give us a list of customers who have daily deposit transactions (deposit is a transaction type) totaling $10,000 or more across all of their accounts (i.e., this is a total across all accounts of a customer, not per account). Include in this list the Customer ID and name, and the dates and their respective daily total. SELECT c.cust_id, c.cust_name, DATE(t.tran_date), SUM(t.tran_amount) AS daily_total FROM Customers...