Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

Stored Procedure Issue

$
0
0

Hi All,

Please help me.

I need a stored procedure's for below Scenario:

tblProduct is a parameter table that has values list of Products and every product has code (Eg, PEN A, BOOK B , PENCIL C and so on)

For every value a procedure sp_findIndex will be called 

sp_findIndex finds the index of the alphabet based on the tblKeyValue a key value table which has two columns key and value, key 1,2,3.... and values A,B,C..

Further sp_findIndex calls sp_evenOdd with the index as input and provides an output whether index is an even or an odd number 

which is printed through sp_findIndex procedure 


Task 1
List down even and odd for all the products.

Task 2
Now warp this logic to stored procedure sp_wrapper which takes input Product names separated by comma.

Thanks in Advance.........



Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>