/****** Object: View [dbo].[vImportcargo] Script Date: 12/13/2013 10:14:59 ******/ IF EXISTS (SELECT * FROM sys.views WHERE object_id = OBJECT_ID(N'[dbo].[vImportcargo]')) DROP VIEW [dbo].[vImportcargo] GO /****** Object: View [dbo].[vImportcargo] Script Date: 12/13/2013 10:14:59 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO create view [dbo].[vImportcargo] as select c.*,case when tax_amount