Weird column/tables when using a union query


Author
Message
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.3K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
I just tried to create a view in the DDT based on a Union query. The view looks something like this:



Select Distinct

us_pk

,pm_id

,pm_key

,up_action

From SFSUserPermissionInfo



Union



Select Distinct

us_pk

,pm_id

,pm_key

,up_action

From SFSUserRolePermissionInfo



When I save it, it reports the following as the columns:



Column Table

----------------- --------------------------------------

pm_pk SFSPermissions

pm_pk SFSPermissions

pm_key SFSPermissions

pm_Key SFSPermissions

up_Action SFSUsersXPermissions

rp_Action SFSUsersXRoles

Distinct| us_pk SFSUserPermissionInfo| || Union

Distinct| us_pk SFSUserPermissionInfo| || Union



I deployed it and built a BO off of it and all seems to work, but the columns/tables are weird. I'm assuming that there are no significant ramifications of this, but I'd like to be sure all is OK.
Trent Taylor
Trent Taylor
StrataFrame Developer (9.8K reputation)StrataFrame Developer (9.8K reputation)StrataFrame Developer (9.8K reputation)StrataFrame Developer (9.8K reputation)StrataFrame Developer (9.8K reputation)StrataFrame Developer (9.8K reputation)StrataFrame Developer (9.8K reputation)StrataFrame Developer (9.8K reputation)StrataFrame Developer (9.8K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
I am sure that it is fine.  The view is deployed through SMO and at times the columns can be rearranged under certain circumstances.  You should be fine.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search