Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » SQL Anywhere Server - SQL Reference » Views » Consolidated views

SYSFOREIGNKEYS consolidated view Next Page

SYSGROUPS consolidated view


There is one row in the SYSGROUPS view for each member of each group. This view describes the many-to-many relationship between groups and members. A group may have many members, and a user may be a member of many groups.

The tables and columns that make up this view are provided in the SQL statement below. To learn more about a particular table or column, use the links provided beneath the view definition.

ALTER VIEW "SYS"."SYSGROUPS"( group_name,
  member_name) 
  as select g.user_name,u.user_name from
    SYS.SYSGROUP,SYS.SYSUSERPERM as g,
    SYS.SYSUSERPERM as u where
    SYSGROUP.group_id = g.user_id 
    and SYSGROUP.group_member = u.user_id
See also