<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2862498837529179372</id><updated>2011-04-21T18:05:41.208-07:00</updated><category term='Links Guide'/><title type='text'>2008-2009 TLE IV - BLACK BOARD</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ccnshs2008-tle4.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2862498837529179372/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://ccnshs2008-tle4.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Executive30</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>40</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2862498837529179372.post-2585849754458560764</id><published>2009-02-17T23:33:00.000-08:00</published><updated>2009-02-17T23:36:00.939-08:00</updated><title type='text'>SQL Statement Guide for  Activity #30 - 33</title><content type='html'>&lt;p class="MsoNormal" style="margin-bottom: 12pt;"&gt;&lt;span style="font-family: Arial;"&gt;   select job_id, max(salary) "Maximum", min(salary) "Minimum", sum(salary) "Sal", avg(salary) "Average"&lt;br /&gt;   from employees&lt;br /&gt;   group by job_id&lt;br /&gt;   order by 1;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   select e.last_name, e.hire_date&lt;br /&gt;   from employees e join employees f&lt;br /&gt;   on e.hire_date &gt; f.hire_date&lt;br /&gt;   and f.last_name = 'Davies';&lt;br /&gt; &lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br /&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 12pt;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;  select last_name, department_id&lt;br /&gt;  from employees&lt;br /&gt;  where employee_id = '176';&lt;br /&gt; &lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br /&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 12pt;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;   select e.last_name, e.hire_date, f.last_name, f.hire_date&lt;br /&gt;   from employees e join employees f&lt;br /&gt;   on e.hire_date &lt; f.hire_date&lt;br /&gt;   and e.manager_id = f.employee_id;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 12pt;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;  select last_name, hire_date&lt;br /&gt;  from employees&lt;br /&gt;  where hire_date like ('%94');&lt;br /&gt; &lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br /&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 12pt;"&gt;&lt;span style="font-family: Arial;"&gt;   select e.last_name, e.job_id, d.department_id, d.department_name&lt;br /&gt;   from locations l join departments d&lt;br /&gt;   on l.location_id = d.location_id&lt;br /&gt;               join employees e&lt;br /&gt;   on e.department_id = d.department_id&lt;br /&gt;   and l.city = '&lt;st1:place st="on"&gt;&lt;st1:city st="on"&gt;Toronto&lt;/st1:City&gt;&lt;/st1:place&gt;';&lt;br /&gt; &lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br /&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 12pt;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;  select last_name, job_id, hire_date&lt;br /&gt;  from employees&lt;br /&gt;  where last_name in ('&lt;span class="yshortcuts"&gt;Matos&lt;/span&gt;','&lt;st1:city st="on"&gt;&lt;st1:place st="on"&gt;Taylor&lt;/st1:place&gt;&lt;/st1:City&gt;');&lt;br /&gt;&lt;br /&gt;&lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br /&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 12pt;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;  select initcap(last_name) "Name", length(last_name) "Length"&lt;br /&gt;  from employees&lt;br /&gt;  where  substr(last_name,1,1) IN ('J','A','M')&lt;br /&gt;  order by last_name asc;&lt;br /&gt; &lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br /&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 12pt;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;&lt;br /&gt;  select last_name as "Employee", salary as "Monthly Salary"&lt;br /&gt;  from employees&lt;br /&gt;  where salary between 5000 and 12000&lt;br /&gt;    and  department_id in ('20','50')&lt;br /&gt;  order by last_name asc;&lt;br /&gt; &lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br /&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 12pt;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 12pt;"&gt;&lt;span style="font-family: Arial;"&gt;   select job_id,   &lt;br /&gt;        sum(decode(nvl(department_id,'0'),'20',salary,null)) as "Dept20",&lt;br /&gt;        sum(decode(nvl(department_id,'0'),'50',salary,null)) as "Dept50",&lt;br /&gt;        sum(decode(nvl(department_id,'0'),'80',salary,null)) as "Dept80",&lt;br /&gt;        sum(decode(nvl(department_id,'0'),'90',salary,null)) as "Dept90",&lt;br /&gt;          sum(salary) "Total"&lt;br /&gt;   from employees&lt;br /&gt;   group by job_id&lt;br /&gt; &lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br /&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 12pt;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;   select f.department_id, e.last_name, f.last_name "COLLEAGUE"&lt;br /&gt;   from employees e join employees f&lt;br /&gt;   on e.department_id = f.department_id&lt;br /&gt;   and f.last_name &lt;&gt; e.last_name;  &lt;br /&gt;   desc job_grades&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  select last_name, job_id&lt;br /&gt;  from employees&lt;br /&gt;  where manager_id is null;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  select last_name, salary, commission_pct&lt;br /&gt;  from employees&lt;br /&gt;  where commission_pct is not null;    &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  select last_name, salary&lt;br /&gt;  from employees&lt;br /&gt;  where salary &gt; &amp;salary;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  select employee_id, last_name, salary, department_id&lt;br /&gt;  from employees&lt;br /&gt;  where manager_id = &amp;amp;manager_id&lt;br /&gt;  order by &amp;amp;order_by_column;&lt;br /&gt;      &lt;br /&gt;&lt;br /&gt;  select last_name&lt;br /&gt;  from employees&lt;br /&gt;  where last_name like ('__a%');&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  select last_name&lt;br /&gt;  from employees&lt;br /&gt;  where last_name like ('%e%')&lt;br /&gt;  and   last_name like ('%a%');&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  select last_name, salary "Monthly Salary", commission_pct&lt;br /&gt;  from employees&lt;br /&gt;  where commission_pct is not null&lt;br /&gt;  and commission_pct = 0.2;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  select last_name, salary&lt;br /&gt;  from employees&lt;br /&gt;  where salary &gt; 12000;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  select sysdate&lt;br /&gt;  from dual;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 12pt;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 12pt;"&gt;&lt;span style="font-family: Arial;"&gt;   select manager_id, min(salary)&lt;br /&gt;   from employees&lt;br /&gt;   where manager_id is not null&lt;br /&gt;   group by manager_id&lt;br /&gt;   having min(salary)&gt;6000&lt;br /&gt;   order by 2 desc;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  select employee_id, last_name, salary, salary+salary*0.155 as "New Salary"&lt;br /&gt;  from employees;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  select employee_id, last_name, salary, salary+salary*0.155 as "New Salary",&lt;br /&gt;  (salary+salary*0.155) - salary "Increase"&lt;br /&gt;  from employees;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  select initcap(last_name) "Name", length(last_name) "Length"&lt;br /&gt;  from employees&lt;br /&gt;  where  substr(last_name,1,1) = '&amp;amp;first_letter'&lt;br /&gt;  order by last_name asc;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 12pt;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 12pt;"&gt;&lt;span style="font-family: Arial;"&gt;  select last_name, salary&lt;br /&gt;  from employees&lt;br /&gt;  where salary not between 5000 and 12000;&lt;br /&gt; &lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br /&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-bottom: 12pt;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;  select last_name||' '||'earns'||' '||salary||' '||'monthly but wants'||' '||'$'||salary*3&lt;br /&gt;  from employees;&lt;br /&gt; &lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br /&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 12pt;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;  select last_name, lpad(salary,15,'$')&lt;br /&gt;  from employees;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  select last_name,&lt;br /&gt;         hire_date,&lt;br /&gt;         to_char(&lt;br /&gt;                 next_day(add_months(hire_date,6),'Monday'),&lt;br /&gt;                 'fmDay ", the" fmDdthsp "of" fmMonth "," fmYYYY')&lt;br /&gt;  as "REVIEW"&lt;br /&gt;  from employees;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  select last_name, hire_date, to_char(hire_date, 'Day') DAY&lt;br /&gt;  from employees&lt;br /&gt;  order by to_char(hire_date-1, 'D');   &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  select last_name, nvl(to_char(commission_pct),'No Commission') COMM&lt;br /&gt;  from employees;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  select substr(last_name,1,8)||rpad('*', trunc(salary/1000),'*')&lt;br /&gt;  from employees&lt;br /&gt;  order by salary desc;   &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  select last_name, trunc(months_between(sysdate,hire_date)) months_worked&lt;br /&gt;  from employees;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  select job_id, decode(job_id,&lt;br /&gt;            'AD_PRES'    ,    'A',&lt;br /&gt;            'ST_MAN'    ,    'B',&lt;br /&gt;            'IT_PROG'    ,    'C',&lt;br /&gt;            'SA_REP'    ,    'D',&lt;br /&gt;            'ST_CLERK'    ,    'E'&lt;br /&gt;                    ,    '0'&lt;br /&gt;            ) GRADE&lt;br /&gt;  from employees;&lt;br /&gt;&lt;br /&gt; &lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br /&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 12pt;"&gt;&lt;span style="font-family: Arial;"&gt;   select manager_id, min(salary)&lt;br /&gt;   from employees&lt;br /&gt;   where manager_id is not null&lt;br /&gt;   group by manager_id&lt;br /&gt;   having min(salary)&gt;6000&lt;br /&gt;   order by 2 desc;&lt;br /&gt; &lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br /&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 12pt;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt; select job_id, case when job_id = 'AD_PRES'     then    'A'&lt;br /&gt;             when job_id = 'ST_MAN'     then     'B'&lt;br /&gt;             when job_id = 'IT_PROG'     then     'C'   &lt;br /&gt;             when job_id = 'SA_REP'      then     'D'   &lt;br /&gt;             when job_id = 'SA_CLERK'      then     'E'&lt;br /&gt;             else                '0'&lt;br /&gt;             end as GRADE               &lt;br /&gt;  from employees;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   select max(salary) "Maximum", min(salary) "Minimum", sum(salary) "Sal", avg(salary) "Average"&lt;br /&gt;   from employees;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   select job_id, count(*)&lt;br /&gt;   from employees&lt;br /&gt;   group by job_id&lt;br /&gt;   order by 1;&lt;br /&gt;  &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 12pt;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 12pt;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;span style=""&gt; &lt;/span&gt;select count(*) "Total",&lt;br /&gt;          sum(decode(to_char(hire_date,'yyyy'),'1995',1,0)) "1995",&lt;br /&gt;          sum(decode(to_char(hire_date,'yyyy'),'1996',1,0)) "1996",&lt;br /&gt;          sum(decode(to_char(hire_date,'yyyy'),'1997',1,0)) "1997",&lt;br /&gt;          sum(decode(to_char(hire_date,'yyyy'),'1997',1,0)) "1998"&lt;br /&gt;   from employees&lt;br /&gt; &lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br /&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-bottom: 12pt;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;br /&gt;   select count(distinct manager_id) "Number of Managers"&lt;br /&gt;   from  employees&lt;br /&gt;   where manager_id is not null;&lt;br /&gt;&lt;br /&gt;&lt;span style=""&gt; &lt;/span&gt;   select (max(salary)-min(salary)) "Difference"&lt;br /&gt;   from employees;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  &lt;span style=""&gt;&lt;/span&gt; select location_id, street_address, city, state_province, country_name&lt;br /&gt;   from locations l natural join countries c&lt;br /&gt;   order by 1 asc&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   select e.last_name, e.department_id, d.department_name&lt;br /&gt;   from employees e join departments d&lt;br /&gt;   on e.department_id = d.department_id;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   select e.last_name, e.employee_id, f.last_name "Manager", e.manager_id&lt;br /&gt;   from employees e join employees f&lt;br /&gt;   on e.manager_id = f.employee_id;&lt;br /&gt;  &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   select e.last_name, e.job_id, d.department_name,e.salary, j.grade_level grade&lt;br /&gt;   from employees e join departments d&lt;br /&gt;   on e.department_id = d.department_id&lt;br /&gt;            join job_grades j&lt;br /&gt;   on e.salary between lowest_sal and highest_sal;&lt;br /&gt;  &lt;br /&gt;&lt;br /&gt;&lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;  select last_name, department_id&lt;br /&gt;  from employees&lt;br /&gt;  where department_id in ('20','50')&lt;br /&gt;  order by last_name asc;&lt;br /&gt; &lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br /&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;br /&gt;  select last_name, job_id, salary&lt;br /&gt;  from employees&lt;br /&gt;  where job_id in ('SA_REP','ST_CLERK')&lt;br /&gt;  and salary not in ('2500','3500','7000');&lt;br /&gt; &lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br /&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;br /&gt;   select e.last_name, e.employee_id, f.last_name "Manager", e.manager_id&lt;br /&gt;   from employees e left outer join employees f&lt;br /&gt;   on e.manager_id = f.employee_id;&lt;br /&gt; &lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br /&gt; &lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2862498837529179372-2585849754458560764?l=ccnshs2008-tle4.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ccnshs2008-tle4.blogspot.com/feeds/2585849754458560764/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2862498837529179372&amp;postID=2585849754458560764' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2862498837529179372/posts/default/2585849754458560764'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2862498837529179372/posts/default/2585849754458560764'/><link rel='alternate' type='text/html' href='http://ccnshs2008-tle4.blogspot.com/2009/02/sql-statement-guide-for-activity-30-33.html' title='SQL Statement Guide for  Activity #30 - 33'/><author><name>Executive30</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2862498837529179372.post-6351323043201487843</id><published>2009-02-12T18:12:00.000-08:00</published><updated>2009-02-12T18:20:03.498-08:00</updated><title type='text'>Coverage Lessons for Final Exam 2009</title><content type='html'>&lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;CASE AND CHARACTER MANIPULATION&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;What Will I Learn?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;In this lesson, you will learn to:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Differentiate between operations of single-row functions and multiple-row functions&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Select and apply single-row functions that perform case conversion and/or character manipulation&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Select and apply character case-manipulation functions LOWER, UPPER, and INITCAP in a SQL query&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Select and apply character-manipulation functions CONCAT, SUBSTR, LENGTH, INSTR, LPAD, RPAD, TRIM, and REPLACE in a SQL query&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-family: Tahoma;"&gt;Why Learn It?&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: Tahoma;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Tahoma;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Have you ever thought about the different ways in which we present ourselves? We dress up for special occasions, dress casually for play, and put on uniforms for sports events and band concerts. Being able to change the way we look for different situations is important. How would you choose to present yourself for a job interview?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Being able to change the way in which data is presented is important when dealing with data from a database. Most of the time in SQL, we need to change the way that data appears depending on the requirements of the task we are trying to accomplish.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;In this section, you will learn several ways in which to transform data to fit a particular situation.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-family: Tahoma;"&gt;Tell Me/Show Me&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-family: Arial;"&gt;DUAL TABLE&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;The DUAL table has one row called "X" and one column called "DUMMY." The DUAL table is used to create SELECT statements and execute commands not directly related to a specific database table. Queries using the DUAL table return one row as a result. DUAL can be useful to do calculations such as the following example and also to evaluate expressions that are not derived from a table.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;DUAL will be used to learn many of the single-row functions.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT (319/29) +12&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM DUAL;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-family: Arial;"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;SINGLE-ROW CHARACTER FUNCTIONS&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Single-row character functions are divided into two categories: functions that convert the case of character strings and functions that can join, extract, show, find, pad, and trim character strings.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Single-row functions can be used in the SELECT, WHERE, and ORDER BY clauses.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Case-manipulation functions are important because you may not always know which case (upper, lower, or mixed) the data is stored in in the database. Case manipulation allows you to temporarily convert the database data to a case of your choosing. Mismatches between database case storage and query case requests are avoided. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;CASE-MANIPULATION FUNCTIONS&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;LOWER(column | expression) converts alpha characters to lower-case.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT title&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM d_cds&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;WHERE LOWER(title) = 'carpe diem';&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;UPPER(column | expression) converts alpha characters to upper-case.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT title&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM d_cds&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;WHERE UPPER(title) = 'CARPE DIEM';&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;INITCAP( column | expression) converts alpha character values to uppercase for the first letter of each word.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT title&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM d_cds&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;WHERE INITCAP(title) = 'Carpe Diem';&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt;CHARACTER-MANIPULATION FUNCTIONS&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;CONCAT: Joins two values together.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SUBSTR: Extracts a string of a determined length.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;LENGTH: Shows the length of a string as a number value.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;INSTR: Finds the numeric position of a named character.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;LPAD: Pads the left side of a character, resulting in a right-justified value.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;RPAD: Pads the right-hand side of a character, resulting in a left- justified value.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;TRIM: Removes all specified characters from either the beginning or the ending of a string. The syntax for the trim function is: trim ( [ leading | trailing | both  [character(s) to be removed] ]   string to trim )&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;If none of these is chosen (i.e., leading, trailing, both), the trim function will remove [the character(s) to be removed ] from both the front and end of [string to trim].&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;REPLACE: Replaces a sequence of characters in a string with another set of characters. The syntax for the REPLACE function is:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;replace (string1, string_to_replace, [replacement_string] )&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;string1 is the string that will have characters replaced in it. string_to_replace is the string that will be searched for and taken out of string1. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;[replacement_string] is the new string to be inserted in string1.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;All functions operate on values that are in parentheses, and each function name decides its purpose, which is helpful to remember when constructing a query. Also, note the use of column aliases for columns with functions. In the following examples, the alias "User Name" has replaced the function syntax. By default, the column name appears as the column heading. In this query, however, there is no column in the table for the results produced, so the query syntax is used instead.&lt;span style=""&gt;  &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT LOWER (last_name)||LOWER(SUBSTR(first_name,1,1)) AS "User Name"&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM f_staffs;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;&lt;br /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;NUMBER FUNCTIONS&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;What Will I Learn?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;In this lesson, you will learn to:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Select and apply the single-row number functions ROUND, TRUNC, and MOD in a SQL query&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Distinguish between the results obtained when TRUNC is applied to a numeric value and ROUND is applied to a numeric value&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;State the implications for business when applying TRUNC and ROUND to numeric values&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-family: Tahoma;"&gt;Why Learn It?&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: Tahoma;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;One of the reasons we put our money in a bank is to take advantage of the interest it accumulates over time. Banks adjust the interest rate with various economic indicators such as inflation and the stock market. Typically, interest rates are expressed as a percent such as 3.45%.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;What if a bank decided to round the percentage rate to 3.5%? Would it be to your advantage? What if they decided to just drop the decimal values and calculate the interest at 3%, would you be happy then?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Rounding and truncating numbers play an important part in business and in turn with the databases that support these businesses as they store and access numeric data.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-family: Tahoma;"&gt;Tell Me/Show Me&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;As you might expect, the number functions accept numeric input and return numeric values.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;The three number functions are:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;ROUND: Used to round numbers to a specified number of decimal places. ROUND can also be used to round numbers to the left of the decimal point. ROUND can also be used with dates.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;TRUNC: Used to terminate the column, expression, or value to a specified number of decimal places. When TRUNC is used, if the number of decimal places is not specified, then the specified number defaults to zero. TRUNC can also be used with dates.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;MOD: Used to return the remainder when one number is divided by another.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;ROUND&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;The syntax for the ROUND function is:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;ROUND(column|expression, decimal places)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Note that if the number of decimal places is not specified or is zero, the number will round to no decimal places.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;ROUND(45.926)           46&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;ROUND(45.926, 0) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;If the number of decimal places is a positive number, the number is rounded to that number of decimal places.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;ROUND(45.926, 2)       45.93&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;If the number of decimal places is a negative number, numbers to the left of the decimal are rounded.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;ROUND(45.926, -1)      50&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;TRUNC&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;The TRUNC function terminates or cuts off the number to the number of decimal places specified. The syntax for the TRUNC function is:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;TRUNC(column|expression, decimal places)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;TRUNC (45.926, 2)  45.92&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;As with ROUND, if the TRUNC expression does not specify the number of decimal places or specifies a zero, the number is truncated to zero decimal places.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;TRUNC (45.926, 0)  45&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;TRUNC (45.926)  &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Remember that TRUNC does not round the number. It simply terminates the number at a given point.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;MOD&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;The MOD function finds the remainder of one value divided by another value.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;For example, the MOD of 5 divided by 2 = 1.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;MOD can be used to determine whether a value is odd or even. If you divide a value by 2, and there is no remainder, the number must be an even number. Using the MOD function with 2, as in 12%2 and there is no remainder, the number must have been an even number. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;MOD( 1600 / 300)               100  remainder &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT last_name, salary, MOD(salary, 2) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;As "Mod Demo"&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM   f_staffs&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;WHERE  staff_type IN(‘Order Taker’, ’Cook’, ‘Manager');&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;&lt;br /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;DATE FUNCTIONS&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;What Will I Learn?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;In this lesson, you will learn to:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Select and apply the single-row functions MONTHS_BETWEEN, ADD_MONTHS, NEXT_DAY, LAST_DAY, ROUND, and TRUNC that operate on date data&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Explain how date functions transform Oracle dates into date data or a numeric value&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Demonstrate proper use of the arithmetic operators with dates&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Demonstrate the use of SYSDATE and date functions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;State the implications for world businesses to be able to easily manipulate data stored in date format&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;Why Learn It?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Have you ever wondered how many days remain in the school year or how many weeks there are until graduation? Because the Oracle database stores dates as numbers, it's easy to perform calculations on dates using addition and subtraction.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Businesses depend on being able to use date functions to schedule payrolls and payments, track employee performance reviews and years of service, or keep track of orders and shipments. All of these business needs are easily handled using simple SQL date functions.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;Tell Me/Show Me&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;DATE&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;The default display format for dates is DD-MON-RR -- that is, 02-DEC-99.  &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;However, the Oracle database stores dates internally with a numeric format, representing the century, year, month, day, hours, minutes, and seconds.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;The default display and input format for any date is DD-MON-RR. Valid Oracle dates are between &lt;st1:date year="4712" day="1" month="1" st="on"&gt;January 1, 4712 B.C.&lt;/st1:date&gt;, and &lt;st1:date year="9999" day="31" month="12" st="on"&gt;December 31, 9999 A.D.&lt;/st1:date&gt; This represents the range of dates that you can store successfully in an Oracle database.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;When a record with a date column is inserted into a table, the century information is picked up from the SYSDATE function. SYSDATE is a date function that returns the current database server date and time. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SYSDATE&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;To display the current date, use the DUAL table.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT SYSDATE&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM DUAL;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;The DATE data type always stores year information as a four-digit number internally: two digits for the century and two digits for the year. For example, the Oracle database stores the year as 1996 or 2004, not just as 96 or 04.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Although the internal storage keeps track of the complete date, when the date column is displayed on the screen, the century component is not displayed by default.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Subtract two dates &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT last_name, (SYSDATE - hire_date)/ 7 AS "Weeks"&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM employees;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT (SYSDATE - hire_date) / 365 AS "YEARS WORKED"&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM employees;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Add a number to a date&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT hire_date + 90 AS "FIRST EVALUATION"&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM employees;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Subtract a number from a date&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT SYSDATE - 180 AS "QUARTERLY REVIEW"&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM DUAL;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Explain the term "data type" as a standard form of data. In SQL, as in other computer languages, dates, numbers, and character data represent types or kinds of information being processed. A more in-depth study of data types is presented in Section 8, Lesson 4 "Creating Tables."&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;The date functions shown in the table operate on Oracle dates. All of the date functions return a value of DATE data type except MONTHS_BETWEEN, which returns a numeric value. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;The following query shows how these functions are used. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT employee_id, hire_date,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;MONTHS_BETWEEN(SYSDATE, hire_date) AS TENURE,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;ADD_MONTHS (hire_date, 6) AS REVIEW, &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;NEXT_DAY(hire_date, 'FRIDAY'),&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;LAST_DAY(hire_date)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM employees&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;WHERE MONTHS_BETWEEN (SYSDATE, hire_date) &gt; 36;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;The result set from this query returns 20 rows including:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;CASE AND CHARACTER MANIPULATION&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;What Will I Learn?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;In this lesson, you will learn to:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Differentiate between operations of single-row functions and multiple-row functions&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Select and apply single-row functions that perform case conversion and/or character manipulation&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Select and apply character case-manipulation functions LOWER, UPPER, and INITCAP in a SQL query&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Select and apply character-manipulation functions CONCAT, SUBSTR, LENGTH, INSTR, LPAD, RPAD, TRIM, and REPLACE in a SQL query&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-family: Tahoma;"&gt;Why Learn It?&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: Tahoma;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Tahoma;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Have you ever thought about the different ways in which we present ourselves? We dress up for special occasions, dress casually for play, and put on uniforms for sports events and band concerts. Being able to change the way we look for different situations is important. How would you choose to present yourself for a job interview?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Being able to change the way in which data is presented is important when dealing with data from a database. Most of the time in SQL, we need to change the way that data appears depending on the requirements of the task we are trying to accomplish.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;In this section, you will learn several ways in which to transform data to fit a particular situation.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-family: Tahoma;"&gt;Tell Me/Show Me&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-family: Arial;"&gt;DUAL TABLE&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;The DUAL table has one row called "X" and one column called "DUMMY." The DUAL table is used to create SELECT statements and execute commands not directly related to a specific database table. Queries using the DUAL table return one row as a result. DUAL can be useful to do calculations such as the following example and also to evaluate expressions that are not derived from a table.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;DUAL will be used to learn many of the single-row functions.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT (319/29) +12&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM DUAL;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-family: Arial;"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;SINGLE-ROW CHARACTER FUNCTIONS&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Single-row character functions are divided into two categories: functions that convert the case of character strings and functions that can join, extract, show, find, pad, and trim character strings.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Single-row functions can be used in the SELECT, WHERE, and ORDER BY clauses.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Case-manipulation functions are important because you may not always know which case (upper, lower, or mixed) the data is stored in in the database. Case manipulation allows you to temporarily convert the database data to a case of your choosing. Mismatches between database case storage and query case requests are avoided. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;CASE-MANIPULATION FUNCTIONS&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;LOWER(column | expression) converts alpha characters to lower-case.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT title&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM d_cds&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;WHERE LOWER(title) = 'carpe diem';&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;UPPER(column | expression) converts alpha characters to upper-case.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT title&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM d_cds&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;WHERE UPPER(title) = 'CARPE DIEM';&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;INITCAP( column | expression) converts alpha character values to uppercase for the first letter of each word.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT title&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM d_cds&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;WHERE INITCAP(title) = 'Carpe Diem';&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;CHARACTER-MANIPULATION FUNCTIONS&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;CONCAT: Joins two values together.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SUBSTR: Extracts a string of a determined length.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;LENGTH: Shows the length of a string as a number value.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;INSTR: Finds the numeric position of a named character.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;LPAD: Pads the left side of a character, resulting in a right-justified value.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;RPAD: Pads the right-hand side of a character, resulting in a left- justified value.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;TRIM: Removes all specified characters from either the beginning or the ending of a string. The syntax for the trim function is: trim ( [ leading | trailing | both  [character(s) to be removed] ]   string to trim )&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;If none of these is chosen (i.e., leading, trailing, both), the trim function will remove [the character(s) to be removed ] from both the front and end of [string to trim].&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;REPLACE: Replaces a sequence of characters in a string with another set of characters. The syntax for the REPLACE function is:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;replace (string1, string_to_replace, [replacement_string] )&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;string1 is the string that will have characters replaced in it. string_to_replace is the string that will be searched for and taken out of string1. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;[replacement_string] is the new string to be inserted in string1.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;All functions operate on values that are in parentheses, and each function name decides its purpose, which is helpful to remember when constructing a query. Also, note the use of column aliases for columns with functions. In the following examples, the alias "User Name" has replaced the function syntax. By default, the column name appears as the column heading. In this query, however, there is no column in the table for the results produced, so the query syntax is used instead.&lt;span style=""&gt;  &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT LOWER (last_name)||LOWER(SUBSTR(first_name,1,1)) AS "User Name"&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM f_staffs;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;NUMBER FUNCTIONS&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-family: Tahoma;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;What Will I Learn?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;In this lesson, you will learn to:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Select and apply the single-row number functions ROUND, TRUNC, and MOD in a SQL query&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Distinguish between the results obtained when TRUNC is applied to a numeric value and ROUND is applied to a numeric value&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;State the implications for business when applying TRUNC and ROUND to numeric values&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-family: Tahoma;"&gt;Why Learn It?&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family: Tahoma;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;One of the reasons we put our money in a bank is to take advantage of the interest it accumulates over time. Banks adjust the interest rate with various economic indicators such as inflation and the stock market. Typically, interest rates are expressed as a percent such as 3.45%.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;What if a bank decided to round the percentage rate to 3.5%? Would it be to your advantage? What if they decided to just drop the decimal values and calculate the interest at 3%, would you be happy then?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Rounding and truncating numbers play an important part in business and in turn with the databases that support these businesses as they store and access numeric data.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-family: Tahoma;"&gt;Tell Me/Show Me&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;As you might expect, the number functions accept numeric input and return numeric values.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;The three number functions are:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;ROUND: Used to round numbers to a specified number of decimal places. ROUND can also be used to round numbers to the left of the decimal point. ROUND can also be used with dates.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;TRUNC: Used to terminate the column, expression, or value to a specified number of decimal places. When TRUNC is used, if the number of decimal places is not specified, then the specified number defaults to zero. TRUNC can also be used with dates.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;MOD: Used to return the remainder when one number is divided by another.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;ROUND&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;The syntax for the ROUND function is:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;ROUND(column|expression, decimal places)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Note that if the number of decimal places is not specified or is zero, the number will round to no decimal places.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;ROUND(45.926)           46&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;ROUND(45.926, 0) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;If the number of decimal places is a positive number, the number is rounded to that number of decimal places.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;ROUND(45.926, 2)       45.93&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;If the number of decimal places is a negative number, numbers to the left of the decimal are rounded.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;ROUND(45.926, -1)      50&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;TRUNC&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;The TRUNC function terminates or cuts off the number to the number of decimal places specified. The syntax for the TRUNC function is:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;TRUNC(column|expression, decimal places)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;TRUNC (45.926, 2)  45.92&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;As with ROUND, if the TRUNC expression does not specify the number of decimal places or specifies a zero, the number is truncated to zero decimal places.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;TRUNC (45.926, 0)  45&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;TRUNC (45.926)  &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Remember that TRUNC does not round the number. It simply terminates the number at a given point.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;MOD&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;The MOD function finds the remainder of one value divided by another value.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;For example, the MOD of 5 divided by 2 = 1.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;MOD can be used to determine whether a value is odd or even. If you divide a value by 2, and there is no remainder, the number must be an even number. Using the MOD function with 2, as in 12%2 and there is no remainder, the number must have been an even number. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;MOD( 1600 / 300)               100  remainder &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT last_name, salary, MOD(salary, 2) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;As "Mod Demo"&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM   f_staffs&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;WHERE  staff_type IN(‘Order Taker’, ’Cook’, ‘Manager');&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;&lt;br /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;DATE FUNCTIONS&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;What Will I Learn?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;In this lesson, you will learn to:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Select and apply the single-row functions MONTHS_BETWEEN, ADD_MONTHS, NEXT_DAY, LAST_DAY, ROUND, and TRUNC that operate on date data&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Explain how date functions transform Oracle dates into date data or a numeric value&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Demonstrate proper use of the arithmetic operators with dates&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Demonstrate the use of SYSDATE and date functions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;State the implications for world businesses to be able to easily manipulate data stored in date format&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;Why Learn It?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Have you ever wondered how many days remain in the school year or how many weeks there are until graduation? Because the Oracle database stores dates as numbers, it's easy to perform calculations on dates using addition and subtraction.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Businesses depend on being able to use date functions to schedule payrolls and payments, track employee performance reviews and years of service, or keep track of orders and shipments. All of these business needs are easily handled using simple SQL date functions.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;Tell Me/Show Me&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;DATE&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;The default display format for dates is DD-MON-RR -- that is, 02-DEC-99.  &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;However, the Oracle database stores dates internally with a numeric format, representing the century, year, month, day, hours, minutes, and seconds.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;The default display and input format for any date is DD-MON-RR. Valid Oracle dates are between &lt;st1:date year="4712" day="1" month="1" st="on"&gt;January 1, 4712 B.C.&lt;/st1:date&gt;, and &lt;st1:date year="9999" day="31" month="12" st="on"&gt;December 31, 9999 A.D.&lt;/st1:date&gt; This represents the range of dates that you can store successfully in an Oracle database.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;When a record with a date column is inserted into a table, the century information is picked up from the SYSDATE function. SYSDATE is a date function that returns the current database server date and time. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SYSDATE&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;To display the current date, use the DUAL table.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT SYSDATE&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM DUAL;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;The DATE data type always stores year information as a four-digit number internally: two digits for the century and two digits for the year. For example, the Oracle database stores the year as 1996 or 2004, not just as 96 or 04.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Although the internal storage keeps track of the complete date, when the date column is displayed on the screen, the century component is not displayed by default.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Subtract two dates &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT last_name, (SYSDATE - hire_date)/ 7 AS "Weeks"&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM employees;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT (SYSDATE - hire_date) / 365 AS "YEARS WORKED"&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM employees;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Add a number to a date&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT hire_date + 90 AS "FIRST EVALUATION"&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM employees;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Subtract a number from a date&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT SYSDATE - 180 AS "QUARTERLY REVIEW"&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM DUAL;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Explain the term "data type" as a standard form of data. In SQL, as in other computer languages, dates, numbers, and character data represent types or kinds of information being processed. A more in-depth study of data types is presented in Section 8, Lesson 4 "Creating Tables."&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;The date functions shown in the table operate on Oracle dates. All of the date functions return a value of DATE data type except MONTHS_BETWEEN, which returns a numeric value. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;The following query shows how these functions are used. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT employee_id, hire_date,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;MONTHS_BETWEEN(SYSDATE, hire_date) AS TENURE,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;ADD_MONTHS (hire_date, 6) AS REVIEW, &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;NEXT_DAY(hire_date, 'FRIDAY'),&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;LAST_DAY(hire_date)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM employees&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;WHERE MONTHS_BETWEEN (SYSDATE, hire_date) &gt; 36;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;The result set from this query returns 20 rows including:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;CARTESIAN PRODUCT AND THE JOIN OPERATIONS&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;What Will I Learn?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;In this lesson, you will learn to:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Describe the purpose of join conditions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Construct and execute a SELECT statement that results in a Cartesian product&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Construct and execute SELECT statements to access data from more than one table using an equijoin&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Construct and execute SELECT statements that add search conditions using the AND operator&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Apply the rule for using column aliases in a join statement&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Provide evidence to answer the question "Why is it important, from a business perspective, for a language to be able to combine information from multiple data sources?"&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;Why Learn It?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Up to now, your experience using SQL has been limited to querying and returning information from one database table at a time. This would not be a problem if all data in the database were stored in only one table. But you know from data modeling that separating data into individual tables and being able to associate the tables with one another is the heart of relational database design. Fortunately, SQL provides join conditions that enable information to be queried from separate tables and combined in one report.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;Tell Me/Show Me&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;There are two sets of commands or syntax which can be used to make connections between tables in a database:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;- Oracle proprietary joins&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;- ANSI/ISO SQL 99 compliant standard joins&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;In this course, you will learn to use both sets of join commands. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;ORACLE PROPRIETARY JOINS&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;To query data from more than one table using the Oracle proprietary syntax, use a join condition in the WHERE clause. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;The basic format of a join statement is:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT table1.column, table2.column&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM table1, table2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;WHERE table1.column1 = table2.column2;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;For clarity and to enhance database access, it is a good practice to preface the column name with the table name. This is called "qualifying your columns." The combination of table name and column name helps eliminate ambiguous names when two tables contain a column with the same column name. Note: When the same column name appears in both tables, the column name must be prefaced with the name of the table. It's similar to having two students in the same class with the same last name. When needing to speak to "&lt;st1:city st="on"&gt;Jackson&lt;/st1:City&gt;," the teacher clarifies which "&lt;st1:place st="on"&gt;&lt;st1:city st="on"&gt;Jackson&lt;/st1:City&gt;&lt;/st1:place&gt;" by prefacing the last name with the first name. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;In the example at right, which two tables are being joined? Which identical columns do these tables share? &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;If you wanted to join three tables together, how many joins would it take? How many bridges are needed to join three islands?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;EQUIJOIN&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Sometimes called a "simple" or "inner" join, an equijoin is a table join that combines rows that have equivalent values for the specified columns. In the example shown, the what, where, and how are required for the join condition.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;What? The SELECT clause specifies the column names to retrieve.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Where? The FROM clause specifies the two tables that the database must access.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;How? The WHERE clause specifies how the tables are to be joined.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;CARTESIAN PRODUCT JOIN&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;If two tables in a join query have no join condition specified in the WHERE clause or the join condition is invalid, the Oracle Server returns the Cartesian product of the two tables. This is a combination of each row of one table with each row of the other. A Cartesian product always generates many rows and is rarely useful. For example, the Cartesian product of two tables, each with 100 rows, has 10,000 rows! This may not be what you were trying to retrieve.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;To avoid a Cartesian product, always include a valid join condition in a WHERE clause.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;As with single-table queries, the WHERE clause can be used to restrict the rows considered in one or more tables of the join. The query shown uses the AND operator to restrict the rows returned. Compare this result with the previous query.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT d_play_list_items.song_id, d_play_list_items.event_id, d_track_listings.cd_number&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM     d_play_list_items, d_track_listings&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;WHERE d_play_list_items.song_id = d_track_listings.song_id &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;     AND d_play_list_items.event_id &lt;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;ALIASES&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Working with lengthy column and table names can be cumbersome. Fortunately, there is a way to shorten the syntax using aliases. To distinguish columns that have identical names but reside in different tables, use column aliases. Take a look at how column aliases were used in the following query. When there are no shared column names between two tables, there is no need to add the table name to it. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT d_track_listings.song_id AS TRACK , d_play_list_items.song_id AS " PLAY LIST" &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM d_play_list_items, d_track_listings&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;WHERE d_play_list_items.song_id = d_track_listings.song_id;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Table aliases precede the column name. However, if a table alias is used in the FROM clause, then that table alias must be substituted for the table name throughout the SELECT statement.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT p.song_id , t.song_id &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM d_play_list_items p, d_track_listings t&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;WHERE p.song_id = t.song_id;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;NON EQUIJOINS&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;What Will I Learn?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;In this lesson, you will learn to:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Construct and execute a SELECT statement to access data from more than one table using a nonequijoin&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;Why Learn It?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;What happens if you want to retrieve data from a table that has no corresponding column in another table? For instance, your math percentage grade of 92 is stored in the GRADES column in one table; the letter grade is stored in the LETTER_GRADE column in another table. How can we join the number grade with the letter grade? When data is recorded using a range, retrieving it is the job of a nonequijoin.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;Tell Me/Show Me&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;NONEQUIJOIN&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;To join your number&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;grade (or %)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;in math with its corresponding letter grade, a nonequijoin is needed. Since there is no exact match between the two columns in each table, the equality operator = can't be used. Although comparison conditions such as &lt; = and &gt; = can be used, BETWEEN...AND is the simplest.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;The query shown joins the D_EVENTS cost column with the D_PACKAGES low_range and high_range columns using BETWEEN...AND&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT d_packages.code, d_events.cost&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM d_packages, d_events&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;WHERE d_events.cost BETWEEN d_packages.low_range AND d_packages.high_range&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;OUTER JOINS&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;What Will I Learn?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;In this lesson, you will learn to:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Create and execute a SELECT statement to access data from more than one table using an outer join&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Build positive associations between learning and work&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;Why Learn It?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;The joins you've studied so far returned rows that either had a matching value in both tables or a value that in one table was between two values in a different table. Those rows that didn't satisfy these conditions were just left out. Sometimes, however, you want all the data from one of the tables even if there is no matching data in the other table. If you wanted to know all the girls or boys who attended a dance, would simply counting the couples dancing work? In Oracle SQL, the missing data can be returned using an outer join.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;Tell Me/Show Me&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;An outer join is used to see rows that have a corresponding value in another table plus those rows in one of the tables that have no matching value in the other table. To indicate which table may have missing data use, a plus sign (+) after the table's column name in the query. The query below uses the plus sign to indicate the table whose column is missing data. The variations of the outer join are shown.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT table1.column, table2.column&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM table1, table&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;WHERE table1.column(+) = table2.column; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;WHERE table1.column = table2.column(+);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;NEVER table1.column(+) = table2.column(+);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;An outer join cannot use the IN operator or be linked to another condition by the OR operator.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;&lt;br /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;SELF JOINS&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;What Will I Learn?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;In this lesson, you will learn to:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Construct and execute a SELECT statement to join a table to itself using a self-join&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;Why Learn It?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;In data modeling, it was sometimes necessary to show an entity with a relationship to itself. For example, an employee can also be a manager. We showed this using the "pig’s ear" relationship. Once we have a real employees table, a special kind of join called a self-join is required to access this data. You probably realize by now the importance of a data model once it becomes a database. It’s no coincidence that the data model looks a lot like the tables we now have in the database.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;Tell Me/Show Me&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELF-JOIN&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;To join a table to itself, the table is given two names or aliases. This will make the database “think” that there are two tables. Choose alias names that relate to the data's association with that table. In this example of a band, we have members of the band who play an instrument and members of the band who play an instrument and are their section's lead player or chair. A readable way to show this self-join is:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT chair.last_name || ' is the section chair of ' || &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;player.last_name&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM band_members chair, band_members player&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;WHERE  player.chair_id =  chair.member_id;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;PUTTING IT ALL TOGETHER&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;What Will I Learn?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;In this lesson, you will learn&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Identify factors that contribute to the changing nature of work&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Incorporate into a career plan skills to stay up-to-date in anticipation of the changing nature of work&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;Why Learn It?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;One certainty in life is that things change. Think about the video games, computer CRT monitors, cameras, or cell phones that were available two years ago. Are they still the latest technology? What if you had a job manufacturing floppy disks or installing and repairing pay telephones? Could you count on doing the same job ten years from now? In today’s world, staying abreast of change is critical. Having a plan to keep skills up-to-date is an important step in planning for your future. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;Tell Me/Show Me&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Think of jobs that are now extinct or types of jobs that you think will be obsolete in the next few years. Be prepared to explain why you feel the job will no longer exist.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;CROSS JOINS AND NATURAL JOINS&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;What Will I Learn?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;In this lesson, you will learn to:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Tahoma;"&gt;Compose and execute a natural join using SQL join syntax&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Tahoma;"&gt;Create a Cartesian product using SQL join syntax&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Tahoma;"&gt;Define the relationship between a cross-join and a Cartesian product&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Tahoma;"&gt;Define the relationship between a natural join and an equijoin&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Tahoma;"&gt;Explain why it is important to have a standard for SQL as defined by ANSI&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;Why Learn It?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;The join statements you learned in the last few lessons have a corresponding statement when using ANSI/ISO SQL: 1999 syntax. Being able to use both kinds of joins effectively is the responsibility of any person using SQL. You may join a project someday when a programmer before you used only ANSI/ISO SQL: 1999. What would you do if you knew only the Oracle proprietary methods? How would you debug their code?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;Tell Me/Show Me&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;NATURAL JOIN&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Recall the equijoin from a previous lesson. An equijoin returns all rows whose values match in both tables. The ANSI/ISO SQL: 1999 join that accomplishes the same result is called a natural join. A natural join is based on all columns in the two tables that have the same name and selects rows from the two tables that have equal values in all matched columns. As shown in the sample code, when using a natural join, it is possible to join the tables without having to explicitly specify the columns in the corresponding table. However, the names and data types in both columns must be the same.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT event_id, song_id, cd_number&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM d_play_list_items NATURAL JOIN  d_track_listings&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;WHERE event_id = 105;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;The WHERE clause was added to apply additional restrictions to limit the rows of output.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Cross-Join - The ANSI/ISO SQL: 1999 SQL equivalent of the Cartesian product is the cross-join. The results returned from both types of joins are the same. The results set represents all possible combinations of columns from both tables. This could potentially be very large!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;&lt;br /&gt;&lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;JOIN CLAUSES&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;What Will I Learn?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;In this lesson, you will learn to:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Compose and execute a join with the USING and ON clauses&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Compose and execute an ANSI/ISO SQL: 1999 query that joins three tables&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Name the Oracle proprietary joins and their ANSI/ISO SQL: 1999 counterparts&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;Why Learn It?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;As you add more commands to your database vocabulary, you will be better able to design queries that return the desired result. The purpose of a join is to bind data together, across tables, without repeating all of the data in every table. Why ask for more data than you really need?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;Tell Me/Show Me&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;USING CLAUSE&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;In a natural join, if the tables have columns with the same names but different data types, the join causes an error. To avoid this situation, the join clause can be modified with a USING clause. The USING clause specifies the columns that should be used for the equijoin. The query shown is an example of the USING clause. The columns referenced in the USING clause should not have a qualifier (table name or alias) anywhere in the SQL statement.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;ON CLAUSE&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;The ON clause can be used to specify columns to join. The advantage of the ON clause is the ability to specify the join conditions separate from the WHERE clause. The WHERE clause can then be used for search or filter conditions. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT c.client_number, c.first_name, c.last_name, e.event_date &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM d_clients c JOIN d_events e &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;ON (e.client_number = c.client_number);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;The ON clause can also be used to specify arbitrary conditions such as joining columns that have different names. In the example, the ON clause is used in a self-join where the same table is given two different references. In the employees table, some employees are also managers. The self-join is used to select those employees who are also managers. Note: If the query omitted the WHERE clause, all employees and their managers would be returned. In this case, using ON allows us to use WHERE to restrict rows.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT e.last_name as "EMP", w.last_name as "MGR"&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM employees e JOIN employees w&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;ON (e.manager_id = w.employee_id)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;WHERE e.last_name like 'H%';&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;INNER VS OUTER JOINS&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;    &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;What Will I Learn?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;In this lesson, you will learn to:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Compare and contrast an inner and an outer join&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Construct and execute a query to use a left outer join&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Construct and execute a query to use a right outer join&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Construct and execute a query to use a full outer join&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Construct and execute a query to use an inner join&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;Why Learn It?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Up to now, all of the joins returned data that matched the join condition. Sometimes, however, it is desirable not only to retrieve data that meets the join condition, but also to retrieve data that doesn’t meet a join condition. This should sound familiar! The outer joins in ANSI SQL allow this functionality.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;Tell Me/Show Me&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;LEFT AND RIGHT OUTER JOINS&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;In ANSI SQL, joins of two or more tables that return only matched rows are referred to as inner joins. When a join returns the matched rows as well as unmatched rows, it is called an outer join. Outer join syntax uses the terms “left, full, and right.” These names are associated with the order of the table names in query. In the example shown of a left outer join, note that the table name listed to the left of the words "left outer join" is referred to as the "left table." This query will return all matched rows as well as all employee last names even if they aren’t assigned a department.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;The right outer join would return all department IDs and department names even if no employees were assigned to them.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FULL OUTER JOIN&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;It is possible to create a join condition to retrieve all matching rows and all unmatched rows from both tables in a join. Recall the Oracle proprietary outer join syntax that used the (+) to indicate the column with missing data. Remember, in this form of an outer join, it was not possible to put a (+) on both sides of the WHERE clause. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Using a full outer join solves this problem. The results set of a full outer join includes all rows in both tables even if there is no match in the other table. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;The example shown is a full outer join.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Construct a join to display a list of Global Fast Foods customers whether or not they have placed an order as yet and all the customers who have placed orders.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;GROUP FUNCTIONS&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;What Will I Learn?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;In this lesson, you will learn to:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Define and give an example of the seven group functions: AVG, COUNT, MAX, MIN, STDDEV, SUM, VARIANCE&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Construct and execute a SQL query using SELECT, FROM, WHERE, GROUP BY, ORDER BY syntax using group functions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Construct and execute group functions that operate only with numeric data types&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Construct and execute group functions that operate to produce a single value&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Compare and contrast the result set obtained from single-row functions versus group functions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Provide evidence to support the assigned topic "Why is it important, from a business perspective, to be able to easily aggregate data (group). What business problems does this solve?"&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;Why Learn It?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;What if you were writing an article for the school newspaper and, to make a point, you wanted to know the average age of the students at your school? What would you have to do to get this information? You could ask all students for their age in years, months, and days, add up all of these numbers, and then divide by the number of students in your school. That would be one way -- a very difficult way -- to find this information. What if you needed to know this now so that you could meet a &lt;st1:time hour="15" minute="0" st="on"&gt;3:00 p.m.&lt;/st1:time&gt; deadline? You might have a problem! &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;What if all of the students’ birthdays were in a school database in the STUDENT table? It would be so easy then! In this lesson, you are going to learn about the power of group functions in SQL.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;Tell Me/Show Me&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;A quick review question:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;In the DJ on Demand table, there is a D_TYPES table listing the types of music available and a D_SONGS table listing song titles. Write a SELECT statement to show the type of music and the type of each song in the D_SONGS table as shown in the graphic example. Include all types of songs even if they don't have songs associated with them.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;GROUP FUNCTIONS&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;In SQL, the following group functions can operate on a whole table or on a specific grouping of rows. Each function returns one result.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;AVG: Used with columns that store numeric data to compute the average, ignoring null values.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;COUNT: Returns the number of rows.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;MIN: Used with columns that store any data type to return the minimum value, ignoring null values.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;MAX: Used with columns that store any data type to return the maximum value, ignoring null values.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SUM Used with columns that store numeric data to find the total or sum of values, ignoring null values.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;VARIANCE: Used with columns that store numeric data to calculate the spread of data around the mean. For example, if the average grade for the class on the last test was 82% and the student's scores ranged from 40% to 100%, the variance of scores would be greater than if the student's scores ranged from 78% to 88%.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;STDDEV: Similar to variance, standard deviation measures the spread of data. For two sets of data with approximately the same mean, the greater the spread, the greater the standard deviation.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Group functions are written in the SELECT clause:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT  column, group_function(column_), ..&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM table&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;WHERE condition&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;GROUP BY column&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;ORDER BY column;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Before getting started using group functions, there are a few important things you should know about them:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;- The keyword DISTINCT can be used with all group functions. Using DISTINCT makes the function consider only nonduplicate values. The statement below uses DISTINCT to select the nonduplicate type codes in the DJ on Demand table D_SONGS.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT DISTINCT type_code&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM d_songs;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;- The keyword ALL makes the function consider every value, including duplicates. ALL is the default, so it need not be specified. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;- Group functions cannot be used in the WHERE clause.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;- Group functions ignore NULL values. In the example below, the (null) values were not used to find the average overtime rate.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;- Group functions require that any column listed in the SELECT clause that is not part of the group function must be listed in a GROUP BY clause. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Because name was listed in the SELECT statement and not encapsulated in the AVG function, you must use a GROUP BY clause.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT name, AVG(cost)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM d_events&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;GROUP BY name;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;The Rules for Group Functions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;- The keyword DISTINCT can be used with all group functions.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;- The keyword ALL makes the function consider every value, including duplicates.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;- Group functions cannot be used in the WHERE clause.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;- Group functions require that any column listed in the SELECT clause that is not part of the group function must be listed in a GROUP BY clause.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Two group functions, MIN and MAX, can be used with any data type. Using these functions, it is possible to find the name of the last person in a list, the smallest salary, or the earliest hire date. For example, it is easy to find the person whose name is last in an alphabetical list of staff at Global Fast Foods.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;COUNT, DISTINCT, NVL&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;What Will I Learn?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;In this lesson, you will learn to:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Construct and execute a SQL query applying COUNT, DISTINCT, NVL group functions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Being able to aggregate data using SQL functions enables businesses to do calculations that would otherwise have to be done by hand. Remember the example of having to count all the students in your school? What if our government needed to count all the people in the country to collect census data or employment data? A daunting task! There just aren't enough hands to accomplish it manually. Fortunately, there are group functions that can quickly process these types of requests. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;Why Learn It?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;Three additional group functions that add more functionality to process aggregate data are: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;COUNT: Returns the number of rows in a table. There are three formats of COUNT. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;DISTINCT: Returns nonduplicate values.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;NVL: Forces group functions to include null values.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;COUNT&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;COUNT(*) returns the number of rows in a table that satisfy the criteria of the SELECT statement. For example, to find out how many of DJs on Demand's CDs were produced before 2001, COUNT can be used in the SELECT statement.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;COUNT(expression) returns the number of nonnull values in the expression column&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;COUNT(DISTINCT expression) returns the number of unique nonnull values in the expression column.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;Tell Me/Show Me&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Why are null values returned in the query shown? There are six comments listed, but the count function returned only five. Why?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;DISTINCT&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;The keyword DISTINCT is used to return only nonduplicate values or combinations of nonduplicate values in a query.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;Examine the query shown at right. Without using the keyword DISTINCT, the query returned all of the year values from the DJs on Demand D_CDS table. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;To eliminate nonduplicate rows, use the DISTINCT keyword as shown here. Using the DISTINCT keyword returned all the CD years with no duplicate values.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;The keyword DISTINCT, when used in a query selecting more than one column, will return nonduplicate combinations of the columns. Examine the two results sets shown here. Can you tell which query used the DISTINCT keyword?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;In this case, it's hard to tell, isn't it? The results set on the left was returned using the DISTINCT keyword. In both examples, there are no duplicate combinations of year and title even though there are duplicate years.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;When using DISTINCT with a group function such as COUNT, the results set will return the number of nonduplicate rows or combinations of rows. The following query of the DJs on Demand D_CDs table produced the results shown here.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;NVL&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;Sometimes it is desirable to include null values in group functions. For example, knowing the average number of customer orders served each day could be used to judge how much food to order each month. Some days the restaurant is closed and there are no customers, but the owner has found that computing the average including every day is a better indicator than just counting the days with customers. The SELECT statement to include null values could be written:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;SELECT AVG(NVL(customer_orders, 0))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 0, 0);" class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;GROUP BY and HAVING clauses&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;What Will I Learn?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;In this lesson, you will learn&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Construct and execute a SQL query applying GROUP BY&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Construct and execute a SQL query applying HAVING&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;State the purpose of the GROUP BY clause for aggregate functions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;State the purpose of the HAVING clause for aggregate functions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;Why Learn It?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;What if you wanted to know the average height of all students? You could write a query that looks like this:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT AVG(height) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM students;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;But what if you wanted to know the average height of the students based on their year in school? Right now, you would have to write a number of different SQL statements to accomplish this:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT AVG(height)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM students&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;WHERE year_in_school = 10;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT AVG(height)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM students&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;WHERE year_in_school = 11;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT AVG(height)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM students&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;WHERE year_in_school = 12;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;And so on! What you’ll learn in this lesson is how to simplify problems like this with just one statement. It relies on the GROUP BY and HAVING clauses.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;Tell Me/Show Me&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Because aggregate functions (like SUM) return the aggregate of all column values every time they are called, it would be impossible to find the sum for each individual group of column values. The GROUP BY clause enables aggregate data to be applied to groups of column values.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;To restrict rows returned with aggregate functions, you must use a HAVING clause. Aggregate functions cannot appear in the WHERE clause. The HAVING clause was added to SQL so the returned rows could be restricted when using an aggregate function.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;GROUP BY&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;You use the GROUP BY clause to divide the rows in a table into smaller groups. You can then use the group functions to return summary information for each group. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Important guidelines to remember when using a GROUP BY clause are:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;- If you include a group function (AVG, SUM,COUNT, MAX, MIN, STDDEV, VARIANCE) in a SELECT clause and any other individual columns, each individual column must also appear in the GROUP BY clause. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;- You cannot use a column alias in the GROUP BY clause.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;- The WHERE clause excludes rows before they are divided into groups.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;- A GROUP BY clause can be used in a SELECT statement without having a group function in the SELECT statement.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;In the SELECT statement shown, the rows are being grouped by department_id. The AVG function is then applied to each group&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;GROUPS WITHIN GROUPS&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Sometimes you need to divide groups into smaller groups. For example, you may want to group all music cds by type of music; then, within each type of music, group them by artist and then by title. Using the DJs on Demand database, the following query groups the CDs by description, then by artist, and then by title. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;If you were to buy The Shoo Bugs’ new New Age CD titled "What a Day," where would it appear in the table if you ran the query again? &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;HAVING&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;In the same way you used the WHERE clause to restrict the rows that you selected, you can use the HAVING clause to restrict groups. In a query using a GROUP BY and HAVING clause, the rows are first grouped, group functions are applied, and then only those groups matching the HAVING clause are displayed. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Although the HAVING clause can precede the GROUP BY clause in a SELECT statement, it is recommended that you place each clause in order shown. The ORDER BY clause is always last!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT column, group_function&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM table&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;WHERE &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;GROUP BY&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;HAVING&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;ORDER BY&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;NESTING GROUP FUNCTIONS&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Group functions can be nested to a depth of two. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT max(avg(salary)) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM employees &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;GROUP by department_id;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;    &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;SUBQUERIES&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;What Will I Learn?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;In this lesson, you will learn to:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Define and explain the function of subqueries for retrieving data&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Construct and execute a single-row subquery in the WHERE clause&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Provide evidence to support the assigned topic: what types of questions can be answered using a subquery that can't be answered by running multiple queries?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Develop skills for locating, evaluating, and interpreting IT career information&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Identify professional organizations in information-technology fields&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;Why Learn It?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Has a friend asked you to go to a movie, but before you could answer "yes" or "no," you first had to check with your parents? Have you wanted to buy someone a birthday present, but first needed to know what the person wanted? Has someone asked you the answer to a math problem, but before you can give the answer, you had to do the problem yourself? Asking parents, finding what someone wants, or doing the math problem are examples of subqueries. In SQL, subqueries enable us to find the information we need so we can get the information we want. In this lesson, you will learn to identify when a subquery can help solve a problem and how to write subqueries that return values needed in a main query.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;Tell Me/Show Me&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Throughout this course, you have written queries to extract data from a database. What if you wanted to write a query only to find out you didn't have all the information you needed to construct it? You can solve this problem by combining two queries, placing one query inside the other query. The inner query is called the "subquery." The subquery executes to find the information you don’t know. The outer query uses that information to find out what you need to know. Being able to combine two queries into one can be very useful when you need to select rows from a table with a condition that depends on the data in the table itself.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;A subquery is a SELECT statement that is embedded in a clause of another SELECT statement. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Subqueries can be placed in a number of SQL clauses, including the WHERE clause, the HAVING clause, and the FROM clause. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Later in this course, you will learn how to use subqueries in the CREATE VIEW statement, CREATE TABLE statement, UPDATE statement, INTO clause of an INSERT statement, and SET clause of an UPDATE statement. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Guidelines for using subqueries are:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;- The subquery is enclosed in parentheses.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;- The subquery is placed on the right side of the comparison condition.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;- The outer and inner queries can get data from different tables.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;- Only one ORDER BY clause can be used for a SELECT statement; and, if specified, it must be the last clause in the main SELECT statement.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;- The only limit on the number of subqueries is the buffer size the query uses.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;There are two types of subqueries:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;- Single-row subqueries that use single-row operators (&gt;, =, &gt;=, &lt; &lt;&gt;, &lt;=) and return only one row from the inner query&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;- Multiple-row subqueries that use multiple-row operators (IN, ANY, ALL) and return more than one row from the inner query&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;In this lesson, you will learn to construct single-row subqueries. Multiple-row subqueries will be covered in the next section.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;What if you wanted to find out the names of the Global Fast Foods staff members that were born after Monique Tuttle? What is the first thing you need to know? When was Monique born? Once you know her birth date, then you can select those staff members whose birth dates are after hers. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;What do you think would happen if the subquery returned a null value or no rows?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;If single-row subqueries can return only one row to the outer query, would adding a GROUP BY clause in the subquery make sense? &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;"IT careers -- they're not just in computer companies anymore!"&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Information technology has been defined as "all matters concerned with the furtherance of computer science and technology and with the design, development, installation, and implementation of information systems and applications." Often when someone uses the terms "IT" or "information technology," we immediately think of people employed by major software companies or systems developers. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;The reality is that nine out of ten IT workers are found in banks, insurance companies, manufacturing plants or other non-IT business. They are found in places such as the automotive industry, health-care industry, banking, social services, airlines, accounting firms, police work, and law offices. (Source: ITAA 2003 IT Workforce Survey)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;In this lesson, you will have an opportunity to explore different types of IT jobs and to identify national and state organizations for IT professionals.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Australian Sunrise&amp;quot;;"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;SINGLE-ROW SUBQUERIES&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;What Will I Learn?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;In this lesson, you will learn to:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Construct and execute a single-row subquery in the WHERE clause or HAVING clause&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Construct and execute a SELECT statement using more than one subquery&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;&lt;img src="file:///C:/DOCUME%7E1/admin/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="*" height="13" width="13" /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Arial;"&gt;Construct and execute a SELECT statement using a group function in the subquery&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;Why Learn It?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;As you have probably realized, subqueries are a lot like Internet search engines. They are great at locating the information needed to accomplish another task. In this lesson, you will learn how to create even more complicated tasks for subqueries to do for you. Keep in mind that subqueries save time in that you can accomplish two tasks in one statement.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Tahoma;"&gt;Tell Me/Show Me&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Remember these facts about single-row subqueries.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;They:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;- Return only one row&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;- Use single-row comparison operators (=, &gt;,&gt;=, &lt;, &lt;=, &lt;&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Always:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;- Enclose the subquery in parentheses.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;- Place the subquery on the right side of the comparison condition.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Also remember that:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;- The outer and inner queries can get data from different tables.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;- Only one ORDER BY clause can be used for a SELECT statement, and if specified, it must be the last clause in the main SELECT statement.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;- The only limit on the number of subqueries is the buffer size that the query uses.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SUBQUERIES FROM DIFFERENT TABLES&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Subqueries are not limited to just one inner query. As the example illustrates, there can be more than one subquery returning information to the outer query. The outer and inner queries can get data from different tables.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;SELECT last_name, job_id, salary, department_id&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;FROM  employees&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;WHERE job_id =&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;span style=""&gt; &lt;/span&gt;               (SELECT job_id&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;span style=""&gt; &lt;/span&gt;                FROM   employees&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;span style=""&gt; &lt;/span&gt;                WHERE  employee_id = 141)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;AND    department_id =&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;span style=""&gt; &lt;/span&gt;               (SELECT department_id&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;span style=""&gt; &lt;/span&gt;                FROM   departments&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;span style=""&gt; &lt;/span&gt;                WHERE  location_id =1500);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;GROUP FUNCTIONS IN SUBQUERIES&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Group functions can be used in subqueries because they return a single row. The subquery is in parentheses and is placed after the comparison condition. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;GROUP FUNCTIONS IN THE HAVING CLAUSE&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Subqueries can also be placed in the HAVING clause. As you may recall, the HAVING clause is similar to the WHERE clause, except the HAVING clause is used to restrict groups and always has a group condition (such as MIN, MAX, AVG) stated. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;To understand what is happening, it is sometimes easiest to deconstruct the query starting from the inner query (subquery) and working up to the outer query. In this example, the subquery selects and returns the lowest salary in department 50. The outer query uses this value to select the department ID and salaries of all the employees whose minimum salary is greater than that number. Remember the department ID had to be placed in a GROUP BY clause because it is not part of the aggregate function MIN. The HAVING clause eliminated those departments whose MIN salary was less than department 50.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2862498837529179372-6351323043201487843?l=ccnshs2008-tle4.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ccnshs2008-tle4.blogspot.com/feeds/6351323043201487843/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2862498837529179372&amp;postID=6351323043201487843' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2862498837529179372/posts/default/6351323043201487843'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2862498837529179372/posts/default/6351323043201487843'/><link rel='alternate' type='text/html' href='http://ccnshs2008-tle4.blogspot.com/2009/02/coverage-lessons-for-final-exam-2009.html' title='Coverage Lessons for Final Exam 2009'/><author><name>Executive30</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2862498837529179372.post-4393863415184316023</id><published>2009-02-09T01:04:00.001-08:00</published><updated>2009-02-09T01:04:34.353-08:00</updated><title type='text'></title><content type='html'>&lt;p class="AMYHEADING1"&gt;Oracle/PLSQL Topics&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;Oracle is a relational database technology. &lt;/p&gt;  &lt;p class="APARA1"&gt;PLSQL stands for "Procedural Language extensions to SQL", and can be used in Oracle databases. PLSQL is closely integrated into the SQL language, yet it adds programming constructs that are not native to SQL. &lt;/p&gt;  &lt;p class="MsoNormal"&gt;We've categorized Oracle and PLSQL into the following topics:&lt;/p&gt;  &lt;table class="MsoNormalTable" style="width: 91.62%;" border="0" cellpadding="0" cellspacing="10" width="91%"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0in; width: 52.2%;" width="52%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/oracle/datatypes.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;Data Types&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in; width: 43.06%;" width="43%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/sql/select.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;SELECT Statement&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in; width: 52.2%;" width="52%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/oracle/literals.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;Literals (Constants)&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in; width: 43.06%;" width="43%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/sql/distinct.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;DISTINCT&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in; width: 52.2%;" width="52%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/oracle/declare_vars.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;Declaring Variables&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in; width: 43.06%;" width="43%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/sql/count.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;COUNT&lt;/span&gt;&lt;/a&gt; / &lt;a href="http://www.techonthenet.com/sql/sum.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;SUM&lt;/span&gt;&lt;/a&gt;   / &lt;a href="http://www.techonthenet.com/sql/min.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;MIN&lt;/span&gt;&lt;/a&gt;   / &lt;a href="http://www.techonthenet.com/sql/max.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;MAX&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in; width: 52.2%;" width="52%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/oracle/isnull.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;Is Null&lt;/span&gt;&lt;/a&gt; / &lt;a href="http://www.techonthenet.com/oracle/isnotnull.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;Is Not Null&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in; width: 43.06%;" width="43%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in; width: 52.2%;" width="52%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in; width: 43.06%;" width="43%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/sql/where.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;WHERE Clause&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in; width: 52.2%;" width="52%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/oracle/loops/index.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;Loops and Conditional Statements&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in; width: 43.06%;" width="43%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/sql/and.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;"AND" Condition&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in; width: 52.2%;" width="52%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/oracle/sequences.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;Sequences (Autonumber)&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in; width: 43.06%;" width="43%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/sql/or.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;"OR" Condition&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in; width: 52.2%;" width="52%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/oracle/transactions/index.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;Transactions&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in; width: 43.06%;" width="43%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/sql/and_or.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;Combining "AND" with "OR"&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in; width: 52.2%;" width="52%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/oracle/cursors/index.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;Cursors&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in; width: 43.06%;" width="43%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in; width: 52.2%;" width="52%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/oracle/functions/index.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;Functions (Built-In)&lt;/span&gt;&lt;/a&gt; (By Category)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in; width: 43.06%;" width="43%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/sql/like.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;"LIKE" Condition&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in; width: 52.2%;" width="52%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/oracle/functions/index_alpha.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;Functions (Built-In)&lt;/span&gt;&lt;/a&gt; (Alphabetical)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in; width: 43.06%;" width="43%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/sql/in.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;"IN" Function&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in; width: 52.2%;" width="52%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/oracle/sys_tables/index.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;Oracle System Tables&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in; width: 43.06%;" width="43%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/sql/between.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;BETWEEN Condition&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in; width: 52.2%;" width="52%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in; width: 43.06%;" width="43%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/sql/exists.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;EXISTS Condition&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in; width: 52.2%;" width="52%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/oracle/primary_keys.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;Primary Keys&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in; width: 43.06%;" width="43%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/sql/group_by.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;GROUP BY&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in; width: 52.2%;" width="52%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/oracle/foreign_keys/index.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;Foreign Keys&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in; width: 43.06%;" width="43%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/sql/having.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;HAVING&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in; width: 52.2%;" width="52%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/oracle/unique.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;Unique Constraints&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in; width: 43.06%;" width="43%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/sql/order_by.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;ORDER BY (sort by)&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in; width: 52.2%;" width="52%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/oracle/check.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;Check Constraints&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in; width: 43.06%;" width="43%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in; width: 52.2%;" width="52%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/oracle/indexes.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;Indexes&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in; width: 43.06%;" width="43%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/sql/joins.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;JOINS (inner, outer)&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in; width: 52.2%;" width="52%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in; width: 43.06%;" width="43%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/oracle/subqueries.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;Subqueries&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in; width: 52.2%;" width="52%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/oracle/functions.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;Creating Functions&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in; width: 43.06%;" width="43%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in; width: 52.2%;" width="52%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/oracle/procedures.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;Creating Procedures&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in; width: 43.06%;" width="43%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/sql/union.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;UNION Query&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in; width: 52.2%;" width="52%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/oracle/triggers/index.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;Creating Triggers&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in; width: 43.06%;" width="43%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/sql/union_all.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;UNION ALL Query&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in; width: 52.2%;" width="52%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/oracle/exceptions/index.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;Exception Handling&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in; width: 43.06%;" width="43%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/sql/intersect.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;INTERSECT Query&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in; width: 52.2%;" width="52%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/oracle/errors/index.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;Oracle Error Messages&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in; width: 43.06%;" width="43%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/sql/minus.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;MINUS Query&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in; width: 52.2%;" width="52%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in; width: 43.06%;" width="43%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in; width: 52.2%;" width="52%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/oracle/grant_revoke.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;Grant/Revoke Privileges&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in; width: 43.06%;" width="43%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/sql/update.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;UPDATE Statement&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in; width: 52.2%;" width="52%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/oracle/roles.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;Roles (set of privileges)&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in; width: 43.06%;" width="43%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/sql/insert.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;INSERT Statement&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in; width: 52.2%;" width="52%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/oracle/password.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;Change Password&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in; width: 43.06%;" width="43%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/sql/delete.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;DELETE Statement&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in; width: 52.2%;" width="52%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in; width: 43.06%;" width="43%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in; width: 52.2%;" width="52%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/oracle/synonyms.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;Synonyms (create, drop)&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in; width: 43.06%;" width="43%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/sql/tables/index.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;Tables (create, alter, drop, temp)&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in; width: 52.2%;" width="52%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in; width: 43.06%;" width="43%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/sql/views.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;Views&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in; width: 52.2%;" width="52%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/oracle/questions/index.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;Question &amp;amp; Answer&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in; width: 43.06%;" width="43%"&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="color: rgb(153, 51, 0);"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="AMYHEADING1"&gt;SQL: SELECT Statement&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;The SELECT statement allows you to retrieve records from one or more tables in your database.&lt;/p&gt;  &lt;p class="APARA3"&gt;The syntax for the SELECT statement is:&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT columns&lt;br /&gt;FROM tables&lt;br /&gt;WHERE predicates;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #1&lt;/p&gt;  &lt;p class="APARA1"&gt;Let's take a look at how to select all fields from a table.&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT *&lt;br /&gt;FROM supplier&lt;br /&gt;WHERE city = '&lt;st1:place st="on"&gt;&lt;st1:city st="on"&gt;Newark&lt;/st1:City&gt;&lt;/st1:place&gt;';&lt;/p&gt;  &lt;p class="APARA1"&gt;In our example, we've used * to signify that we wish to view all fields from the supplier table where the supplier resides in &lt;st1:place st="on"&gt;&lt;st1:city st="on"&gt;Newark&lt;/st1:City&gt;&lt;/st1:place&gt;.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #2&lt;/p&gt;  &lt;p class="APARA1"&gt;You can also choose to select individual fields as opposed to all fields in the table.&lt;/p&gt;  &lt;p class="APARA1"&gt;For example:&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT name, city, state&lt;br /&gt;FROM supplier&lt;br /&gt;WHERE supplier_id &gt; 1000;&lt;/p&gt;  &lt;p class="APARA1"&gt;This select statement would return all name, city, and state values from the supplier table where the supplier_id value is greater than 1000.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #3&lt;/p&gt;  &lt;p class="APARA1"&gt;You can also use the select statement to retrieve fields from multiple tables.&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT orders.order_id, supplier.name&lt;br /&gt;FROM supplier, orders&lt;br /&gt;WHERE supplier.supplier_id = orders.supplier_id;&lt;/p&gt;  &lt;p class="APARA1"&gt;The result set would display the order_id and suppier name fields where the supplier_id value existed in both the supplier and orders table.&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;SQL: DISTINCT Clause&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;The DISTINCT clause allows you to remove duplicates from the result set. The DISTINCT clause can only be used with select statements.&lt;/p&gt;  &lt;p class="APARA3"&gt;The syntax for the DISTINCT clause is:&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT DISTINCT columns&lt;br /&gt;FROM tables&lt;br /&gt;WHERE predicates;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #1&lt;/p&gt;  &lt;p class="APARA1"&gt;Let's take a look at a very simple example.&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT DISTINCT city&lt;br /&gt;FROM supplier;&lt;/p&gt;  &lt;p class="APARA1"&gt;This SQL statement would return all unique cities from the supplier table.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #2&lt;/p&gt;  &lt;p class="APARA1"&gt;The DISTINCT clause can be used with more than one field.&lt;/p&gt;  &lt;p class="APARA1"&gt;For example:&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT DISTINCT city, state&lt;br /&gt;FROM supplier;&lt;/p&gt;  &lt;p class="APARA1"&gt;This select statement would return each unique city and state combination. In this case, the distinct applies to each field listed after the DISTINCT keyword.&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;SQL: COUNT Function&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;The COUNT function returns the number of rows in a query.&lt;/p&gt;  &lt;p class="APARA3"&gt;The syntax for the COUNT function is:&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT COUNT(expression)&lt;br /&gt;FROM tables&lt;br /&gt;WHERE predicates;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="APARA1"&gt;Note:&lt;/p&gt;  &lt;p class="APARA1"&gt;The COUNT function will only count those records in which the field in the brackets is NOT NULL.&lt;/p&gt;  &lt;p class="APARA1"&gt;For example, if you have the following table called Suppliers:&lt;/p&gt;  &lt;table class="MsoNormalTable" style="width: 225pt;" border="1" cellpadding="0" cellspacing="0" width="300"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;   &lt;p class="MsoNormal"&gt;Supplier_ID&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in;"&gt;   &lt;p class="MsoNormal"&gt;Supplier_Name&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in;"&gt;   &lt;p class="MsoNormal"&gt;State&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;   &lt;p class="MsoNormal"&gt;1&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in;"&gt;   &lt;p class="MsoNormal"&gt;IBM&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in;"&gt;   &lt;p class="MsoNormal"&gt;CA&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;   &lt;p class="MsoNormal"&gt;2&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in;"&gt;   &lt;p class="MsoNormal"&gt;Microsoft&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in;"&gt;   &lt;p class="MsoNormal"&gt; &lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 0in;"&gt;   &lt;p class="MsoNormal"&gt;3&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in;"&gt;   &lt;p class="MsoNormal"&gt;NVidia&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in;"&gt;   &lt;p class="MsoNormal"&gt; &lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="APARA1"&gt;The result for this query will return 3. &lt;/p&gt;  &lt;p class="APARA2"&gt;Select COUNT(Supplier_ID) From Suppliers; &lt;/p&gt;  &lt;p class="APARA1"&gt;While the result for the next query will only return 1, since there is only one row in the Suppliers table where the State field is NOT NULL.&lt;/p&gt;  &lt;p class="APARA2"&gt;Select COUNT(State) From Suppliers;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Simple Example&lt;/p&gt;  &lt;p class="APARA1"&gt;For example, you might wish to know how many employees have a salary that is above $25,000 / year.&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT COUNT(*) as "Number of employees"&lt;br /&gt;FROM employees&lt;br /&gt;WHERE salary &gt; 25000;&lt;/p&gt;  &lt;p class="APARA1"&gt;In this example, we've aliased the count(*) field as "Number of employees". As a result, "Number of employees" will display as the field name when the result set is returned.&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example using DISTINCT&lt;/p&gt;  &lt;p class="APARA1"&gt;You can use the DISTINCT clause within the COUNT function.&lt;/p&gt;  &lt;p class="APARA1"&gt;For example, the SQL statement below returns the number of unique departments where at least one employee makes over $25,000 / year.&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT COUNT(DISTINCT department) as "Unique departments"&lt;br /&gt;FROM employees&lt;br /&gt;WHERE salary &gt; 25000;&lt;/p&gt;  &lt;p class="APARA1"&gt;Again, the count(DISTINCT department) field is aliased as "Unique departments". This is the field name that will display in the result set.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example using GROUP BY&lt;/p&gt;  &lt;p class="APARA1"&gt;In some cases, you will be required to use a GROUP BY clause with the COUNT function.&lt;/p&gt;  &lt;p class="APARA1"&gt;For example, you could use the COUNT function to return the name of the department and the number of employees (in the associated department) that make over $25,000 / year.&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT department, COUNT(*) as "Number of employees"&lt;br /&gt;FROM employees&lt;br /&gt;WHERE salary &gt; 25000&lt;br /&gt;GROUP BY department;&lt;/p&gt;  &lt;p class="APARA1"&gt;Because you have listed one column in your SELECT statement that is not encapsulated in the COUNT function, you must use a GROUP BY clause. The department field must, therefore, be listed in the GROUP BY section.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;TIP: Performance Tuning&lt;/p&gt;  &lt;p class="APARA1"&gt;Since the COUNT function will return the same results regardless of what NOT NULL field(s) you include as the COUNT function parameters (ie: within the brackets), you can change the syntax of the COUNT function to COUNT(1) to get better performance as the database engine will not have to fetch back the data fields.&lt;/p&gt;  &lt;p class="APARA1"&gt;For example, based on the example above, the following syntax would result in better performance:&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT department, COUNT(1) as "Number of employees"&lt;br /&gt;FROM employees&lt;br /&gt;WHERE salary &gt; 25000&lt;br /&gt;GROUP BY department;&lt;/p&gt;  &lt;p class="APARA1"&gt;Now, the COUNT function does not need to retrieve all fields from the employees table as it had to when you used the COUNT(*) syntax. It will merely retrieve the numeric value of 1 for each record that meets your criteria.&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;SQL: SUM Function&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;The SUM function returns the summed value of an expression.&lt;/p&gt;  &lt;p class="APARA3"&gt;The syntax for the SUM function is:&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT SUM(expression )&lt;br /&gt;FROM tables&lt;br /&gt;WHERE predicates;&lt;/p&gt;  &lt;p class="APARA1"&gt;expression can be a numeric field or formula.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Simple Example&lt;/p&gt;  &lt;p class="APARA1"&gt;For example, you might wish to know how the combined total salary of all employees whose salary is above $25,000 / year.&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT SUM(salary) as "Total Salary"&lt;br /&gt;FROM employees&lt;br /&gt;WHERE salary &gt; 25000;&lt;/p&gt;  &lt;p class="APARA1"&gt;In this example, we've aliased the sum(salary) field as "Total Salary". As a result, "Total Salary" will display as the field name when the result set is returned.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example using DISTINCT&lt;/p&gt;  &lt;p class="APARA1"&gt;You can use the DISTINCT clause within the SUM function. For example, the SQL statement below returns the combined total salary of unique salary values where the salary is above $25,000 / year.&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT SUM(DISTINCT salary) as "Total Salary"&lt;br /&gt;FROM employees&lt;br /&gt;WHERE salary &gt; 25000;&lt;/p&gt;  &lt;p class="APARA1"&gt;If there were two salaries of $30,000/year, only one of these values would be used in the SUM function.&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example using a Formula&lt;/p&gt;  &lt;p class="APARA1"&gt;The expression contained within the SUM function does not need to be a single field. You could also use a formula. For example, you might want the net income for a business. Net Income is calculated as total income less total expenses.&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT SUM(income - expenses) as "Net Income"&lt;br /&gt;FROM gl_transactions;&lt;/p&gt;  &lt;p class="APARA1"&gt;You might also want to perform a mathematical operation within a SUM function. For example, you might determine total commission as 10% of total sales.&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT SUM(sales * 0.10) as "Commission"&lt;br /&gt;FROM order_details;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example using GROUP BY&lt;/p&gt;  &lt;p class="APARA1"&gt;In some cases, you will be required to use a GROUP BY clause with the SUM function.&lt;/p&gt;  &lt;p class="APARA1"&gt;For example, you could also use the SUM function to return the name of the department and the total sales (in the associated department).&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT department, SUM(sales) as "Total sales"&lt;br /&gt;FROM order_details&lt;br /&gt;GROUP BY department;&lt;/p&gt;  &lt;p class="APARA1"&gt;Because you have listed one column in your SELECT statement that is not encapsulated in the SUM function, you must use a GROUP BY clause. The department field must, therefore, be listed in the GROUP BY section.&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;SQL: MIN Function&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;The MIN function returns the minimum value of an expression.&lt;/p&gt;  &lt;p class="APARA3"&gt;The syntax for the MIN function is:&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT MIN(expression )&lt;br /&gt;FROM tables&lt;br /&gt;WHERE predicates;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Simple Example&lt;/p&gt;  &lt;p class="APARA1"&gt;For example, you might wish to know the minimum salary of all employees.&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT MIN(salary) as "Lowest salary"&lt;br /&gt;FROM employees;&lt;/p&gt;  &lt;p class="APARA1"&gt;In this example, we've aliased the min(salary) field as "Lowest salary". As a result, "Lowest salary" will display as the field name when the result set is returned.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example using GROUP BY&lt;/p&gt;  &lt;p class="APARA1"&gt;In some cases, you will be required to use a GROUP BY clause with the MIN function.&lt;/p&gt;  &lt;p class="APARA1"&gt;For example, you could also use the MIN function to return the name of each department and the minimum salary in the department.&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT department, MIN(salary) as "Lowest salary"&lt;br /&gt;FROM employees&lt;br /&gt;GROUP BY department;&lt;/p&gt;  &lt;p class="APARA1"&gt;Because you have listed one column in your SELECT statement that is not encapsulated in the MIN function, you must use a GROUP BY clause. The department field must, therefore, be listed in the GROUP BY section.&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;SQL: MAX Function&lt;/p&gt;  &lt;div class="APARA1" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;The MAX function returns the maximum value of an expression.&lt;/p&gt;  &lt;p class="APARA3"&gt;The syntax for the MAX function is:&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT MAX(expression )&lt;br /&gt;FROM tables&lt;br /&gt;WHERE predicates;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Simple Example&lt;/p&gt;  &lt;p class="APARA1"&gt;For example, you might wish to know the maximum salary of all employees.&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT MAX(salary) as "Highest salary"&lt;br /&gt;FROM employees;&lt;/p&gt;  &lt;p class="APARA1"&gt;In this example, we've aliased the max(salary) field as "Highest salary". As a result, "Highest salary" will display as the field name when the result set is returned.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example using GROUP BY&lt;/p&gt;  &lt;p class="APARA1"&gt;In some cases, you will be required to use a GROUP BY clause with the MAX function.&lt;/p&gt;  &lt;p class="APARA1"&gt;For example, you could also use the MAX function to return the name of each department and the maximum salary in the department.&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT department, MAX(salary) as "Highest salary"&lt;br /&gt;FROM employees&lt;br /&gt;GROUP BY department;&lt;/p&gt;  &lt;p class="APARA1"&gt;Because you have listed one column in your SELECT statement that is not encapsulated in the MAX function, you must use a GROUP BY clause. The department field must, therefore, be listed in the GROUP BY section.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Frequently Asked Questions&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;Question:  I'm trying to pull some info out of a table. To simplify, let's say the table (report_history) has 4 columns:&lt;/p&gt;  &lt;p class="APARA2"&gt;user_name, report_job_id, report_name, report_run_date.&lt;/p&gt;  &lt;p class="APARA1"&gt;Each time a report is run in Oracle, a record is written to this table noting the above info. What I am trying to do is pull from this table when the last time each distinct report was run and who ran it last.&lt;/p&gt;  &lt;p class="APARA1"&gt;My initial query:&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT report_name, max(report_run_date)&lt;br /&gt;FROM report_history&lt;br /&gt;GROUP BY report_name&lt;/p&gt;  &lt;p class="APARA1"&gt;runs fine. However, it does not provide the name of the user who ran the report.&lt;/p&gt;  &lt;p class="APARA1"&gt;Adding user_name to both the select list and to the group by clause returns multiple lines for each report; the results show the last time each person ran each report in question. (i.e. User1 ran Report 1 on &lt;st1:date month="7" day="1" year="2003" st="on"&gt;01-JUL-03&lt;/st1:date&gt;, User2 ran Report1 on &lt;st1:date month="8" day="1" year="2003" st="on"&gt;01-AUG-03&lt;/st1:date&gt;). I don't want that....I just want to know who ran a particular report the last time it was run.&lt;/p&gt;  &lt;p class="APARA1"&gt;Any suggestions?&lt;/p&gt;  &lt;p class="APARA1"&gt;Answer:  This is where things get a bit complicated. The SQL statement below will return the results that you want:&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT rh.user_name, rh.report_name, rh.report_run_date&lt;br /&gt;FROM report_history rh,&lt;br /&gt;   &lt;span style=""&gt;  &lt;/span&gt;(SELECT max(report_run_date) as maxdate, report_name&lt;br /&gt;     FROM report_history&lt;br /&gt;     GROUP BY report_name) maxresults&lt;br /&gt;WHERE rh.report_name = maxresults.report_name&lt;br /&gt;AND rh.report_run_date= maxresults.maxdate;&lt;/p&gt;  &lt;p class="APARA1"&gt;Let's take a few moments to explain what we've done.&lt;/p&gt;  &lt;p class="APARA1"&gt;First, we've aliased the first instance of the report_history table as rh.&lt;/p&gt;  &lt;p class="APARA1"&gt;Second, we've included two components in our FROM clause. The first is the table called report_history (aliased as rh). The second is a select statement:&lt;/p&gt;  &lt;p class="APARA2"&gt;    (SELECT max(report_run_date) as maxdate, report_name&lt;br /&gt;    FROM report_history&lt;br /&gt;    GROUP BY report_name) maxresults&lt;/p&gt;  &lt;p class="APARA1"&gt;We've aliased the max(report_run_date) as maxdate and we've aliased the entire result set as maxresults.&lt;/p&gt;  &lt;p class="APARA1"&gt;Now, that we've created this select statement within our FROM clause, Oracle will let us join these results against our original report_history table. So we've joined the report_name and report_run_date fields between the tables called rh and maxresults. This allows us to retrieve the report_name, max(report_run_date) as well as the user_name.&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;Question:  I need help in an SQL query. I have a table in Oracle called orders which has the following fields: order_no, customer, and amount.&lt;/p&gt;  &lt;p class="APARA1"&gt;I need a query that will return the customer who has ordered the highest total amount.&lt;/p&gt;  &lt;p class="APARA1"&gt;Answer:  The following SQL should return the customer with the highest total amount in the orders table.&lt;/p&gt;  &lt;p class="APARA2"&gt;select query1.* from&lt;br /&gt;   &lt;span style=""&gt;         &lt;/span&gt;(SELECT customer, Sum(orders.amount) AS total_amt&lt;br /&gt;   &lt;span style=""&gt;         &lt;/span&gt;FROM orders&lt;br /&gt;   &lt;span style=""&gt;         &lt;/span&gt;GROUP BY orders.customer) query1,&lt;/p&gt;  &lt;p class="APARA2"&gt;   &lt;span style=""&gt;         &lt;/span&gt;(select max(query2.total_amt) as highest_amt&lt;br /&gt;   &lt;span style=""&gt;         &lt;/span&gt;from (SELECT customer, Sum(orders.amount) AS total_amt&lt;br /&gt;   &lt;span style=""&gt;         &lt;/span&gt;FROM orders&lt;br /&gt;   &lt;span style=""&gt;         &lt;/span&gt;GROUP BY orders.customer) query2) query3&lt;br /&gt;where query1.total_amt = query3.highest_amt;&lt;/p&gt;  &lt;p class="APARA1"&gt;This SQL statement will summarize the total orders for each customer and then return the customer with the highest total orders. This syntax is optimized for Oracle and may not work for other database technologies.&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;Question:  I'm trying to retrieve some info from an Oracle database. I've got a table named Scoring with two fields - Name and Score. What I want to get is the highest score from the table and the name of the player.&lt;/p&gt;  &lt;p class="APARA1"&gt;Answer:  The following SQL should work:&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT Name, Score&lt;br /&gt;FROM Scoring&lt;br /&gt;WHERE Score = (select Max(Score) from Scoring);&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;SQL: WHERE Clause&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;The WHERE clause allows you to filter the results from an SQL statement - select, insert, update, or delete statement.&lt;/p&gt;  &lt;p class="APARA1"&gt;It is difficult to explain the basic syntax for the WHERE clause, so instead, we'll take a look at some examples.&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #1&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT *&lt;br /&gt;FROM supplier&lt;br /&gt;WHERE supplier_name = 'IBM';&lt;/p&gt;  &lt;p class="APARA1"&gt;In this first example, we've used the WHERE clause to filter our results from the supplier table. The SQL statement above would return all rows from the supplier table where the supplier_name is IBM. Because the * is used in the select, all fields from the supplier table would appear in the result set.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #2&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT supplier_id&lt;br /&gt;FROM supplier&lt;br /&gt;WHERE supplier_name = 'IBM'&lt;br /&gt;or supplier_city = '&lt;st1:place st="on"&gt;&lt;st1:city st="on"&gt;Newark&lt;/st1:City&gt;&lt;/st1:place&gt;';&lt;/p&gt;  &lt;p class="MsoNormal"&gt;We can define a WHERE clause with multiple conditions. This SQL statement would return all supplier_id values where the supplier_name is IBM &lt;b&gt;or&lt;/b&gt; the supplier_city is &lt;st1:place st="on"&gt;&lt;st1:city st="on"&gt;Newark&lt;/st1:City&gt;&lt;/st1:place&gt;.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #3&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT supplier.suppler_name, orders.order_id&lt;br /&gt;FROM supplier, orders&lt;br /&gt;WHERE supplier.supplier_id = orders.supplier_id&lt;br /&gt;and supplier.supplier_city = '&lt;st1:place st="on"&gt;&lt;st1:city st="on"&gt;Atlantic   City&lt;/st1:City&gt;&lt;/st1:place&gt;';&lt;/p&gt;  &lt;p class="APARA1"&gt;We can also use the WHERE clause to join multiple tables together in a single SQL statement. This SQL statement would return all supplier names and order_ids where there is a matching record in the supplier and orders tables based on supplier_id, and where the supplier_city is &lt;st1:place st="on"&gt;&lt;st1:city st="on"&gt;Atlantic City&lt;/st1:City&gt;&lt;/st1:place&gt;.&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;SQL: "AND" Condition&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;The AND condition allows you to create an SQL statement based on 2 or more conditions being met. It can be used in any valid SQL statement - select, insert, update, or delete.&lt;/p&gt;  &lt;p class="APARA3"&gt;The syntax for the AND condition is:&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT columns&lt;br /&gt;FROM tables&lt;br /&gt;WHERE column1 = 'value1'&lt;br /&gt;and column2 = 'value2';&lt;/p&gt;  &lt;p class="APARA1"&gt;The AND condition requires that each condition be must be met for the record to be included in the result set. In this case, column1 has to equal 'value1' and column2 has to equal 'value2'.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #1&lt;/p&gt;  &lt;p class="APARA1"&gt;The first example that we'll take a look at involves a very simple example using the AND condition.&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT *&lt;br /&gt;FROM supplier&lt;br /&gt;WHERE city = '&lt;st1:place st="on"&gt;&lt;st1:state st="on"&gt;New York&lt;/st1:State&gt;&lt;/st1:place&gt;'&lt;br /&gt;and type = 'PC Manufacturer';&lt;/p&gt;  &lt;p class="APARA1"&gt;This would return all suppliers that reside in &lt;st1:place st="on"&gt;&lt;st1:state st="on"&gt;New York&lt;/st1:State&gt;&lt;/st1:place&gt; and are PC Manufacturers. Because the * is used in the select, all fields from the supplier table would appear in the result set.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #2&lt;/p&gt;  &lt;p class="APARA1"&gt;Our next example demonstrates how the AND condition can be used to "join" multiple tables in an SQL statement.&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT order.order_id, supplier.supplier_name&lt;br /&gt;FROM supplier, order&lt;br /&gt;WHERE supplier.supplier_id = order.supplier_id&lt;br /&gt;and supplier.supplier_name = 'IBM';&lt;/p&gt;  &lt;p class="APARA1"&gt;This would return all rows where the supplier_name is IBM. And the supplier and order tables are joined on supplier_id. You will notice that all of the fields are prefixed with the table names (ie: order.order_id). This is required to eliminate any ambiguity as to which field is being referenced; as the same field name can exist in both the supplier and order tables.&lt;/p&gt;  &lt;p class="APARA1"&gt;In this case, the result set would only display the order_id and supplier_name fields (as listed in the first part of the select statement.).&lt;/p&gt;  &lt;b style=""&gt;&lt;span style="font-size: 18pt; font-family: &amp;quot;Times New Roman&amp;quot;; color: navy;"&gt;&lt;br /&gt; &lt;/span&gt;&lt;/b&gt;  &lt;p class="AMYHEADING1"&gt;SQL: "OR" Condition&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;The OR condition allows you to create an SQL statement where records are returned when any one of the conditions are met. It can be used in any valid SQL statement - select, insert, update, or delete.&lt;/p&gt;  &lt;p class="APARA3"&gt;The syntax for the OR condition is:&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT columns&lt;br /&gt;FROM tables&lt;br /&gt;WHERE column1 = 'value1'&lt;br /&gt;or column2 = 'value2';&lt;/p&gt;  &lt;p class="APARA1"&gt;The OR condition requires that any of the conditions be must be met for the record to be included in the result set. In this case, column1 has to equal 'value1' OR column2 has to equal 'value2'.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #1&lt;/p&gt;  &lt;p class="APARA1"&gt;The first example that we'll take a look at involves a very simple example using the OR condition.&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT *&lt;br /&gt;FROM supplier&lt;br /&gt;WHERE city = '&lt;st1:state st="on"&gt;New York&lt;/st1:State&gt;'&lt;br /&gt;or city = '&lt;st1:place st="on"&gt;&lt;st1:city st="on"&gt;Newark&lt;/st1:City&gt;&lt;/st1:place&gt;';&lt;/p&gt;  &lt;p class="APARA1"&gt;This would return all suppliers that reside in either &lt;st1:state st="on"&gt;New York&lt;/st1:State&gt; or &lt;st1:place st="on"&gt;&lt;st1:city st="on"&gt;Newark&lt;/st1:City&gt;&lt;/st1:place&gt;. Because the * is used in the select, all fields from the supplier table would appear in the result set.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #2&lt;/p&gt;  &lt;p class="APARA1"&gt;The next example takes a look at three conditions. If any of these conditions is met, the record will be included in the result set.&lt;/p&gt;  &lt;p class="APARA1"&gt;For example:&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT supplier_id&lt;br /&gt;FROM supplier&lt;br /&gt;WHERE name = 'IBM'&lt;br /&gt;or name = 'Hewlett Packard'&lt;br /&gt;or name = 'Gateway';&lt;/p&gt;  &lt;p class="APARA1"&gt;This SQL statement would return all supplier_id values where the supplier's name is either IBM, Hewlett Packard or Gateway.&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;SQL: Combining the "AND" and "OR" Conditions&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;The AND and OR conditions can be combined in a single SQL statement. It can be used in any valid SQL statement - select, insert, update, or delete.&lt;/p&gt;  &lt;p class="APARA1"&gt;When combining these conditions, it is important to use brackets so that the database knows what order to evaluate each condition.&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #1&lt;/p&gt;  &lt;p class="APARA1"&gt;The first example that we'll take a look at an example that combines the AND and OR conditions.&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT *&lt;br /&gt;FROM supplier&lt;br /&gt;WHERE (city = '&lt;st1:state st="on"&gt;New York&lt;/st1:State&gt;' and name = 'IBM')&lt;br /&gt;or (city = '&lt;st1:place st="on"&gt;&lt;st1:city st="on"&gt;Newark&lt;/st1:City&gt;&lt;/st1:place&gt;');&lt;/p&gt;  &lt;p class="APARA1"&gt;This would return all suppliers that reside in either &lt;st1:state st="on"&gt;New York&lt;/st1:State&gt; whose name is IBM, all supplies that reside in  &lt;st1:place st="on"&gt;&lt;st1:city st="on"&gt;Newark&lt;/st1:City&gt;&lt;/st1:place&gt;. The brackets determine what order the AND and OR conditions are evaluated in.&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #2&lt;/p&gt;  &lt;p class="APARA1"&gt;The next example takes a look at a more complex statement.&lt;/p&gt;  &lt;p class="APARA1"&gt;For example:&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT supplier_id&lt;br /&gt;FROM supplier&lt;br /&gt;WHERE (name = 'IBM')&lt;br /&gt;or (name = 'Hewlett Packard' and city = '&lt;st1:city st="on"&gt;Atlantic City&lt;/st1:City&gt;')&lt;br /&gt;or (name = 'Gateway' and status = 'Active' and city = '&lt;st1:place st="on"&gt;&lt;st1:country-region st="on"&gt;Burma&lt;/st1:country-region&gt;&lt;/st1:place&gt;');&lt;/p&gt;  &lt;p class="APARA1"&gt;This SQL statement would return all supplier_id values where the supplier's name is IBM or the name is Hewlett Packard and the city is &lt;st1:city st="on"&gt;Atlantic City&lt;/st1:City&gt; or the name is Gateway and the city is &lt;st1:place st="on"&gt;&lt;st1:country-region st="on"&gt;Burma&lt;/st1:country-region&gt;&lt;/st1:place&gt;.&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;SQL: LIKE Condition&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;The LIKE condition allows you to use wildcards in the where clause of an SQL statement. This allows you to perform pattern matching. The LIKE condition can be used in any valid SQL statement - select, insert, update, or delete.&lt;/p&gt;  &lt;p class="APARA3"&gt;The patterns that you can choose from are:&lt;/p&gt;  &lt;p class="APARA2"&gt;% allows you to match any string of any length (including zero length)&lt;/p&gt;  &lt;p class="APARA2"&gt;_ allows you to match on a single character&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Examples using % wildcard&lt;/p&gt;  &lt;p class="APARA1"&gt;The first example that we'll take a look at involves using % in the where clause of a select statement. We are going to try to find all of the suppliers whose name begins with 'Hew'.&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT * FROM supplier&lt;br /&gt;WHERE supplier_name like 'Hew%';&lt;/p&gt;  &lt;p class="APARA1"&gt;You can also using the wildcard multiple times within the same string. For example,&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT * FROM supplier&lt;br /&gt;WHERE supplier_name like '%bob%';&lt;/p&gt;  &lt;p class="APARA1"&gt;In this example, we are looking for all suppliers whose name contains the characters 'bob'.&lt;/p&gt;  &lt;p class="APARA1"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="APARA1"&gt;You could also use the LIKE condition to find suppliers whose name does not start with 'T'. For example,&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT * FROM supplier&lt;br /&gt;WHERE supplier_name not like 'T%';&lt;/p&gt;  &lt;p class="APARA1"&gt;By placing the not keyword in front of the LIKE condition, you are able to retrieve all suppliers whose name does not start with 'T'.&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Examples using _ wildcard&lt;/p&gt;  &lt;p class="APARA1"&gt;Next, let's explain how the _ wildcard works. Remember that the _ is looking for only one character.&lt;/p&gt;  &lt;p class="APARA1"&gt;For example,&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT * FROM supplier&lt;br /&gt;WHERE supplier_name like 'Sm_th';&lt;/p&gt;  &lt;p class="APARA1"&gt;This SQL statement would return all suppliers whose name is 5 characters long, where the first two characters is 'Sm' and the last two characters is 'th'. For example, it could return suppliers whose name is 'Smith', 'Smyth', 'Smath', 'Smeth', etc.&lt;/p&gt;  &lt;p class="APARA1"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="APARA1"&gt;Here is another example,&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT * FROM supplier&lt;br /&gt;WHERE account_number like '12317_';&lt;/p&gt;  &lt;p class="APARA1"&gt;You might find that you are looking for an account number, but you only have 5 of the 6 digits. The example above, would retrieve potentially 10 records back (where the missing value could equal anything from 0 to 9). For example, it could return suppliers whose account numbers are:&lt;/p&gt;  &lt;p class="APARA1" style="margin-left: 2.5in;"&gt;123170&lt;br /&gt;123171&lt;br /&gt;123172&lt;br /&gt;123173&lt;br /&gt;123174&lt;br /&gt;123175&lt;br /&gt;123176&lt;br /&gt;123177&lt;br /&gt;123178&lt;br /&gt;123179.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Examples using Escape Characters&lt;/p&gt;  &lt;p class="APARA1"&gt;Next, in Oracle, let's say you wanted to search for a % or a _ character in a LIKE condition. You can do this using an Escape character.&lt;/p&gt;  &lt;p class="APARA1"&gt;Please note that you can define an escape character as a single character (length of 1) ONLY.&lt;/p&gt;  &lt;p class="APARA1"&gt;For example,&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT * FROM supplier&lt;br /&gt;WHERE supplier_name LIKE '!%' escape '!';&lt;/p&gt;  &lt;p class="APARA1"&gt;This SQL statement identifies the ! character as an escape character. This statement will return all suppliers whose name is %.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="APARA1"&gt;Here is another more complicated example:&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT * FROM supplier&lt;br /&gt;WHERE supplier_name LIKE 'H%!%' escape '!';&lt;/p&gt;  &lt;p class="APARA1"&gt;This example returns all suppliers whose name starts with H and ends in %. For example, it would return a value such as 'Hello%'.&lt;/p&gt;  &lt;p class="APARA1"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="APARA1"&gt;You can also use the Escape character with the _ character. For example,&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT * FROM supplier&lt;br /&gt;WHERE supplier_name LIKE 'H%!_' escape '!';&lt;/p&gt;  &lt;p class="APARA1"&gt;This example returns all suppliers whose name starts with H and ends in _. For example, it would return a value such as 'Hello_'.&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;SQL: "IN" Function&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;The IN function helps reduce the need to use multiple OR conditions.&lt;/p&gt;  &lt;p class="APARA3"&gt;The syntax for the IN function is:&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT columns&lt;br /&gt;FROM tables&lt;br /&gt;WHERE column1 in (value1, value2, .... value_n);&lt;/p&gt;  &lt;p class="APARA1"&gt;This SQL statement will return the records where column1 is value1, value2..., or value_n. The IN function can be used in any valid SQL statement - select, insert, update, or delete.&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #1&lt;/p&gt;  &lt;p class="APARA1"&gt;The following is an SQL statement that uses the IN function:&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT *&lt;br /&gt;FROM supplier&lt;br /&gt;WHERE supplier_name in ( 'IBM', 'Hewlett Packard', 'Microsoft');&lt;/p&gt;  &lt;p class="APARA1"&gt;This would return all rows where the supplier_name is either IBM, Hewlett Packard, or Microsoft. Because the * is used in the select, all fields from the supplier table would appear in the result set.&lt;/p&gt;  &lt;p class="APARA1"&gt;It is equivalent to the following statement:&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT *&lt;br /&gt;FROM supplier&lt;br /&gt;WHERE supplier_name = 'IBM'&lt;br /&gt;OR supplier_name = 'Hewlett Packard'&lt;br /&gt;OR supplier_name = 'Microsoft';&lt;/p&gt;  &lt;p class="APARA1"&gt;As you can see, using the IN function makes the statement easier to read and more efficient.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #2&lt;/p&gt;  &lt;p class="APARA1"&gt;You can also use the IN function with numeric values.&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT *&lt;br /&gt;FROM orders&lt;br /&gt;WHERE order_id in (10000, 10001, 10003, 10005);&lt;/p&gt;  &lt;p class="APARA1"&gt;This SQL statement would return all orders where the order_id is either 10000, 10001, 10003, or 10005.&lt;/p&gt;  &lt;p class="APARA1"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="APARA1"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="APARA1"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="APARA1"&gt;It is equivalent to the following statement:&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT *&lt;br /&gt;FROM orders&lt;br /&gt;WHERE order_id = 10000&lt;br /&gt;OR order_id = 10001&lt;br /&gt;OR order_id = 10003&lt;br /&gt;OR order_id = 10005;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #3 - "NOT IN"&lt;/p&gt;  &lt;p class="APARA1"&gt;The IN function can also be combined with the NOT operator.&lt;/p&gt;  &lt;p class="APARA1"&gt;For example,&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT *&lt;br /&gt;FROM supplier&lt;br /&gt;WHERE supplier_name not in ( 'IBM', 'Hewlett Packard', 'Microsoft');&lt;/p&gt;  &lt;p class="APARA1"&gt;This would return all rows where the supplier_name is neither IBM, Hewlett Packard, or Microsoft. Sometimes, it is more efficient to list the values that you do not want, as opposed to the values that you do want.&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;SQL: BETWEEN Condition&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;The BETWEEN condition allows you to retrieve values within a range.&lt;/p&gt;  &lt;p class="APARA3"&gt;The syntax for the BETWEEN condition is:&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT columns&lt;br /&gt;FROM tables&lt;br /&gt;WHERE column1 between value1 and value2;&lt;/p&gt;  &lt;p class="APARA1"&gt;This SQL statement will return the records where column1 is within the range of value1 and value2 (inclusive). The BETWEEN function can be used in any valid SQL statement - select, insert, update, or delete.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #1 - Numbers&lt;/p&gt;  &lt;p class="APARA1"&gt;The following is an SQL statement that uses the BETWEEN function:&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT *&lt;br /&gt;FROM suppliers&lt;br /&gt;WHERE supplier_id between 5000 AND 5010;&lt;/p&gt;  &lt;p class="APARA1"&gt;This would return all rows where the supplier_id is between 5000 and 5010, inclusive. It is equivalent to the following SQL statement:&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT *&lt;br /&gt;FROM suppliers&lt;br /&gt;WHERE supplier_id &gt;= 5000&lt;br /&gt;AND supplier_id &lt;= 5010;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #2 - Dates&lt;/p&gt;  &lt;p class="APARA1"&gt;You can also use the BETWEEN function with dates.&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT *&lt;br /&gt;FROM orders&lt;br /&gt;WHERE order_date between to_date ('2003/01/01', 'yyyy/mm/dd')&lt;br /&gt;AND to_date ('2003/12/31', 'yyyy/mm/dd');&lt;/p&gt;  &lt;p class="APARA1"&gt;This SQL statement would return all orders where the order_date is between &lt;st1:date month="1" day="1" year="2003" st="on"&gt;Jan 1, 2003&lt;/st1:date&gt; and &lt;st1:date month="12" day="31" year="2003" st="on"&gt;Dec 31, 2003&lt;/st1:date&gt; (inclusive).&lt;/p&gt;  &lt;p class="APARA1"&gt;It would be equivalent to the following SQL statement:&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT *&lt;br /&gt;FROM orders&lt;br /&gt;WHERE order_date &gt;= to_date('2003/01/01', 'yyyy/mm/dd')&lt;br /&gt;AND order_date &lt;= to_date('2003/12/31','yyyy/mm/dd');&lt;/p&gt;  &lt;p class="APARA1"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="APARA1"&gt;Example #3 - NOT BETWEEN&lt;/p&gt;  &lt;p class="APARA1"&gt;The BETWEEN function can also be combined with the NOT operator.&lt;/p&gt;  &lt;p class="APARA1"&gt;For example,&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT *&lt;br /&gt;FROM suppliers&lt;br /&gt;WHERE supplier_id not between 5000 and 5500;&lt;/p&gt;  &lt;p class="APARA1"&gt;This would be equivalent to the following SQL:&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT *&lt;br /&gt;FROM suppliers&lt;br /&gt;WHERE supplier_id &lt; 5000&lt;br /&gt;OR supplier_id &gt; 5500;&lt;/p&gt;  &lt;p class="APARA1"&gt;In this example, the result set would exclude all supplier_id values between the range of 5000 and 5500 (inclusive).&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;SQL: EXISTS Condition&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;The EXISTS condition is considered "to be met" if the subquery returns at least one row.&lt;/p&gt;  &lt;p class="APARA3"&gt;The syntax for the EXISTS condition is:&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT columns&lt;br /&gt;FROM tables&lt;br /&gt;WHERE EXISTS ( subquery );&lt;/p&gt;  &lt;p class="APARA1"&gt;The EXISTS condition can be used in any valid SQL statement - select, insert, update, or delete.&lt;/p&gt;  &lt;p class="APARA1"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #1&lt;/p&gt;  &lt;p class="APARA1"&gt;Let's take a look at a simple example. The following is an SQL statement that uses the EXISTS condition:&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT *&lt;br /&gt;FROM suppliers&lt;br /&gt;WHERE EXISTS&lt;br /&gt;  (select *&lt;br /&gt;  from orders&lt;br /&gt;  where suppliers.supplier_id = orders.supplier_id);&lt;/p&gt;  &lt;p class="APARA1"&gt;This select statement will return all records from the suppliers table where there is at least one record in the orders table with the same supplier_id.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #2 - NOT EXISTS&lt;/p&gt;  &lt;p class="APARA1"&gt;The EXISTS condition can also be combined with the NOT operator.&lt;/p&gt;  &lt;p class="APARA1"&gt;For example,&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT *&lt;br /&gt;FROM suppliers&lt;br /&gt;WHERE not exists (select * from orders Where suppliers.supplier_id = orders.supplier_id);&lt;/p&gt;  &lt;p class="APARA1"&gt;This will return all records from the suppliers table where there are no records in the orders table for the given supplier_id.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;b style=""&gt;&lt;span style="font-size: 14pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;br /&gt; &lt;/span&gt;&lt;/b&gt;  &lt;p class="AMYHEADING2"&gt;Example #3 - DELETE Statement&lt;/p&gt;  &lt;p class="APARA1"&gt;The following is an example of a delete statement that utilizes the EXISTS condition:&lt;/p&gt;  &lt;p class="APARA2"&gt;DELETE FROM suppliers&lt;br /&gt;WHERE EXISTS&lt;br /&gt;  &lt;span style=""&gt;          &lt;/span&gt;(select *&lt;br /&gt;  &lt;span style=""&gt;          &lt;/span&gt;from orders&lt;br /&gt;  &lt;span style=""&gt;          &lt;/span&gt;where suppliers.supplier_id = orders.supplier_id);&lt;/p&gt;  &lt;p class="APARA1"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;div style=""&gt;  &lt;table align="left" cellpadding="0" cellspacing="0" hspace="0" vspace="0"&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;td style="padding: 0in 9pt;" align="left" valign="top"&gt;   &lt;p class="APARA1" style=""&gt;UPDATE supplier&lt;span style=""&gt;                     &lt;/span&gt;&lt;/p&gt;   &lt;p class="APARA1" style=""&gt;SET supplier_name =&lt;span style=""&gt;              &lt;/span&gt;( SELECT customer.name&lt;br /&gt;  FROM customers&lt;br /&gt;  WHERE customers.customer_id = supplier.supplier_id)&lt;/p&gt;   &lt;p class="APARA1" style=""&gt;WHERE   EXISTS&lt;br /&gt;  ( SELECT customer.name&lt;br /&gt;  FROM customers&lt;br /&gt;  WHERE customers.customer_id = supplier.supplier_id);&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;/div&gt;  &lt;p class="AMYHEADING2"&gt;Example #4 - UPDATE Statement&lt;/p&gt;  &lt;p class="APARA1"&gt;The following is an example of an update statement that utilizes the EXISTS condition:&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #5 - INSERT Statement&lt;/p&gt;  &lt;p class="APARA1"&gt;The following is an example of an insert statement that utilizes the EXISTS condition:&lt;/p&gt;  &lt;p class="APARA2"&gt;INSERT INTO supplier&lt;br /&gt;(supplier_id, supplier_name)&lt;br /&gt;SELECT account_no, name&lt;br /&gt;FROM suppliers&lt;br /&gt;WHERE exists (select * from orders Where suppliers.supplier_id = orders.supplier_id);&lt;/p&gt;  &lt;b style=""&gt;&lt;span style="font-size: 18pt; font-family: &amp;quot;Times New Roman&amp;quot;; color: navy;"&gt;&lt;br /&gt; &lt;/span&gt;&lt;/b&gt;  &lt;p class="AMYHEADING1"&gt;SQL: GROUP BY Clause&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;The GROUP BY clause can be used in a SELECT statement to collect data across multiple records and group the results by one or more columns.&lt;/p&gt;  &lt;p class="APARA3"&gt;The syntax for the GROUP BY clause is:&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT column1, column2, ... column_n, aggregate_function (expression)&lt;br /&gt;FROM tables&lt;br /&gt;WHERE predicates&lt;br /&gt;GROUP BY column1, column2, ... column_n;&lt;/p&gt;  &lt;p class="APARA1"&gt;aggregate_function can be a function such as &lt;a href="http://www.techonthenet.com/sql/sum.php"&gt;SUM&lt;/a&gt;, &lt;a href="http://www.techonthenet.com/sql/count.php"&gt;COUNT&lt;/a&gt;, &lt;a href="http://www.techonthenet.com/sql/min.php"&gt;MIN&lt;/a&gt;, or &lt;a href="http://www.techonthenet.com/sql/max.php"&gt;MAX&lt;/a&gt;.&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example using the SUM function&lt;/p&gt;  &lt;p class="APARA1"&gt;For example, you could also use the SUM function to return the name of the department and the total sales (in the associated department).&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT department, SUM(sales) as "Total sales"&lt;br /&gt;FROM order_details&lt;br /&gt;GROUP BY department;&lt;/p&gt;  &lt;p class="APARA1"&gt;Because you have listed one column in your SELECT statement that is not encapsulated in the SUM function, you must use a GROUP BY clause. The department field must, therefore, be listed in the GROUP BY section.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example using the COUNT function&lt;/p&gt;  &lt;p class="APARA1"&gt;For example, you could use the COUNT function to return the name of the department and the number of employees (in the associated department) that make over $25,000 / year.&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT department, COUNT(*) as "Number of employees"&lt;br /&gt;FROM employees&lt;br /&gt;WHERE salary &gt; 25000&lt;br /&gt;GROUP BY department;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example using the MIN function&lt;/p&gt;  &lt;p class="APARA1"&gt;For example, you could also use the MIN function to return the name of each department and the minimum salary in the department.&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT department, MIN(salary) as "Lowest salary"&lt;br /&gt;FROM employees&lt;br /&gt;GROUP BY department;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example using the MAX function&lt;/p&gt;  &lt;p class="APARA1"&gt;For example, you could also use the MAX function to return the name of each department and the maximum salary in the department.&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT department, MAX(salary) as "Highest salary"&lt;br /&gt;FROM employees&lt;br /&gt;GROUP BY department;&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;SQL: HAVING Clause&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;The HAVING clause is used in combination with the GROUP BY clause. It can be used in a SELECT statement to filter the records that a GROUP BY returns.&lt;/p&gt;  &lt;p class="APARA3"&gt;The syntax for the HAVING clause is:&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT column1, column2, ... column_n, aggregate_function (expression)&lt;br /&gt;FROM tables&lt;br /&gt;WHERE predicates&lt;br /&gt;GROUP BY column1, column2, ... column_n&lt;br /&gt;HAVING condition1 ... condition_n;&lt;/p&gt;  &lt;p class="APARA1"&gt;aggregate_function can be a function such as &lt;a href="http://www.techonthenet.com/sql/sum.php"&gt;SUM&lt;/a&gt;, &lt;a href="http://www.techonthenet.com/sql/count.php"&gt;COUNT&lt;/a&gt;, &lt;a href="http://www.techonthenet.com/sql/min.php"&gt;MIN&lt;/a&gt;, or &lt;a href="http://www.techonthenet.com/sql/max.php"&gt;MAX&lt;/a&gt;.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example using the SUM function&lt;/p&gt;  &lt;p class="APARA1"&gt;For example, you could also use the SUM function to return the name of the department and the total sales (in the associated department). The HAVING clause will filter the results so that only departments with sales greater than $1000 will be returned.&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT department, SUM(sales) as "Total sales"&lt;br /&gt;FROM order_details&lt;br /&gt;GROUP BY department&lt;br /&gt;HAVING SUM(sales) &gt; 1000;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example using the COUNT function&lt;/p&gt;  &lt;p class="APARA1"&gt;For example, you could use the COUNT function to return the name of the department and the number of employees (in the associated department) that make over $25,000 / year. The HAVING clause will filter the results so that only departments with at least 25 employees will be returned.&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT department, COUNT(*) as "Number of employees"&lt;br /&gt;FROM employees&lt;br /&gt;WHERE salary &gt; 25000&lt;br /&gt;GROUP BY department&lt;br /&gt;HAVING COUNT(*) &gt; 10;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example using the MIN function&lt;/p&gt;  &lt;p class="APARA1"&gt;For example, you could also use the MIN function to return the name of each department and the minimum salary in the department. The HAVING clause will return only those departments where the starting salary is $35,000.&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT department, MIN(salary) as "Lowest salary"&lt;br /&gt;FROM employees&lt;br /&gt;GROUP BY department&lt;br /&gt;HAVING MIN(salary) = 35000;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example using the MAX function&lt;/p&gt;  &lt;p class="APARA1"&gt;For example, you could also use the MAX function to return the name of each department and the maximum salary in the department. The HAVING clause will return only those departments whose maximum salary is less than $50,000.&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT department, MAX(salary) as "Highest salary"&lt;br /&gt;FROM employees&lt;br /&gt;GROUP BY department&lt;br /&gt;HAVING MAX(salary) &lt;&gt;  &lt;p class="AMYHEADING1"&gt;SQL: ORDER BY Clause&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;The ORDER BY clause allows you to sort the records in your result set. The ORDER BY clause can only be used in SELECT statements.&lt;/p&gt;  &lt;p class="APARA3"&gt;The syntax for the ORDER BY clause is:&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT columns&lt;br /&gt;FROM tables&lt;br /&gt;WHERE predicates&lt;br /&gt;ORDER BY column ASC/DESC;&lt;/p&gt;  &lt;p class="APARA1"&gt;The ORDER BY clause sorts the result set based on the columns specified. If the ASC or DESC value is omitted, the system assumed ascending order.&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;&lt;span style=""&gt;ASC&lt;/span&gt; indicates ascending order. (default)&lt;br /&gt;&lt;span style=""&gt;DESC&lt;/span&gt; indicates descending order.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #1&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT supplier_city&lt;br /&gt;FROM supplier&lt;br /&gt;WHERE supplier_name = 'IBM'&lt;br /&gt;ORDER BY supplier_city;&lt;/p&gt;  &lt;p class="APARA1"&gt;This would return all records sorted by the supplier_city field in ascending order.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #2&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT supplier_city&lt;br /&gt;FROM supplier&lt;br /&gt;WHERE supplier_name = 'IBM'&lt;br /&gt;ORDER BY supplier_city DESC;&lt;/p&gt;  &lt;p class="APARA1"&gt;This would return all records sorted by the supplier_city field in descending order.&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #3&lt;/p&gt;  &lt;p class="APARA1"&gt;You can also sort by relative position in the result set, where the first field in the result set is 1. The next field is 2, and so on.&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT supplier_city&lt;br /&gt;FROM supplier&lt;br /&gt;WHERE supplier_name = 'IBM'&lt;br /&gt;ORDER BY 1 DESC;&lt;/p&gt;  &lt;p class="APARA1"&gt;This would return all records sorted by the supplier_city field in descending order, since the supplier_city field is in position #1 in the result set.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #4&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT supplier_city, supplier_state&lt;br /&gt;FROM supplier&lt;br /&gt;WHERE supplier_name = 'IBM'&lt;br /&gt;ORDER BY supplier_city DESC, supplier_state ASC;&lt;/p&gt;  &lt;p class="APARA1"&gt;This would return all records sorted by the supplier_city field in descending order, with a secondary sort by supplier_state in ascending order.&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;SQL: Joins&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;A join is used to combine rows from multiple tables. A join is performed whenever two or more tables is listed in the FROM clause of an SQL statement.&lt;/p&gt;  &lt;p class="APARA1"&gt;There are different kinds of joins. Let's take a look at a few examples.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;Inner Join (simple join)&lt;/p&gt;  &lt;p class="APARA1"&gt;Chances are, you've already written an SQL statement that uses an inner join. It is is the most common type of join. Inner joins return all rows from multiple tables where the join condition is met.&lt;/p&gt;  &lt;p class="APARA1"&gt;For example,&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT suppliers.supplier_id, suppliers.supplier_name, orders.order_date&lt;br /&gt;FROM suppliers, orders&lt;br /&gt;WHERE suppliers.supplier_id = orders.supplier_id;&lt;/p&gt;  &lt;p class="APARA1"&gt;This SQL statement would return all rows from the suppliers and orders tables where there is a matching supplier_id value in both the suppliers and orders tables.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="APARA1"&gt;Let's look at some data to explain how inner joins work:&lt;/p&gt;  &lt;p class="APARA1"&gt;We have a table called suppliers with two fields (supplier_id and supplier_ name).&lt;br /&gt;It contains the following data:&lt;/p&gt;  &lt;table class="MsoNormalTable" style="width: 150pt; margin-left: 42.75pt;" border="1" cellpadding="0" cellspacing="0" width="200"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 1.5pt; width: 40%;" width="40%"&gt;   &lt;p class="MsoNormal"&gt;supplier_id&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;supplier_name&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;10000&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;IBM&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;10001&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;Hewlett Packard&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;10002&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;Microsoft&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;10003&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;Nvidia&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="APARA1"&gt;We have another table called orders with three fields (order_id, supplier_id, and order_date).&lt;br /&gt;It contains the following data:&lt;/p&gt;  &lt;table class="MsoNormalTable" style="width: 187.5pt; margin-left: 48.75pt;" border="1" cellpadding="0" cellspacing="0" width="250"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;order_id&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;supplier_id&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;order_date&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;500125&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;10000&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;2003/05/12&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;500126&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;10001&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;2003/05/13&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="APARA1"&gt;If we ran the SQL statement below:&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT suppliers.supplier_id, suppliers.supplier_name, orders.order_date&lt;br /&gt;FROM suppliers, orders&lt;br /&gt;WHERE suppliers.supplier_id = orders.supplier_id;&lt;/p&gt;  &lt;p class="APARA1"&gt;Our result set would look like this:&lt;/p&gt;  &lt;table class="MsoNormalTable" style="width: 394pt; margin-left: 38.4pt;" border="1" cellpadding="0" cellspacing="0" width="525"&gt;  &lt;tbody&gt;&lt;tr style="height: 15.7pt;"&gt;   &lt;td style="padding: 1.5pt; width: 108.35pt; height: 15.7pt;" width="144"&gt;   &lt;p class="MsoNormal"&gt;supplier_id&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 1.5pt; width: 126.1pt; height: 15.7pt;" width="168"&gt;   &lt;p class="MsoNormal"&gt;name&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 1.5pt; height: 15.7pt;"&gt;   &lt;p class="MsoNormal"&gt;order_date&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15.7pt;"&gt;   &lt;td style="padding: 1.5pt; height: 15.7pt;"&gt;   &lt;p class="MsoNormal"&gt;10000&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 1.5pt; height: 15.7pt;"&gt;   &lt;p class="MsoNormal"&gt;IBM&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 1.5pt; height: 15.7pt;"&gt;   &lt;p class="MsoNormal"&gt;2003/05/12&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 14.75pt;"&gt;   &lt;td style="padding: 1.5pt; height: 14.75pt;"&gt;   &lt;p class="MsoNormal"&gt;10001&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 1.5pt; height: 14.75pt;"&gt;   &lt;p class="MsoNormal"&gt;Hewlett Packard&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 1.5pt; height: 14.75pt;"&gt;   &lt;p class="MsoNormal"&gt;2003/05/13&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="APARA1"&gt;The rows for Microsoft and Nvidia from the supplier table would be omitted, since the supplier_id's 10002 and 10003 do not exist in both tables.&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;Outer Join&lt;/p&gt;  &lt;p class="APARA1"&gt;Another type of join is called an outer join. This type of join returns all rows from one table and only those rows from a secondary table where the joined fields are equal (join condition is met).&lt;/p&gt;  &lt;p class="APARA1"&gt;For example,&lt;/p&gt;  &lt;p class="APARA2"&gt;select suppliers.supplier_id, suppliers.supplier_name, orders.order_date&lt;br /&gt;from suppliers, orders&lt;br /&gt;where suppliers.supplier_id = orders.supplier_id(+);&lt;/p&gt;  &lt;p class="APARA1"&gt;This SQL statement would return all rows from the suppliers table and only those rows from the orders table where the joined fields are equal.&lt;/p&gt;  &lt;p class="APARA1"&gt;The (+) after the orders.supplier_id field indicates that, if a supplier_id value in the suppliers table does not exist in the orders table, all fields in the orders table will display as &lt;null&gt; in the result set.&lt;/p&gt;  &lt;p class="APARA1"&gt;The above SQL statement could also be written as follows:&lt;/p&gt;  &lt;p class="APARA2"&gt;select suppliers.supplier_id, suppliers.supplier_name, orders.order_date&lt;br /&gt;from suppliers, orders&lt;br /&gt;where orders.supplier_id(+) = suppliers.supplier_id&lt;/p&gt;  &lt;p class="APARA1"&gt;Let's look at some data to explain how outer joins work:&lt;/p&gt;  &lt;p class="APARA1"&gt;We have a table called suppliers with two fields (supplier_id and name).&lt;br /&gt;It contains the following data:&lt;/p&gt;  &lt;table class="MsoNormalTable" style="width: 364.85pt; margin-left: 53.05pt;" border="1" cellpadding="0" cellspacing="0" width="486"&gt;  &lt;tbody&gt;&lt;tr style="height: 14.1pt;"&gt;   &lt;td style="padding: 1.5pt; height: 14.1pt;"&gt;   &lt;p class="MsoNormal"&gt;supplier_id&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 1.5pt; height: 14.1pt;"&gt;   &lt;p class="MsoNormal"&gt;supplier_name&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 13.3pt;"&gt;   &lt;td style="padding: 1.5pt; height: 13.3pt;"&gt;   &lt;p class="MsoNormal"&gt;10000&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 1.5pt; height: 13.3pt;"&gt;   &lt;p class="MsoNormal"&gt;IBM&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 14.1pt;"&gt;   &lt;td style="padding: 1.5pt; height: 14.1pt;"&gt;   &lt;p class="MsoNormal"&gt;10001&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 1.5pt; height: 14.1pt;"&gt;   &lt;p class="MsoNormal"&gt;Hewlett Packard&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 14.1pt;"&gt;   &lt;td style="padding: 1.5pt; height: 14.1pt;"&gt;   &lt;p class="MsoNormal"&gt;10002&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 1.5pt; height: 14.1pt;"&gt;   &lt;p class="MsoNormal"&gt;Microsoft&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 14.1pt;"&gt;   &lt;td style="padding: 1.5pt; height: 14.1pt;"&gt;   &lt;p class="MsoNormal"&gt;10003&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 1.5pt; height: 14.1pt;"&gt;   &lt;p class="MsoNormal"&gt;Nvidia&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal"&gt;We have a second table called &lt;b&gt;orders&lt;/b&gt; with three fields (order_id, supplier_id, and order_date).&lt;br /&gt;It contains the following data:&lt;/p&gt;  &lt;table class="MsoNormalTable" style="width: 187.5pt; margin-left: 48.75pt;" border="1" cellpadding="0" cellspacing="0" width="250"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;order_id&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;supplier_id&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;order_date&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;500125&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;10000&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;2003/05/12&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;500126&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;10001&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;2003/05/13&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="APARA1"&gt;If we ran the SQL statement below:&lt;/p&gt;  &lt;p class="APARA2"&gt;select suppliers.supplier_id, suppliers.supplier_name, orders.order_date&lt;br /&gt;from suppliers, orders&lt;br /&gt;where suppliers.supplier_id = orders.supplier_id(+);&lt;/p&gt;  &lt;p class="APARA1"&gt;Our result set would look like this:&lt;/p&gt;  &lt;table class="MsoNormalTable" style="width: 300pt; margin-left: 36.75pt;" border="1" cellpadding="0" cellspacing="0" width="400"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;supplier_id&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;supplier_name&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;order_date&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;10000&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;IBM&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;2003/05/12&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;10001&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;Hewlett Packard&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;2003/05/13&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;10002&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;Microsoft&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;null&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;10003&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;Nvidia&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 1.5pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;null&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="APARA1"&gt;The rows for Microsoft and Nvidia would be included because an outer join was used. However, you will notice that the order_date field for those records contains a &lt;null&gt; value.&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;Oracle/PLSQL: Subqueries&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;What is a subquery?&lt;/p&gt;  &lt;p class="APARA1"&gt;A subquery is a query within a query. In Oracle, you can create subqueries within your SQL statements. These subqueries can reside in the WHERE clause, the FROM clause, or the SELECT clause.&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;WHERE clause&lt;/p&gt;  &lt;p class="APARA1"&gt;Most often, the subquery will be found in the WHERE clause. These subqueries are also called nested subqueries.&lt;/p&gt;  &lt;p class="APARA1"&gt;For example:&lt;/p&gt;  &lt;p class="APARA2"&gt;select * from all_tables tabs&lt;/p&gt;  &lt;p class="APARA2"&gt;where tabs.table_name in&lt;/p&gt;  &lt;p class="APARA2"&gt;(select cols.table_name&lt;/p&gt;  &lt;p class="APARA2"&gt;from all_tab_columns cols&lt;/p&gt;  &lt;p class="APARA2"&gt;where cols.column_name = 'SUPPLIER_ID');&lt;/p&gt;  &lt;p class="APARA1" style="margin: 0in 0in 0.0001pt;"&gt;Limitations: Oracle allows up to 255 levels of subqueries in the WHERE clause.&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;FROM clause&lt;/p&gt;  &lt;p class="APARA1"&gt;A subquery can also be found in the FROM clause. These are called inline views. &lt;/p&gt;  &lt;p class="APARA1"&gt;For example:&lt;/p&gt;  &lt;p class="APARA2"&gt;select suppliers.name, subquery1.total_amt&lt;br /&gt;from suppliers,&lt;br /&gt;(select supplier_id, Sum(orders.amount) as total_amt&lt;br /&gt;from orders&lt;br /&gt;group by supplier_id) subquery1,&lt;br /&gt;where subquery1.supplier_id = suppliers.supplier_id;&lt;/p&gt;  &lt;p class="APARA1"&gt;In this example, we've created a subquery in the FROM clause as follows:&lt;/p&gt;  &lt;p class="APARA2"&gt;(select supplier_id, Sum(orders.amount) as total_amt&lt;br /&gt; from orders&lt;br /&gt; group by supplier_id) subquery1&lt;/p&gt;  &lt;p class="APARA1"&gt;This subquery has been aliased with the name subquery1. This will be the name used to reference this subquery or any of its fields.&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;&lt;span class="StyleAMYHEADING2UnderlineChar"&gt;Limitations:&lt;/span&gt; Oracle allows an unlimited number of subqueries in the FROM clause.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;SELECT clause&lt;/p&gt;  &lt;p class="APARA1"&gt;A subquery can also be found in the SELECT clause. &lt;/p&gt;  &lt;p class="APARA1"&gt;For example:&lt;/p&gt;  &lt;p class="APARA2"&gt;select tbls.owner, tbls.table_name,&lt;br /&gt;(select count(column_name) as total_columns&lt;br /&gt;from all_tab_columns cols&lt;br /&gt;where cols.owner = tbls.owner&lt;br /&gt;and cols.table_name = tbls.table_name) subquery2&lt;br /&gt;from all_tables tbls; &lt;/p&gt;  &lt;p class="APARA1"&gt;In this example, we've created a subquery in the SELECT clause as follows: &lt;/p&gt;  &lt;p class="APARA2"&gt;(select count(column_name) as total_columns&lt;br /&gt;from all_tab_columns cols&lt;br /&gt;where cols.owner = tbls.owner&lt;br /&gt;and cols.table_name = tbls.table_name) subquery2&lt;/p&gt;  &lt;p class="APARA1"&gt;The subquery has been aliased with the name subquery2. This will be the name used to reference this subquery or any of its fields.&lt;/p&gt;  &lt;p class="APARA1"&gt;The trick to placing a subquery in the select clause is that the subquery must return a single value. This is why an aggregate function such as &lt;a href="http://www.techonthenet.com/sql/sum.php"&gt;SUM&lt;/a&gt;, &lt;a href="http://www.techonthenet.com/sql/count.php"&gt;COUNT&lt;/a&gt;, &lt;a href="http://www.techonthenet.com/sql/min.php"&gt;MIN&lt;/a&gt;, or &lt;a href="http://www.techonthenet.com/sql/max.php"&gt;MAX&lt;/a&gt; is commonly used in the subquery.&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;SQL: UNION Query&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;The UNION query allows you to combine the result sets of 2 or more "select" queries. It removes duplicate rows between the various "select" statements.&lt;/p&gt;  &lt;p class="APARA1"&gt;Each SQL statement within the UNION query must have the same number of fields in the result sets with similar data types.&lt;/p&gt;  &lt;p class="APARA3"&gt;The syntax for a UNION query is:&lt;/p&gt;  &lt;p class="APARA2"&gt;select field1, field2, . field_n&lt;br /&gt;from tables&lt;br /&gt;UNION&lt;br /&gt;select field1, field2, . field_n&lt;br /&gt;from tables;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #1&lt;/p&gt;  &lt;p class="APARA1"&gt;The following is an example of a UNION query:&lt;/p&gt;  &lt;p class="APARA2"&gt;select supplier_id&lt;br /&gt;from suppliers&lt;br /&gt;UNION&lt;br /&gt;select supplier_id&lt;br /&gt;from orders;&lt;/p&gt;  &lt;p class="APARA1"&gt;In this example, if a supplier_id appeared in both the suppliers and orders table, it would appear once in your result set. The &lt;st1:place st="on"&gt;UNION&lt;/st1:place&gt; removes duplicates.&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #2 - With ORDER BY Clause&lt;/p&gt;  &lt;p class="APARA1"&gt;The following is a UNION query that uses an ORDER BY clause:&lt;/p&gt;  &lt;p class="APARA2"&gt;select supplier_id, supplier_name&lt;br /&gt;from suppliers&lt;br /&gt;where supplier_id &gt; 2000&lt;br /&gt;UNION&lt;br /&gt;select company_id, company_name&lt;br /&gt;from companies&lt;br /&gt;where company_id &gt; 1000&lt;br /&gt;ORDER BY 2;&lt;/p&gt;  &lt;p class="APARA1"&gt;Since the column names are different between the two "select" statements, it is more advantageous to reference the columns in the ORDER BY clause by their position in the result set. In this example, we've sorted the results by supplier_name / company_name in ascending order, as denoted by the "ORDER BY 2".&lt;/p&gt;  &lt;p class="APARA1"&gt;The supplier_name / company_name fields are in position #2 in the result set.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Frequently Asked Questions&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;Question:  I need to compare two dates and return the count of a field based on the date values. For example, I have a date field in a table called last updated date. I have to check if &lt;span class="APARA2Char"&gt;&lt;span style=""&gt;trunc(last_updated_date &gt;= trun(sysdate-13).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="APARA1"&gt;Answer:  Since you are using the COUNT function which is an aggregate function, we'd recommend using a UNION query. For example, you could try the following:&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT a.code as Code, a.name as Name, count(b.Ncode)&lt;br /&gt;FROM cdmaster a, nmmaster b&lt;br /&gt;WHERE a.code = b.code&lt;br /&gt; &lt;span style=""&gt;           &lt;/span&gt;and a.status = 1&lt;br /&gt; &lt;span style=""&gt;           &lt;/span&gt;and b.status = 1&lt;br /&gt; &lt;span style=""&gt;           &lt;/span&gt;and b.Ncode &lt;&gt; 'a10'&lt;br /&gt; &lt;span style=""&gt;           &lt;/span&gt;and trunc(last_updated_date) &lt;= trunc(sysdate-13)&lt;br /&gt;group by a.code, a.name&lt;br /&gt;UNION&lt;br /&gt;SELECT a.code as Code, a.name as Name, count(b.Ncode)&lt;br /&gt;FROM cdmaster a, nmmaster b&lt;br /&gt;WHERE a.code = b.code&lt;br /&gt; &lt;span style=""&gt;           &lt;/span&gt;and a.status = 1&lt;br /&gt; &lt;span style=""&gt;           &lt;/span&gt;and b.status = 1&lt;br /&gt; &lt;span style=""&gt;           &lt;/span&gt;and b.Ncode &lt;&gt; 'a10'&lt;br /&gt; &lt;span style=""&gt;           &lt;/span&gt;and trunc(last_updated_date) &gt; trunc(sysdate-13)&lt;br /&gt;group by a.code, a.name;&lt;/p&gt;  &lt;p class="APARA1"&gt;The UNION query allows you to perform a COUNT based on one set of criteria.&lt;/p&gt;  &lt;p class="APARA2"&gt;trunc(last_updated_date) &lt;= trunc(sysdate-13)&lt;/p&gt;  &lt;p class="APARA1"&gt;As well as perform a COUNT based on another set of criteria.&lt;/p&gt;  &lt;p class="APARA2"&gt;trunc(last_updated_date) &gt; trunc(sysdate-13)&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;SQL: &lt;st1:place st="on"&gt;UNION&lt;/st1:place&gt; ALL Query&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/span&gt;&lt;/div&gt;  &lt;p class="APARA1"&gt;The UNION ALL query allows you to combine the result sets of 2 or more "select" queries. It returns all rows (even if the row exists in more than one of the "select" statements).&lt;/p&gt;  &lt;p class="APARA1"&gt;Each SQL statement within the UNION ALL query must have the same number of fields in the result sets with similar data types.&lt;/p&gt;  &lt;p class="APARA3"&gt;The syntax for a &lt;st1:place st="on"&gt;UNION&lt;/st1:place&gt; ALL query is:&lt;/p&gt;  &lt;p class="APARA2"&gt;select field1, field2, . field_n&lt;br /&gt;from tables&lt;br /&gt;&lt;st1:place st="on"&gt;UNION&lt;/st1:place&gt; ALL&lt;br /&gt;select field1, field2, . field_n&lt;br /&gt;from tables;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #1&lt;/p&gt;  &lt;p class="APARA1"&gt;The following is an example of a UNION ALL query:&lt;/p&gt;  &lt;p class="APARA2"&gt;select supplier_id&lt;br /&gt;from suppliers&lt;br /&gt;&lt;st1:place st="on"&gt;UNION&lt;/st1:place&gt; ALL&lt;br /&gt;select supplier_id&lt;br /&gt;from orders;&lt;/p&gt;  &lt;p class="APARA1"&gt;If a supplier_id appeared in both the suppliers and orders table, it would appear multiple times in your result set. The UNION ALL does not remove duplicates.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #2 - With ORDER BY Clause&lt;/p&gt;  &lt;p class="APARA1"&gt;The following is a UNION query that uses an ORDER BY clause:&lt;/p&gt;  &lt;p class="APARA2"&gt;select supplier_id, supplier_name&lt;br /&gt;from suppliers&lt;br /&gt;where supplier_id &gt; 2000&lt;br /&gt;UNION ALL&lt;br /&gt;select company_id, company_name&lt;br /&gt;from companies&lt;br /&gt;where company_id &gt; 1000&lt;br /&gt;ORDER BY 2;&lt;/p&gt;  &lt;p class="APARA1"&gt;Since the column names are different between the two "select" statements, it is more advantageous to reference the columns in the ORDER BY clause by their position in the result set. In this example, we've sorted the results by supplier_name / company_name in ascending order, as denoted by the "ORDER BY 2".&lt;/p&gt;  &lt;p class="APARA1"&gt;The supplier_name / company_name fields are in position #2 in the result set.&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;SQL: INTERSECT Query&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/span&gt;&lt;/div&gt;  &lt;p class="APARA1"&gt;The INTERSECT query allows you to return the results of 2 or more "select" queries. However, it only returns the rows selected by all queries. If a record exists in one query and not in the other, it will be omitted from the INTERSECT results.&lt;/p&gt;  &lt;p class="APARA1"&gt;Each SQL statement within the INTERSECT query must have the same number of fields in the result sets with similar data types.&lt;/p&gt;  &lt;p class="APARA3"&gt;The syntax for an INTERSECT query is:&lt;/p&gt;  &lt;p class="APARA2"&gt;select field1, field2, . field_n&lt;br /&gt;from tables&lt;br /&gt;INTERSECT&lt;br /&gt;select field1, field2, . field_n&lt;br /&gt;from tables;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #1&lt;/p&gt;  &lt;p class="APARA1"&gt;The following is an example of an INTERSECT query:&lt;/p&gt;  &lt;p class="APARA2"&gt;select supplier_id&lt;br /&gt;from suppliers&lt;br /&gt;INTERSECT&lt;br /&gt;select supplier_id&lt;br /&gt;from orders;&lt;/p&gt;  &lt;p class="APARA1"&gt;In this example, if a supplier_id appeared in both the suppliers and orders table, it would appear in your result set.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #2 - With ORDER BY Clause&lt;/p&gt;  &lt;p class="APARA1"&gt;The following is an INTERSECT query that uses an ORDER BY clause:&lt;/p&gt;  &lt;p class="APARA2"&gt;select supplier_id, supplier_name&lt;br /&gt;from suppliers&lt;br /&gt;where supplier_id &gt; 2000&lt;br /&gt;INTERSECT&lt;br /&gt;select company_id, company_name&lt;br /&gt;from companies&lt;br /&gt;where company_id &gt; 1000&lt;br /&gt;ORDER BY 2;&lt;/p&gt;  &lt;p class="APARA1"&gt;Since the column names are different between the two "select" statements, it is more advantageous to reference the columns in the ORDER BY clause by their position in the result set. In this example, we've sorted the results by supplier_name / company_name in ascending order, as denoted by the "ORDER BY 2".&lt;/p&gt;  &lt;p class="APARA1"&gt;The supplier_name / company_name fields are in position #2 in the result set.&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;SQL: MINUS Query&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;The MINUS query returns all rows in the first query that are not returned in the second query.&lt;/p&gt;  &lt;p class="APARA1"&gt;Each SQL statement within the MINUS query must have the same number of fields in the result sets with similar data types.&lt;/p&gt;  &lt;p class="APARA3"&gt;The syntax for an MINUS query is:&lt;/p&gt;  &lt;p class="APARA2"&gt;select field1, field2, . field_n&lt;br /&gt;from tables&lt;br /&gt;MINUS&lt;br /&gt;select field1, field2, . field_n&lt;br /&gt;from tables;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #1&lt;/p&gt;  &lt;p class="APARA1"&gt;The following is an example of an MINUS query:&lt;/p&gt;  &lt;p class="APARA2"&gt;select supplier_id&lt;br /&gt;from suppliers&lt;br /&gt;MINUS&lt;br /&gt;select supplier_id&lt;br /&gt;from orders;&lt;/p&gt;  &lt;p class="APARA1"&gt;In this example, the SQL would return all supplier_id values that are in the suppliers table and not in the orders table. What this means is that if a supplier_id value existed in the suppliers table and also existed in the orders table, the supplier_id value would not appear in this result set.&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #2 - With ORDER BY Clause&lt;/p&gt;  &lt;p class="APARA1"&gt;The following is an MINUS query that uses an ORDER BY clause:&lt;/p&gt;  &lt;p class="APARA2"&gt;select supplier_id, supplier_name&lt;br /&gt;from suppliers&lt;br /&gt;where supplier_id &gt; 2000&lt;br /&gt;MINUS&lt;br /&gt;select company_id, company_name&lt;br /&gt;from companies&lt;br /&gt;where company_id &gt; 1000&lt;br /&gt;ORDER BY 2;&lt;/p&gt;  &lt;p class="APARA1"&gt;Since the column names are different between the two "select" statements, it is more advantageous to reference the columns in the ORDER BY clause by their position in the result set. In this example, we've sorted the results by supplier_name / company_name in ascending order, as denoted by the "ORDER BY 2".&lt;/p&gt;  &lt;p class="APARA1"&gt;The supplier_name / company_name fields are in position #2 in the result set.&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;SQL: UPDATE Statement&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;The UPDATE statement allows you to update a single record or multiple records in a table.&lt;/p&gt;  &lt;p class="APARA3"&gt;The syntax the UPDATE statement is:&lt;/p&gt;  &lt;p class="APARA2"&gt;UPDATE table&lt;br /&gt;SET column = expression&lt;br /&gt;WHERE predicates;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #1 - Simple example&lt;/p&gt;  &lt;p class="APARA1"&gt;Let's take a look at a very simple example.&lt;/p&gt;  &lt;p class="APARA2"&gt;UPDATE supplier&lt;br /&gt;SET name = 'HP'&lt;br /&gt;WHERE name = 'IBM';&lt;/p&gt;  &lt;p class="APARA1"&gt;This statement would update all supplier names in the supplier table from IBM to HP.&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #2 - More complex example&lt;/p&gt;  &lt;p class="APARA1"&gt;You can also perform more complicated updates.&lt;/p&gt;  &lt;p class="APARA1"&gt;You may wish to update records in one table based on values in another table. Since you can't list more than one table in the UPDATE statement, you can use the EXISTS clause.&lt;/p&gt;  &lt;p class="APARA1"&gt;For example:&lt;/p&gt;  &lt;p class="APARA2"&gt;UPDATE supplier&lt;span style="font-size: 12pt; line-height: 130%;"&gt;&lt;span style=""&gt;     &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="APARA2"&gt;SET supplier_name =&lt;span style="font-size: 12pt; line-height: 130%;"&gt; &lt;/span&gt;( SELECT customer.name&lt;br /&gt;FROM customers&lt;br /&gt;WHERE customers.customer_id = supplier.supplier_id)&lt;span style="font-size: 12pt; line-height: 130%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="APARA2"&gt;WHERE EXISTS&lt;br /&gt;  &lt;span style=""&gt;          &lt;/span&gt;( SELECT customer.name&lt;br /&gt;    &lt;span style=""&gt;        &lt;/span&gt;FROM customers&lt;br /&gt;    &lt;span style=""&gt;        &lt;/span&gt;WHERE customers.customer_id = supplier.supplier_id);&lt;span style="font-size: 12pt; line-height: 130%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="APARA1"&gt;Whenever a supplier_id matched a customer_id value, the supplier_name would be overwritten to the customer name from the customers table.&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;SQL: INSERT Statement&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;The INSERT statement allows you to insert a single record or multiple records into a table.&lt;/p&gt;  &lt;p class="APARA3"&gt;The syntax for the INSERT statement is:&lt;/p&gt;  &lt;p class="APARA2"&gt;INSERT INTO table&lt;br /&gt;(column-1, column-2, ... column-n)&lt;br /&gt;VALUES&lt;br /&gt;(value-1, value-2, ... value-n);&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #1 - Simple example&lt;/p&gt;  &lt;p class="APARA1"&gt;Let's take a look at a very simple example.&lt;/p&gt;  &lt;p class="APARA2"&gt;INSERT INTO supplier&lt;br /&gt;(supplier_id, supplier_name)&lt;br /&gt;VALUES&lt;br /&gt;(24553, 'IBM');&lt;/p&gt;  &lt;p class="APARA1"&gt;This would result in one record being inserted into the supplier table. This new record would have a supplier_id of 24553 and a supplier_name of IBM.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #2 - More complex example&lt;/p&gt;  &lt;p class="APARA1"&gt;You can also perform more complicated inserts using sub-selects.&lt;/p&gt;  &lt;p class="APARA1"&gt;For example:&lt;/p&gt;  &lt;p class="APARA2"&gt;INSERT INTO supplier&lt;br /&gt;(supplier_id, supplier_name)&lt;br /&gt;SELECT account_no, name&lt;br /&gt;FROM customers&lt;br /&gt;WHERE city = '&lt;st1:place st="on"&gt;&lt;st1:city st="on"&gt;Newark&lt;/st1:City&gt;&lt;/st1:place&gt;';&lt;/p&gt;  &lt;p class="APARA1"&gt;By placing a "select" in the insert statement, you can perform multiples inserts quickly.&lt;/p&gt;  &lt;p class="APARA1"&gt;With this type of insert, you may wish to check for the number of rows being inserted. You can determine the number of rows that will be inserted by running the following SQL statement &lt;b&gt;before&lt;/b&gt; performing the insert.&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT count(*)&lt;br /&gt;FROM customers&lt;br /&gt;WHERE city = '&lt;st1:place st="on"&gt;&lt;st1:city st="on"&gt;Newark&lt;/st1:City&gt;&lt;/st1:place&gt;';&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Frequently Asked Questions&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;&lt;b&gt;Question&lt;/b&gt;:  I am setting up a database with clients. I know that you use the "insert" statement to insert information in the database, but how do I make sure that I do not enter the same client information again?&lt;/p&gt;  &lt;p class="APARA1"&gt;&lt;b&gt;Answer&lt;/b&gt;:  You can make sure that you do not insert duplicate information by using the EXISTS condition.&lt;/p&gt;  &lt;p class="APARA1"&gt;For example, if you had a table named &lt;i&gt;clients&lt;/i&gt; with a primary key of &lt;i&gt;client_id&lt;/i&gt;, you could use the following statement:&lt;/p&gt;  &lt;p class="APARA2"&gt;INSERT INTO clients&lt;br /&gt;(client_id, client_name, client_type)&lt;br /&gt;SELECT supplier_id, supplier_name, 'advertising'&lt;br /&gt;FROM suppliers&lt;br /&gt;WHERE not exists (select * from clients&lt;br /&gt;where clients.client_id = suppliers.supplier_id);&lt;/p&gt;  &lt;p class="APARA1"&gt;This statement inserts multiple records with a subselect.&lt;/p&gt;  &lt;p class="APARA1"&gt;If you wanted to insert a single record, you could use the following statement:&lt;/p&gt;  &lt;p class="APARA2"&gt;INSERT INTO clients&lt;br /&gt;(client_id, client_name, client_type)&lt;br /&gt;SELECT 10345, 'IBM', 'advertising'&lt;br /&gt;FROM dual&lt;br /&gt;WHERE not exists (select * from clients&lt;br /&gt;where clients.client_id = 10345);&lt;/p&gt;  &lt;p class="APARA1"&gt;The use of the &lt;b&gt;dual&lt;/b&gt; table allows you to enter your values in a select statement, even though the values are not currently stored in a table.&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;SQL: DELETE Statement&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;The DELETE statement allows you to delete a single record or multiple records from a table.&lt;/p&gt;  &lt;p class="APARA3"&gt;The syntax for the DELETE statement is:&lt;/p&gt;  &lt;p class="APARA2"&gt;DELETE FROM table&lt;br /&gt;WHERE predicates;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #1 - Simple example&lt;/p&gt;  &lt;p class="APARA1"&gt;Let's take a look at a simple example:&lt;/p&gt;  &lt;p class="APARA2"&gt;DELETE FROM supplier&lt;br /&gt;WHERE supplier_name = 'IBM';&lt;/p&gt;  &lt;p class="APARA1"&gt;This would delete all records from the supplier table where the supplier_name is IBM.&lt;/p&gt;  &lt;p class="APARA1"&gt;You may wish to check for the number of rows that will be deleted. You can determine the number of rows that will be deleted by running the following SQL statement &lt;b&gt;before&lt;/b&gt; performing the delete.&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT count(*)&lt;br /&gt;FROM supplier&lt;br /&gt;WHERE supplier_name = 'IBM';&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Example #2 - More complex example&lt;/p&gt;  &lt;p class="APARA1"&gt;You can also perform more complicated deletes.&lt;/p&gt;  &lt;p class="APARA1"&gt;You may wish to delete records in one table based on values in another table. Since you can't list more than one table in the FROM clause when you are performing a delete, you can use the EXISTS clause.&lt;/p&gt;  &lt;p class="APARA1"&gt;For example:&lt;/p&gt;  &lt;p class="APARA2"&gt;DELETE FROM supplier&lt;br /&gt;WHERE EXISTS&lt;br /&gt;  &lt;span style=""&gt;          &lt;/span&gt;( select customer.name&lt;br /&gt;     &lt;span style=""&gt;       &lt;/span&gt;from customer&lt;br /&gt;     &lt;span style=""&gt;       &lt;/span&gt;where customer.customer_id = supplier.supplier_id&lt;br /&gt;     &lt;span style=""&gt;       &lt;/span&gt;and customer.customer_name = 'IBM' );&lt;/p&gt;  &lt;p class="APARA1"&gt;This would delete all records in the supplier table where there is a record in the customer table whose name is IBM, and the customer_id is the same as the supplier_id.&lt;/p&gt;  &lt;p class="APARA1"&gt;Learn more about the &lt;a href="http://www.techonthenet.com/sql/exists.php"&gt;EXISTS condition&lt;/a&gt;.&lt;/p&gt;  &lt;p class="APARA1"&gt;If you wish to determine the number of rows that will be deleted, you can run the following SQL statement &lt;b&gt;before&lt;/b&gt; performing the delete.&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT count(*) FROM supplier&lt;br /&gt;WHERE EXISTS&lt;br /&gt;  &lt;span style=""&gt;          &lt;/span&gt;( select customer.name&lt;br /&gt;     &lt;span style=""&gt;       &lt;/span&gt;from customer&lt;br /&gt;     &lt;span style=""&gt;       &lt;/span&gt;where customer.customer_id = supplier.supplier_id&lt;br /&gt;     &lt;span style=""&gt;       &lt;/span&gt;and customer.customer_name = 'IBM' );&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Frequently Asked Questions&lt;/p&gt;  &lt;div class="APARA1" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;&lt;b&gt;Question&lt;/b&gt;:  How would I write an SQL statement to delete all records in TableA whose data in field1 &amp;amp; field2 DO NOT match the data in fieldx &amp;amp; fieldz of TableB?&lt;/p&gt;  &lt;p class="APARA1"&gt;&lt;b&gt;Answer&lt;/b&gt;:  You could try something like this:&lt;/p&gt;  &lt;p class="APARA2"&gt;DELETE FROM TableA&lt;br /&gt;WHERE NOT EXISTS&lt;br /&gt;  &lt;span style=""&gt;          &lt;/span&gt;( select *&lt;br /&gt;     &lt;span style=""&gt;       &lt;/span&gt;from TableB&lt;br /&gt;     &lt;span style=""&gt;       &lt;/span&gt;where TableA .field1 = TableB.fieldx&lt;br /&gt;     &lt;span style=""&gt;       &lt;/span&gt;and TableA .field2 = TableB.fieldz );&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;SQL Topics: Tables&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p style="margin-left: 2in;"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/sql/tables/create_table.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;CREATE Table&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-left: 2in;"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/sql/tables/create_table2.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;CREATE Table from another table&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 2in;"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-left: 2in;"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/sql/tables/alter_table.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;ALTER Table&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-left: 2in;"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/sql/tables/drop_table.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;DROP Table&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 2in;"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-left: 2in;"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/sql/tables/global_temp.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;Global Temporary tables&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-left: 2in;"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;a href="http://www.techonthenet.com/sql/tables/local_temp.php"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;Local Temporary tables&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;SQL: CREATE Table&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;The basic syntax for a CREATE TABLE is:&lt;/p&gt;  &lt;p class="APARA2"&gt;CREATE TABLE table_name&lt;br /&gt;(column1 datatype null/not null,&lt;br /&gt; column2 datatype null/not null,&lt;br /&gt;  ...&lt;br /&gt;);&lt;/p&gt;  &lt;p class="APARA1"&gt;Each column must have a datatype. The column should either be defined as "null" or "not null" and if this value is left blank, the database assumes "null" as the default.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="APARA1"&gt;For example:&lt;/p&gt;  &lt;p class="APARA2"&gt;CREATE TABLE supplier&lt;span style="font-size: 12pt; line-height: 130%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="APARA2"&gt;(&lt;span style="font-size: 12pt; line-height: 130%;"&gt; &lt;/span&gt;supplier_id&lt;span style="font-size: 12pt; line-height: 130%;"&gt; &lt;/span&gt;numeric(10)&lt;span style="font-size: 12pt; line-height: 130%;"&gt; &lt;/span&gt;not null,&lt;span style="font-size: 12pt; line-height: 130%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="APARA2"&gt;&lt;span style="font-size: 12pt; line-height: 130%;"&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;/span&gt;supplier_name&lt;span style="font-size: 12pt; line-height: 130%;"&gt; &lt;/span&gt;varchar2(50)&lt;span style="font-size: 12pt; line-height: 130%;"&gt; &lt;/span&gt;not null,&lt;span style="font-size: 12pt; line-height: 130%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="APARA2"&gt;&lt;span style="font-size: 12pt; line-height: 130%;"&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;/span&gt;contact_name&lt;span style="font-size: 12pt; line-height: 130%;"&gt; &lt;/span&gt;varchar2(50)&lt;span style="font-size: 12pt; line-height: 130%;"&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="APARA2"&gt;)&lt;span style=""&gt;                                   &lt;/span&gt;&lt;span style="font-size: 10pt; line-height: 130%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;SQL: CREATE Table from another table&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;You can also create a table from an existing table by copying the existing table's columns.&lt;/p&gt;  &lt;p class="APARA1"&gt;It is important to note that when creating a table in this way, the new table will be populated with the records from the existing table (based on the SELECT Statement).&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;Syntax #1 - Copying all columns from another table&lt;/p&gt;  &lt;p class="APARA3"&gt;The basic syntax is:&lt;/p&gt;  &lt;p class="APARA2"&gt;CREATE TABLE new_table&lt;br /&gt; &lt;span style=""&gt;           &lt;/span&gt;AS (SELECT * FROM old_table);&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="APARA1"&gt;For example:&lt;/p&gt;  &lt;p class="APARA2"&gt;CREATE TABLE suppliers&lt;br /&gt;  &lt;span style=""&gt;          &lt;/span&gt;AS (SELECT *&lt;br /&gt;         &lt;span style=""&gt;               &lt;/span&gt;FROM companies&lt;br /&gt;         &lt;span style=""&gt;               &lt;/span&gt;WHERE id &gt; 1000);&lt;/p&gt;  &lt;p class="APARA1"&gt;This would create a new table called &lt;b&gt;suppliers&lt;/b&gt; that included all columns from the &lt;b&gt;companies&lt;/b&gt; table.&lt;/p&gt;  &lt;p class="APARA1"&gt;If there were records in the &lt;b&gt;companies&lt;/b&gt; table, then the new suppliers table would also contain the records selected by the SELECT statement.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;Syntax #2 - Copying selected columns from another table&lt;/p&gt;  &lt;p class="APARA3"&gt;The basic syntax is:&lt;/p&gt;  &lt;p class="APARA2"&gt;CREATE TABLE new_table&lt;br /&gt;  &lt;span style=""&gt;          &lt;/span&gt;AS (SELECT column_1, column2, ... column_n FROM old_table);&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="APARA1"&gt;For example:&lt;/p&gt;  &lt;p class="APARA2"&gt;CREATE TABLE suppliers&lt;br /&gt;  &lt;span style=""&gt;          &lt;/span&gt;AS (SELECT id, address, city, state, zip&lt;br /&gt;          &lt;span style=""&gt;              &lt;/span&gt;FROM companies&lt;br /&gt;          &lt;span style=""&gt;              &lt;/span&gt;WHERE id &gt; 1000);&lt;/p&gt;  &lt;p class="APARA1"&gt;This would create a new table called &lt;b&gt;suppliers&lt;/b&gt;, but the new table would only include the specified columns from the &lt;b&gt;companies&lt;/b&gt; table.&lt;/p&gt;  &lt;p class="APARA1"&gt;Again, if there were records in the &lt;b&gt;companies&lt;/b&gt; table, then the new suppliers table would also contain the records selected by the SELECT statement.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;Syntax #3 - Copying selected columns from multiple tables&lt;/p&gt;  &lt;p class="APARA1"&gt;The basic syntax is:&lt;/p&gt;  &lt;p class="APARA2"&gt;CREATE TABLE new_table&lt;br /&gt;  &lt;span style=""&gt;          &lt;/span&gt;AS (SELECT column_1, column2, ... column_n&lt;br /&gt;          &lt;span style=""&gt;              &lt;/span&gt;FROM old_table_1, old_table_2, ... old_table_n);&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="APARA1"&gt;For example:&lt;/p&gt;  &lt;p class="APARA2"&gt;CREATE TABLE suppliers&lt;br /&gt;  &lt;span style=""&gt;          &lt;/span&gt;AS (SELECT companies.id, companies.address, categories.cat_type&lt;br /&gt;          &lt;span style=""&gt;              &lt;/span&gt;FROM companies, categories&lt;br /&gt;          &lt;span style=""&gt;              &lt;/span&gt;WHERE companies.id = categories.id&lt;br /&gt;          &lt;span style=""&gt;              &lt;/span&gt;AND companies.id &gt; 1000);&lt;/p&gt;  &lt;p class="APARA1"&gt;This would create a new table called &lt;b&gt;suppliers&lt;/b&gt; based on columns from both the &lt;b&gt;companies&lt;/b&gt; and &lt;b&gt;categories&lt;/b&gt; tables.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="APARA1"&gt;&lt;i&gt;Acknowledgements&lt;/i&gt;: We'd like to thank Dave M. for contributing to this solution!&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;SQL: ALTER Table&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;The ALTER TABLE command allows you to add, modify, or drop a column from an existing table.&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;Adding column(s) to a table&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Syntax #1&lt;/p&gt;  &lt;p class="APARA1"&gt;To add a column to an existing table, the ALTER TABLE syntax is:&lt;/p&gt;  &lt;p class="APARA2"&gt;ALTER TABLE table_name&lt;br /&gt; &lt;span style=""&gt;           &lt;/span&gt;ADD column_name column-definition;&lt;/p&gt;  &lt;p class="APARA1"&gt;For example:&lt;/p&gt;  &lt;p class="APARA2"&gt;ALTER TABLE supplier&lt;br /&gt; &lt;span style=""&gt;           &lt;/span&gt;ADD supplier_name  varchar2(50);&lt;/p&gt;  &lt;p class="APARA1"&gt;This will add a column called &lt;i&gt;supplier_name&lt;/i&gt; to the &lt;i&gt;supplier&lt;/i&gt; table.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Syntax #2&lt;/p&gt;  &lt;p class="APARA1"&gt;To add multiple columns to an existing table, the ALTER TABLE syntax is:&lt;/p&gt;  &lt;p class="APARA2"&gt;ALTER TABLE table_name&lt;span style="font-size: 12pt; line-height: 130%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="APARA2"&gt;ADD (&lt;span style=""&gt;  &lt;/span&gt;column_1&lt;span style="font-size: 12pt; line-height: 130%;"&gt; &lt;/span&gt;column-definition,&lt;span style="font-size: 12pt; line-height: 130%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="APARA2"&gt;column_2&lt;span style="font-size: 12pt; line-height: 130%;"&gt; &lt;/span&gt;column-definition,&lt;span style="font-size: 12pt; line-height: 130%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="APARA2"&gt;&lt;span style=""&gt;            &lt;/span&gt;...&lt;span style=""&gt;         &lt;/span&gt;&lt;/p&gt;  &lt;p class="APARA2"&gt;&lt;span style="font-size: 12pt; line-height: 130%;"&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;/span&gt;column_n&lt;span style="font-size: 12pt; line-height: 130%;"&gt;&lt;span style=""&gt;       &lt;/span&gt;&lt;/span&gt;column_definition );&lt;span style="font-size: 12pt; line-height: 130%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="APARA1"&gt;For example:&lt;/p&gt;  &lt;p class="APARA2"&gt;ALTER TABLE supplier&lt;span style="font-size: 12pt; line-height: 130%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="APARA2"&gt;ADD (supplier_name&lt;span style="font-size: 12pt; line-height: 130%;"&gt; &lt;/span&gt;varchar2(50),&lt;span style="font-size: 12pt; line-height: 130%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="APARA2"&gt;&lt;span style="font-size: 12pt; line-height: 130%;"&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;/span&gt;city&lt;span style="font-size: 12pt; line-height: 130%;"&gt; &lt;/span&gt;varchar2(45) );&lt;span style="font-size: 12pt; line-height: 130%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="APARA1"&gt;This will add two columns (&lt;i&gt;supplier_name&lt;/i&gt; and &lt;i&gt;city&lt;/i&gt;) to the &lt;i&gt;supplier&lt;/i&gt; table.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;Modifying column(s) in a table&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Syntax #1&lt;/p&gt;  &lt;p class="APARA1"&gt;To modify a column in an existing table, the ALTER TABLE syntax is:&lt;/p&gt;  &lt;p class="APARA2"&gt;ALTER TABLE table_name&lt;br /&gt; &lt;span style=""&gt;           &lt;/span&gt;MODIFY column_name column_type;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;For example:&lt;/p&gt;  &lt;p class="APARA2"&gt;ALTER TABLE supplier&lt;br /&gt; &lt;span style=""&gt;           &lt;/span&gt;MODIFY supplier_name   varchar2(100)     not null;&lt;/p&gt;  &lt;p class="APARA1"&gt;This will modify the column called &lt;i&gt;supplier_name&lt;/i&gt; to be a data type of varchar2(100) and force the column to not allow null values.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Syntax #2&lt;/p&gt;  &lt;p class="APARA1"&gt;To modify multiple columns in an existing table, the ALTER TABLE syntax is:&lt;/p&gt;  &lt;p class="APARA2"&gt;ALTER TABLE table_name&lt;span style="font-size: 12pt; line-height: 130%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="APARA2"&gt;MODIFY (column_1&lt;span style="font-size: 12pt; line-height: 130%;"&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;/span&gt;column_type,&lt;span style="font-size: 12pt; line-height: 130%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="APARA2"&gt;&lt;span style="font-size: 12pt; line-height: 130%;"&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;/span&gt;column_2&lt;span style="font-size: 12pt; line-height: 130%;"&gt; &lt;/span&gt;column_type,&lt;span style="font-size: 12pt; line-height: 130%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="APARA2"&gt;&lt;span style=""&gt;            &lt;/span&gt;...&lt;span style=""&gt;         &lt;/span&gt;&lt;/p&gt;  &lt;p class="APARA2"&gt;&lt;span style="font-size: 12pt; line-height: 130%;"&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;/span&gt;column_n&lt;span style="font-size: 12pt; line-height: 130%;"&gt; &lt;/span&gt;column_type );&lt;span style="font-size: 12pt; line-height: 130%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="APARA1"&gt;For example:&lt;/p&gt;  &lt;p class="MsoNormal"&gt;ALTER TABLE supplier&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;MODIFY (supplier_name&lt;span style="font-size: 12pt;"&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;/span&gt;varchar2(100)&lt;span style="font-size: 12pt;"&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;/span&gt;not null,&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 12pt;"&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;/span&gt;city&lt;span style="font-size: 12pt;"&gt; &lt;/span&gt;varchar2(75));&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="APARA1"&gt;This will modify both the &lt;i&gt;supplier_name&lt;/i&gt; and &lt;i&gt;city&lt;/i&gt; columns.&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;Drop column(s) in a table&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Syntax #1&lt;/p&gt;  &lt;p class="APARA1"&gt;To drop a column in an existing table, the ALTER TABLE syntax is:&lt;/p&gt;  &lt;p class="APARA2"&gt;ALTER TABLE table_name&lt;br /&gt; &lt;span style=""&gt;           &lt;/span&gt;DROP COLUMN column_name;&lt;/p&gt;  &lt;p class="APARA1"&gt;For example:&lt;/p&gt;  &lt;p class="APARA2"&gt;ALTER TABLE supplier&lt;br /&gt; &lt;span style=""&gt;           &lt;/span&gt;DROP COLUMN supplier_name;&lt;/p&gt;  &lt;p&gt;This will drop the column called &lt;i&gt;supplier_name&lt;/i&gt; from the table called &lt;i&gt;supplier&lt;/i&gt;.&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;Rename column(s) in a table&lt;br /&gt;(NEW in Oracle 9i Release 2)&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Syntax #1&lt;/p&gt;  &lt;p class="APARA1"&gt;Starting in Oracle 9i Release 2, you can now rename a column.&lt;/p&gt;  &lt;p class="APARA1"&gt;To rename a column in an existing table, the ALTER TABLE syntax is:&lt;/p&gt;  &lt;p class="APARA2"&gt;ALTER TABLE table_name&lt;br /&gt; &lt;span style=""&gt;           &lt;/span&gt;RENAME COLUMN old_name to new_name;&lt;/p&gt;  &lt;p class="APARA1"&gt;For example:&lt;/p&gt;  &lt;p class="APARA2"&gt;ALTER TABLE supplier&lt;br /&gt; &lt;span style=""&gt;           &lt;/span&gt;RENAME COLUMN supplier_name to sname;&lt;/p&gt;  &lt;p class="APARA1"&gt;This will rename the column called &lt;i&gt;supplier_name&lt;/i&gt; to &lt;i&gt;sname&lt;/i&gt;.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="APARA1"&gt;&lt;i&gt;&lt;u&gt;Acknowledgements&lt;/u&gt;&lt;/i&gt;: Thanks to Dave M., Craig A., and Susan W. for contributing to this solution!&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;SQL: DROP Table&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA3"&gt;The basic syntax for a DROP TABLE is:&lt;/p&gt;  &lt;p class="APARA2"&gt;DROP TABLE table_name;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="APARA1"&gt;For example:&lt;/p&gt;  &lt;p class="APARA2"&gt;DROP TABLE supplier;&lt;/p&gt;  &lt;p class="APARA1"&gt;This would drop table called &lt;i&gt;supplier&lt;/i&gt;.&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;SQL: Global Temporary tables&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;Global temporary tables are distinct within SQL sessions.&lt;/p&gt;  &lt;p class="APARA3"&gt;The basic syntax is:&lt;/p&gt;  &lt;p class="APARA2"&gt;CREATE GLOBAL TEMPORARY TABLE table_name ( ...);&lt;/p&gt;  &lt;p class="APARA1"&gt;For example:&lt;/p&gt;  &lt;p class="APARA2"&gt;CREATE GLOBAL TEMPORARY TABLE supplier&lt;span style="font-size: 12pt; line-height: 130%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="APARA2"&gt;(&lt;span style="font-size: 12pt; line-height: 130%;"&gt;&lt;span style=""&gt;           &lt;/span&gt;&lt;/span&gt;supplier_id&lt;span style="font-size: 12pt; line-height: 130%;"&gt;&lt;span style=""&gt;    &lt;/span&gt;&lt;/span&gt;numeric(10)&lt;span style="font-size: 12pt; line-height: 130%;"&gt;&lt;span style=""&gt;   &lt;/span&gt;&lt;/span&gt;not null,&lt;span style="font-size: 12pt; line-height: 130%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="APARA2"&gt;&lt;span style="font-size: 12pt; line-height: 130%;"&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;/span&gt;supplier_name&lt;span style="font-size: 12pt; line-height: 130%;"&gt;&lt;span style=""&gt;          &lt;/span&gt;&lt;/span&gt;varchar2(50)&lt;span style="font-size: 12pt; line-height: 130%;"&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;/span&gt;not null,&lt;span style="font-size: 12pt; line-height: 130%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="APARA2"&gt;&lt;span style="font-size: 12pt; line-height: 130%;"&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;/span&gt;contact_name&lt;span style="font-size: 12pt; line-height: 130%;"&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;/span&gt;varchar2(50)&lt;span style="font-size: 12pt; line-height: 130%;"&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="APARA2"&gt;)&lt;span style=""&gt;                                   &lt;/span&gt;&lt;/p&gt;  &lt;p class="APARA1"&gt;This would create a global temporary table called &lt;i&gt;supplier&lt;/i&gt; .&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;SQL: Local Temporary tables&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;Local temporary tables are distinct within modules and embedded SQL programs within SQL sessions.&lt;/p&gt;  &lt;p class="APARA3"&gt;The basic syntax is:&lt;/p&gt;  &lt;p class="APARA2"&gt;DECLARE LOCAL TEMPORARY TABLE table_name ( ...);&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;SQL: VIEWS&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;A view is, in essence, a virtual table. It does not physically exist. Rather, it is created by a query joining one or more tables.&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;Creating a VIEW&lt;/p&gt;  &lt;p class="APARA3"&gt;The syntax for creating a VIEW is:&lt;/p&gt;  &lt;p class="APARA2"&gt;CREATE VIEW view_name AS&lt;br /&gt;SELECT columns&lt;br /&gt;FROM table&lt;br /&gt;WHERE predicates;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="APARA1"&gt;For example:&lt;/p&gt;  &lt;p class="APARA2"&gt;CREATE VIEW sup_orders AS&lt;br /&gt;SELECT supplier.supplier_id, orders.quantity, orders.price&lt;br /&gt;FROM supplier, orders&lt;br /&gt;WHERE supplier.supplier_id = orders.supplier_id&lt;br /&gt;and supplier.supplier_name = 'IBM';&lt;/p&gt;  &lt;p class="APARA1"&gt;This would create a virtual table based on the result set of the select statement. You can now query the view as follows:&lt;/p&gt;  &lt;p class="APARA2"&gt;SELECT *&lt;br /&gt;FROM sup_orders;&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;Updating a VIEW&lt;/p&gt;  &lt;p class="APARA1"&gt;You can update a VIEW without dropping it by using the following syntax:&lt;/p&gt;  &lt;p class="APARA2"&gt;CREATE OR REPLACE VIEW view_name AS&lt;br /&gt;SELECT columns&lt;br /&gt;FROM table&lt;br /&gt;WHERE predicates;&lt;/p&gt;  &lt;p class="APARA1"&gt;For example:&lt;/p&gt;  &lt;p class="APARA2"&gt;CREATE or REPLACE VIEW sup_orders AS&lt;br /&gt;SELECT supplier.supplier_id, orders.quantity, orders.price&lt;br /&gt;FROM supplier, orders&lt;br /&gt;WHERE supplier.supplier_id = orders.supplier_id&lt;br /&gt;and supplier.supplier_name = 'Microsoft';&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;Dropping a VIEW&lt;/p&gt;  &lt;p class="APARA3"&gt;The syntax for dropping a VIEW is:&lt;/p&gt;  &lt;p class="APARA2"&gt;DROP VIEW view_name;&lt;/p&gt;  &lt;p class="APARA1"&gt;For example:&lt;/p&gt;  &lt;p class="APARA2"&gt;DROP VIEW sup_orders; &lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;Frequently Asked Questions&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p&gt;&lt;b&gt;Question&lt;/b&gt;:  Can you update the data in a view?&lt;/p&gt;  &lt;p&gt;&lt;b&gt;Answer&lt;/b&gt;:  A view is created by joining one or more tables. When you update record(s) in a view, it updates the records in the underlying tables that make up the view.&lt;/p&gt;  &lt;p&gt;So, yes, you can update the data in a view providing you have the proper privileges to the underlying tables.&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;Oracle/PLSQL: Data Types&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;The following is a list of datatypes available in Oracle and PLSQL. We've tried to differentiate between datatypes available in Oracle 8i versus Oracle 9i.&lt;/p&gt;  &lt;table class="MsoNormalTable" style="width: 99%;" border="1" cellpadding="0" cellspacing="0" width="99%"&gt;  &lt;tbody&gt;&lt;tr style=""&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;b&gt;&lt;span style="color: navy;"&gt;Data Type&lt;br /&gt;  Syntax&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="font-size: 12pt; color: navy;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;b&gt;Oracle 8i&lt;/b&gt;&lt;b&gt;&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;b&gt;Oracle 9i&lt;/b&gt;&lt;b&gt;&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;b&gt;Explanation&lt;br /&gt;  (if applicable)&lt;/b&gt;&lt;b&gt;&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="color: navy;"&gt;dec(p, s)&lt;/span&gt;&lt;span style="font-size: 12pt; color: navy;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;The maximum precision is 38 digits.&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;The maximum precision is 38 digits.&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Where &lt;b&gt;&lt;i&gt;p&lt;/i&gt;&lt;/b&gt; is the precision and &lt;b&gt;&lt;i&gt;s&lt;/i&gt;&lt;/b&gt;   is the scale. &lt;/p&gt;   &lt;p&gt;For example, dec(3,1) is a number that has 2 digits before the decimal and   1 digit after the decimal.&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="color: navy;"&gt;decimal(p, s)&lt;/span&gt;&lt;span style="font-size: 12pt; color: navy;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;The maximum precision is 38 digits.&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;The maximum precision is 38 digits.&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Where &lt;b&gt;&lt;i&gt;p&lt;/i&gt;&lt;/b&gt; is the precision and &lt;b&gt;&lt;i&gt;s&lt;/i&gt;&lt;/b&gt;   is the scale. &lt;/p&gt;   &lt;p&gt;For example, decimal(3,1) is a number that has 2 digits before the decimal   and 1 digit after the decimal.&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="color: navy;"&gt;double precision&lt;/span&gt;&lt;span style="font-size: 12pt; color: navy;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt; &lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt; &lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt; &lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="color: navy;"&gt;float&lt;/span&gt;&lt;span style="font-size: 12pt; color: navy;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt; &lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt; &lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt; &lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="color: navy;"&gt;int&lt;/span&gt;&lt;span style="font-size: 12pt; color: navy;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt; &lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt; &lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt; &lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="color: navy;"&gt;integer&lt;/span&gt;&lt;span style="font-size: 12pt; color: navy;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt; &lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt; &lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt; &lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="color: navy;"&gt;numeric(p, s)&lt;/span&gt;&lt;span style="font-size: 12pt; color: navy;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;The maximum precision is 38 digits.&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;The maximum precision is 38 digits.&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Where &lt;b&gt;&lt;i&gt;p&lt;/i&gt;&lt;/b&gt; is the precision and &lt;b&gt;&lt;i&gt;s&lt;/i&gt;&lt;/b&gt;   is the scale. &lt;/p&gt;   &lt;p&gt;For example, numeric(7,2) is a number that has 5 digits before the decimal   and 2 digits after the decimal.&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="color: navy;"&gt;number(p, s)&lt;/span&gt;&lt;span style="font-size: 12pt; color: navy;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;The maximum precision is 38 digits.&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;The maximum precision is 38 digits.&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Where &lt;b&gt;&lt;i&gt;p&lt;/i&gt;&lt;/b&gt; is the precision and &lt;b&gt;&lt;i&gt;s&lt;/i&gt;&lt;/b&gt;   is the scale. &lt;/p&gt;   &lt;p&gt;For example, number(7,2) is a number that has 5 digits before the decimal   and 2 digits after the decimal.&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="color: navy;"&gt;real&lt;/span&gt;&lt;span style="font-size: 12pt; color: navy;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt; &lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt; &lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt; &lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="color: navy;"&gt;smallint&lt;/span&gt;&lt;span style="font-size: 12pt; color: navy;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt; &lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt; &lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt; &lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="color: navy;"&gt;char (size)&lt;/span&gt;&lt;span style="font-size: 12pt; color: navy;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Up to 32767 bytes in PLSQL. &lt;/p&gt;   &lt;p&gt;Up to 2000 bytes in Oracle 8i.&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Up to 32767 bytes in PLSQL. &lt;/p&gt;   &lt;p&gt;Up to 2000 bytes in Oracle 9i.&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Where &lt;b&gt;&lt;i&gt;size&lt;/i&gt;&lt;/b&gt; is the number of characters to   store. Fixed-length strings. Space padded.&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="color: navy;"&gt;varchar2 (size)&lt;/span&gt;&lt;span style="font-size: 12pt; color: navy;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Up to 32767 bytes in PLSQL. &lt;/p&gt;   &lt;p&gt;Up to 4000 bytes in Oracle 8i.&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Up to 32767 bytes in PLSQL. &lt;/p&gt;   &lt;p&gt;Up to 4000 bytes in Oracle 9i.&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Where &lt;b&gt;&lt;i&gt;size&lt;/i&gt;&lt;/b&gt; is the number of characters to   store. Variable-length strings.&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="color: navy;"&gt;long&lt;/span&gt;&lt;span style="font-size: 12pt; color: navy;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Up to 2 gigabytes.&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Up to 2 gigabytes.&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Variable-length strings. (backward compatible)&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="color: navy;"&gt;raw&lt;/span&gt;&lt;span style="font-size: 12pt; color: navy;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Up to 32767 bytes in PLSQL. &lt;/p&gt;   &lt;p&gt;Up to 2000 bytes in Oracle 8i.&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Up to 32767 bytes in PLSQL. &lt;/p&gt;   &lt;p&gt;Up to 2000 bytes in Oracle 9i.&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Variable-length binary strings&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="color: navy;"&gt;long raw&lt;/span&gt;&lt;span style="font-size: 12pt; color: navy;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Up to 2 gigabytes.&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Up to 2 gigabytes.&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Variable-length binary strings. (backward compatible)&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="color: navy;"&gt;date&lt;/span&gt;&lt;span style="font-size: 12pt; color: navy;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;A date between &lt;st1:date month="1" day="1" year="4712" st="on"&gt;Jan 1, 4712 BC&lt;/st1:date&gt; and &lt;st1:date month="12" day="31" year="9999" st="on"&gt;Dec 31, 9999 AD&lt;/st1:date&gt;.&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;A date between &lt;st1:date month="1" day="1" year="4712" st="on"&gt;Jan 1, 4712 BC&lt;/st1:date&gt; and &lt;st1:date month="12" day="31" year="9999" st="on"&gt;Dec 31, 9999 AD&lt;/st1:date&gt;.&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt; &lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="color: navy;"&gt;timestamp (&lt;i&gt;fractional seconds   precision&lt;/i&gt;)&lt;/span&gt;&lt;span style="font-size: 12pt; color: navy;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Not supported in Oracle 8i.&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;b&gt;&lt;i&gt;fractional seconds precision&lt;/i&gt;&lt;/b&gt; must be a   number between 0 and 9. (default is 6)&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Includes year, month, day, hour, minute, and seconds. &lt;/p&gt;   &lt;p&gt;For example:&lt;br /&gt;  timestamp(6)&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="color: navy;"&gt;timestamp (&lt;i&gt;fractional seconds   precision&lt;/i&gt;) with time zone&lt;/span&gt;&lt;span style="font-size: 12pt; color: navy;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Not supported in Oracle 8i.&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;b&gt;&lt;i&gt;fractional seconds precision&lt;/i&gt;&lt;/b&gt; must be a   number between 0 and 9. (default is 6)&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Includes year, month, day, hour, minute, and seconds; with   a time zone displacement value. &lt;/p&gt;   &lt;p&gt;For example:&lt;br /&gt;  timestamp(5) with time zone&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="color: navy;"&gt;timestamp (&lt;i&gt;fractional seconds   precision&lt;/i&gt;) with local time zone&lt;/span&gt;&lt;span style="font-size: 12pt; color: navy;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Not supported in Oracle 8i.&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;b&gt;&lt;i&gt;fractional seconds precision&lt;/i&gt;&lt;/b&gt; must be a   number between 0 and 9. (default is 6)&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Includes year, month, day, hour, minute, and seconds; with   a time zone expressed as the session time zone. &lt;/p&gt;   &lt;p&gt;For example:&lt;br /&gt;  timestamp(4) with local time zone&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="color: navy;"&gt;interval year&lt;br /&gt;  (&lt;i&gt;year precision&lt;/i&gt;)&lt;br /&gt;  to month&lt;/span&gt;&lt;span style="font-size: 12pt; color: navy;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Not supported in Oracle 8i.&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;b&gt;&lt;i&gt;year precision&lt;/i&gt;&lt;/b&gt; must be a number between 0   and 9. (default is 2)&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Time period stored in years and months. &lt;/p&gt;   &lt;p&gt;For example:&lt;br /&gt;  interval year(4) to month&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="color: navy;"&gt;interval day&lt;br /&gt;  (&lt;i&gt;day precision&lt;/i&gt;)&lt;br /&gt;  to second (&lt;i&gt;fractional seconds precision&lt;/i&gt;)&lt;/span&gt;&lt;span style="font-size: 12pt; color: navy;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Not supported in Oracle 8i.&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;b&gt;&lt;i&gt;day precision&lt;/i&gt;&lt;/b&gt; must be a number between 0 and   9. (default is 2) &lt;/p&gt;   &lt;p&gt;&lt;b&gt;&lt;i&gt;fractional seconds precision&lt;/i&gt;&lt;/b&gt; must be a number between 0 and   9. (default is 6)&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Time period stored in days, hours, minutes, and seconds. &lt;/p&gt;   &lt;p&gt;For example:&lt;br /&gt;  interval day(2) to second(6)&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="color: navy;"&gt;rowid&lt;/span&gt;&lt;span style="font-size: 12pt; color: navy;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;The format of the rowid is:&lt;br /&gt;  BBBBBBB.RRRR.FFFFF &lt;/p&gt;   &lt;p&gt;Where BBBBBBB is the block in the database file;&lt;br /&gt;  RRRR is the row in the block;&lt;br /&gt;  FFFFF is the database file.&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;The format of the rowid is: BBBBBBB.RRRR.FFFFF &lt;/p&gt;   &lt;p&gt;Where BBBBBBB is the block in the database file;&lt;br /&gt;  RRRR is the row in the block;&lt;br /&gt;  FFFFF is the database file.&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Fixed-length binary data. Every record in the database has   a physical address or rowid.&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="color: navy;"&gt;urowid [size]&lt;/span&gt;&lt;span style="font-size: 12pt; color: navy;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Up to 2000 bytes.&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Up to 2000 bytes.&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Universal rowid. &lt;/p&gt;   &lt;p&gt;Where &lt;b&gt;&lt;i&gt;size&lt;/i&gt;&lt;/b&gt; is optional.&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="color: navy;"&gt;boolean&lt;/span&gt;&lt;span style="font-size: 12pt; color: navy;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Valid in PLSQL, but this datatype does not exist in Oracle   8i.&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Valid in PLSQL, but this datatype does not exist in Oracle   9i.&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt; &lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="color: navy;"&gt;nchar (size)&lt;/span&gt;&lt;span style="font-size: 12pt; color: navy;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Up to 32767 bytes in PLSQL. &lt;/p&gt;   &lt;p&gt;Up to 2000 bytes in Oracle 8i&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Up to 32767 bytes in PLSQL. &lt;/p&gt;   &lt;p&gt;Up to 2000 bytes in Oracle 9i.&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Where &lt;b&gt;&lt;i&gt;size&lt;/i&gt;&lt;/b&gt; is the number of characters to store.   Fixed-length NLS string&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="color: navy;"&gt;nvarchar2 (size)&lt;/span&gt;&lt;span style="font-size: 12pt; color: navy;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Up to 32767 bytes in PLSQL. &lt;/p&gt;   &lt;p&gt;Up to 4000 bytes in Oracle 8i.&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Up to 32767 bytes in PLSQL. &lt;/p&gt;   &lt;p&gt;Up to 4000 bytes in Oracle 9i.&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Where &lt;b&gt;&lt;i&gt;size&lt;/i&gt;&lt;/b&gt; is the number of characters to   store. Variable-length NLS string&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="color: navy;"&gt;bfile&lt;/span&gt;&lt;span style="font-size: 12pt; color: navy;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Up to 4 gigabytes.&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Up to 4 gigabytes.&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;File locators that point to a read-only binary object   outside of the database&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="color: navy;"&gt;blob&lt;/span&gt;&lt;span style="font-size: 12pt; color: navy;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;U p to 4 gigabytes.&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Up to 4 gigabytes.&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;LOB locators that point to a large binary object within   the database&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="color: navy;"&gt;clob&lt;/span&gt;&lt;span style="font-size: 12pt; color: navy;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Up to 4 gigabytes.&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Up to 4 gigabytes.&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;LOB locators that point to a large character object within   the database&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style=""&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="color: navy;"&gt;nclob&lt;/span&gt;&lt;span style="font-size: 12pt; color: navy;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Up to 4 gigabytes.&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;Up to 4 gigabytes.&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 2.25pt;"&gt;   &lt;p class="MsoNormal"&gt;LOB locators that point to a large NLS character object   within the database&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="AMYHEADING1"&gt;Oracle/PLSQL: Literals&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;A literal is the same as a constant. We'll cover three types of literals - text literals, integer literals, and number literals&lt;/p&gt;  &lt;p class="AMYHEADING2"&gt;&lt;span style=""&gt;Text literals&lt;/span&gt; are always surrounded by single quotes ('). For example:&lt;/p&gt;  &lt;p class="APARA2"&gt;'Hewlett Packard'&lt;br /&gt;'28-MAY-03'&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="APARA1"&gt;&lt;b&gt;Integer literals&lt;/b&gt; can be up to 38 digits. Integer literals can be either positive numbers or negative numbers. If you do not specify a sign, then a positive number is assumed. Here are some examples of valid integer literals:&lt;/p&gt;  &lt;p class="APARA2"&gt;23&lt;br /&gt;+23&lt;br /&gt;-23&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="APARA1"&gt;&lt;b&gt;Number literals&lt;/b&gt; can be up to 38 digits. Number literals can be either positive or negative numbers. If you do not specify a sign, then a positive number is assumed. Here are some examples of valid number literals:&lt;/p&gt;  &lt;p class="APARA2"&gt;25&lt;br /&gt;+25&lt;br /&gt;-25&lt;br /&gt;25e-04&lt;br /&gt;25.607&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;Oracle/PLSQL: Declaring Variables&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA3"&gt;The syntax for declaring variables is:&lt;/p&gt;  &lt;p class="APARA2"&gt;variable_name datatype [CONSTANT] [NOT NULL] [:= | DEFAULT initial_value]&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="APARA1"&gt;For example:&lt;/p&gt;  &lt;p class="APARA1"&gt;Declaring a variable:&lt;/p&gt;  &lt;p class="APARA2"&gt;LDescription varchar2(40);&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="APARA1"&gt;Declaring a constant:&lt;/p&gt;  &lt;p class="APARA2"&gt;LTotal constant numeric(8,1) := 8363934.1;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="APARA1"&gt;Declaring a variable with an initial value (not a constant):&lt;/p&gt;  &lt;p class="APARA2"&gt;LType varchar2(10) := 'Example';&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;Oracle/PLSQL: IS NULL&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;In other languages, a null value is found using the = null syntax. However in PLSQL to check if a value is null, you must use the "IS NULL" syntax.&lt;/p&gt;  &lt;p class="APARA1"&gt;To check for equality on a null value, you must use "IS NULL".&lt;/p&gt;  &lt;p class="APARA1"&gt;For example,&lt;/p&gt;  &lt;p class="APARA2"&gt;IF Lvalue IS NULL then&lt;/p&gt;  &lt;p class="APARA2"&gt;.&lt;/p&gt;  &lt;p class="APARA2"&gt;END IF;&lt;/p&gt;  &lt;p class="APARA1"&gt;If &lt;i&gt;Lvalue&lt;/i&gt; contains a null value, the "IF" expression will evaluate to TRUE.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="APARA1"&gt;You can also use "IS NULL" in an SQL statement. For example:&lt;/p&gt;  &lt;p class="APARA2"&gt;select * from suppliers&lt;br /&gt;where supplier_name IS NULL;&lt;/p&gt;  &lt;p class="APARA1"&gt;This will return all records from the &lt;i&gt;suppliers&lt;/i&gt; table where the &lt;i&gt;supplier_name&lt;/i&gt; contains a null value.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="APARA1"&gt;To learn how to check for a value that is &lt;b&gt;not&lt;/b&gt; null, &lt;a href="http://www.techonthenet.com/oracle/isnotnull.php"&gt;click here&lt;/a&gt;.&lt;/p&gt;  &lt;p class="AMYHEADING1"&gt;Oracle/PLSQL: IS NOT NULL&lt;/p&gt;  &lt;div class="MsoNormal" style="text-align: center;" align="center"&gt;  &lt;hr align="center" size="2" width="100%"&gt;  &lt;/div&gt;  &lt;p class="APARA1"&gt;In other languages, a not null value is found using the != null syntax. However in PLSQL to check if a value is &lt;b&gt;not&lt;/b&gt; null, you must use the "IS NOT NULL" syntax.&lt;/p&gt;  &lt;p class="APARA1"&gt;For example,&lt;/p&gt;  &lt;p class="APARA2"&gt;IF Lvalue IS NOT NULL then&lt;/p&gt;  &lt;p&gt;.&lt;/p&gt;  &lt;p class="APARA2"&gt;END IF;&lt;/p&gt;  &lt;p class="APARA1"&gt;If &lt;i&gt;Lvalue&lt;/i&gt; does &lt;b&gt;not&lt;/b&gt; contain a null value, the "IF" expression will evaluate to TRUE.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="APARA1"&gt;You can also use "IS NOT NULL" in an SQL statement. For example:&lt;/p&gt;  &lt;p class="APARA2"&gt;select * from suppliers&lt;br /&gt;where supplier_name IS NOT NULL;&lt;/p&gt;  &lt;p class="APARA1"&gt;This will return all records from the &lt;i&gt;suppliers&lt;/i&gt; table where the &lt;i&gt;supplier_name&lt;/i&gt; does &lt;b&gt;not&lt;/b&gt; contain a null value.&lt;/p&gt;  &lt;p class="APARA1"&gt;To learn how to check for a value that is null, &lt;a href="http://www.techonthenet.com/oracle/isnull.php"&gt;click here&lt;/a&gt;.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2862498837529179372-4393863415184316023?l=ccnshs2008-tle4.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ccnshs2008-tle4.blogspot.com/feeds/4393863415184316023/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2862498837529179372&amp;postID=4393863415184316023' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2862498837529179372/posts/default/4393863415184316023'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2862498837529179372/posts/default/4393863415184316023'/><link rel='alternate' type='text/html' href='http://ccnshs2008-tle4.blogspot.com/2009/02/oracleplsql-topics-oracle-is-relational.html' title=''/><author><name>Executive30</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2862498837529179372.post-638429619924555602</id><published>2009-02-08T18:08:00.000-08:00</published><updated>2009-02-08T18:10:11.888-08:00</updated><title type='text'>https://iacademy.oracle.com</title><content type='html'>Below are your Application Express accounts for SQL:&lt;br /&gt;&lt;br /&gt;School name: PH_CC771A&lt;br /&gt;&lt;br /&gt;School Administrator Name: PH_CC771A_ADMIN&lt;br /&gt;&lt;br /&gt;Class: SQL01&lt;br /&gt;Users&lt;br /&gt;--------------&lt;br /&gt;&lt;br /&gt; PH_CC771A_SQL01_S50&lt;br /&gt;(student)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To login, go to &lt;a href="https://iacademy.oracle.com"&gt;https://iacademy.oracle.com&lt;/a&gt; and fill in the following:&lt;br /&gt;&lt;br /&gt;School: PH_CC771A&lt;br /&gt;Your Username: teacher/admin/student username from above (example:&lt;br /&gt;PH_CC771A_SQL01_S01)&lt;br /&gt;Password: oracle&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2862498837529179372-638429619924555602?l=ccnshs2008-tle4.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ccnshs2008-tle4.blogspot.com/feeds/638429619924555602/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2862498837529179372&amp;postID=638429619924555602' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2862498837529179372/posts/default/638429619924555602'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2862498837529179372/posts/default/638429619924555602'/><link rel='alternate' type='text/html' href='http://ccnshs2008-tle4.blogspot.com/2009/02/httpsiacademyoraclecom.html' title='https://iacademy.oracle.com'/><author><name>Executive30</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2862498837529179372.post-3385835927259063793</id><published>2009-02-08T17:59:00.000-08:00</published><updated>2009-02-08T18:05:32.712-08:00</updated><title type='text'>Oracle Accounts</title><content type='html'>&lt;p:colorscheme colors="#ffffff,#000000,#000000,#000000,#cccccc,#ff3300,#ff3300,#999999"&gt;  &lt;/p:colorscheme&gt;&lt;div shape="_x0000_s1026" style=""&gt;  &lt;table str="" style="border-collapse: collapse; width: 462px; height: 1013px;" border="0" cellpadding="0" cellspacing="0"&gt;&lt;col style="width: 74pt;" width="98"&gt;  &lt;col style="width: 152pt;" width="203"&gt;  &lt;tbody&gt;&lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt; width: 74pt;" height="20" width="98"&gt;Account name&lt;/td&gt;   &lt;td class="xl23" style="width: 152pt;" width="203"&gt;PH_CC771A_SQL01_S01&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S02&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S03&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S04&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S05&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S06&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S07&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S08&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S09&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S10&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S11&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S12&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S13&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S14&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S15&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S16&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S17&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S18&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S19&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S20&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S21&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S22&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S23&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S24&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S25&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S26&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S27&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S28&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S29&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S30&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S31&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S32&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S33&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S34&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S35&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S36&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S37&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S38&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S39&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S40&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S41&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S42&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S43&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S44&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S45&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S46&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S47&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S48&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S49&lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 15pt;" height="20"&gt;   &lt;td style="height: 15pt;" height="20"&gt;&lt;br /&gt;&lt;/td&gt;   &lt;td class="xl23"&gt;PH_CC771A_SQL01_S50&lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2862498837529179372-3385835927259063793?l=ccnshs2008-tle4.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ccnshs2008-tle4.blogspot.com/feeds/3385835927259063793/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2862498837529179372&amp;postID=3385835927259063793' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2862498837529179372/posts/default/3385835927259063793'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2862498837529179372/posts/default/3385835927259063793'/><link rel='alternate' type='text/html' href='http://ccnshs2008-tle4.blogspot.com/2009/02/oracle-accounts.html' title='Oracle Accounts'/><author><name>Executive30</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2862498837529179372.post-5830189226607706432</id><published>2009-02-08T17:58:00.000-08:00</published><updated>2009-02-08T17:59:26.777-08:00</updated><title type='text'>Assignment #7:</title><content type='html'>&lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-size: 14pt;"&gt;Assignment #7: Gathering Book Information&lt;/span&gt;&lt;/b&gt; &lt;span style=""&gt;&lt;/span&gt;&lt;span style=""&gt; &lt;/span&gt;02-04-2009&lt;/p&gt;  &lt;p class="MsoNormal"&gt;GroupWork&lt;/p&gt;  &lt;p class="MsoNormal"&gt;Deadline: 02-10-2009 (Tuesday)&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;Instructions:&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1.25in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Gather all information available in each book (see table format below for your guide).&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1.25in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Consider at least 50 Titles based-on your assigned subject&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1.25in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Encode all data in MS ACCESS and use “text” as data type in all data except “date acquired” (use date type in this field)&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1.25in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Get all the information only in CCNSHS Library&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;Assigned Subject in each Group:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;table class="MsoNormalTable" style="width: 239.4pt; border-collapse: collapse; margin-left: 6.75pt; margin-right: 6.75pt;" align="left" border="0" cellpadding="0" cellspacing="0" width="319"&gt;  &lt;tbody&gt;&lt;tr style="height: 12.75pt;"&gt;   &lt;td style="padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;b style=""&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;Group&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in 5.4pt; width: 191.4pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="255"&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;b style=""&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;Subject&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in 5.4pt; width: 191.4pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="255"&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;TLE/Computer/IT&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in 5.4pt; width: 191.4pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="255"&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;Biology/Physic&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in 5.4pt; width: 191.4pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="255"&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;Math&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;4&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in 5.4pt; width: 191.4pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="255"&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;English&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;5&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in 5.4pt; width: 191.4pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="255"&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;Filipino&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;6&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in 5.4pt; width: 191.4pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="255"&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;Values&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;7&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in 5.4pt; width: 191.4pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="255"&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;MAPEH&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;8&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in 5.4pt; width: 191.4pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="255"&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;Research/Statistics&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;9&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in 5.4pt; width: 191.4pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="255"&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;Aral Pan&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;10&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in 5.4pt; width: 191.4pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="255"&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;Chemistry/Earth Science&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;11&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="padding: 0in 5.4pt; width: 191.4pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="255"&gt;   &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;Other References&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;Table Format:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;table class="MsoNormalTable" style="border: medium none ; width: 852.45pt; margin-left: 4.65pt; border-collapse: collapse;" border="1" cellpadding="0" cellspacing="0" width="1137"&gt;  &lt;tbody&gt;&lt;tr style="height: 29.25pt;"&gt;   &lt;td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 48.6pt; height: 29.25pt;" nowrap="nowrap" width="65"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;b style=""&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;Call Number&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 48pt; height: 29.25pt;" nowrap="nowrap" width="64"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;b style=""&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;Author&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 57.75pt; height: 29.25pt;" nowrap="nowrap" width="77"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;b style=""&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;Title&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 29.25pt;" nowrap="nowrap" width="72"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;b style=""&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;Edition&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 71.4pt; height: 29.25pt;" nowrap="nowrap" width="95"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;b style=""&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;Place of Publication&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 63pt; height: 29.25pt;" nowrap="nowrap" width="84"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;b style=""&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;Publisher&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 75pt; height: 29.25pt;" nowrap="nowrap" width="100"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;b style=""&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;Collation&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 29.25pt;" nowrap="nowrap" width="72"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;b style=""&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;Edition&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 29.25pt;" nowrap="nowrap" width="72"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;b style=""&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;Note&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 86.1pt; height: 29.25pt;" nowrap="nowrap" width="115"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;b style=""&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;Copyright Year&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 48pt; height: 29.25pt;" nowrap="nowrap" width="64"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;b style=""&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;ISBN&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 48pt; height: 29.25pt;" nowrap="nowrap" width="64"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;b style=""&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;Subject&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 48.6pt; height: 29.25pt;" nowrap="nowrap" width="65"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;b style=""&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;Acc Number&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 96pt; height: 29.25pt;" nowrap="nowrap" width="128"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;b style=""&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;Date Acquired&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 48.6pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="65"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 57.75pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="77"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="72"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 71.4pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="95"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 63pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="84"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 75pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="100"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="72"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="72"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 86.1pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="115"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.6pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="65"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 96pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="128"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 48.6pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="65"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 57.75pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="77"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="72"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 71.4pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="95"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 63pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="84"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 75pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="100"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="72"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="72"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 86.1pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="115"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.6pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="65"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 96pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="128"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 48.6pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="65"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 57.75pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="77"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="72"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 71.4pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="95"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 63pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="84"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 75pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="100"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="72"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="72"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 86.1pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="115"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.6pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="65"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 96pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="128"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 48.6pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="65"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 57.75pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="77"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="72"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 71.4pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="95"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 63pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="84"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 75pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="100"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="72"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="72"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 86.1pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="115"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.6pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="65"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 96pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="128"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 48.6pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="65"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 57.75pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="77"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="72"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 71.4pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="95"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 63pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="84"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 75pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="100"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="72"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="72"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 86.1pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="115"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.6pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="65"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 96pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="128"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 48.6pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="65"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 57.75pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="77"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="72"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 71.4pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="95"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 63pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="84"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 75pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="100"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="72"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="72"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 86.1pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="115"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.6pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="65"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 96pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="128"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 48.6pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="65"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 57.75pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="77"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="72"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 71.4pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="95"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 63pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="84"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 75pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="100"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="72"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="72"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 86.1pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="115"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.6pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="65"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 96pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="128"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 48.6pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="65"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 57.75pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="77"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="72"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 71.4pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="95"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 63pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="84"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 75pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="100"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="72"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="72"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 86.1pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="115"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.6pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="65"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 96pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="128"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 48.6pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="65"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 57.75pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="77"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="72"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 71.4pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="95"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 63pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="84"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 75pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="100"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="72"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="72"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 86.1pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="115"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.6pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="65"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 96pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="128"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 12.75pt;"&gt;   &lt;td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 48.6pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="65"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 57.75pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="77"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="72"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 71.4pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="95"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 63pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="84"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 75pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="100"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="72"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="72"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 86.1pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="115"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="64"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.6pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="65"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 96pt; height: 12.75pt;" nowrap="nowrap" valign="bottom" width="128"&gt;   &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:
