SQL query to select dates between two dates

后端 未结 22 1681
囚心锁ツ
囚心锁ツ 2020-11-22 09:10

I have a start_date and end_date. I want to get the list of dates in between these two dates. Can anyone help me pointing the mistake in my query.<

22条回答
  •  误落风尘
    2020-11-22 09:29

    /****** Script for SelectTopNRows command from SSMS  ******/
    SELECT TOP 10 [Id]
      ,[Id_parvandeh]
      ,[FirstName]
      ,[LastName]
      ,[RegDate]
      ,[Gilder]
      ,[Nationality]
      ,[Educ]
      ,[PhoneNumber]
      ,[DueInMashhad]
    
      ,[EzdevajDate]
    
    
      ,[MarriageStatus]
      ,[Gender]
      ,[Photo]
    
      ,[ModifiedOn]
      ,[CreatorIp]
       From
      [dbo].[Socials] where educ >= 3 or EzdevajDate  >= '1992/03/31' and EzdevajDate <= '2019/03/09' and MarriageStatus = 1
    

提交回复
热议问题