Preview

Chumma

Satisfactory Essays
Open Document
Open Document
311 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Chumma
LAB 4
STUDENT NAME: Rajendhar Dayalan Student ID:12667690

Q1 Please write down the modified script for creating the add_jobs procedure into your report.
CREATE OR REPLACE PROCEDURE ADD_JOBS
(p_jobid IN jobs.job_id%TYPE, p_jobtitle IN jobs.job_title%TYPE, p_minsal IN jobs.min_salary%TYPE
)
is v_maxsal jobs.max_salary%TYPE;
BEGIN
v_maxsal:= 2* p_minsal; Insert into jobs values(p_jobid,p_jobtitle,p_minsal,v_maxsal); DBMS_OUTPUT.PUT_LINE ('Added the following row into the JOBS table ...');
DBMS_OUTPUT.PUT_LINE (p_jobid || ' ' || p_jobtitle ||
' '|| p_minsal || ' ' || v_maxsal);

END ADD_JOBS;

Q2 Please write down the modified script for creating the get_service_days function into your report. (2 pts)

CREATE OR REPLACE FUNCTION GET_SERVICE_DAYS
(p_empid IN employees.employee_id%TYPE)
RETURN NUMBER IS v_days NUMBER(8);
BEGIN
select SYSDATE - HIRE_DATE INTO v_days from employees where EMPLOYEE_ID=p_empid; DBMS_OUTPUT.PUT_LINE ('no. of days'||' '|| v_days); RETURN NULL; EXCEPTION
WHEN NO_DATA_FOUND THEN
DBMS_OUTPUT.PUT_LINE ('There is no employee with the specified ID');
END GET_SERVICE_DAYS;

Q3 Please write down the script for creating the get_emp_count function into your report. (3pts)

CREATE OR REPLACE FUNCTION GET_EMP_COUNT
(
V_DEPTID IN NUMBER
) RETURN NUMBER IS v_count NUMBER; p_depname varchar2(30);
BEGIN
select count(*) into v_count from departments where department_id=v_deptid; if(v_count = 0)then DBMS_OUTPUT.PUT_LINE ('There is no Department with the specified Department ID'); RETURN NULL; else select count (*) into v_count from employees where department_id=v_deptid; select DEPARTMENT_NAME into p_depname from departments where department_id=v_deptid; DBMS_OUTPUT.PUT_LINE (v_count || ' ' || 'employee(s) work for the' ||' ' ||p_depname); return v_count; end if;
END GET_EMP_COUNT;

Q4 Please write down the script for creating the

You May Also Find These Documents Helpful

  • 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

    Molok

    • 955 Words
    • 4 Pages

    In the year 1980, Veikko Sali created and developed Molok® deep-collection system in Finland. Since that time, Molok® containers have spread across the globe and are now in over 40 countries worldwide. Molok North America Ltd. headquartered located Minount Forest, Ontario and operated since 1999.…

    • 955 Words
    • 4 Pages
    Powerful Essays
  • Powerful Essays

    Chupacabra

    • 1311 Words
    • 6 Pages

    The Chupacabra or “Goat Sucker” has been the topic of legends among families of South America for many years. An elusive creature that has managed to slip through all trace of detection has made itself known in recent days. Farmers have described the Chupacabra as an evil creature with red glowing eyes, a beast that walks on its hind legs, resembles a dog like alien creature that only comes out at night; and sucks the blood from helpless livestock. Crystal Grant, a very successful veterinarian located in Skiatook Oklahoma, has studied this creature for most of her professional career. Mrs. Grant states “ This is the top dog of the K-9 species” she goes on to explain if the Chupacabra is actually a real creature, it would have supernatural powers that would be out of this world. (Grant) The Chupacabra has been a well talked about mysterious creature for years; some do not believe what our new recent evidence has provided.…

    • 1311 Words
    • 6 Pages
    Powerful Essays
  • Satisfactory Essays

    Lamm

    • 292 Words
    • 1 Page

    Lamm discusses the issues in our healthcare. We are starting to see a “brave new world of healthcare”, one where we need to set new standards and obligations. “We shall have to balance quality of life with quantity of life, costs and benefits, preventive medicine versus curative medicine”. Lamm believes that there are two major flaws in our healthcare system one being that 35-37 million of our Americans are uninsured and an equal number are underinsured and second being the high cost of healthcare. He strongly encourages making healthcare more accessible. He repeats over and over how the largest flaw is our lack of access. The problem with having everyone able to access healthcare is that the costs would increase. We want everyone to have healthcare, but we are not willing to pay for it. He also discusses how we must now look at the needs of the entire population. We need to limit the use of certain resources of one individual in order to have enough for the whole population.…

    • 292 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    Yo Yo Ma

    • 284 Words
    • 2 Pages

    Bloomberg West profiles Ed Summers, who, as head of accessibility at international software company SAS, “has made it his mission to help other visually impaired people unlock the power of the iPad.” Summers is……

    • 284 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Shuma

    • 806 Words
    • 4 Pages

    I read the book called “Deep River,” which is written by Shusaku Endo, first published by Tuttle Pubishing in Great Britain, 1994. The book is translated by Van C. Gessel and is published in Boston, Rutland, Vermont, and Tokyo now. I chose this book to read because I was curious knowing more about the value of religion and spiritual ideas which I have not noticed closely before in reading. The theme of this book is the interaction between Chritianity and Japanese people, and I was sure I would learn new ideas out from it. Although it was originally written in Japanese, I thought reading in English would be interesting as long as it would give me an opportunity to better understand the delicate content of this story including religious thoughts without having fixed ideas from Japanese words. The one I was suggested to read, “Griftopia,” was about political journalist investigating financial crisis, but since I had no basic knowledge of economics and historical background of America, I predicted I would not be able to finish this book to understand the content thoroughly unless taking more time than provided days, researching on my lack of social, political, and financial knowledge as well as making my English level of reading comprehension suitable enough.…

    • 806 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    Mammy

    • 1196 Words
    • 4 Pages

    Being part of two marginalized groups historically deemed inferior, Black women are distinct from Black men or White women. The binary conceptualization of Black and White womanhood assigned Black women as ‘bad womanhood’ consisting of all the negative traits of disgrace, whereas White women were attributed all the idealized aspects of “true womanhood” (Parker, 2005, p. 34). Racial and discriminatory representations of Black womanhood are centred on derogatory images such as the Mammy or Jezebel; consequently, they encounter distinctive and unexplored barriers that inhibit their career and leadership development. Drawing on the works of Patricia Parker on Black women leadership as well as Yvonne Due Billing and Mats Alevesson on feminine leadership, this paper hopes to delineate the distorted conceptualization of Black women. Primarily, it will map out how the Mammy image has influenced and affected the modern-day professional Black women. As Parker (2005) suggests, the Mammy image has had a profoundly derogatory, dehumanizing characterization of Black women; thus, the stereotype became a rationalization for economic discrimination.…

    • 1196 Words
    • 4 Pages
    Powerful Essays
  • Best Essays

    Simmel

    • 1701 Words
    • 7 Pages

    audiences, Simmel's lectures must have been like his innumerable papers and essays on the term he…

    • 1701 Words
    • 7 Pages
    Best Essays
  • Powerful Essays

    mamamam

    • 2532 Words
    • 11 Pages

    This report is composed to address the problems of the client Jenkins around his business initiative plan. This report will provide important insights into many relevant issues of his business. In the first section, this report will briefly review the analytical methods often used in business researches. Afterwards, this paper will use various univariate, bivariate and multivariate analytical tools to approach ten research questions. Basing upon these discussions, this report will make some recommendations to Jenkins about his business plan.…

    • 2532 Words
    • 11 Pages
    Powerful Essays
  • Better Essays

    Mahy

    • 5606 Words
    • 23 Pages

    There are various advantages of tall organizations. Firstly, within tall organizational structure there is a close supervisory control because of the low span of managers. Secondly, it is a more authoritative structure as a consequence; the roles and responsibilities are clearly defined. Thirdly, in a tall structure the responsible person is other accountable to the higher authorities. Fourthly, this structure enhances the control of the top…

    • 5606 Words
    • 23 Pages
    Better Essays
  • Good Essays

    Gammster

    • 574 Words
    • 3 Pages

    Abraham Maslow had a hierarchy of needs. They were represented in a pyramid form. At the base of the pyramid were the basic physiological needs. Sarah is able to eat and drink independently but the food preparation must be thought out quite well and it must also be of a suitable consistency and temperature. Sarah must eat suitable foods for her condition and keep up with her diet. MS specialists recommend that people with MS adhere to the same low-fat, high fibre diet that is recommended for the general population. (www.nationalmssociety.org) It is important for her to make sure she gets the correct food into her to help her throughout the day. She will need plenty of carbohydrates as she needs a lot of energy for the day when she is using her sticks or trying to walk. She must eat from all parts of the food pyramid in the correct amounts. The bottom of the pyramid is the carbohydrates for example bread, potatoes, cereals, rice. You should take six servings from this shelf per day. The best carbohydrates for Sarah would be the starch foods. They provide energy which is what Sarah needs as she tries to walk or when she uses her sticks she will need plenty of energy. Sarah’s carbohydrates should consist of wholemeal bread and wholemeal pasta instead of white bread. The healthiest starchy foods are those that are high in fibre. (http://www.safefood.eu/Healthy-Eating/Food-Diet/What-is-a-balanced-diet/The-Food-Pyramid/Breads,-cereals-and-potatoes.aspx) Fibre is important in Sarah’s diet as it keeps the bowels going. This is important for Sarah as she uses self-catheterization and a bowel management programme. Another good source of fibre which is the next shelf on the food pyramid is the fruit and vegetables shelf. Five or more servings off this shelf each day should be consumed. It provides the important vitamins and minerals also. The next shelf is the milk yoghurt and cheese group. This group provides good calcium which will help Sarah as she is going to need…

    • 574 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Chemm

    • 636 Words
    • 3 Pages

    Kb is the equilibrium constant for the reaction in which a weak base is in equilibrium with its conjugate acid in aqueous solution. In other words, it is designed to show how well a base dissociates in water.…

    • 636 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Gimam

    • 473 Words
    • 2 Pages

    The single line diagram of a 3 bus system is shown in Figure Q1. Using Fast Decoupled loadflow method, determine the voltage and angle for bus 2 and bus 3 up to first iteration only.…

    • 473 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Milma

    • 8300 Words
    • 34 Pages

    | | | | | | |ORGANIZATION STUDY OF | |MILMA Cattle Feed Plant | |PATTANAKKAD | | | | | | | |Submitted in partial fulfillment of the requirements | |for the award of the Degree of | |MASTER OF BUSINESS ADMINISTRATION…

    • 8300 Words
    • 34 Pages
    Powerful Essays
  • Good Essays

    Chutmarani

    • 2985 Words
    • 12 Pages

    Application must be sent to the central administrative office Uni-ASSIST for every master studies held in German. Their application has to be sent only to the following address: Christian-Albrechts-Universität zu Kiel c/o UNI-ASSIST e.V. Helmholtzstr. 2-9 D – 10587 Berlin The application forms can also be downloaded at http://www.uni-assist.de/index_en.html. Please notice that you still have to send your application documents via mail to Uni-ASSIST. To apply ONLY online is NOT sufficient! For all master studies held in English at the Christian-Albrechts-Universität zu Kiel, please apply directly at the respective university department: • • • • • • • • European Master of Applied Ecology: http://www.master-emae.org/EMAE_how.php M.Sc. Agrigenomics: http://www.agrigenomics.de/en M.Sc. Biological Oceanography: http://www.ifm-geomar.de/index.php?id=5164&L=1 M.Sc. Climate Physics: http://www.ifm-geomar.de/index.php?id=3721&L=1 M.Sc. Digital Communications: http://www.tf.uni-kiel.de/etit/digcom/application.htm M.Sc. Environmental Management: http://www.ecology.uni-kiel.de/teaching/master M.Sc. Marine Geosciences: http://www.ifg.uni-kiel.de/1146.html M.Sc. Materials Science and Engineering: http://www.kielmat.com/Master_of_Science_/Application/application.html…

    • 2985 Words
    • 12 Pages
    Good Essays