1. The document contains instructions to create and modify a table called "Employee" with various fields like ID, name, age, etc. and add, display, modify and delete records from the table.
2. Instructions include adding new records, displaying records sorted by last name, changing days worked for a record, changing a last name, deleting records matching criteria, displaying records matching criteria, changing a phone number, displaying select fields, adding more records, deleting a record, displaying records within an age range, displaying records in uppercase, displaying female records in lowercase and descending order, displaying records ordered by deduction, finding minimum days worked, deleting records by age criteria, displaying daily rates in uppercase, calculating total salary, calculating average
1. The document contains instructions to create and modify a table called "Employee" with various fields like ID, name, age, etc. and add, display, modify and delete records from the table.
2. Instructions include adding new records, displaying records sorted by last name, changing days worked for a record, changing a last name, deleting records matching criteria, displaying records matching criteria, changing a phone number, displaying select fields, adding more records, deleting a record, displaying records within an age range, displaying records in uppercase, displaying female records in lowercase and descending order, displaying records ordered by deduction, finding minimum days worked, deleting records by age criteria, displaying daily rates in uppercase, calculating total salary, calculating average
1. The document contains instructions to create and modify a table called "Employee" with various fields like ID, name, age, etc. and add, display, modify and delete records from the table.
2. Instructions include adding new records, displaying records sorted by last name, changing days worked for a record, changing a last name, deleting records matching criteria, displaying records matching criteria, changing a phone number, displaying select fields, adding more records, deleting a record, displaying records within an age range, displaying records in uppercase, displaying female records in lowercase and descending order, displaying records ordered by deduction, finding minimum days worked, deleting records by age criteria, displaying daily rates in uppercase, calculating total salary, calculating average
Create the table shown below. Schema Name: lastname.sql Table: Employee ID FIRSTNAME LASTNAME AGE GENDER ADDRESS MOBILENO DAYSWORK DAILYRATE DEDUCTION 101 INDAY BADIDAY 25 Female Nabunturan, ComVal Province 0910666666 13 500 450 102 DODONG CRUZ 24 Male Tagum City 0909667867 12 400 600 103 JACKOU LEE 21 Male Tagum City 0939234568 10 400 100 104 DESIDERIO MURING 24 Male Carmen, ComVal Province 0907356567 13 500 100 105 PERTING UTOT 35 Male Maco, ComVal Province 0906626586 8 214 150 106 MARIA MAKILING 35 Female Tagum City 0918665564 10 400 300 107 LOLOY BULINGIT 28 Male Kapalong, Davao del Norte 0920611126 10 450 300 108 JHONNY DUHAYLUNGSOD 29 Male New Corella, Davao del Norte 0923567896 13 600 200 109 TOTOY MACABUTOY 23 Male Maco, ComVal Province 0910176333 9 450 150
1. Add the following records to the table.
110 LINO BORDADO 20 Male Sto. Tomas Davao del Norte 0920611126 13 400 150 111 DODOY HILOT 28 Male Panabo, ComVal Province 12 400 150 112 PERLA SALSA 29 Female Sto. Tomas Davao del Norte 0910176333 12 400 150
2. Display all records sorted by lastname
3. Change the days work to 11 whose id is 105. 4. Change the lastname to MACABUROT whose id 109 5. Delete the record whose address is Tagum city and the gender is female. 6. Display the records whose gender is Male and age is less than 20. 7. Change the mobileno to “09122345656 ” whose id is equal to 111. 8. Display the table with the fields firstname and lastname 9. Add the following records to the table. 113 Your Profile 114 Friend Profile
10. Delete the record of your friend.1`
11. Display all records whose age is 20 to 25. 12. Display all records in uppercase, of whose gender is male. 13. Display all records whose gender is female in a lowercase and in descending order by lastname. 14. Display id, fullname and deduction of all records in ascending order by deduction. 15. Get the lowest number of days worked by the employee. 16. Delete all records whose age is less than 24. 17. Display all records in Uppercase dailyrate is greater 400 18. Display the Total Salary of all the employee. 19. Display the Average Salary of all record in rounded off manner (2 decimal places) 20. Display all record whose gender is female and sorted by firstname. 21. Display all records with the fields id, firstname, lastname and address whose age is less than or equal to 25. 22. Count all records whose lastname start with M. 23. Get the Total Deductions of all employee whose Address is Tagum 24. Display the id, fullname, and age in ascending order by lastname. 25. Count the number of employee whose gender is Male and Address has “Tagum” on it. 26. Display the total no. of employee by Gender. Refer the format below. Gender Population xxxxx xx 27. Display the total no. of employee and compute the Total Salary by Gender. (Total Net Salary=Dayswork*dailyrate)-Deduction) 2 points Gender Population Total Net Salary xxxx xx xx,xxx.xx xxxx xx xx,xxx.xx 28. Display the id, fullname, daywork, dailyrate and compute the Gross pay. (Gross pay=Dayswork*dailyrate) 2 points ID fullname Dayswork DailyRate Total Salary xx xxxxx xx xxx.xx xx,xxx.xx xx xxxxx xx xxx.xx xx,xxx.xx