Students Table Surname First_Name Student_No Dept_No Year Duke Fitzroy 1 4 2Al-Essawy Zaid 2 4 2Ayton Phil 3 3 1Patel Mahesh 4 2 1Jones Gareth 5 2 1Scott Gavin 6 2 2CREATE VIEW Freshman AS Select * From Students Where Year = 1;Considering the above Students table and Freshman view, what will be the result of the following SQL query:Select * From Freshman Where Dept_No=4;Question 6Select one:a. Surname First_Name Student_No Dept_No Year Ayton Phil 3 3 1Patel Mahesh 4 2 1Jones Gareth 5 2 1b. Surname First_Name Student_No Dept_No Year Duke Fitzroy 1 4 2Al-Essawy Zaid 2 4 2c. Surname First_Name Student_No Dept_No Year Duke Fitzroy 1 4 2d.None of the above
Question
Students Table Surname First_Name Student_No Dept_No Year Duke Fitzroy 1 4 2Al-Essawy Zaid 2 4 2Ayton Phil 3 3 1Patel Mahesh 4 2 1Jones Gareth 5 2 1Scott Gavin 6 2 2CREATE VIEW Freshman AS Select * From Students Where Year = 1;Considering the above Students table and Freshman view, what will be the result of the following SQL query:Select * From Freshman Where Dept_No=4;Question 6Select one:a. Surname First_Name Student_No Dept_No Year Ayton Phil 3 3 1Patel Mahesh 4 2 1Jones Gareth 5 2 1b. Surname First_Name Student_No Dept_No Year Duke Fitzroy 1 4 2Al-Essawy Zaid 2 4 2c. Surname First_Name Student_No Dept_No Year Duke Fitzroy 1 4 2d.None of the above
Solution
Considering the given Students table and Freshman view, the result of the SQL query "Select * From Freshman Where Dept_No=4" will be option (b):
Surname First_Name Student_No Dept_No Year Duke Fitzroy 1 4 2 Al-Essawy Zaid 2 4 2
Similar Questions
You are given the following tables:CourseCourseID Description CreditsCS101 Computer Science I 3CS201 Elementary Data Structures 3ENGL210 Technical Writing 3RegistrationSID CourseID SemID Instructor Grade282712 ENGL210 201701 H. Zacny B+362112 CS101 201701 K. Ross CWhat would the following SQL Select statement produce for output?select course.description, registration.SID,registration.gradefrom registration right join courseon registration.courseID = course.courseIDSelect one:a.Computer Science I 362112 Cb.Computer Science I 362112 CTechnical Writing 28212 B+c.Computer Science I 362112 CElementary Data Structures null nullTechnical Writing 28212 B+d.No results due to syntax errorClear my choiceSkip Quiz navigationQuiz navigationQuestion1Question2Question3Question4Question5Question6Question7Question8Question9Question10Question11Question12Question13Question14Question15Question16Question17Question18Question19Question20Question21Question22Question23Question24Question25Question26Question27Question28Question29Question30Question31Question32Question33Question34Question35Question36Question37Question38Question39Question40Question41Question42Question43Question44Question45Question46This pageQuestion47This pageQuestion48This pageQuestion49This pageQuestion50This page
Student Relation Student_ID Student_Name Dept_Name 0000 AAAAA Computer Science1111 BBBBB Computer Science2222 CCCCC Business Administration Question 13Select one:a.CREATE TABLE Student( Student_ID int, Student_Name char(20), Dept_Name char(20),);b.CREATE TABLE Student( Student_ID int, Student_Name varchar(100), Dept_Name varchar(100),);c.CREATE TABLE Student( Student_ID int, Student_Name char(100), Dept_Name char(100),);d.CREATE TABLE Student( Student_ID char(20), Student_Name char(100), Dept_Name char(100),);
Which of the following are the correct syntaxes for displaying the StudentName and Department from Student table?Select one or more:a.SELECT StudentName, Department FROM Student;b.select studentname, department FROM STUDENT;c.SELECT STUDENTNAME, DEPARTMENT FROM Student;d.select studentname, department FROM Student;
Select ________ dept_namefrom college;Here which of the following displays the unique values of the column ? AllFromDistinctNameReview AnswerNext
Select ID, name, dept name, salary * 1.1 where instructor;The query given below will not give an error. Which one of the following has to be replaced to get the desired output?*Salary*1.1IDWhereInstructor
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.