Provide MySQL screenshots of these queries and their execution

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%
Provide MySQL screenshots of these queries and their execution: 1. Query: DELIMITER //
CREATE PROCEDURE displayStudents(
 IN departmentName VARCHAR(255)
)
BEGIN
 SELECT * 
  FROM Students
 WHERE Department=departmentName;
END // DELIMITER ; CALL displayStudents('SCOPE'); 2. Query: DELIMITER $$ CREATE PROCEDURE countStudents(
 IN  location VARCHAR(25),
 OUT total INT
)
BEGIN
 SELECT COUNT(*)
 INTO Total
 FROM Students
 WHERE Address = location;
END$$ DELIMITER ;
CALL countStudents('Mumbai',@total);
SELECT @total; 3. Query: DELIMITER //
CREATE PROCEDURE DisplayName()
BEGIN
    SELECT NAME
    FROM Students
END;//
DELIMITER ; CALL DisplayName()
11:13
For the given table below:
ID NAME AGE Marks Department Address
1. Using IN parameter, find the students who are from SCOPE Department.
2. Using OUT parameter, count the number of students coming from Mumbai.
3. Develop a stored procedure that creates a name list of all students.
All the queries should be executed in MySQL and Screen Shot has to be attached for each question.
Transcribed Image Text:11:13 For the given table below: ID NAME AGE Marks Department Address 1. Using IN parameter, find the students who are from SCOPE Department. 2. Using OUT parameter, count the number of students coming from Mumbai. 3. Develop a stored procedure that creates a name list of all students. All the queries should be executed in MySQL and Screen Shot has to be attached for each question.
Expert Solution
steps

Step by step

Solved in 2 steps with 4 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY