3 Statement Executed
: Rows Affected
= 1
4 Statement Executed
: Rows Affected
= 1
5 Statement Executed
: Rows Affected
= 1
6 Statement Executed
: Rows Affected
= 1
7 Statement Executed
: Rows Affected
= 1
8 Statement Executed
: Rows Affected
= 1
10 ---------------------------------------------------------
11 t1.f1 t1.f2 t1.f3 t1.f4
12 ---------------------------------------------------------
15 3 60 Kisor Ambli Developer
18 4 90 Bhahmananda MKTING
21 Statement Executed
: Rows Affected
= 1
22 Statement Executed
: Rows Affected
= 1
23 Statement Executed
: Rows Affected
= 1
24 Statement Executed
: Rows Affected
= 1
25 Statement Executed
: Rows Affected
= 1
26 Statement Executed
: Rows Affected
= 1
27 Statement Executed
: Rows Affected
= 1
28 echo SELECT
* from t1
;
29 ---------------------------------------------------------
30 t1.f1 t1.f2 t1.f3 t1.f4
31 ---------------------------------------------------------
34 3 60 Kisor Ambli Developer
37 4 90 Bhahmananda MKTING
39 echo select t1.f1
,t1.f2
,count
(t1.f4
),count
(t2.f3
) from t1
,t2 group by t1.f1
,t1.f2
;
40 ---------------------------------------------------------
41 t1.f1 t1.f2 COUNT
(t1.f4
) COUNT
(t2.f3
)
42 ---------------------------------------------------------
50 echo select t1.f1
,t1.f2
,count
(t1.f4
),count
(t2.f3
) from t1
,t2 group by t1.f1
,t1.f2 having count
(t1.f4
)<6 and count
(t2.f3
) >=7;
51 ---------------------------------------------------------
52 t1.f1 t1.f2 COUNT
(t1.f4
) COUNT
(t2.f3
)
53 ---------------------------------------------------------
57 echo select t1.f1
,t1.f2
,count
(t1.f3
),count
(t2.f3
) from t1
,t2 group by t1.f1
,t1.f2 having avg
(t1.f2
)<70;
58 ---------------------------------------------------------
59 t1.f1 t1.f2 COUNT
(t1.f3
) COUNT
(t2.f3
)
60 ---------------------------------------------------------