GSSP-NET · Question #160
You work as a Software Developer for ABC Inc. You create a SQL server database named DATA1 that will manage the payroll system of the company. DATA1 contains two tables named EmployeeData and…
The correct answer is A. Define views in the database. B. Add constraints to the EmployeeData table. D. Define indexes in the EmployeeData table. E. Add stored procedures by using Transact-SQL queries. See the full explanation below for the reasoning.
Question
You work as a Software Developer for ABC Inc. You create a SQL server database named DATA1 that will manage the payroll system of the company. DATA1 contains two tables named EmployeeData and Department. While EmployeeData records detailed information of the employees, Department stores information about the available departments in the company. EmployeeData consists of columns that include EmpID, EmpName, DtOBrth, DtOJoin, DeptNo, Desig, BasicSal, etc. You want to ensure that each employee ID is unique and is not shared between two or more employees. You also want to ensure that the employees enter only valid department numbers in the DeptNo column. Which of the following actions will you perform to accomplish the task? Each correct answer represents a part of the solution. Choose all that apply.
Options
- ADefine views in the database.
- BAdd constraints to the EmployeeData table.
- CDefine triggers in the EmployeeData table.
- DDefine indexes in the EmployeeData table.
- EAdd stored procedures by using Transact-SQL queries.
How the community answered
(31 responses)- A71% (22)
- C29% (9)
Community Discussion
No community discussion yet for this question.