title: sep 159:36 am (1 of 40)cisweb.bristolcc.edu/~pgrocer/audio_smartboardf16/cis150/c150se… ·...
TRANSCRIPT
Note the use of dual for testing functions using a literal.
Title: Sep 159:36 AM (1 of 40)
Title: Sep 159:38 AM (2 of 40)
Title: Sep 159:40 AM (3 of 40)
Title: Sep 159:40 AM (4 of 40)
Title: Sep 159:41 AM (5 of 40)
SUBSTR is a very useful function as is INSTR
SUBSTR(field, start, numberCharacters) will find the start point and take the number of charactersSUBSTR(field, start) will find the start point and take the characters until the end.
Title: Sep 159:43 AM (6 of 40)
Title: Sep 159:45 AM (7 of 40)
Title: Sep 159:45 AM (8 of 40)
Title: Sep 159:46 AM (9 of 40)
Title: Sep 159:47 AM (10 of 40)
Title: Sep 159:48 AM (11 of 40)
Title: Sep 159:48 AM (12 of 40)
Title: Sep 159:49 AM (13 of 40)
Title: Sep 159:50 AM (14 of 40)
Title: Sep 159:50 AM (15 of 40)
Title: Sep 159:51 AM (16 of 40)
Title: Sep 159:51 AM (17 of 40)
Title: Sep 159:52 AM (18 of 40)
Title: Sep 159:53 AM (19 of 40)
NVL replaces null values with other data for the duration of the query.
Title: Sep 159:55 AM (20 of 40)
Title: Sep 159:58 AM (21 of 40)
Title: Sep 1510:02 AM (22 of 40)
Title: Sep 1510:03 AM (23 of 40)
Title: Sep 1510:10 AM (24 of 40)
Title: Sep 1510:17 AM (25 of 40)
Title: Sep 1510:18 AM (26 of 40)
Title: Sep 1510:21 AM (27 of 40)
Title: Sep 1510:22 AM (28 of 40)
Group by state, contact means you are grouping by contact within state.State is the major thing.
Title: Sep 1510:23 AM (29 of 40)
Title: Sep 1510:23 AM (30 of 40)
Title: Sep 1510:24 AM (31 of 40)
Title: Sep 1510:28 AM (32 of 40)
Can't ask about sum with the where clause because that relates to eliminating groups. Need todo that with the having clause.
Title: Sep 1510:29 AM (33 of 40)
Title: Sep 1510:29 AM (34 of 40)
Title: Sep 1510:30 AM (35 of 40)
Title: Sep 1510:33 AM (36 of 40)
Title: Sep 1510:35 AM (37 of 40)
Title: Sep 1510:39 AM (38 of 40)
Title: Sep 1510:41 AM (39 of 40)
Title: Sep 1510:43 AM (40 of 40)