Search
 
SCRIPT & CODE EXAMPLE
 

SQL

SQL Multiple Parameterized Procedures

-- Creating the stored procedure with cus_id and max_amount as parameters

CREATE PROCEDURE order_details @cus_id INT, @max_amount INT AS
SELECT Customers.customer_id, Customers.first_name, Orders.amount
FROM Customers
JOIN Orders
ON Customers.customer_id = Orders.customer_id
where Customers.customer_id = @cus_id AND Orders.amount < @max_amount;
Comment

PREVIOUS NEXT
Code Example
Sql :: umgebungsvariable setzen für mysql 8 
Sql :: order by monthly in sql 
Sql :: postgres docs /copy metacomand 
Sql :: postgresql regular expression special characters 
Sql :: Oracle webcenter content search enginer 
Sql :: HOW TO RETURN THE NUMBER OF LETTERS IN A cell in mysql 
Sql :: postgresql display subquery as json 
Sql :: sql server setup commands 
Sql :: install phpmyadmin pma 
Sql :: sql query for login with email or username 
Sql :: sql date range 
Sql :: mysql vs sql server performance benchmark 
Sql :: select place default lat long 
Sql :: How is the default tablespace determined when creating a table? 
Sql :: SQL create table full of dates 
Sql :: firebase sql 
Sql :: sql select rows between 1000 and 2000 
Sql :: Grant read-only privilleges to the user 
Sql :: sql case when exists in another table 
Sql :: sql datediff db2 
Sql :: sql server in linux 
Sql :: connect to remote mysql server 
Sql :: count with where 
Sql :: docker mysql connection refused 
Sql :: smalldatetime in sql 
Sql :: how to add column sql 
Csharp :: unity load current scene 
Csharp :: unity how to see what scen you are in 
Csharp :: Time delay C# unity 
Csharp :: unity ray from mouse position 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =