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  | 
                             
                            
                                    | 
                                         GIS 
                                        Starting Member 
                                         
                                        
                                        9 Posts  | 
                                        
                                        
                                            
                                            
                                             Posted - 2014-06-22 : 04:01:49
                                            
  | 
                                             
                                            
                                            | Hi,I guess it's the most basic question possible.Example: I need results from city A or city B under certain condition C.Something like this (which returns error):Select DFrom EWhere F = ("A" or "B") and C = "G" | 
                                             
                                         
                                     | 
                             
       
                            
                       
                          
                            
                                    | 
                                     khtan 
                                    In (Som, Ni, Yak) 
                                     
                                    
                                    17689 Posts  | 
                                    
                                      
                                        
                                          
                                           
                                            Posted - 2014-06-22 : 04:03:42
                                          
  | 
                                         
                                        
                                          [code]WHERE (F = 'A' OR F = 'B')AND   (C = 'G')[/code] KH[spoiler]Time is always against us[/spoiler]  | 
                                         
                                        
                                            | 
                                         
                                       
                                     | 
                                   
                            
                       
                          
                            
                                    | 
                                     GIS 
                                    Starting Member 
                                     
                                    
                                    9 Posts  | 
                                    
                                      
                                        
                                          
                                           
                                            Posted - 2014-06-22 : 04:08:43
                                          
  | 
                                         
                                        
                                          | Thanks a lot :-)  | 
                                         
                                        
                                            | 
                                         
                                       
                                     | 
                                   
                            
                            
                                | 
                                    
                                      
                                     
                                    
                                 | 
                             
                         
                     | 
                 
             
         |