Vous êtes sur la page 1sur 7

INSTITUTO SUPERIOR CORDILLERA

CARRERA

Desarrollo de Software

ASIGNATURA

BASE DE DATOS

BIMESTRE

PRIMER

NOMBRE: Sebastián Guanoluisa

NIVEL: Segundo “A” JORNADA: Matutina

FECHA: 04/12/18

TEMA: BASE DE DATOS

OBJETIVO:

Desarrollar en laboratorio numero 1 de base de datos


CONTENIDO:

RESULTADOS OBTENIDOS:
1. Write a query to display the current date. Label the column Date

2. Display the employee number, name, salary, and salary increase by 15%expressed as a
whole number. Label the column New Salary. Save your SQL statement to a file named

3. Run your query in the file

4. Modify your query p3.q2 . sql to add a colmn that will subtract the old salary from the new
salary. Label the column Increase. Rerun your query
5. Display the employee name hire date, and salary review date, which is the first Monday
after six months of service. Label the column REVIEW . Formate the dates to appear in the
format similar to Sunday, the Seventh of September, 1981.

6. For each employee display the employee name and calculate the number of months
between today and the date the employee was hired Label the column MONTHS_WORKED
Onder your result by number of moths employeed . Round the number of moths up to the
closet

7. Write a query that produces the following for each employee < employee name > earns
salary monthly but wanst 3 times salary. Label the column Dream Salaries
8. Crate a query to display name and salary for all employees. Format the salary to be 15
characters long, left-padded with $. Label the column SALARY

9. Write a query will display the employees name with the first letter capitalized and all other
letters lowercase and the length of their name, for all employees who name stars with
J,A,OR M. Give each column an appropriate label.

10. Display the name, hire date, and day of the week on which the employee started. Label the
column DAY. Order the result by the day pf the week starting with Monday.
11. Create a query that will display the employee name and commission amount. If the
employee does not earn commission, put No Commission. Label the column COMM.

12. Create a query that display the employees name and indicates the amounts of their salaries
though asterisk. Each asterisk signifies a humored dollars. Sort the data in descending order
of salary. Label the column EMPLOYEES_AND_THEIR_SALARIES

13. Write a query that display the grade of all employees based on the value of the column JOB,
as per the table shown below
CONCLUSIONES

Se necesita saber el lenguaje SQL para poder administrar la base de datos y poder realizar consultas para
en posterior poder dar mantenimiento a la BASE DE DATOS

Vous aimerez peut-être aussi