Provide screenshots for the sql query

Assignment Help PL-SQL Programming
Reference no: EM131572392

Assignment

1. Populate your "student" table with at 20 or more students, such that:

• At least 6 of them (but not all!) have the last name "Jonesy"
• At least 1 of them has a GPA of 3.85
• At least 2 of them have a GPA of 3.7 and 3.84, respectively
• At least 2 of them have a GPA of 2.7 and 3.69,respectively
• At least 2 of them have a GPA of 1.7 and 2.69,respectively
• At least 2 of them have a GPA of 1.0 and 1.69,respectively
• At least 1 has a GPAof1.0
• At least 6 of them are from state DE
• More than 7are from NJ
• More than 4 are from RI (Rhode Island)
• At least 1 is from some other state than listed here
• More than 2 have more than 96 credits
• At least 3 of them have credits of 32, 33, 64, 65, and 96, respectively
• At least 1 of them has less than32 credits
• At least3have between 65-96 credits
• At least 3 have between 33-64 credits

To accomplish this, you can use the "insert" command (multiple times) via the command-line interface or web interface. Example of how to insert Sally Smith record into your table:

insert into student values ('1', 'Sally', 'Smith', '10 Main St.', 'NJ', '3.92', '98');

Note that the value of the field "id," while arbitrary must be unique for all students. (That's why it is designated as the "primary key.") I recommend that you simply assign the id's sequentially, that is, the first student is 1, the second is 2, etc.

GPA

Recognition Letters

3.85 or above

A+ or High Honors

3.7 - 3.84

Honors

2.7 - 3.69

B

1.7 - 2.69

C

1.0 - 1.69

D

Below 1.0

F

Credits

School level

More than 96

Senior

65-96

Junior

33-64

Sophomore

Less than 33

Freshman

2. Try creating another student with the id 1 (the same as Sally's).

a. Screenshot the results of the following query and insert it into your homework WORD document:

insert into student values ('1', 'Bob', 'Smith', '14 King Blvd.', 'NY', '3.17', '124');

b. How does MySQL respond? Explain what the message displayed means.

3. Use the following SQL query to retrieve all records. Take a screenshot and insert it into your homework WORD document:

select * from student;

4. Screenshot the results of the following query and insert it into your homework WORD document:

select gpa, lastname, state from student where state='RI';

The query shows 3 columns for the gpa, lastname and state fields and it only displays students from RI.

5. Next, write and run (issue) SQL queries that do the following. For each query, provide screenshots for the SQL query and the results within a Word document so I can grade it.

a. Show all students with the last name Jonsey.

b. Retrieve all student names (first and last) with a B GPA (see table for definition in first question)and are NOT from NJ.

c. Retrieve all students that are NOT in honors (see table for definition in first question)

d. Retrieve lastname, gpa, and credits of all DE and RIfreshman (see table for definition in first question). Order the results by last name.

e. Display the query and the results to determine if there are any students from NJ with High Honors.

f. Retrieve the lastnames and credits of all students that are NOT from NJ, RI or DE. Order by the state.

Reference no: EM131572392

Questions Cloud

Would you still choose the same theory : How does the theory you would choose change based on the populations you may serve?Would you still choose the same theory?
Discuss the importance of cultural intelligence : Discuss the importance of cultural intelligence and its impact on the globalization of business operations. Support your positions with scholarly resources.
Discuss satisfiability problem and find values of variables : The maximum satisfiability problem asks for an assignment of truth values to the variables in a compound proposition in conjunctive normal form.
What type of contract was utilized as the foundation : What type of contract was utilized as the foundation for the case plan.Compare it with another type of contract, explaining why the one chosen was used instead.
Provide screenshots for the sql query : For each query, provide screenshots for the SQL query and the results within a Word document so I can grade it.
What information is contained in a bond indenture : What information is contained in a bond indenture? What purpose does it serve
Generate a random permutation of a sequence of n terms : The following method can be used to generate a random permutation of a sequence of n terms. First, interchange the nth term and the r(n)th term where r(n).
Identify the key components of stockholders equity : Describe the accounting procedures for issuing stock?How do Journal the issuance of Stock; show the Journal Entry
Compare and contrast common & preferred stock : Compare and Contrast Common & Preferred Stock and What are the characteristics of Common Stock

Reviews

Write a Review

PL-SQL Programming Questions & Answers

  Description of vulnerability, exploit and attack software

Describe the vulnerability that the attack exploits, including how or why the vulnerability exists; what versions of software are vulnerable.

  Create simple reports in an oracle database

laboratory provides practice in the use of SQL commands to create simple reports in an Oracle database

  Create qrycustomersm that selects all customers

Write the SQL below that would display all Customers whose first name begins with the letter J. Your query should display the FirstName, LastName, Phone, and MembershipStatus fields from the tblMember table.

  What three ways for identifying a dbms should nathan cover

Nathan is planning to describe at least three ways a database management system can be identified. What three ways for identifying a DBMS should Nathan cover?

  List first and last names of all full time faculty members

List only first and last names of all full time faculty members who are teaching more than 2 courses and the total enrollment for those courses.

  Describe what changed in the ddl for each table

Make sure that the 3 additional tables you added in Unit 3 are also shown and have established primary and foreign keys to appropriate tables.

  Write command to list all the employees in year

Write the command to list all the employees hired in 2003 and 2004. Sort the rows by the hire_date column in descending order.

  Create an sql query that uses set operations

Create an SQL query that uses set operations to display the union of the last names in table CUSTOMER and the last names in table EMPLOYEE. Do not include duplicates in the output.

  Database in omnymbus

/*Using the STUDENT table in the MISLab1 database in Omnymbus, perform the following tasks: Note the first SELECT is there to label the output, DUAL is a "dummy" table. The second SELECT is the solution.

  Create a procedure that returns the most recent order

Create a procedure named STATUS_SHIP_SP that allows an employee in the Brewbeans' Shipping Department to update an order status to add shipping information.

  Write a select statement that returns these column names

Write a SELECT statement that returns these column names and data from the Products table:

  Display the product line id and the average standard price

SQL queries on a single table. Show how many different items were ordered on order number 1004. List the employee names and ids of employees whose first name starts with an "R".

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