我有一个dbo.VBAK
有列的表VKORG, VBELN and SPART
如何在下面正确编写查询
If dbo.tblVBAK.VKORG = '1001'
BEGIN
select dbo.tblVBAK.VKORG as 'Sales Org Approved' from dbo.tblVBAK
END
ELSE
BEGIN
Select dbo.tblVBAK.VKORG as 'Sales Org Not Approved' from dbo.tblVBAK
END
我正在使用 SQL Server 2005