Please start any new threads on our new 
    site at https://forums.sqlteam.com.  We've got lots of great SQL Server
    experts to answer whatever question you can come up with.
    
        | 
                
                    | 
                            
                                | Author | Topic |  
                                    | kond.mohanPosting Yak  Master
 
 
                                        213 Posts | 
                                            
                                            |  Posted - 2015-04-02 : 03:51:00 
 |  
                                            | Hii have table column in below mannerselect relation from table1 output is below formatRelationMotherfatherdaughterWifeSon-in lawselect relation from table1 order by table1relationdauhterfathermoherson-in-lawWifemy Requirement is we need to specify the order by column valuesIs there way to make the column values in specified order in sql |  |  
                                    | kond.mohanPosting Yak  Master
 
 
                                    213 Posts | 
                                        
                                          |  Posted - 2015-04-02 : 03:55:57 
 |  
                                          | yes got it..SELECT nameFROM  relationshipORDER BY CASE WHEN name = 'self' THEN '1'              WHEN name = 'father' THEN '2'              ELSE name END ASC |  
                                          |  |  |  
                                    | huangchenStarting Member
 
 
                                    37 Posts | 
                                        
                                          |  Posted - 2015-04-02 : 05:50:03 
 |  
                                          | unspammed |  
                                          |  |  |  
                                |  |  |  |