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 |  
                                    | micnie_2020Posting Yak  Master
 
 
                                        232 Posts | 
                                            
                                            |  Posted - 2011-10-10 : 23:08:03 
 |  
                                            | Dear all,I having diffulty on < symbol at red bold section. Please help.Thank you.AND (O.estimatedclosedate < =(SELECT     TOP (1) ap_enddate			FROM          dbo.Filtered_reportingperiod 			WHERE      (ap_periodtype = 2) AND (statecode = 0)) |  |  
                                    | visakh16Very Important crosS Applying yaK Herder
 
 
                                    52326 Posts | 
                                        
                                          |  Posted - 2011-10-11 : 01:34:03 
 |  
                                          | you're missing closing braces AND (O.estimatedclosedate < =(SELECT TOP (1) ap_enddateFROM dbo.Filtered_reportingperiod WHERE (ap_periodtype = 2) AND (statecode = 0)))------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |  
                                          |  |  |  
                                |  |  |  |