Preview

M1 Unit 4 Assignment

Satisfactory Essays
Open Document
Open Document
438 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
M1 Unit 4 Assignment
Mary Lawson
Unit 4 Assignment
December 12, 2014
Professor Waters
Kaplan University

1. Update the employee table, add a salary column (Number type with 7 length) into the employee table. Use a number format with a 2 digit decimal from the right.

ALTER TABLE employee ADD salary number (7,2);

Select salary from employee;

2. Update the employee table and provide a salary for each employee using the salary column added in the previous problem. Validate the rows are there using a SELECT clause.

UPDATE employee
SET salary = 50000;

select salary from employee;

3. Use a cursor FOR loop to retrieve the blog id, blog url and blog description if the blog id is less than 4 and place it in a cursor variable.
Fetch and process each record and insert a row in the table log for each blog id returned.

DECLARE
…show more content…
Create a table-based record cursor that utilizes all of the columns in the division table if the id is 2. Declare the division cursor variable with the table-based cursor attribute. Output the division id and division name to the screen.

You May Also Find These Documents Helpful

  • Satisfactory Essays

    It 210 Appendix G

    • 540 Words
    • 3 Pages

    You are an accountant setting up a payroll system for a small firm. Each line of the table in Appendix G indicates an employee’s salary range and corresponding base tax amount and tax percentage. Given a salary amount, the tax is calculated by adding the base tax for that salary range and the product of percentage of excess and the amount of salary over the minimum salary for that range.…

    • 540 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Hiredate DATE No No Job VARCHAR2(15) No No Mgrno number(4) no no yes ( to emp.empno) Salary number(8,2) no no Comm number(8,2) no no Deptno number(2) no no yes ( to…

    • 1169 Words
    • 5 Pages
    Satisfactory Essays
  • Powerful Essays

    Pos 410 Week Dq

    • 703 Words
    • 5 Pages

    * 3.4 Write a SQL query that joins two tables in the example database and uses BETWEEN…

    • 703 Words
    • 5 Pages
    Powerful Essays
  • Good Essays

    Kudler Fine Food Week 4

    • 284 Words
    • 2 Pages

    Using the database and tables from Week Three, write queries using the SQL SELECT statement.…

    • 284 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Salary from master.dbo. Employees Employees left join master.dbo. Countries Countries on Employees. CountryID = Countries. CountryID left join master.dbo.…

    • 485 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    P1 Unit 3 Assignment

    • 582 Words
    • 3 Pages

    Blogs...create a blog exploring the most dominant and powerful theme from our course (i.e. was it revenge in Hamlet, one of the themes from our poetry unit, or the omnipotence of hope in Life of Pi?)…

    • 582 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Unit 4 Assignment

    • 486 Words
    • 2 Pages

    1. What is the purpose of having an advance directive? The purpose of having an advanced directive is to make sure your doctor and family know what you want it also gives you a choice regarding treatment, life support, stopping treatment and Life-Sustaining treatment.…

    • 486 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Assign1

    • 1387 Words
    • 16 Pages

    6. Show the result of a one-sided outer join between the Employee and OrderTbl tables. Preserve the rows of the OrderTbl table in the result.…

    • 1387 Words
    • 16 Pages
    Satisfactory Essays
  • Good Essays

    Unit 4 M1 Assignment

    • 1072 Words
    • 3 Pages

    Nature is the genetic and biological influences on an individual and their development; it is based on genes and what is inherited from them. Nurture is the social, economic and environmental influences on an individual and their development; it based on personality and how behaviour is learnt. Determinism is the belief that you future is fixed and influenced purely naturally by what is genetically inherited or that your future is unpredictable and can change over time depending on choices made from what you learn from your social environment or from life experiences. Choice and interaction is the belief that people can take control over their lives though the choices they make; it is based on ‘free will’. The maturation theory says that development may be guided by genes but these genes cannot operate without an environment, it is the belief that development is influenced by the combination of nature and nurture.…

    • 1072 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Access Lab Assignment

    • 1410 Words
    • 6 Pages

    3. Add the following three fields to the new table in the order shown: ProgramType, MonthlyFee, and PhysicalRequired. (ProgramType & PhysicalRequired fields are Text; MonthlyFee is Currency.) Resize the columns as necessary so that the complete field names are displayed. Save the table as ProgramTable_yourName (yourName = your first and last name with no spaces). This table will be referenced in further instructions as the Program table.…

    • 1410 Words
    • 6 Pages
    Good Essays
  • Powerful Essays

    The following procedures are adopted: a. Record hours worked or units produced. b. Compute gross pay deductions, and net pay. c. Complete payroll register. d. Maintain payroll deduction records. e. Update employee 's earnings records. f. Prepare paychecks. g. Record payroll in accounting books. h. Prepare various payroll reports.…

    • 1143 Words
    • 5 Pages
    Powerful Essays
  • Satisfactory Essays

    enter employee hours recorded on time cards in the payroll transaction file maintained on disk and update wage data maintained on the payroll master file…

    • 656 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    - The database users must still enter a value for the new attribute JOB for each EMPLOYEE tuple. This can be done using the UPDATE command.…

    • 3961 Words
    • 21 Pages
    Powerful Essays
  • Satisfactory Essays

    8350 Q 010913 DIS

    • 345 Words
    • 2 Pages

    3. For the company DB (schemas of tables are shown below), write RA query and SQL query for each of the following. (State any reasonable assumptions only if necessary.)…

    • 345 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Payroll System

    • 824 Words
    • 4 Pages

    Payroll System is the heart of any human resource system of an organization. The solution has to take care of the calculation of salary as per rules of the company. In this study we used to developed computer based payroll system to improve a faster, easier and reliable of way of payroll. It helps the staff of the company for easy filing and conducting their finance share in every employee, clerk and maintenance of their company.…

    • 824 Words
    • 4 Pages
    Good Essays

Related Topics