I'm a beginner and I need a lot of help !!

Dúvidas, dicas e truques de SQL, Select, Update, Delete, cláusulas, operações com joins, Funções em SQLs, etc
Post Reply
fabio.ods
Rank: Estagiário Júnior
Rank: Estagiário Júnior
Posts: 1
Joined: Thu, 20 Mar 2008 9:25 pm
Location: Maringá

I have to make a change in the EMP table, with the following functions:
DECODE, GREATEST AND LEAST.
where salaries from 0 to 1500 receive 10% increase and so on.

grateful for aid
User avatar
dr_gori
Moderador
Moderador
Posts: 5027
Joined: Mon, 03 May 2004 3:08 pm
Location: Portland, OR USA
Contact:
Thomas F. G

Você já respondeu a dúvida de alguém hoje?
https://glufke.net/oracle/search.php?search_id=unanswered

Topic Moved to SQL Forum!
ruevers
Rank: DBA Sênior
Rank: DBA Sênior
Posts: 324
Joined: Fri, 02 Jun 2006 1:48 pm
Location: sp
Contact:

Guys, I think I'm going to make a basic SQL tutorial ... it's bone.

What do you think and who would like to help?
Dulima-SP
Rank: DBA Júnior
Rank: DBA Júnior
Posts: 193
Joined: Thu, 24 Jan 2008 1:56 pm
Location: SP
Dulima

DBA Oracle Jr

I sent a nice material for Trevisolli ...

vê with him if it is possible to join everything in a single "guide of the beginner"
ruevers
Rank: DBA Sênior
Rank: DBA Sênior
Posts: 324
Joined: Fri, 02 Jun 2006 1:48 pm
Location: sp
Contact:

I am thinking of putting the net-g tutorial on web, something very simple that teach join, update and main functions.
Something very simple indeed ... like this

by chapters
1-Understanding the Select
2-Understanding from
3-Understanding the WHERE (conditions)
4-Making Joins
5-Group by
6-Main functions.

What do you think?
Dulima-SP
Rank: DBA Júnior
Rank: DBA Júnior
Posts: 193
Joined: Thu, 24 Jan 2008 1:56 pm
Location: SP
Dulima

DBA Oracle Jr

give me your e-mail ... that I send you the material that I sent to the travisolli
gokden
Rank: DBA Pleno
Rank: DBA Pleno
Posts: 264
Joined: Sun, 19 Aug 2007 8:18 pm
Location: Ribeirão Preto - SP
Lucas de Souza

OCA Developer
Analista de sistemas

I think it's a good idea também, tenho mtaaaaaaaaaaaaaas there, if you need help, I can send you a pouco também

more answering the question of Fábio, the decode works like this:
face, using the decode I do not know how not ...
more I managed to do this using the case

because I do not know how to put the salt> = 1500 in the decode ....
In the decode you have to do a salt = 1500 ....

using the case is like this:

Select all

 
select sal 
     , CASE 
        WHEN Sal <= 1500 THEN 
           SAL*1.1 
        ELSE 
           SAL 
        END  Sal_aumentado 
from emp
already with the decode you can do like this:

Select all

 
select sal 
     , DECODE(sal, 1500, sal*1.1, sal) sal_aumentado 
  from emp 

more there only alter the salary qui is equal to 1500

= D
User avatar
Toad
Rank: DBA Pleno
Rank: DBA Pleno
Posts: 253
Joined: Fri, 18 Nov 2005 2:14 pm
Location: Seattle, WA
Contact:
Matheus Gonçalves
matheus.dev
twitter.com/developer__c

I propose to help in this tutorial.
I have a beginner colleagues added on MSN and I usually help when I can.
With a free time, I can add the little I know in this tutorial and I'm willing to help.
Hugs!
Toad
Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest