Hi! I used this Merge multiple rows based on id and display in one row using SQL Server. But I want show result below.In ProductTable I have Parametr for define year. Only for DatePlanNext Parametr is 1 for other is 0. How I can get below result?
Id
PREDATE
PREPRODUCT
DateSaller
Name
DatePlanNext
NextProduct
1
09.09.2015
Melon
09.09.2017
2
09.10.2016
Potato
3
10.10.2016
Tomato
10.10.2017
4
Cucumber
5
12.11.2017
Onion
12.11.2018
6
07.02.2016
Cherry
Hi Firuz,
Please explain your requirement in more detail.
What’s the relation between them and how you want to differentiate them. So explain your requirement with scenario so we understand it better and provide you a proper solution.
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.