Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Using the database provided(Access Database is in Blackboard under “Lessons/Week

ID: 3881524 • Letter: U

Question

Using the database provided(Access Database is in Blackboard under “Lessons/Week #3”). Write and Execute SELECT statements to get the answers to the Problems in Assign #4.

See handout in Blackboard, under “Lessons/Week #3, for help in using SQL in MS Access.

Problems:

Students Table :

List of students, all columns, with GPA equal 0.

List of Students, name and state only, from GA, FL or CA.

List all students with a C average.(2.0 to 2.99)

List all students that do not have an email address.

List all students with a last name that starts with ‘B’.

What would the gpa be for all students if they all studied alittle harder and raised their gpa by 0.5

What would be the gpa for all students if each student increased his/her gpa by 20%

Instructors Table :

List of Instructors, only fname and lname, from Georgia and who’s last name ends in ‘son’.

List of instructors who have Yahoo email accounts

Sections Table :

List of Sections, all info, taught on Sat.

List all Sections, all info, not taught in room 1150

        

Courses Table :

List of all Courses, just name and CourseID that are intro courses, CIST 1001, CIST 1305 or CIST 1130 and CIST 1401(use IN).

StudentSchedule StudentID CRN 1 30108 1 30116 2 30101 2 30103 2 30109 3 30102 3 30105 3 30111 4 30114 4 30115 5 30114 5 30115 6 30103 6 30107 6 30109 7 30110 8 30110 8 30114 9 30102 9 30109 10 30101 10 30110 11 30106 11 30111 11 30116 12 30105 12 30106 13 30109 13 30110 13 30111 14 30101 15 30103 15 30107 15 30115 16 30101 16 30103 16 30110

Explanation / Answer

SQL Queries-

Students table-
1- SELECT * FROM Students WHERE GPA=0;
2- SELECT FirstName,LastName,State WHERE State IN (GA,FL,CA);
3-
4-SELECT * FROM Students WHERE EMail=NULL;
5-SELECT * FROM Students WHERE LastName like 'B%';
6-UPDATE Students
SET GPA = GPA+0.5;
7-UPDATE Students
SET GPA = 1.20*GPA;

Instructors Table-
1-SELECT FirstName,LastName FROM Instructors WHERE City='Georgia' AND LastName like '%son';
2-SELECT * FROM Instructors WHERE Email like '%@yahoo.com';

Sections Table-
1- SELECT * FROM Sections WHERE TimeDays like 'S%';
2-SELECT * FROM Sections WHERE RoomNo NOT IN (1150);

Courses Table-
1-SELECT CourseName,CourseID WHERE CourseID IN ('CIST 1001','CIST 1305', 'CIST 1130') AND CourseID='CIST 1401';

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Chat Now And Get Quote