Hi, i have a requirement as follows.
| Value | ayValue |
| A | 1 |
| 23 | |
| 21 | |
| 22 | |
| B | 34 |
| 31 | |
| 89 | |
| C | 222 |
| 10 |
Output:
| Value | ayValue |
| A | 1 |
| A | 23 |
| A | 21 |
| A | 22 |
| B | 34 |
| B | 31 |
| B | 89 |
| C | 222 |
| C | 10 |
I need this in ms sql and mysql, please help me.
| Value | ayValue |
| A | 1 |
| 23 | |
| 21 | |
| 22 | |
| B | 34 |
| 31 | |
| 89 | |
| C | 222 |
| 10 |
| Value | ayValue |
| A | 1 |
| A | 23 |
| A | 21 |
| A | 22 |
| B | 34 |
| B | 31 |
| B | 89 |
| C | 222 |
| C | 10 |
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.
Jenith ThakkarPosted Jul 26, 2018, 7:13 AM
please execute this script for more understanding
Sai ReddyPosted Jul 26, 2018, 6:59 AM
Shweta LodhaPosted Jul 26, 2018, 6:51 AM