Ilab sql queries using mysql

Assignment Help PL-SQL Programming
Reference no: EM13832574

iLab 1 SQL Queries Using MySQL 

iLab Overview

Scenario/Summary

The purpose of this iLab is to prepare for the first phase of the Course Project. This week, you will learn to create and run SQL SELECT queries from a script  in the MySQL database. You will need to create a database in MySQL via Omnymbus, run a SQL script to create tables and insert data, create and execute a script containg SQL SELECT queries using the STUDENT table.

Please ensure that you can connect to MySQL/Omnymbus via the account your Professor has emailed to you. Please consult with the document titled MySQLOmnymbusSupport.docx located in the Doc-Sharing folder titled Omnymbus Tutorial Files for instructions on how to get help for any issues that you are having with the MySQL/Omnymbus Environment.

Due Midnight Mountain Time attached to the Week 1 DropBox. OR let me know if you are going to be delayed!

  • SQL file named Lab1_Query.sql containing SELECT statements
  • Text document named Lab1_Output.txt containing labeled output
  • Upload files to the Week 1 iLab Dropbox.
  • Please do not zip the files

Required Software

Omnymbus - MySQL at the edupe database server.

Access the software at https://devry.edupe.net:8300 
If you have any problems,  connection, password, technical, etc  ONLY your instructor can assist. Using any other Help facility will delay the resolution of the problem as the request is forwarded in all cases to the instructor.

STEP 1: Logging in to Omnymbus

  • Look at your email account to obtain the MySQL/Omnymbus account and password that your Professor has emailed to you.
  • To help you log into MySQL Omnymbus environment, download the tutorial Login MySQL Omnymbus Environment in the Doc-Sharing folder titled "Omnymbus Tutorial Files".

STEP 2: Create a Database and modify your script to reference your Database

Create a MySQL database:

  • Download the tutorial Creating a Database in MySQL Omnymbus Environment from the folder in Doc-Sharing titled Omnymbus Tutorial Files. Follow the steps to create a database in MySQL, especially paying attention to the database naming conventions specified in the tutorial.
  • Download the Wk1LoadDatabaseScript.sql file from Doc Sharing in the folder titled iLab Documents.

STEP 3: Running script file in MySQL, create SQL

Download the tutorial Running SQL Scripts in MySQL Omnymbus environment from the folder in Doc-Sharing titled Omnymbus Tutorial Files. Follow those steps and execute the Wk1LoadDatabaseScript.sql file to create the tables and to insert data into them; and then download and run the script file with the queries iLab1QueryScript.sql.  This script has the first few queries and it is intended that you should finish it.  A demonstration in the Week 1 Live Lecture will be provided.

Create SQL SELECT Queries:

ALWAYS and only use a plain text editor such as Notepad!  All word processors will insert hidden tags that confuse database processors.

  • Using the data in the Student table in the database, expand the supplied starter SQL script file named iLab1QueryScript.sql, containing queries to execute each of the tasks below.
  • To reference, learn and apply MySQL's own dialect of the SQL language to this iLab, browse through the file M10C_KROE8352_13_SE_WC10C.pdf in the Doc-Sharing folder titled My SQL Documents.
  • Save the completed results by copying and pasting to a file named iLab1_Results.txt
  • An incomplete example is provided in the Doc Sharing.

Name

Task

Query1

Write a SQL statement to display Student's First and Last Name.

Query2

Write a SQL statement to display the Major of students with no duplications. Do not display student names.

Query3

Write a SQL statement to display the First and Last Name of students who live in the Zip code 82622

Query4

Write a SQL statement to display the First and Last Name of students who live in the Zip code 97912 and have the major of CS.

Query5

Write a SQL statement to display the First and Last Name of students who live in the Zip code 82622 or 37311. Do not use IN.

Query6

Write a SQL statement to display the First and Last Name of students who have the major of Business or Math. Use IN.

Query7

Write a SQL statement to display the First and Last Name of students who have the Class greater than 1 and less than 10. Use the SQL command BETWEEN.

Query8

Write a SQL statement to display the First and Last Name of students who have a last name that starts with an S.

Query9

Write a SQL statement to display the First and Last Name of students having an a in the second position of their first names.

Query10

Write a SQL expression to display each Status and the number of occurrences of each status using the Count(*) function; display the result of the Count(*) function as CountStatus. Group by Status and display the results in descending order of CountStatus.

Note:  there are examples very similar to these in the Kroenke text

Attachment:- iLab1_Results.txt

Attachment:- iLab1QueryScript.sql

Attachment:- Wk1LoadDatabaseScript.sql

Reference no: EM13832574

Questions Cloud

Find the equilibrium quantity and price : What is the point elasticity of demand at equilibrium? What is the marginal revenue at equilibrium?(use equation connecting MR and P) If marginal cost is constant $8 dollars, should we keep producing and selling? until which point we can keep produci..
With at least two bibilographies for review : Using the four scenarios, discuss each and choose periods when each scenario has occurred in the U. S. or other countries: higher interest rates, more capital invested. Graduate level response please. (500) with at least two bibilographies for review..
Describe one of the organization products : Identify and describe one of the organization's products that has reached its stage of maturity. Assess the available financial sources-public and private-in the home country to promote global investment for the selected product
Dealers effective rate of return on this loan transaction : ou are going to buy a new car worth $24,500. The dealer computes your monthly payment to be $514.55 for 60 months of financing. What is the dealer’s effective rate of return on this loan transaction?
Ilab sql queries using mysql : The purpose of this iLab is to prepare for the first phase of the Course Project. This week, you will learn to create and run SQL SELECT queries from a script  in the MySQL database. You will need to create a database in MySQL via Omnymbus, run a ..
Which european colonial power settled the farthest north on : Which European colonial power settled the farthest north on continent of North America
Capital markets and labor markets are intimately connected : College students often borrow money to attend school. Generally, the plan is to pay loans back through future earnings. In this way, capital markets and labor markets are intimately connected.
Suppose that the natural rate of unemployment : Suppose that the natural rate of unemployment in a particular year is 4 percent and the actual rate of unemployment is 11 percent. Use Okun’s law to determine the size of the GDP gap in percentage-point terms. If the potential GDP is $500 billion in ..
Method used to determine the internal rate of return : Which is a method used to determine the Internal Rate of Return,

Reviews

Write a Review

PL-SQL Programming Questions & Answers

  Create a database model

Create a database model and Submit the table creation statements for the Database Model.

  Write pl-sql procedures and functions

Write PL/SQL procedures and functions to populate and query that database

  Sql questions

Write a query to display using the employees table the EMPLOYEE_ID, FIRST_NAME, LAST_NAME and HIRE_DATE of every employee who was hired after to 1 January, 1995.

  Run the lab_03_01.sql script

Run the lab_03_01.sql script in the attached file to create the SAL_HISTORY table. Display the structure of the SAL_HISTORY table.

  Write sql queries

Write a query to display the last name, department number, and salary of any employee whose department number and salary both match the department number and salary of any employee who earns a commission.

  Explaining sql insert statement to insert new row in cds

Write down a SQL insert statement to insert new row in "CDS" table.

  Write down name of actors in ascending order

Write down actors (or actress, your choice, but not both) who have won at least two (2) Academy Awards for best actor/actress. Provide the actor name, movie title & year. Order the result by actor name."

  What is an sql injection attack

What is an SQL injection attack? Explain how it works, and what precautions must be taken to prevent SQL injection attacks.What are two advantages of encrypting data stored in the database?

  Determine resonant frequency in series rlc resonant circuit

Given the series RLC resonant circuit in the figure, operating at variable frequency, determine: The resonant frequency ω o ,  The circuit’s quality factor Q , The cut-off frequencies, f 1  & f 2  and the bandwidth BW

  Query that uses cube operator to return lineitemsum

Write summary query which uses CUBE operator to return LineItemSum (which is the sum of InvoiceLineItemAmount) group by Account(an alias for AccountDesciption).

  Query to show customers were missing for existing orders

As DBA, your manager called a meeting and asked why there are so many orders for customers that don't exist in the customer table. Write query which would shows which customers were missing for existing orders. Use a join or a subquery.

  Sql query into a relational algebra statement

Turn this SQL query into a relational algebra statement? SELECT Request.reqfor, Ordering.invamt, Ordering.invnbr, Ordering.invdat

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd