Any database design with no more than 5 tables Data Management Project Requireme
ID: 3881076 • Letter: A
Question
Any database design with no more than 5 tables
Data Management Project Requirements:
The requirements include (Requirements Analysis – Data model – In physical design format):
• Background
• Purpose
• Business goals and rules
• User requirements
• Data requirements
• Reporting requirements
• Project schedule and project costs.
• Data dictionary for all tables in data model
• SQL statements:Identify the database management system (DBMS) that will be used for the database design
• minimum of two CREATE TABLE statements (for entities defined in model)
• minimum of two SELECT statements
• one insert, update or delete statement.
Explanation / Answer
/*creating of database with name of chegg2*/
create database chegg2
/*using database chegg2*/
use chegg2
/*creating of table with table name of employee_details*/
create table employee_details(emp_id int,emp_name nvarchar(30),salary money,dept_id int)
/*creating of table with table name of department_details */
create table department_details(dept_id int,dept_name nvarchar(30))
/*selecting of data from employee_details*/
select * from employee_details
/*selecting of data department_details*/
select * from department_details
/*inserting of data into employee_details */
insert into employee_details(emp_id,emp_name,salary,dept_id)values(1001,'jhon',40000,1)
/*inserting of data into department_details */
insert into department_details(dept_id,dept_name)values(1,'IT')
/*inserting of data into department_details*/
insert into department_details(dept_id,dept_name)values(2,'Accounts')
/*inserting of data into department_details*/
insert into department_details(dept_id,dept_name)values(3,'Admin')
/*updating data of department_details*/
update department_details set dept_name='Hr' where dept_id=3
/*deleting data of department_details*/
delete department_details where dept_id=2
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.