. Open the Empty Word file. 2. Open MySQL command Line; 3. Create your own schema (database). The name of the schema should be aa11_Task2. Make your schema the default schema. ** write the command show databases; on MySQL command line, print screen and paste it on your Word file 4. Write a DDL statement to create two Tables in your schema linked via PK FK constraint. The new table names are: aa11_Employee , aa11_Project The schema for the tables which you will create is: aa11_Employee (ID is aa11, name sara, salary, proj_name) //table name becomes aa11_Employee aa11_Project(Proj_name, Location, Budget) // table name becomes aa11_Project ** write the command desc table ……. ; on MySQL command line for each table, print screen and past it on your Word file 5. Insert three rows on each table. The salary for employees should be above ($1500) ** For each table, write the SQL query select * from …. ; on MySQL command line, print screen and past the results on your Word file. The idea is to see that you have inserted some data on your tables. 6. Write DML command to decrease the salary of all employees by $500. ** For each table, write the SQL query select * from …. ; on MySQL command line, print screen and past the results on your Word file. The idea is to see that employee’s salaries have decreased. copy the text in the word file and send it to me here, thanks sir
1. Open the Empty Word file.
2. Open MySQL command Line;
3. Create your own schema (
Make your schema the default schema.
** write the command show databases; on MySQL command line, print screen and paste it on
your Word file
4. Write a DDL statement to create two Tables in your schema linked via PK FK constraint.
The new table names are: aa11_Employee , aa11_Project
The schema for the tables which you will create is:
aa11_Employee (ID is aa11, name sara, salary, proj_name) //table name becomes aa11_Employee
aa11_Project(Proj_name, Location, Budget) // table name becomes aa11_Project
** write the command desc table ……. ; on MySQL command line for each table, print screen
and past it on your Word file
5. Insert three rows on each table. The salary for employees should be above ($1500)
** For each table, write the SQL query select * from …. ; on MySQL command line, print screen
and past the results on your Word file. The idea is to see that you have inserted some data on
your tables.
6. Write DML command to decrease the salary of all employees by $500.
** For each table, write the SQL query select * from …. ; on MySQL command line, print screen
and past the results on your Word file. The idea is to see that employee’s salaries have
decreased.
copy the text in the word file and send it to me here, thanks sir
Step by step
Solved in 3 steps with 1 images