Advertisement
Advertisement
| 06.23.2008 at 12:46PM PDT, ID: 23508838 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: |
ALTER FUNCTION [dbo].[Assemble_Business_Comments]
(@Apps_Cat_ID int)
RETURNS varchar(8000)
AS
BEGIN
DECLARE @Employee_Name varchar(100)
DECLARE @Business_Comment varchar(8000)
DECLARE @Business_Comments varchar(8000)
DECLARE BusinessCommentCursor CURSOR READ_ONLY FOR
SELECT Tbl_Survey_Business_Respondents.Respondent_Comment, Tbl_Client_Employees.Employee_Name
FROM Tbl_Survey_Business_Respondents INNER JOIN
Tbl_Client_Employees ON
Tbl_Survey_Business_Respondents.Lookup_To_Tbl_Client_Employees_For_Business_Respondent = Tbl_Client_Employees.ID
WHERE (Tbl_Survey_Business_Respondents.Apps_Cat_ID = @Apps_Cat_ID)
OPEN BusinessCommentCursor
FETCH NEXT FROM BusinessCommentCursor
INTO @Business_Comment, @Employee_Name
WHILE @@FETCH_STATUS = 0
BEGIN
IF @Business_Comment is not null
SET @Business_Comments = @Business_Comments + CHAR(13) + CHAR(10) + CHAR(13) + CHAR(10) + @Employee_Name
SET @Business_Comments = @Business_Comments + CHAR(13) + CHAR(10) + @Business_Comment
FETCH NEXT FROM BusinessCommentCursor
INTO @Business_Comment, @Employee_Name
END
CLOSE BusinessCommentCursor
DEALLOCATE BusinessCommentCursor
IF @Business_Comment is null
SET @Business_Comments = N'None provided'
RETURN (@Business_Comments)
END
|