0% found this document useful (0 votes)
11 views8 pages

dbms2 1

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views8 pages

dbms2 1

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

INDIAN INSTITUTE OF INFORMATION TECHNOLOGY UNA

HIMACHAL PRADESH
(An Institute of National Importance under MoE)
Saloh, Una, Himachal Pradesh - 177209

ITC404
Database Management System

Submitted By: Submitted To:


Name: Aditya Kumar Arya Dr. Prince Sharma
Roll Number: 22305 School of Computing
Academic Session: AY 2023-24

ITC40422305
INDEX
Practical Title Page Date Remarks
No. No.
1. Introduction to database 3-20 10.01.24
1.1. To learn the installation and setup of pgAdmin4 3-9 10.01.24
1.2. To learn the creation of databases and tables. 10-13 12.01.24
1.3. To learn the implementation of SQL query using 14-20 17.01.24
INSERT
2. 21 19.01.24
2.1 To learn the implementation of SQL query
using SELECT.
2.2
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.

ITC40422305
PRACTICAL 2
Basic Operations in PostgreSQL
Date:19/01/2024

Practical 2.1: To learn the implementation of SQL query using SELECT .


Description: This experiment explores fetching of either the entire table or according to some
specified rules. The data returned is stored in a result table. This result table is also called the
result set. With the SELECT clause of a SELECT command statement, we specify the columns
that we want to be displayed in the query result and, optionally, which column headings we prefer
to see above the result table.
1.
Input code:
SELECT (class,major)
FROM student

Output:

2.

Figure 2.1.1: Figure showing selected attribute entries from student

Input code:
SELECT (section_identifier,course_number)
FROM section

ITC40422305
Output:

Figure 2.1.2: Figure showing selected attribute entries from section

3.
Input Code:
SELECT (section_identifier,course_number,year)
FROM section

Output:

4.Input Code:

ITC40422305
SELECT (student_number,section_identifier,grade)
FROM grade_report

Output:

5.
Input Code:
SELECT (name,class)
FROM student
Output:

Figure 2.1.5: Figure showing selected attribute entries from student

ITC40422305
6.Input Code:
SELECT(semester,instructor)
FROM section

Output:
7.

Input Code:
SELECT(credit_hours,department)
FROM course

Output:

Figure 2.1.7: Figure showing selected attribute entries from course

8.Input Code:
SELECT(course_number,prerequisite_number)
FROM prerequisite

Output:

ITC40422305
Input code:
SELECT(student_number,class)
FROM student

Output:

Input code:
SELECT(student_number,grade)
FROM grade_report

ITC40422305
Output:

ITC40422305

You might also like