Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
7Activity
0 of .
Results for:
No results containing your search query
P. 1
Respuestas Oracle PL-SQL Practica 3

Respuestas Oracle PL-SQL Practica 3

Ratings: (0)|Views: 253|Likes:
Practice of Chapter 3
Introduction to Oracle: SQL and PL/SQL
Instructor Guide - Volume 1
41010GC13
Production 1.3
July 1999
ORACLE
Practice of Chapter 3
Introduction to Oracle: SQL and PL/SQL
Instructor Guide - Volume 1
41010GC13
Production 1.3
July 1999
ORACLE

More info:

Published by: Ezequiel Hernán Villanueva on Dec 29, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as TXT, PDF, TXT or read online from Scribd
See more
See less

03/16/2015

pdf

text

original

 
Introduction to Oracle: SQL and PL/SQL, Instructor Guide, Volumen 1Práctica 3: Funciones que Afectan a un único Registro/Fila--------------------------------------------------------------------Ejercicio 1:SQL> SELECT SYSDATE as "Date" FROM DUAL;Ejercicio 2:SQL> SELECT EMPNO, ENAME, SAL, TRUNC(SAL*1.15) as "New Salary" FROM EMP;SQL> save p3q2.sqlEjercicio 3:SQL> start p3q2.sqlEjercicio 4:SQL> SELECT EMPNO, ENAME, SAL, TRUNC(SAL*1.15) as "New Salary", (TRUNC(SAL*1.15)-SAL) as "Increase" FROM EMP;SQL> save p3q3.sqlSQL> start p3q3.sqlEjercicio 5:SQL> SELECT ENAME, HIREDATE, SAL, TO_CHAR( NEXT_DAY( ADD_MONTHS( HIREDATE, 6 ) , 'Lunes') , 'fmDAY" the "fmDDSPTH" of "fmMONTH", "fmYYYY') as "REVIEW" FROM EMP;Ejercicio 6:SQL> SELECT ENAME, ROUND( MONTHS_BETWEEN( SYSDATE , HIREDATE ) ) as "MONTHS_WORKED" FROM EMP ORDER BY ROUND( MONTHS_BETWEEN( SYSDATE , HIREDATE ) );Ejercicio 7:SQL> SELECT ENAME  ' earn'  TO_CHAR( SAL , '$99999.99' )  ' monthly but wants'  TO_CHAR( 3*SAL , '$99999.99' ) '.' as "Dream Salaries" FROM EMP;Ejercicio 8:SQL> SELECT ENAME, LPAD( SAL, 15, '$') as "SALARY" FROM EMP;Ejercicio 9:SQL> SELECT INITCAP(ENAME) as "Name", LENGTH(ENAME) as "Length" FROM EMPWHERE SUBSTR(ENAME,1,1) IN ('J','A','M');Ejercicio 10:SQL> SELECT ENAME, HIREDATE, TO_CHAR(HIREDATE,'fmDAY') as "DAY" FROM EMPORDER BY NEXT_DAY(HIREDATE,'Lunes');Ejercicio 11:

Activity (7)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
joubo liked this
Dante Llimpe liked this
Ana Santos liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->