Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
select t1.id, t1.value value1,t2.value value2,[b]t1.value + t2.value[/b] valueadd from test1 t1, test2 t2
where t1.id=t2.id;
SQL> select dept_id, salary from s_emp;
DEPT_ID SALARY
---------- ----------
50 3025
41 1450
31 1400
10 1450
50 1550
41 1200
42 1250
43 1100
44 1300
45 1307
31 1400
32 1490
33 1515
34 1525
35 1450
41 1400
41 940
42 1200
42 795
43 750
43 850
44 800
34 795
45 860
45 1100
25 rows selected.
SQL> select dept_id, sum(salary)
2 from s_emp
3 group by dept_id;
DEPT_ID SUM(SALARY)
---------- -----------
10 1450
31 2800
32 1490
33 1515
34 2320
35 1450
41 4990
42 3245
43 2700
44 2100
45 3267
50 4575
12 rows selected.