MIS 561 MIS561 MIS/561 Lab 5 Optimizing query using EXPLAIN – DeVry University

Page 1

MIS 561 MIS561 MIS/561 Lab 5 Optimizing query using EXPLAIN – DeVry University

DOWNLOAD SOLUTION https://www.solvedcollegepapers.com/product/mis-561-mis561-mis-561-dev/ EXPLAIN shows information about the database: the number of tables; how tables are joined; how data is looked up (full table scan, full index scan or partial index scan); the presence of subqueries, sorts, and unions; DISTINCT and WHERE clauses are used; indexes used and their length (longer index – longer search); number of records examined Deliverables Grading of the lab assignment will be based on the following. Category: Assignments Help Experts Tags: mis 561 lab 5, MIS 561 MIS561 MIS/561 Database administration and management - DeVry University, MIS 561mis 561, MIS561 Lab 1 Installing MySQL Community Server and MySQL Workbench, MIS561 Lab 2 Work with Dictionary and Create Relational Database, MIS561 Lab 3 Users Privileges and Roles, MIS561 Lab 4 Using Backups for Complete Recovery, MIS561 Lab 5 Optimizing query using EXPLAIN 

Description

Description


MIS561 Lab 5 Optimizing query using EXPLAIN – DeVry University EXPLAIN shows information about the database: the number of tables; how tables are joined; how data is looked up (full table scan, full index scan or partial index scan); the presence of subqueries, sorts, and unions; DISTINCT and WHERE clauses are used; indexes used and their length (longer index – longer search); number of records examined Deliverables Grading of the lab assignment will be based on the following. Assignment Step Description Points Step 1 EXPLAIN #1 – describe Output of EXPLAIN 6 Step 2 EXPLAIN #2 to have type as partial index scan 6 Step 3 EXPLAIN #3 to have type as index_merge 6 Step 4 EXPLAIN #4 to have type = fulltext 6 Step 5 EXPLAIN #5 to have type as const 6 Step 6 EXPLAIN #6 Sample subquery example 6 Step 7 EXPLAIN #7 – describe Output of EXPLAIN with join 6 Step 8 EXPLAIN #8 – EXPLAIN EXTENDED 6 Step 9 Explain warnings using SHOW WARNINGS 6 Step 10 Explain UPDATE statement 6 Total iLab Points 60 Points Submit your lab session–showing any queries, and other SQL code, and the resulting return from the database–to the Dropbox for the Week 5 iLab. iLAB STEPS 1) STEP 1: EXPLAIN Output – test EXPLAIN #1 Mysql> EXPLAIN select column from database.tablename where column = value\G \G – capital letter G places the result set vertically Explain the meaning and values of result columns (id, table, type, possible_keys, key, key_len, ref, rows, Extra) Save the screenshot. 2) STEP 2: Modify EXPLAIN in step #1 – test EXPLAIN #2 to have type as partial index scan by including one of the following: <, <=, >, >=, IS NULL, BETWEEN, IN Explain output of EXPLAIN. Save the screenshot. 3) STEP 3: Modify EXPLAIN in step #1 – test EXPLAIN #3 to have type as index_merge by including LIKE statement Explain output of EXPLAIN. Save the screenshot.


4) STEP 4: Modify EXPLAIN #1 – test EXPLAIN #4 to have type = fulltext data access To write SELECT which causes fulltext data access –select job_category and job_title of the job with title or description which include the word ‘programmer’. Example: EXPLAIN select job_category, job_title from bonus where MATCH (job_title, job_description) AGAINST (‘programmer’)\G Explain output of EXPLAIN. Save the screenshot. 5) STEP 5: Modify EXPLAIN #1 – test EXPLAIN #5 to have type as const by joining/looking up unique index values (index fields compared with =) Example: EXPLAIN select hire_date from employee where employee_id = 1234; Explain output of EXPLAIN. Save the screenshot. 6) STEP 6: Sample subquery example – test EXPLAIN #6 Write EXPLAIN select statement using subquery. Example: EXPLAIN select employee_id, employee_name IN (select job_category from bonus AS bonus_subquery where bon_comm IS NULL) from employee AS outer\G Explain output of EXPLAIN. Save the screenshot. 7) STEP 7: Turn subquery in #6 to join – test EXPLAIN #7. Explain output of EXPLAIN. Save the screenshot. 8) STEP 8: To know the approximate number of examined rows to be returned, modify EXPLAIN #1 to EXPLAIN EXTENDED – test EXPLAIN #8 Mysql> EXPLAIN EXTENDED select column from database.tablename where column = value\ G Explain output of EXPLAIN EXTENDED (values of rows and filtered columns) 9) STEP 9: Explain warnings received in step #8 by using command: Mysql>SHOW WARNINGS\G 10) STEP 10: Explain UPDATE statement – test EXPLAIN #9 Example: Explain update table_name set column_name = value\G Explain update mis561.employee set table1col = ‘val’\G Explain output of EXPLAIN. Save the screenshot. Download Full Course Solution: PSY 216 PSY216 PSY/216 JOURNAL.docx – Shaina Denes Journal 1 https://www.solvedcollegepapers.com/product/psy-216-psy216-psy-216-joal-1/ The Myers-Briggs Type Indicator or MBTI is a psychological test for classifying personality types along four distinct categories including, introversion and extroversion, sensing and intuition, thinking and feeling and lastly, judging and perceiving.


According to the test, every person has one dominant trait in each category. The theory is that every person will fall into one of the 16 personality types. This test can be used as a guide to help pinpoint personality traits, possible career paths, and provide some explanation for why and how we pick our friends, romantic partners and how we interact with the outside world as a whole. The other test that is used is The Big 5, this test has 5 main categories, where as the MyersBriggs has only 4. This test is shorter and less invasive than the Myers-Briggs, and has the acronym that gives a percentage of that letter found from the results of the few questions answered. “OCEAN” standing for Open-Mindedness, conscientious, extraversion, agreeableness and negative emotionality. Download Full Course Solution: IT 210 IT210 IT/210 7-3 Final Project Submission Business Systems Analysis.docx https://www.solvedcollegepapers.com/product/it-210-it210-it-210-7-3-final-projectsubmission-business-systems-analysis-docx/ IT 210: Business Systems AnalysisIT 210 Final Introduction, Business Requirements, and Competitors and TechnologyGeoff LudwigSouthern New Hampshire University IT 210: Business Systems Analysis2ContentsIntroduction3Problem Statement13Two Technologies4Business Requirements5Objectives5Project Description5Technology Requirements6Competitors and Technology6Technology One [Intelligent Systems]6Technology Two [Cloud Computing]7Technology Solutions8Technology One [Intelligent Systems]8Technology Two [Cloud Computing]10Recommendations12Technology Solution12Overall Benefit13Security Considerations13Security Features13Third-Party Vendors152 Download Full Course Solution: BIOL 102 BIOL102 BIOL/102 : Principles of Human Biology – Liberty University https://www.solvedcollegepapers.com/product/biol-102-principles-of-human-biologyliberty-university/ 

week 5 ccrossword puzzle.docx

Liberty University

Principles of Human Biology

BIOL 102 – Fall 2012


Download Full Course Solution: CFDI-320 Week 3 Assignment – Another Day on the Job https://www.solvedcollegepapers.com/product/cfdi-320-week-3-assignment-anotherday-on-the-job/ CFDI-320 Week 3 Assignment - Another Day on the Job Week 3: Assignment - Another Day on the Job

You are a digital forensic examiner working at a firm and your next job is to conduct a digital forensic analysis on a forensic image created of a disk drive. You will need to use the department report titled Week 3 – Assignment Report.docx download to conduct an examination on the forensic image week3assignment1.e01 located in our class directory CFDI-320 on the S:\ drive.


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.