We can add (sum) all lines by searching the entire table in a statement.

Hello
I have a table ' create table test1 (id number (5), name varchar2 (10), number (10,2)) pay "with the data.

ID NAME SALARY
1 AAAAAA 55000
2 BATH 15430
3 CARTER 15430
4 DDDDD 25430
5. EEEE 29830
6 FFFFF 7645
7 GIROU 6546
8 9645 HHHHH
9 IIIIII 7584

I need a select query that gives the result like this is to say.., 10th should be the sum of all 9 lines...

ID NAME SALARY
1 AAAAAA 55000
2 BATH 15430
3 CARTER 15430
4 DDDDD 25430
5. EEEE 29830
6 FFFFF 7645
7 GIROU 6546
8 9645 HHHHH
9 IIIIII 7584
10 172540 total

Like this?

SELECT id, name, SUM(salary)
 FROM t1
GROUP BY GROUPING SETS ((id,name,salary),());

Tags: Database

Similar Questions

Maybe you are looking for

  • Why isn't the exception, I add when I get this connection is untrusted error work?

    I recently started getting "this connection is Untrusted' errors every time I connect to google." Although there is a response describing the problem, I have the solution DOES NOT WORK. Not at all. I added google as an exception, many times, but I st

  • Safari freeze of faucets virus

    My safari froze, a blue screen come saying lve has been infected with the fitting, what I do?

  • Google Calendar loading when changes Guard - does not happen with Chrome.

    When I find more information on the edit page of Google Calendar (and add or try to change, save or remove an entry, it, it says loading, but nothing happens. If I use Chrome, not Firefox, I have no problem. It is a relatively new occurane that it di

  • video-accelerator

    I just got my new Vaio VPCZ1290X USA last week, started by checking material Vaio care diagnostics, just to be sure that everything is ok. the diagnosis #1 video could not tell the hardware accelerator (Nvidia GEForce GT 330 M) to check to make sure

  • The TV HX750 takes supported intel WIDI?

    I just bought a 46 '' sony tv integrated wireless HX750 I started the application wireless direct on tv The Intel WIDI, I started on my laptop but there is no access point After a painful updated all my drivers it isn't always access points. Laptop i