advertisement
Function Chart of Data Management in WebSAMS version 1.2
Data Management ( DAT )
 Query Maintenance
 Add Wizard
 Add Advance
 Query Sharing
 Task Maintenance
 Task Information
 Attach / Detach Query
 Table Access Control
 Execution
 Export
 Import
 Report
 Entity Relationship
Diagram
 Table Structure
 Data Manual
 Query List
 Extract for TESS
 Extract
 Error Log
 Extract for SOP
Function Chart of Data Management in WebSAMS version 1.2





Query Wizard can guide user to generate SQL statement step by step.
Advanced Tool allow user to create SQL statement directly.
There is a set of built-in queries that cannot be modified.
User can create a query by copying an existing query.
For Advanced Tool, the syntax of the SQL statement would be validated by the system parser.
Validation on individual field would be performed during query execution.
 “Prompt Value” is supported in WHERE clause.
 Only the query owner and the System Administrator can modify or delete the query.
 A query is owned by the user who created it by default.
 The query owner can copy, execute, modify and delete his queries.
 The query owner can share the query to the users belonged to either DM_ADMIN or DM_USER
group.
 The user in DM_ADMIN group can copy and execute the query shared by other.
 The user in DM_USER group can only execute the query shared by other but cannot copy it.
 By default, the users in DM_USER group can view the name and the description of all queries
and tasks but they cannot execute and copy them.
 There is a set of built-in tasks that cannot be modified.
 Queries can be tied to different tasks simultaneously.
 A normal task will contain one or more queries.




Revoke access right to certain tables from certain users in DM_USER or DM_ADMIN Group.
User in DM_USER or DM_ADMIN group cannot execute query associated with the restricted tables.
User in DM_ADMIN group cannot create query associated with restricted tables.
User in DM_ADMIN or SYSTEM_ADMIN group cannot share a query to others who do not have
access rights to the tables in the query.




User cannot execute a query that contains restricted table that he does not have rights to access.
User can retrieve different sets of data by inputting different values in the Prompt Value box.
The result can be shown on screen or saved to file.
The report format can be HTML, Word, Excel, plain text or CSV format.
 Query and task can be exported to file in XML format and passed to WebSAMS of other schools.
 Query and task can be imported from a file in valid XML format.
 Before data extraction, IYP must have been started.
 The system will always extract the next school year information.
 The extracted data is used solely for the standalone Timetabling Expert Support System (TESS).
 Data are extracted into a zip file which contains Excel files used for SOP to import.
 The master timetable data of the next school year and the next class level would be extracted.
Function Chart of Data Management in WebSAMS version 1.2
 Security Issue
 There are 3 user groups related to Data Management:
SYSTEM_ADMIN : - User who has the access rights to add / delete / update / copy / execute all queries, no
matter he is the owner of query or not and execute to extract data for SOP..
DM_ADMIN :
- User who has the access rights to add / delete / update / copy / execute his own query
and execute to extract data for SOP.
DM_USER :
- User who can execute query if query access right is given.
 Supported SQL reserved word
 In the “Select” tab-page :
a.
MIN(Field)
b.
MAX(Field)
c.
AVG(Field)
d.
DISTINCT
e.
SUM(Field)
f.
COUNT(Field)
g.
COUNT(Distinct Field)
h.
AVG(Distinct Field)
i.
SUM(Distinct Field)
The user can also select the option on Distinct record.
 In the “Order By” tab-page :
a.
ASCENDING
b.
DESCENDING
The user can add more than 1 field into the Order By list.
 In the “Group By” tab-page :
The user can add more than 1 field into the Group By list.
 In the “Where” and “Having” tab-pages :
The user can construct the condition between 2 operands with :
a.
=
b.
>=
c.
<=
d.
>
e.
<
f.
<>
g.
LIKE
h.
NOT LIKE
The first operand is a database field.
The second operand can be:
a.
Database Field, or
b.
Static value specified by user, or
c.
Prompt value when the query executes
 In the “Having” tab-page :
a.
Selected Field
b.
COUNT(Selected Field)
c.
SUM(Selected Field)
d.
AVG(Selected Field)
e.
MIN(Selected Field)
f.
MAX(Selected Field)
g.
COUNT(Distinct Selected Field)
h.
SUM(Distinct Selected Field)
i.
AVG(Distinct Selected Field)
Download