From 4289105eee28509bba995b9fc4db083ed0c1ef21 Mon Sep 17 00:00:00 2001 From: "github-classroom[bot]" <66690702+github-classroom[bot]@users.noreply.github.com> Date: Sun, 24 Nov 2024 17:41:40 +0000 Subject: [PATCH 1/3] Setting up GitHub Classroom Feedback From 2505ca92fd29881cc7cc1c2cd06dd808670f286f Mon Sep 17 00:00:00 2001 From: "github-classroom[bot]" <66690702+github-classroom[bot]@users.noreply.github.com> Date: Sun, 24 Nov 2024 17:41:43 +0000 Subject: [PATCH 2/3] add deadline --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 8728c63..74c141e 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +[![Review Assignment Due Date](https://classroom.github.com/assets/deadline-readme-button-22041afd0340ce965d47ae6ef1cefeee28c7c493a6346c4f15d667ab976d596c.svg)](https://classroom.github.com/a/fbNyN1as) # BBT3104: Advanced Database Sytems Semester Project | **Key** | Value | From 616c59643dd83d246a6351a245704fc95a39017e Mon Sep 17 00:00:00 2001 From: PEPLODOCUS <157981509+PEPLODOCUS@users.noreply.github.com> Date: Sun, 24 Nov 2024 20:44:13 +0300 Subject: [PATCH 3/3] Update script.sql Signed-off-by: PEPLODOCUS <157981509+PEPLODOCUS@users.noreply.github.com> --- 10_stored_routines_as_functions/script.sql | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/10_stored_routines_as_functions/script.sql b/10_stored_routines_as_functions/script.sql index e3ee0ca..594737e 100644 --- a/10_stored_routines_as_functions/script.sql +++ b/10_stored_routines_as_functions/script.sql @@ -1 +1,12 @@ --- Write your SQL code here \ No newline at end of file +-- Write your SQL code here + +DELIMITER $$ + +CREATE PROCEDURE GetCustomerDetails(IN id INT) +BEGIN + SELECT id , name , address + FROM customers + WHERE id = id; +END $$ + +DELIMITER ;