You are on page 1of 7

Date / Time

Source Elapsed Rows


Result Notes SQL Statement Length
Stmts Stmt Type
SQL Type
User
DBS Time
Fetch Time
Seq
4/18/2011 16:15:12
TFClass 00:00:00
0
3707
INSERT (
100000,1000,'C',1000,'2000-12-31',10,'Maricar Caliva',5,20,old order) INTO order
s_ppi_mwd;
98
1
INSERT Teradata
Students
00:00:00
00:00:00
118
4/18/2011 16:04:37
TFClass 00:00:00
53
select p
artition, count(*)from orders_ppi_mwdwhere year (o_orderdate) = 2009group by 1or
der by 1;
105
1
SELECT Teradata
Students
00:00:00
00:00:00
117
4/18/2011 15:54:57
TFClass 00:00:00
511
select p
artition, count(*)from orders_ppi_mwdwhere o_orderdate between '2001-01-01' and
'2010-12-31'group by 1order by 1;
129
1
SELECT Teradata
Students
00:00:00
00:00:00
116
4/18/2011 15:54:11
TFClass 00:00:01
26400
insert i
nto orders_ppi_mwd select* from orders_ppi_m; 53
1
INSERT Teradata
Students
00:00:01
00:00:00
115
4/18/2011 15:52:16
TFClass 00:00:00
0
CREATE S
ET TABLE STUDENTS.orders_ppi_mwd ,FALLBACK ,
NO BEFORE JOURNAL,
NO AFTER
JOURNAL,
CHECKSUM = DEFAULT
(
o_orderid INTEGER NOT NULL,
o_c
ustid INTEGER NOT NULL,
o_orderstatus CHAR(1) CHARACTER SET LATIN CASESPECI
FIC,
o_totalprice DECIMAL(9,2) NOT NULL,
o_orderdate DATE FORMAT 'YYYY
-MM-DD' NOT NULL,
o_orderpriority SMALLINT,
o_clerk CHAR(16) CHARACTER
SET LATIN NOT CASESPECIFIC,
o_location SMALLINT,
o_shippriority SMALL
INT,
o_comment VARCHAR(79) CHARACTER SET LATIN NOT CASESPECIFIC)PRIMARY IND
EX ( o_orderid )PARTITION BY RANGE_N(o_orderdate BETWEEN DATE '2001-01-01' AND
DATE '2008-12-31' EACH INTERVAL '1' MONTH , DATE '2009-01-01' AND DATE '2009-1231' EACH INTERVAL '7' day, DATE '2010-01-01' AND DATE '2010-12-31' EACH INTERVAL
'1' day,no range or unknown),unique index (o_orderid); 903
1
CREATE T
ABLE
Teradata
Students
00:00:00
00:00:00
114
4/18/2011 15:49:47
TFClass 00:00:00
0
3707
CREATE S
ET TABLE STUDENTS.orders_ppi_mwd ,FALLBACK ,
NO BEFORE JOURNAL,
NO AFTER
JOURNAL,
CHECKSUM = DEFAULT
(
o_orderid INTEGER NOT NULL,
o_c
ustid INTEGER NOT NULL,
o_orderstatus CHAR(1) CHARACTER SET LATIN CASESPECI
FIC,
o_totalprice DECIMAL(9,2) NOT NULL,
o_orderdate DATE FORMAT 'YYYY
-MM-DD' NOT NULL,
o_orderpriority SMALLINT,
o_clerk CHAR(16) CHARACTER
SET LATIN NOT CASESPECIFIC,
o_location SMALLINT,
o_shippriority SMALL
INT,
o_comment VARCHAR(79) CHARACTER SET LATIN NOT CASESPECIFIC)PRIMARY IND
EX ( o_orderid )PARTITION BY RANGE_N(o_orderdate BETWEEN DATE '2001-01-01' AND
DATE '2008-12-31' EACH INTERVAL '1' MONTH ,o_orderdate BETWEEN DATE '2009-01-01
' AND DATE '2009-12-31' EACH INTERVAL '7' day,o_orderdate BETWEEN DATE '2010-01
-01' AND DATE '2010-12-31' EACH INTERVAL '1' day,no range or unknown),unique ind
ex (o_orderid); 943
1
CREATE TABLE
Teradata
Students
00:00:00
00:00:00
113
4/18/2011 15:49:19
TFClass 00:00:00
0
3707
CREATE S
ET TABLE STUDENTS.orders_ppi_mwd ,FALLBACK ,
NO BEFORE JOURNAL,
NO AFTER
JOURNAL,
CHECKSUM = DEFAULT
(
o_orderid INTEGER NOT NULL,
o_c
ustid INTEGER NOT NULL,
o_orderstatus CHAR(1) CHARACTER SET LATIN CASESPECI
FIC,
o_totalprice DECIMAL(9,2) NOT NULL,
o_orderdate DATE FORMAT 'YYYY
-MM-DD' NOT NULL,
o_orderpriority SMALLINT,
o_clerk CHAR(16) CHARACTER
SET LATIN NOT CASESPECIFIC,
o_location SMALLINT,
o_shippriority SMALL
INT,
o_comment VARCHAR(79) CHARACTER SET LATIN NOT CASESPECIFIC)PRIMARY IND
EX ( o_orderid )PARTITION BY RANGE_N(o_orderdate BETWEEN DATE '2001-01-01' AND
DATE '2008-12-31' EACH INTERVAL '1' MONTH ,o_orderdate BETWEEN DATE '2009-01-01
' AND DATE '2009-12-31' EACH INTERVAL '7' day,o_orderdate BETWEEN DATE '2010-01
-01' AND DATE '2010-12-31' EACH INTERVAL '1' day,no range or unknown)unique inde
x (o_orderid); 942
1
CREATE TABLE
Teradata
Students
00:00:00
00:00:00
112
4/18/2011 15:39:38
TFClass 00:00:00
1
show tab

le orders_ppi_m;
24
1
SHOW
Teradata
Students
00:00:00
00:00:00
111
4/18/2011 15:37:29
TFClass 00:00:00
120
select p
artition, count(*)from orders_ppi_mwhere o_orderdate between '2001-01-01' and '2
010-12-31'group by 1order by 1; 127
1
SELECT Teradata
Students
00:00:00
00:00:00
110
4/18/2011 15:37:07
TFClass 00:00:00
6000
insert i
nto orders_ppi_m select* from orders_2010;
50
1
INSERT Teradata
Students
00:00:00
00:00:00
109
4/18/2011 15:30:40
TFClass 00:00:00
12
select p
artition, count(*)from orders_ppi_mwhere o_orderdate between '2001-01-01' and '2
001-12-31'group by 1order by 1; 127
1
SELECT Teradata
Students
00:00:00
00:00:00
107
4/18/2011 15:29:58
TFClass 00:00:00
0
3706
select p
artition count(*)from orders_ppi_mwhere o_orderdate between '2001-01-01' and '20
01-12-31'group by 1order by 1; 126
1
SELECT Teradata
Students
00:00:00
00:00:00
106
4/18/2011 15:26:58
TFClass 00:00:00
1
select c
ount(*) from orders_ppi_m;/*select count (*) from orders_2010;*/
74
2
SELECT Teradata
Students
00:00:00
00:00:00
105
4/18/2011 15:26:33
TFClass 00:00:00
20400
insert i
nto orders_ppi_m select* from orders; 45
1
INSERT Teradata
Students
00:00:00
00:00:00
104
4/18/2011 15:24:37
TFClass 00:00:00
0
/*show t
able orders;*/CREATE SET TABLE STUDENTS.orders_ppi_m ,FALLBACK ,
NO BEFORE J
OURNAL,
NO AFTER JOURNAL,
CHECKSUM = DEFAULT
(
o_orderid INTEGE
R NOT NULL,
o_custid INTEGER NOT NULL,
o_orderstatus CHAR(1) CHARACTER
SET LATIN CASESPECIFIC,
o_totalprice DECIMAL(9,2) NOT NULL,
o_orderda
te DATE FORMAT 'YYYY-MM-DD' NOT NULL,
o_orderpriority SMALLINT,
o_cler
k CHAR(16) CHARACTER SET LATIN NOT CASESPECIFIC,
o_location SMALLINT,
o_shippriority SMALLINT,
o_comment VARCHAR(79) CHARACTER SET LATIN NOT CASE
SPECIFIC)PRIMARY INDEX ( o_orderid )partition by (range_n(o_orderdate between da
te '2001-01-01' and date '2010-12-31' each interval '1' month));
748
1
CREATE TABLE
Teradata
Students
00:00:00
00:00:00
103
4/18/2011 15:24:08
TFClass 00:00:00
0
3707
/*show t
able orders;*/CREATE SET TABLE STUDENTS.orders_ppi_m ,FALLBACK ,
NO BEFORE J
OURNAL,
NO AFTER JOURNAL,
CHECKSUM = DEFAULT
(
o_orderid INTEGE
R NOT NULL,
o_custid INTEGER NOT NULL,
o_orderstatus CHAR(1) CHARACTER
SET LATIN CASESPECIFIC,
o_totalprice DECIMAL(9,2) NOT NULL,
o_orderda
te DATE FORMAT 'YYYY-MM-DD' NOT NULL,
o_orderpriority SMALLINT,
o_cler
k CHAR(16) CHARACTER SET LATIN NOT CASESPECIFIC,
o_location SMALLINT,
o_shippriority SMALLINT,
o_comment VARCHAR(79) CHARACTER SET LATIN NOT CASE
SPECIFIC)PRIMARY INDEX ( o_orderid )partition by (range_n(o_orderdate between da
te '2001-01-01' and date '2010-12-31' each interval '1' month); 747
1
CREATE TABLE
Teradata
Students
00:00:00
00:00:00
102
4/18/2011 15:22:58
TFClass 00:00:00
0
3707
/*show t
able orders;*/CREATE SET TABLE STUDENTS.orders_ppi_m ,FALLBACK ,
NO BEFORE J
OURNAL,
NO AFTER JOURNAL,
CHECKSUM = DEFAULT
(
o_orderid INTEGE
R NOT NULL,
o_custid INTEGER NOT NULL,
o_orderstatus CHAR(1) CHARACTER
SET LATIN CASESPECIFIC,
o_totalprice DECIMAL(9,2) NOT NULL,
o_orderda
te DATE FORMAT 'YYYY-MM-DD' NOT NULL,
o_orderpriority SMALLINT,
o_cler
k CHAR(16) CHARACTER SET LATIN NOT CASESPECIFIC,
o_location SMALLINT,
o_shippriority SMALLINT,
o_comment VARCHAR(79) CHARACTER SET LATIN NOT CASE
SPECIFIC)PRIMARY INDEX ( o_orderid )partition by (range_n(o_orderdate between da
te '2001-01-01' and date '2010-12-31' each interval '1' month); /*select count(*
)from orders;select partition,count(*)from ordersgroup by 1order by 1;select par
tition,count(*)from orderswhere o_orderdate between '2001-01-01' and '2001-12-31

'group by 1order by 1;*/


974
1
CREATE TABLE
Teradata
Students
00:00:00
00:00:00
101
4/18/2011 15:14:33
TFClass 00:00:00
24
drop tab
le orders_ppi_m;
24
1
DROP TABLE
Teradata
Students
00:00:00
00:00:00
100
4/18/2011 15:13:53
TFClass 00:00:00
0
/*show t
able orders;*/CREATE SET TABLE STUDENTS.orders_ppi_m ,FALLBACK ,
NO BEFORE J
OURNAL,
NO AFTER JOURNAL,
CHECKSUM = DEFAULT
(
o_orderid INTEGE
R NOT NULL,
o_custid INTEGER NOT NULL,
o_orderstatus CHAR(1) CHARACTER
SET LATIN CASESPECIFIC,
o_totalprice DECIMAL(9,2) NOT NULL,
o_orderda
te DATE FORMAT 'YYYY-MM-DD' NOT NULL,
o_orderpriority SMALLINT,
o_cler
k CHAR(16) CHARACTER SET LATIN NOT CASESPECIFIC,
o_location SMALLINT,
o_shippriority SMALLINT,
o_comment VARCHAR(79) CHARACTER SET LATIN NOT CASE
SPECIFIC)PRIMARY INDEX ( o_orderid )
636
1
CREATE TABLE
Teradata
Students
00:00:00
00:00:00
99
4/18/2011 15:11:19
TFClass 00:00:00
1
show tab
le orders;
18
1
SHOW
Teradata
Students
00:00:00
00:00:00
98
4/18/2011 15:10:32
TFClass 00:00:00
1
select c
ount(*) from orders;/*select count (*) from orders_2010;*/
68
2
SELECT Teradata
Students
00:00:00
00:00:00
97
4/18/2011 15:10:23
TFClass 00:00:00
2
select c
ount(*) from orders;select count (*) from orders_2010; 64
2
SELECT
Teradata
Students
00:00:00
00:00:00
96
4/18/2011 15:08:52
TFClass 00:00:00
0
create t
able orders_2010 as ds.orders_2010 with data; 53
1
CREATE TABLE
Teradata
Students
00:00:00
00:00:00
95
4/18/2011 15:08:17
TFClass 00:00:00
0
3803
create t
able orders as ds.orders with data;
43
1
CREATE TABLE
Teradata
Students
00:00:00
00:00:00
94
4/18/2011 12:08:42
TFClass 00:00:00
2
select v
proc, TableName(char(15)), currentpermfrom dbc.tablesizewhere databasename=datab
aseand TableName = 'employee_2'order by 1;
138
1
SELECT Teradata
Students
00:00:00
00:00:00
92
4/18/2011 12:08:26
TFClass 00:00:00
1
select c
ount(*) from employee_2;
32
1
SELECT Teradata
Students
00:00:00
00:00:00
91
4/18/2011 12:08:09
TFClass 00:00:00
1000
insert i
nto employee_2 select * from employee; 46
1
INSERT Teradata
Students
00:00:00
00:00:00
90
4/18/2011 12:07:46
TFClass 00:00:00
1
/*insert
into employee_2 select * from employee;*/select count(*) from employee_2;
84
1
SELECT Teradata
Students
00:00:00
00:00:00
89
4/18/2011 12:07:33
TFClass 00:00:00
0
CREATE S
ET TABLE STUDENTS.employee_2 ,FALLBACK ,
NO BEFORE JOURNAL,
NO AFTER JOU
RNAL,
CHECKSUM = DEFAULT
(
Employee_Number INTEGER NOT NULL,
D
ept_Number INTEGER,
Emp_Mgr_Number INTEGER,
Job_Code INTEGER,
Las
t_Name CHAR(20) CHARACTER SET LATIN NOT CASESPECIFIC,
First_Name VARCHAR(20
) CHARACTER SET LATIN NOT CASESPECIFIC,
Salary_Amount DECIMAL(10,2))PRIMARY
INDEX (Last_Name );
452
1
CREATE TABLE
Teradata
Students
00:00:00
00:00:00
88
4/18/2011 12:07:08
TFClass 00:00:00
21
/*insert
into employee_2 select * from employee;*//*select count(*) from employee_2;*/dr
op table employee_2;
112
1
DROP TABLE
Teradata
Students
00:00:00
00:00:00
87
4/18/2011 12:05:29
TFClass 00:00:00
0
CREATE S
ET TABLE STUDENTS.employee_2 ,FALLBACK ,
NO BEFORE JOURNAL,
NO AFTER JOU
RNAL,
CHECKSUM = DEFAULT
(
Employee_Number INTEGER NOT NULL,
D
ept_Number INTEGER,
Emp_Mgr_Number INTEGER,
Job_Code INTEGER,
Las

t_Name CHAR(20) CHARACTER SET LATIN NOT CASESPECIFIC,


First_Name VARCHAR(20
) CHARACTER SET LATIN NOT CASESPECIFIC,
Salary_Amount DECIMAL(10,2))PRIMARY
INDEX (Last_Name ); 453
1
CREATE TABLE
Teradata
Students
00:00:00
00:00:00
85
4/18/2011 12:02:51
TFClass 00:00:00
1
/*insert
into employee_2 select * from employee;*/select count(*) from employee;
82
1
SELECT Teradata
Students
00:00:00
00:00:00
80
4/18/2011 11:58:41
TFClass 00:00:00
0
CREATE S
ET TABLE STUDENTS.employee_2 ,FALLBACK ,
NO BEFORE JOURNAL,
NO AFTER JOU
RNAL,
CHECKSUM = DEFAULT
(
Employee_Number INTEGER NOT NULL,
D
ept_Number INTEGER,
Emp_Mgr_Number INTEGER,
Job_Code INTEGER,
Las
t_Name CHAR(20) CHARACTER SET LATIN NOT CASESPECIFIC,
First_Name VARCHAR(20
) CHARACTER SET LATIN NOT CASESPECIFIC,
Salary_Amount DECIMAL(10,2))UNIQUE
PRIMARY INDEX (Last_Name );
460
1
CREATE TABLE
Teradata
Students
00:00:00
00:00:00
76
4/18/2011 11:57:35
TFClass 00:00:00
1
show tab
le employee;
20
1
SHOW
Teradata
Students
00:00:00
00:00:00
75
4/18/2011 11:56:23
TFClass 00:00:00
2
select v
proc, TableName(char(15)), currentpermfrom dbc.tablesizewhere databasename=datab
aseand TableName = 'employee'order by 1;
136
1
SELECT Teradata
Students
00:00:00
00:00:00
74
4/18/2011 11:55:43
TFClass 00:00:00
0
3706
select v
proc, TableName(char(15)), current permfrom dbc.tablesizewhere databasename=data
baseand TableName = employeeorder by 1; 135
1
SELECT Teradata
Students
00:00:00
00:00:00
73
4/18/2011 11:50:15
TFClass 00:00:00
1
select t
_count as "Typical Rows per Value"from (select Last_Name,count(*)from employee g
roup by 1)t_table(t_colvalue,t_count),(select count(distinct(Last_Name))from emp
loyee)t_table2(t_distinct_count)qualify rank (t_colvalue)=(t_distinct_count/2);
261
1
SELECT Teradata
Students
00:00:00
00:00:00
71
4/18/2011 11:49:59
TFClass 00:00:00
1
select t
_count as "Typical Rows per Value"from (select Job_Code,count(*)from employee gr
oup by 1)t_table(t_colvalue,t_count),(select count(distinct(Job_Code))from emplo
yee)t_table2(t_distinct_count)qualify rank (t_colvalue)=(t_distinct_count/2);
259
1
SELECT Teradata
Students
00:00:00
00:00:00
70
4/18/2011 11:49:41
TFClass 00:00:00
1
select t
_count as "Typical Rows per Value"from (select Dept_Number,count(*)from employee
group by 1)t_table(t_colvalue,t_count),(select count(distinct(Dept_Number))from
employee)t_table2(t_distinct_count)qualify rank (t_colvalue)=(t_distinct_count/
2);
265
1
SELECT Teradata
Students
00:00:00
00:00:00
69
4/18/2011 11:48:59
TFClass 00:00:00
1
select t
_count as "Typical Rows per Value"from (select Employee_Number,count(*)from empl
oyee group by 1)t_table(t_colvalue,t_count),(select count(distinct(Employee_Numb
er))from employee)t_table2(t_distinct_count)qualify rank (t_colvalue)=(t_distinc
t_count/2);
273
1
SELECT Teradata
Students
00:00:00
00:00:00
68
4/18/2011 11:45:32
TFClass 00:00:00
1
select c
ount(*)/count(distinct(Last_Name))from employee;
58
1
SELECT
Teradata
Students
00:00:00
00:00:00
67
4/18/2011 11:45:24
TFClass 00:00:00
1
select c
ount(*)/count(distinct(Job_Code))from employee; 57
1
SELECT Teradata
Students
00:00:00
00:00:00
66
4/18/2011 11:45:08
TFClass 00:00:00
1
select c
ount(*)/count(distinct(Dept_Number))from employee;
60
1
SELECT
Teradata
Students
00:00:00
00:00:00
65

4/18/2011 11:44:57
TFClass 00:00:00
0
3706
select c
ount(*)/count(distinct)Dept_Number))from employee;
60
1
SELECT
Teradata
Students
00:00:00
00:00:00
64
4/18/2011 11:44:44
TFClass 00:00:00
0
3706
select c
ount(*)/count(distinct)Dept_Number)from employee;
59
1
SELECT
Teradata
Students
00:00:00
00:00:00
62
4/18/2011 11:44:34
TFClass 00:00:00
0
3706
/*select
count(distinct(Employee_Number)) as employeenumcnt,count(distinct(Dept_Number))
as deptnumcnt,count(distinct(Job_Code)) as jobnumcnt,count(distinct(Last_Name))
as lastnumcntfrom employee;*//*select Last_Name,count(*)from employee group by
1order by 2 desc;*//*select count(*)from employeewhere Last_Name is null;*//*sel
ect count(*)/count(distinct(Employee_Number))from employee;*/select count(*)/cou
nt(distinct)Dept_Number)from employee;/*select count(*)/count(distinct(Job_Code)
)from employee;select count(*)/count(distinct(Last_Name))from employee;*/
597
2
SELECT Teradata
Students
00:00:00
00:00:00
61
4/18/2011 11:43:56
TFClass 00:00:00
1
/*select
count(distinct(Employee_Number)) as employeenumcnt,count(distinct(Dept_Number))
as deptnumcnt,count(distinct(Job_Code)) as jobnumcnt,count(distinct(Last_Name))
as lastnumcntfrom employee;*//*select Last_Name,count(*)from employee group by
1order by 2 desc;*//*select count(*)from employeewhere Last_Name is null;*/selec
t count(*)/count(distinct(Employee_Number))from employee;/*select count(*)/count
(distinct)Dept_Number)from employee;select count(*)/count(distinct(Job_Code))fro
m employee;select count(*)/count(distinct(Last_Name))from employee;*/ 593
2
SELECT Teradata
Students
00:00:00
00:00:00
59
4/18/2011 11:43:30
TFClass 00:00:00
1
3706
/*select
count(distinct(Employee_Number)) as employeenumcnt,count(distinct(Dept_Number))
as deptnumcnt,count(distinct(Job_Code)) as jobnumcnt,count(distinct(Last_Name))
as lastnumcntfrom employee;*//*select Last_Name,count(*)from employee group by
1order by 2 desc;*//*select count(*)from employeewhere Last_Name is null;*/selec
t count(*)/count(distinct(Employee_Number))from employee;select count(*)/count(d
istinct)Dept_Number)from employee;select count(*)/count(distinct(Job_Code))from
employee;select count(*)/count(distinct(Last_Name))from employee;
589
4
SELECT Teradata
Students
00:00:00
00:00:00
58
4/18/2011 11:43:08
TFClass 00:00:00
0
3707
/*select
count(distinct(Employee_Number)) as employeenumcnt,count(distinct(Dept_Number))
as deptnumcnt,count(distinct(Job_Code)) as jobnumcnt,count(distinct(Last_Name))
as lastnumcntfrom employee;*//*select Last_Name,count(*)from employee group by
1order by 2 desc;*//*select count(*)from employeewhere Last_Name is null;*/selec
t count(*)/count(distinct(Employee_Number))from employeeselect count(*)/count(di
stinct)Dept_Number)from employeeselect count(*)/count(distinct(Job_Code))from em
ployeeselect count(*)/count(distinct(Last_Name))from employee 585
1
SELECT Teradata
Students
00:00:00
00:00:00
57
4/18/2011 11:40:55
TFClass 00:00:00
1
/*select
count(distinct(Employee_Number)) as employeenumcnt,count(distinct(Dept_Number))
as deptnumcnt,count(distinct(Job_Code)) as jobnumcnt,count(distinct(Last_Name))
as lastnumcntfrom employee;*//*select Last_Name,count(*)from employee group by
1order by 2 desc;*/select count(*)from employeewhere Last_Name is null; 339
1
SELECT Teradata
Students
00:00:00
00:00:00
56
4/18/2011 11:40:36
TFClass 00:00:00
1
/*select
count(distinct(Employee_Number)) as employeenumcnt,count(distinct(Dept_Number))
as deptnumcnt,count(distinct(Job_Code)) as jobnumcnt,count(distinct(Last_Name))
as lastnumcntfrom employee;*//*select Last_Name,count(*)from employee group by
1order by 2 desc;*/select count(*)from employeewhere Job_Code is null; 338
1
SELECT Teradata
Students
00:00:00
00:00:00
55
4/18/2011 11:40:26
TFClass 00:00:00
1
/*select

count(distinct(Employee_Number)) as employeenumcnt,count(distinct(Dept_Number))
as deptnumcnt,count(distinct(Job_Code)) as jobnumcnt,count(distinct(Last_Name))
as lastnumcntfrom employee;*//*select Last_Name,count(*)from employee group by
1order by 2 desc;*/select count(*)from employeewhere Dept_Number is null;
341
1
SELECT Teradata
Students
00:00:00
00:00:00
54
4/18/2011 11:40:12
TFClass 00:00:00
1
/*select
count(distinct(Employee_Number)) as employeenumcnt,count(distinct(Dept_Number))
as deptnumcnt,count(distinct(Job_Code)) as jobnumcnt,count(distinct(Last_Name))
as lastnumcntfrom employee;*//*select Last_Name,count(*)from employee group by
1order by 2 desc;*/select count(*)from employeewhere Employee_Number is null;
345
1
SELECT Teradata
Students
00:00:00
00:00:00
53
4/18/2011 11:39:01
TFClass 00:00:00
464
/*select
count(distinct(Employee_Number)) as employeenumcnt,count(distinct(Dept_Number))
as deptnumcnt,count(distinct(Job_Code)) as jobnumcnt,count(distinct(Last_Name))
as lastnumcntfrom employee;*/select Last_Name,count(*)from employee group by 1o
rder by 2 desc; 277
1
SELECT Teradata
Students
00:00:00
00:00:00
52
4/18/2011 11:38:35
TFClass 00:00:00
52
/*select
count(distinct(Employee_Number)) as employeenumcnt,count(distinct(Dept_Number))
as deptnumcnt,count(distinct(Job_Code)) as jobnumcnt,count(distinct(Last_Name))
as lastnumcntfrom employee;*/select Job_Code,count(*)from employee group by 1or
der by 2 desc; 276
1
SELECT Teradata
Students
00:00:00
00:00:00
51
4/18/2011 11:38:12
TFClass 00:00:00
61
/*select
count(distinct(Employee_Number)) as employeenumcnt,count(distinct(Dept_Number))
as deptnumcnt,count(distinct(Job_Code)) as jobnumcnt,count(distinct(Last_Name))
as lastnumcntfrom employee;*/select Dept_Number,count(*)from employee group by
1order by 2 desc;
279
1
SELECT Teradata
Students
00:00:00
00:00:00
50
4/18/2011 11:36:45
TFClass 00:00:00
1000
/*select
count(distinct(Employee_Number)) as employeenumcnt,count(distinct(Dept_Number))
as deptnumcnt,count(distinct(Job_Code)) as jobnumcnt,count(distinct(Last_Name))
as lastnumcntfrom employee;*/select Employee_Number,count(*)from employee group
by 1order by 2 desc; 283
1
SELECT Teradata
Students
00:00:00
00:00:00
49
4/18/2011 11:34:00
TFClass 00:00:00
1
select c
ount(distinct(Employee_Number)) as employeenumcnt,count(distinct(Dept_Number)) a
s deptnumcnt,count(distinct(Job_Code)) as jobnumcnt,count(distinct(Last_Name)) a
s lastnumcntfrom employee;
202
1
SELECT Teradata
Students
00:00:00
00:00:00
48
4/18/2011 11:33:43
TFClass 00:00:00
0
3807
select c
ount(distinct(Employee_Number)) as employeenumcnt,count(distinct(Dept_Number)) a
s deptnumcnt,count(distinct(Job_Code)) as jobnumcnt,count(distinct(Last_Name)) a
s lastnumcntfrom empployee;
203
1
SELECT Teradata
Students
00:00:00
00:00:00
47
4/18/2011 11:32:25
TFClass 00:00:00
0
3706
select c
ount(distinct(Employee_Number)) as employeenumcnt,count(Dept_Number)) as deptnum
cnt,count(Job_Code)) as jobnumcnt,count(Last_Name)) as lastnumcntfrom empployee;
176
1
SELECT Teradata
Students
00:00:00
00:00:00
46
4/18/2011 11:26:55
TFClass 00:00:00
1
/*insert
into employee select * from pd.employee;*/select count(*) from employee;
83
1
SELECT Teradata
Students
00:00:00
00:00:00
45
4/18/2011 11:26:25
TFClass 00:00:00
0
insert i
nto employee select * from pd.employee; 47
1
INSERT Teradata
Students
00:00:00
00:00:00
44
4/18/2011 11:23:38
TFClass 00:00:01
0
create t

able students.employee as pd.employee with data;


56
1
CREATE T
ABLE
Teradata
Students
00:00:01
00:00:00
43
4/15/2011 16:29:55
TFClass 00:00:00
0
3803
CREATE T
ABLE agent_sales ,NO FALLBACK ,
NO BEFORE JOURNAL,
NO AFTER JOURNAL
(
agent_id INTEGER,
sales_amt INTEGER)
UNIQUE
PRIMARY INDEX ( agent_id );
367
1
CREATE TABLE
Teradata
Students
00:00:00
00:00:00
42
4/15/2011 16:28:52
TFClass 00:00:00
0
CREATE S
ET TABLE agent_sales ,NO FALLBACK ,
NO BEFORE JOURNAL,
NO AFTER JOURNAL
(
agent_id INTEGER,
sales_amt INTEGER)
UNI
QUE PRIMARY INDEX ( agent_id ); 371
1
CREATE TABLE
Teradata
Students
00:00:00
00:00:00
41

You might also like