|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| Question |
|
[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: 34: 35: 36: 37: 38: 39: 40: 41: 42: |
create PROCEDURE [dbo].[usp_Search]
-- Add the parameters for the stored procedure here
@LastName nchar(50),
@FirstName nchar(50),
@School_Name char(50),
@Organization char(70),
@Home_Phone char(24),
@Transportation_Type char(50)
AS
BEGIN
-- Declare the variables.
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
BEGIN
SELECT
[Student_ID],
[LastName],
[MiddleName],
[FirstName],
[Birthdate],
[Sex],
[Home_Phone],
[Cell_Phone],
[Parent],
[STU_Address],
[City],
[Country_State],
[Zip_Code],
[School_Year],
[School_Name],
[Organization],
[Transportation_Type]
FROM [LABBB].[dbo].[MasterStudent]
WHERE LastName LIKE CASE WHEN @LastName IS NULL THEN '%' ELSE '%' + @LastName + '%' END
AND FirstName LIKE CASE WHEN @FirstName IS NULL THEN '%' ELSE '%' + @FirstName + '%' END
AND School_Name LIKE CASE WHEN @School_Name IS NULL THEN '%' ELSE '%' + @School_Name + '%' END
AND Organization LIKE CASE WHEN @Organization IS NULL THEN '%' ELSE '%' + @Organization + '%' END
AND Home_Phone LIKE CASE WHEN @Home_Phone IS NULL THEN '%' ELSE '%' + @Home_Phone + '%' END
AND Transportation_Type LIKE CASE WHEN @Transportation_Type IS NULL THEN '%' ELSE '%' + @Transportation_Type + '%' END
END
|
Advertisement
| Hall of Fame |