Question

plz help me this little assignmnet ENROLL ClassCode StudID Enrollment Date Grade CL001 PP001 9/1/2017 CL002...

plz help me this little assignmnet

ENROLL

ClassCode

StudID

Enrollment Date

Grade

CL001

PP001

9/1/2017

CL002

PP001

9/1/2017

CL003

PP001

9/1/2017

CL009

AA001

9/1/2017

CL010

AA001

9/1/2017

CL004

WS001

9/1/2017

CL005

AB001

9/1/2017

CL006

AB001

9/1/2017

CL008

AB001

9/1/2017

CL009

JE001

9/1/2017

CL010

JE002

9/1/2017

CL001

JE002

9/1/2017

CL004

LC001

9/1/2017

CL008

JM001

9/1/2017

CL009

MB002

9/1/2017

CL006

MG001

9/1/2017

CL005

AA002

9/1/2017

CL006

AA002

9/1/2017

CL003

KN001

9/1/2017

CL010

CA001

9/1/2017

Create update queries that will change the grades for the following students and classes:

StudID ClassCode           Grade

PP001 CL001                    A

PP001 CL002                    B

AA001 CL009                   B+

JE001 CL009                    C

KN001   CL003                    F

You only need to include the update queries in the Word document.

Using Management Studio, enter grades for all the other rows in the Enroll table.

After all the grades have been entered, create a query that returns Student Last Name, Student First Name, Course Title, Grade, and Number of Credits. Sort by

0 0
Add a comment Improve this question Transcribed image text
Answer #1

If you have any doubts, please give me comment...

-- Create update queries that will change the grades for the following students and classes:

-- StudID ClassCode Grade

-- PP001 CL001 A

-- PP001 CL002 B

-- AA001 CL009 B+

-- JE001 CL009 C

-- KN001 CL003 F

UPDATE ENROLL SET Grade = 'A' WHERE StudID ='PP001' AND ClassCode = 'CL001';

UPDATE ENROLL SET Grade = 'B' WHERE StudID ='PP001' AND ClassCode = 'CL002';

UPDATE ENROLL SET Grade = 'B+' WHERE StudID ='AA001' AND ClassCode = 'CL009';

UPDATE ENROLL SET Grade = 'C' WHERE StudID ='JE001' AND ClassCode = 'CL009';

UPDATE ENROLL SET Grade = 'F' WHERE StudID ='KN001' AND ClassCode = 'CL003';

-- After all the grades have been entered, create a query that returns Student Last Name, Student First Name, Course Title, Grade, and Number of Credits. Sort by Students Last Name

SELECT S.LastName, S.FirstName, C.Title, E.Grade, C.Credits

FROM Student S, ENROLL E, Course C, Class CL

WHERE S.StudID = E.StudID AND E.ClassCode = CL.ClassCode AND CL.CourseCode = C.CourseCode

ORDER BY S.Lastname;

Add a comment
Know the answer?
Add Answer to:
plz help me this little assignmnet ENROLL ClassCode StudID Enrollment Date Grade CL001 PP001 9/1/2017 CL002...
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
  • write sql queries] 9. The total number of sections taught by each instructor in each (semester,...

    write sql queries] 9. The total number of sections taught by each instructor in each (semester, year) 10. The total number of D and F grades in each (semester, year) 11. The total number of D and F grades in each (semester, year) for the “Graph Theory” course write sql queries U Ausigrument 11 * C Gullerewors llea With Chege x + - IX € → C a su.instructure.com/courses/34607/assignments/863706 Part 1 For the following database schema, write SQL queries to...

  • Someone please answer all of these. I need these badly. The submission date is knocking at...

    Someone please answer all of these. I need these badly. The submission date is knocking at the door. Experiment 1: SQL data definition and data insertion 46 hours) 1. CREATE TABLE. The database schema consists of the three relations, whose schemas are: S (Spa, Sname. Sgender, Sage, Sdert? // students(SID, name, gender, age, department) SC (Spa, Cne. Grade) //Course(SID, CID, grade) C (One Cname Crno. Ceredit) l/courses (CID, course name, prerequisite courses, credit) 2. DROP TABLE, ALTER TABLE, CREATE INDEX,...

  • Question 1.Write a SQL statement for each of the following questions based on the above tables...

    Question 1.Write a SQL statement for each of the following questions based on the above tables (50 Points). 1) Create “Enrollment” table. 2) Change the credits of “Database” course from 2 to 3. 3) List the course titles (not Course_No) and grades John Doe had taken. 4) Calculate average of Café Balance, and name new field as Average Balance. 5) Create a roster for “Database” course (list student ID, last name, first name, major, and status for each student enrolled...

  • Please help me on the SQL queries, thank you so much. Write a query to display the title and publisher as well as the p...

    Please help me on the SQL queries, thank you so much. Write a query to display the title and publisher as well as the publisher contact for each book using JOIN...USING clause. Write a query to show the first and last names of customers who have ordered cooking books. Use the WHERE clause to join the tables. Write a query to show the title, cost and ISBN of each book in the books table. If the book has been ordered,...

  • This is database system concept. 1.Find the ids of instructors who are also students using a...

    This is database system concept. 1.Find the ids of instructors who are also students using a set operation. Assume that a person is identified by her or his id. So, if the same id appears in both instructor and student, then that person is both an instructor and a student. Remember: set operation means union, intersect or set difference. 2.Find the ids of instructors who are also students using the set membership operator. 3.Find the ids of instructors who are...

  • Please complete the following programming with clear explanations. Thanks! Homework 1 – Programming with Java: What...

    Please complete the following programming with clear explanations. Thanks! Homework 1 – Programming with Java: What This Assignment Is About? Classes (methods and attributes) • Objects Arrays of Primitive Values Arrays of Objects Recursion for and if Statements Selection Sort    Use the following Guidelines: Give identifiers semantic meaning and make them easy to read (examples numStudents, grossPay, etc.) Use upper case for constants. • Use title case (first letter is upper case) for classes. Use lower case with uppercase...

  • Semester2, 2018/2019 Page 1 of 23 Title of Assessment Assessment Two – Group Case Study Due Date Thursday 30th May 2019 at 9:00 am Type Group Case Study Weighting 35% Learning Outcomes 1. Demonstrate...

    Semester2, 2018/2019 Page 1 of 23 Title of Assessment Assessment Two – Group Case Study Due Date Thursday 30th May 2019 at 9:00 am Type Group Case Study Weighting 35% Learning Outcomes 1. Demonstrate a detailed knowledge of the foundational theoretical framework for accounting 2. Apply financial accounting principles in the accounting process and interpret outcomes for a business client 3. Prepare financial statements for a sole trader 4. Prepare cash book and bank reconciliation statements for a given business...

  • part one : Review Exercises 1. Write method called raggedCount that takes an integer n as...

    part one : Review Exercises 1. Write method called raggedCount that takes an integer n as argument and returns a ragged array of n rows of lengths 1, 2, 3, 4, ... , n and the whole array has the integers 1, 2, 3, 4, ... , n(n+1) 2 in row order. For example, raggedCount(4) should return the array: 1 2 3 4 5 6 7 8 9 10 1 2. Write a method called arrayConcat that takes as argument...

  • Database HW help!!!!!!! Provide the SQL statements for the following queries. (1) Provide the names and...

    Database HW help!!!!!!! Provide the SQL statements for the following queries. (1) Provide the names and phones of all swimmers currently in level (of id) 3. +-------+---------+---------------------------+ | FName | LName   | EMail                     | +-------+---------+---------------------------+ | Bobby | Khan    | theBKhan1 | | Clara | Johnson | ClaraJohnson_11 | +-------+---------+---------------------------+ 2 rows in set (0.00 sec) (2) Provide the names of swimmers who have signed up to participate in the event '100M Butterfly' of Meet id 1. +-------+---------+ | FName...

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