Hi, Please help me to solve this.
I have three 3 tables with some data and column names are same.
June_2018(table name 1)
id Name
1 Critical
2 Major
3 Critical
4 Minimum
5 Major
July_2018
id Name
6 Critical
7 Major
8 Critical
9 Minimum
10 Major
August_2018
id Name
11 Critical
12 Major
13 Critical
14 Minimum
15 Major
I need a stored procedure where tablename should be passed as the parameter then
Critical, Major should be as Major as another column and Minimum should be updated as Minimum. Expected output should be as follows.
Exec procedurename(Tablename as parameter)
id Name Staus
1 Critical Major
2 Major Major
3 Critical Major
4 Minimum Minimum
5 Major Major
Thanks in advance.
3 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ravi Kiran ChanduriPosted Jul 17, 2018, 3:13 AM
Packiaraj SanthiyaguPosted Jul 16, 2018, 9:42 AM
Nanddeep NachanPosted Jul 16, 2018, 9:30 AM