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 |  
                                    | rayeeshStarting Member
 
 
                                        2 Posts | 
                                            
                                            |  Posted - 2014-10-27 : 15:16:19 
 |  
                                            | Hi, I have 1 table with 1 column having 3 entries , RED,BLUE and GREENI need sql which will give unique color combination output  like below. RED,BLUERED,GREENBLUE GREENor it can be BLUE RED          GREEN RED          GREEN BLUEThanksRayeesh |  |  
                                    | khtanIn (Som, Ni, Yak)
 
 
                                    17689 Posts | 
                                        
                                          |  Posted - 2014-10-27 : 23:05:52 
 |  
                                          | [code]select	*from	tbl t1	cross join tbl t2where	t1.col	< t2.col[/code] KH[spoiler]Time is always against us[/spoiler]
 |  
                                          |  |  |  
                                |  |  |  |