Write sql query to select students having gpa greater than 3

Assignment Help Database Management System
Reference no: EM13895136

Perform the following operations using SQL.

1. Create a Database ('fdb') using any one from Oracle, Sybase, DB-2, SQL Server or MySQL.

2. Create the following tables and fill them with the data.

Table Name: student

id name birth gpa grad
1 Anderson 10/22/1987 3.9 2009
2 jones 4/16/1990 2.4 2010
3 Hernandez 8/12/1989 3.1 2011
4 Chen 2/4/1990 3.2 2011

Table Name: courses

id number name quarter
1 CS142 CP II Winter 2015
2 ART101 Finger painting Fall 2014
3 ART101 Finger painting Winter 2015
4 PE204 Mud wreatling Winter 2015

Create a join table course_students describing which student took which courses.

course_id student_id
1 1
3 1
4 1
1 2
2 2
1 3
2 4
4 4

3. Write SQL query to select students having GPA greater than 3 and the result should be sorted according to name.

4. Update student's (Jones) GPA to 2.5.

5. Find all students who took a CS142 course.

6. Delete record of student named "Jones".

7. Add one column ("degree") to students table.

8. Delete table courses_ students.

Reference no: EM13895136

Questions Cloud

Pan-hellenic empire by athens : The Persian wars and the formation of Delian League transformed Athens into a powerful nation. The members of the league were about 200 in number contributed money, ships, and men into the common pool.
Elemental iodine (i2) is a solid at room temperature : Elemental iodine (I2) is a solid at room temperature. What is the major attractive force that exists among different I2 molecules in the solid?
How might managers ensure their bidding procedure is fair : With regard to the case, Coral Construction, Inc v. San Francisco, without using preferential bidding, how might managers ensure that their bidding procedure is fair to all businesses, including those that may be suffering the effects of past disc..
Calculate the effect on profits of processing product : What should Elm do if it wants to maximize its profit for the period and calculate the effect on profits of processing Product A further beyond the split-off point - Calculate the effect on profits of processing Product D further beyond the split-off..
Write sql query to select students having gpa greater than 3 : Perform the following operations using SQL. Create a Database ('fdb') using any one from Oracle, Sybase, DB-2, SQL Server or MySQL. Write SQL query to select students having GPA greater than 3 and the result should be sorted according to name
Nacl dissolves in water, aqueous na+ and cl- ions result : When NaCl dissolves in water, aqueous Na+ and Cl- ions result. The force of attraction that exists between Na+ and H2O is called ____ interaction.
What is the firm s average tax rate? : what is the firm s average tax rate?
Can people increase their collaboration skills : Eexplain why it is an important skill for business professionals. Describe what is working with regards to your group's process and what is not working. Can people increase their collaboration skills? If so, how? If not, why not?
Different kinds of separations in gc chromatography : What are the different kinds of separations in GC chromatography?

Reviews

Write a Review

Database Management System Questions & Answers

  Design class of Student that has given Data members

Design a class of Student that has the attributes:· Data members: name, Mathematics score and Chemistry score - Declare an array of three elements.

  Create an e-r diagram and logical schema

Computerize the entire business, just the processes that Bob's Home Repairs finds most bothersome. You don't need to create forms for data entry - discuss why these differences exist and what, if any, solution you would recommend.

  To what extent should end users be involved in the

q1. to what extent should end users be involved in the selection of a database management system and database

  Developing a use case diagram

Developing activity diagrams. (Please note that for the use case, "Buy Items", there are two scenarios, namely, "General public customer buys items" and "Contractor customer buys items". You should develop an activity diagram for each of the..

  Tutorials on relational database design

Conduct some research online for tutorials on relational database design. Choose three that you think do the best job of teaching you about relational database design. Share your findings with the class, and explain why you chose the three tutoria..

  describe capability of Good Eat Enterprise Resource Planning

This system will also provide administrators with the ability to create custom reports and filter data based upon a wide variety of information captured from each store.

  Why might an organization select mysql over sql server

Large-scale database are available on several platforms. Among those are MySQL, SQL Server, and Oracle. Other than cost, why might an organization select MySQL over SQL Server or Oracle

  Construct a query that will show the number of days

Construct a query that will show the number of days that exist between the first invoice and last invoice, for each month, for each employee, using the DATEDIFF function

  Write program that models an employee

Write a program that models an employee. An employee has an employee number, a name, an address, and a hire date. A name consists of a first name and a last name.

  Create an er diagram that meets the above requirements

In MySQL Workbench 5.2, create an ER diagram that meets the above requirements. Include both Entity Classes and attributes that are necessary, given the above requirements. Save your ER model as an .mwb file

  Make a three-by-three chart with row and column labels

Make a 3-by-3 chart with row and column labels WHITE, GRAY, and BLACK. In each cell (i, j), indicate whether, at any point during a depth-first search of directed graph.

  Torri manufacturing corporation -determine unit product cost

Determine the unit product cost of each of the company's two products under the traditional costing system

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