----------------------------------------------
P.No | Relation | Name
----------------------------------------------
2 | Self | Kumar
----------------------------------------------
1 | Husband | Selvam
----------------------------------------------
2 | Son | Manoj
----------------------------------------------
1 | Self | Gandhi
----------------------------------------------
我怎么能基于列的行值的偏好?
我想是这样的:
Order By P.No &
(Self 1 st preference ,
Husband 2nd preference,
son 3rd Preference)
而且我很期待这样的输出:
----------------------------------------------
P.No | Relation | Name
----------------------------------------------
1 | Self | Gandhi
----------------------------------------------
1 | Husband | Selvam
----------------------------------------------
2 | Self | Kumar
----------------------------------------------
2 | Son | Manoj
----------------------------------------------
请帮我解决我的问题。谢谢。
其实P.No订单是好的。但我需要优先考虑第二顺序。 –