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: 3878800 • Letter: U

Question

Using the database provided(Access Database is in Blackboard under “Lessons/Week #3”). Write and Execute SELECT statements to get the following information(Please print out and turn in all the SQL code that you wrote to get the answers to these questions or problems, you do not need to turn in the answers, just SQL code).

See handout in blackboard, under “Week #3”, for help in using SQL in MS Access.

Problems:

Courses Table :

List of all courses with CourseNo, Name and CreditHours.

Select CourseID,CourseName,CreditHours

From Courses

List of courses, all columns, with only 3 credit hours.

List of courses, name and credit hours only, with credit hours > 3.

Instructors Table :

List of Instructors, only fname and lname, from Georgia.

List of all instructors not from Georgia.

List of instructors, just name and office and email from Florida.

List all instructors, id, lname and email with headings “ID#”, “Name “and “E-Mail Address”.

Sections Table :

List of Sections with CRN, timedays for instructor 3.

Does roomNo F1149 have any scheduling conflicts?

Does instructor 6 have any scheduling conflicts?

         

Students Table :

List of all Students, just FirstName, LastName and gpa, with a C avg(2.0 to 2.99).

List of students from Georgia or Colorado.

Which students have a B avg from Ga(3.0 to 3.99)?

Give me a list of all the Larry’s that are students (just give first and last names).

Explanation / Answer

SQL Queries for given all four tables.

Courses Table:

SELECT CourseID,CourseName,CreditHours FROM Courses;

SELECT * FROM Courses WHERE CreditHours=3;

SELECT CourseName,CreditHours FROM Courses WHERE CreditHours>3;

Instructors Table:

SELECT fname,lname FROM Instructors WHERE place=Georgia;

SELECT * FROM Instructors WHERE place!=Georgia;

SELECT name,office,email FROM Instructors WHERE place=Florida;

SELECT id,lname,email FROM Instructors;


Sections Table:

SELECT CRN,timedays FROM Sections WHERE instructor=3;

SELECT * FROM Sections WHERE roomNo=F1149 IS NOT NULL;

SELECT * FROM Sections WHERE instructor=6 IS NOT NULL;

Students Table:

SELECT FirstName,LastName,gpa AS C FROM Students WHERE avg(gpa) BETWEEN 2.0 AND 2.99;

SELECT * FROM Students WHERE place=Georgia OR place=Colorado;

SELECT * FROM Students WHERE avg(gpa) BETWEEN 3.0 and 3.99;

SELECT FirstName,LastName FROM Students WHERE place=Larry;

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