USE [ctsdev]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[tbl_Leavetbl](
[Emp_id] [int] IDENTITY(1,1) NOT NULL,
[Month] [varchar](15) NULL,
[Year] [varchar](4) NULL,
[Rec_Name] [varchar](50) NULL,
[CompanyName] [varchar](30) NULL,
[Task] [varchar](20) NULL,
[NoOfDaysLeavTakn] [int] NOT NULL,
[NoOfAvailblLeav] [int] NULL,
[LossofPay] [int] NULL,
[LeaveTakndates] [varchar](200) NULL,
[TtlLeavTakn] [int] NULL,
CONSTRAINT [PK_tbl_Leavetbl] PRIMARY KEY CLUSTERED
(
[Emp_id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
这是我的餐桌设计。当员工填写领域的叶子数量时,我需要找到剩余的可用叶子,就像一年只允许12片叶子,以及他带走的总叶子直到本月也要展示。 是否可以通过程序或任何功能,请您就此建议一些想法