"Troubleshooting Errors in SQL Stored Procedure for Calculating Employee Bonuses"
khanzain
✭✭
"I'm working on a stored procedure that calculates employee bonuses, but there's a hiccup. Can you pinpoint the error in the code provided?
CREATE PROCEDURE CalculateSalary
@EmployeeID INT,
@BonusPercentage DECIMAL(5, 2) OUTPUT
AS
BEGIN
SELECT INTO @BonusPercentage = Salary * 0.1
FROM Employees
WHERE EmployeeID = @EmployeeID;
END;"
Answers
-
Hi @khanzain
Is your question regarding the Smartsheet application? This looks to be more of a programming question. I would recommend posting in a developer forum, such as Stack Overflow: https://stackoverflow.com/
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 423 Global Discussions
- 221 Industry Talk
- 462 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 144 Just for fun
- 59 Community Job Board
- 463 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives