Question: SUBJECT:DATABASE MANAGEMENT AND ADMINISTRATION QUESTION: TASK 7.1 Consider the following schema and write SQL query for given statements. Student ( regNo, sName, sCity, sCGPA, sAge)

SUBJECT:DATABASE MANAGEMENT AND ADMINISTRATION

QUESTION:

TASK 7.1

Consider the following schema and write SQL query for given statements.

Student ( regNo, sName, sCity, sCGPA, sAge)

Course ( cCode, cName, credit_hours)

Enrollment (regNo, cCode, semester,quality_points,Grade)

  1. Display 2nd row of Student table using Cursors.

  1. Display all records of Enrollment table which are placed at even rows.

  1. Execute given query in SQL and do as directed.
    • UPDATE STUDENT SET ECITY = ISB WHERE EID>101
    • Count how many records have been updated in above query using cursor.

  1. Write a mechanism which must not allow user to delete more than 1 records using cursor and transaction.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!