我在sql Server中有一个日志表,如下所示:
CREATE TABLE [dbo].[RefundProcessLog]( [LogId] [bigint] IDENTITY(1,1) NOT NULL,[LogDate] [datetime] NOT NULL,[LogType] [varchar](10) COLLATE sql_Latin1_General_CP1_CI_AS NOT NULL,[RefundId] [int] NULL,[RefundTypeId] [smallint] NULL,[LogMessage] [varchar](1000) COLLATE sql_Latin1_General_CP1_CI_AS NOT NULL,[LoggedBy] [varchar](50) COLLATE sql_Latin1_General_CP1_CI_AS NOT NULL,CONSTRAINT [PK_RefundProcessLog] PRIMARY KEY CLUSTERED ( [LogId] ASC ) ON [PRIMARY] ) ON [PRIMARY] GO
我想要的是一个结果列表,代表每天处理多少不同的退款,抛出任何NULL。
我需要写什么sql才能产生这些结果?