[Solved] CS313 Assignment 4

$25

File Name: CS313_Assignment_4.zip
File Size: 169.56 KB

SKU: [Solved] CS313 Assignment 4 Category: Tag:
5/5 - (1 vote)

Rate this product

  1. Q1. Create a user called universityDB+last 4 digits of roll number. Ex: universityDB0001( Then connect psql terminal with this user )
  2. Q2. Create the database called university.
  3. Q3. Connect the database using the following command.c university;
  4. Q4. Create the tables in the university database using DDL.sql file.i path_to_fileDDL.sql
  5. Q5. Load the data into tables using insert.sql ( This will take some time as the data is very huge

)

i path_to_fileinsert.sql( we have shared these .sql files on moodle)

Q6. Get the details of the table using information_schema. (instructions are given at the end of this document )

Q7

Q8.

Install pgAdmin tool (if not installed) for interacting with postgresql using a GUI interface. Spend some time learning various features of pgAdmin.

( we have shared the documentation on pgAdmin on moodle ) Execute the following queries :

Find the course id, title, instructor id and name of those instructors who are from CSE department but are teaching a course of Civil department in the year 2009. Arrange results in ascending order of instructor names.

a.

  1. Add a new course with course_id as cs333 (with suitable values for other attributes) for the CSE department and which will have cs303 as a prerequisite. Write insert statements for the same.
  2. Update salaries of instructors by 10% if their departments have a budget of more than 900000 rupees.Write the update statements for the same.
  3. Find CSE department courses (id and title) and number of students taking that course in the year 2007 and semester Fall where the number is greater than 15. Arrange the results in ascending order of course id.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] CS313 Assignment 4[Solved] CS313 Assignment 4
$25