Ch Prasanth

Ch Prasanth

  • NA
  • 1
  • 471

Please Help me out of this

Jul 4 2018 9:57 PM
Write a stored procedure to retrieve the sum of sales data based on passing parameter values,
1.if we pass the only year, it should provide a sum of sales of that year
2.if we pass year and month value, then we need to get the sum of sales of that month.
3.if we pass the year, month, week it should provide a sum of sales for that week only.
4.if we don't pass any value, it should provide an overall sum of sales of all years,

Answers (2)