Question

1 pts Based on the following ER Diagram from the database called Student Financial. What SQL statement would you use to ans
Based on the following ER Diagram from the databa Student Financial. What SQL statement would you following question? Stude
(1.1) PK tutionID FirstName Pays -(1.1) FK Student LastName Email SemesterCost Department Scholarships DueDate hat are the na
Based on the following ER Diagram from the database called Student Financial. What SQL statement would you use to answer th
Question 5 Based on the following ER Diagram from the database Student Financial. What SQL statement would you use followin
following question? Tuition Student PK PSUID PK tutionID Pays FirstName -(1,1)+ FK Student SemesterCost LastName Email Schola
Tollowing ER Diagram from the database calle dent Financial. What SQL statement would you use to wing question? Student SUID
0 0
Add a comment Improve this question Transcribed image text
Answer #1

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;

Add a comment
Know the answer?
Add Answer to:
1 pts Based on the following ER Diagram from the database called "Student Financial." What SQL...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 1. Consider the following ER diagram. Stung StuName Grade SubCode SubName STUDENT has an ENROLMENT >...

    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...

    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...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT