Views [dbo].[InternationalConsolidatorAddresses]
Properties
PropertyValue
ANSI Nulls OnYes
Quoted Identifier OnNo
Created6:18:11 PM Tuesday, February 27, 2007
Last Modified2:24:03 AM Saturday, February 4, 2017
Columns
Name
InternationalConsolidatorFID
Address
City
State
CountryCodeStandardFID
PostalCode
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
SET QUOTED_IDENTIFIER OFF
GO
/**
*    $File: //Dev02/Maroon/R2_1/MoversSuite/International/SQL/Views/InternationalConsolidatorAddresses.sql $
*    $DateTime: 2009/07/23 13:16:18 $
*    $Change: 26601 $
*    $Revision: #1 $
*    $Author: ssaad $
*    
*    Description: This view returns the International Consolidator information
*
*/


CREATE view [dbo].[InternationalConsolidatorAddresses]
(
    InternationalConsolidatorFID,
    Address,
    City,
    State,
    CountryCodeStandardFID,
    PostalCode
)
as

select
    InternationalConsolidatorFID = InternationalConsolidator.InternationalConsolidatorID,
    Address = dbo.BuildAddressFromAddressParts
    (
        InternationalConsolidatorAddress.Address1,
        InternationalConsolidatorAddress.Address2,
        InternationalConsolidatorAddress.Address3
    ),
    City = InternationalConsolidatorAddress.City,
    State = InternationalConsolidatorAddress.State,
    CountryCodeStandardFID = InternationalConsolidatorAddress.CountryCodeStandardFID,
    PostalCode = InternationalConsolidatorAddress.PostalCode
from InternationalConsolidator
left outer join AddressType on AddressType.TypeName = 'Main'
left outer join InternationalConsolidatorAddress on
(
    InternationalConsolidator.InternationalConsolidatorID = InternationalConsolidatorAddress.InternationalConsolidatorFID and
    AddressType.AddressTypeID = InternationalConsolidatorAddress.AddressTypeFID
)
                                            
GO
GRANT SELECT ON  [dbo].[InternationalConsolidatorAddresses] TO [MssExec]
GRANT INSERT ON  [dbo].[InternationalConsolidatorAddresses] TO [MssExec]
GRANT DELETE ON  [dbo].[InternationalConsolidatorAddresses] TO [MssExec]
GRANT UPDATE ON  [dbo].[InternationalConsolidatorAddresses] TO [MssExec]
GO
Uses