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 |  
                                    | ozkanStarting Member
 
 
                                        3 Posts | 
                                            
                                            |  Posted - 2010-07-27 : 02:45:33 
 |  
                                            | Hi,For example, the following is a table.A   Datex  01.01.2010y  01.01.2010z  01.01.2010x  02.01.2010A column I want to get the records that are different but if date column is different I want to get the records again. In this way, how do I do a sql query? |  |  
                                    | KristenTest
 
 
                                    22859 Posts | 
                                        
                                          |  Posted - 2010-07-27 : 02:52:23 
 |  
                                          | Something like this perhaps?SELECT DISTINCT A, Date FROM MyTableorSELECT A, Date, COUNT(*) AS MyCountFROM MyTableGROUP BY A, Date |  
                                          |  |  |  
                                |  |  |  |