| 
                                                                        
                                                                         
                                                                            
                                                                                steffanwoodhead-hotmail
                                                                            - 
                                                                                11/16/2010 1:50:48 PM
                                                                            
                                                                         
                                                                         
                                                                            
                                                                        
                                                                        
                                                                         
                                                                        
                                                                        
                                                                        
                                                                        
                                                                        
                                                                         
                                                                        
                                                                            RE:Today's date Query
                                                                        
                                                                            I think I've sussed it (well I asked someone in work)
  Datepart(dd,getdate()) = Datepart(dd,ThoughtDate) and Datepart(mm,getdate()) = Datepart(mm,ThoughtDate)
  If I use the above, I can get away with leaving them on next year as they will still work because the year is ignored.
  I could also use Datepart(dy,getdate()) as it gives a value from 1 to 365 and I can match it with an index in the table
                                                                         
                                                                        
                                                                            
                                                                         
                                                                        
                                                                         
                                                                        
                                                                            
                                                                            
                                                                            
                                                                            
                                                                            
                                                                         
                                                                        
                                                                            
                                                                            
                                                                            
                                                                            
                                                                         
                                                                        
                                                                         
                                                                     |