HamiIT
Sign inGet started
Home
ADD CONTENT

Sign in Required

Please sign in to add content

Sign In
ProgramsBsc CSITSemester 4Database Management SystemUnit 6: SQL (8 Hrs.)
Chapter Study

Bsc CSIT Semester 4 – Database Management System – Unit 6: SQL (8 Hrs.)

Comprehensive questions and detailed answers for Unit 6: SQL (8 Hrs.). Perfect for exam preparation and concept clarity.

6
Questions
45
Marks
Back to All Chapters
1

Create two table Courses (CID, Course, Dept) and HoD (Dept, Head) using SQL language with all constraints [Primary key, Foreign key and Referential Integrity]. Assume the types of attributes by your own.

MediumTHEORY5 marks2076(TU Final)
2

Retrive the TName, SName, SPhone for “ABC” school using SQL from given relation as below.

1. TEACHER (TID, TName, TAddress, TQualification) 2. SCHOOL (SID, SName, SAddress, SPhone) 3. SCHOOL_TEACHER (SID, TID, No_of Period)
MediumTHEORY5 marks2078(TU Final)
3

Explain Assertion and Triggers with example.

MediumTHEORY5 marks2079(TU Final)
4

Consider a banking database with three tables and primary keys underlined as given below:
Customer(CustomerID, CustomerName, Address, Phone, Email)
Owns(CustomerID, AccountNumber)
Account(AccountNumber, AccountType, Balance)
Write both relational algebra and SQL queries:
a. To display name of all customers who live in “Kathmandu”.
b. To count total number of customers.
c. To find name of those customers who have balance greater than or equal to 100000.
d. To find average balance of each account type.

HardTHEORY10 marks2080(TU Final)
5

Consider a banking database with three labels and primary key underlined as given below:
Customer (CustomerID , CustomerName, Address, Phone, Email)
Borrows (CustomerID, LoanNumber )
Loan ( LoanNumber , LoanType, Amount )

Write both relational algebra and SQL queries:
a. To display name of all customers who live in “Lalitpur” in ascending order of name.
b. To count total number of customers having loan at the bank.
c. To find name of those customers who have loan amount greater than or equal to 500000.
d. To find average loan amount of each accoun’t type.\

HardTHEORY10 marks2080(TU Final)
6

Consider the library database schema containing the tables given below where primary keys are underlined.

USER (UserID, User_name, Address)
USES (UserID, BookID, Issued_date, Returned_date)
BOOK (BookID, Book_name, Author, PublisherID)
PUBLISHER (PublisherID, Publisher_name, Address)

Specify the following queries in both SQL and Relational Algebra on this database schema:
a. Retrieve names of all books issued to the user “Hari”.
b. Retrieve the names of all books published by “ABC publication”.
c. Count the number of books published by the author “Ram”.

HardTHEORY10 marks2081(TU Final)
Showing 6 questions

Exam Years

Past question papers

2081
TU Final•1 questions
2080
TU Final•1 questions
2080
TU Final•1 questions
2079
TU Final•1 questions
2078
TU Final•1 questions
2076
TU Final•1 questions

Questions in Unit 6: SQL (8 Hrs.)

Create two table Courses (CID, Course, Dept) and HoD (Dept, Head) using SQL language with all constraints [Primary key, Foreign key and Referential Integrity]. Assume the types of attributes by your o

Marks: 5

Year: 2076 Final TU

SQL Code to Create Tables with Constraints Tables: Courses and HoD Includes Primary Key, Foreign Key, and Referential Integrity constraints. sql -- Creating HoD Table (Parent Table) CREATE TABLE

Retrive the TName, SName, SPhone for “ABC” school using SQL from given relation as below. 1. TEACHER (TID, TName, TAddress, TQualification) 2. SCHOOL (SID, SName, SAddress, SPhone) 3. SCHOOLTEACHER (S

Marks: 5

Year: 2078 Final TU

Relations: 1. TEACHER (TID, TName, TAddress, TQualification) 2. SCHOOL (SID, SName, SAddress, SPhone) 3. SCHOOLTEACHER (SID, TID, NoofPeriod) SQL Query: sql SELECT T.TName, S.SName, S.SP

Explain Assertion and Triggers with example.

Marks: 5

Year: 2079 Final TU

1. Assertion Definition: An assertion is a constraint or rule that specifies a condition which must always be true in the database. - Applied to the entire database, not just a single table. - E

Consider a banking database with three tables and primary keys underlined as given below:\ Customer(CustomerID, CustomerName, Address, Phone, Email)\ Owns(CustomerID, AccountNumber)\ Account(AccountNu

Marks: 10

Year: 2080 Final TU

Given Tables: - Customer(CustomerID, CustomerName, Address, Phone, Email) - Owns(CustomerID, AccountNumber) - Account(AccountNumber, AccountType, Balance) --- a. Display names of all customers wh

Consider a banking database with three labels and primary key underlined as given below:\ Customer (CustomerID , CustomerName, Address, Phone, Email)\ Borrows (CustomerID, LoanNumber )\ Loan ( LoanNum

Marks: 10

Year: 2080 Final TU

Database Schema - Customer(CustomerID, CustomerName, Address, Phone, Email) - Borrows(CustomerID, LoanNumber) - Loan(LoanNumber, LoanType, Amount) --- a. Display name of all customers who live

Consider the library database schema containing the tables given below where primary keys are underlined.\ \ USER (UserID, Username, Address)\ USES (UserID, BookID, Issueddate, Returneddate)\ BOOK (B

Marks: 10

Year: 2081 Final TU

Database Schema - USER(UserID, Username, Address) - USES(UserID, BookID, Issueddate, Returneddate) - BOOK(BookID, Bookname, Author, PublisherID) - PUBLISHER(PublisherID, Publishername, Address)

About Unit 6: SQL (8 Hrs.) Questions

This page contains comprehensive questions from the Unit 6: SQL (8 Hrs.) chapter of Database Management System, part of the Bsc CSIT Semester 4 curriculum. All questions include detailed model answers from past TU exam papers.

Study Tips

  • Review concepts before attempting questions
  • Practice writing complete answers
  • Compare your answers with model solutions
  • Focus on questions from recent years
  • Use direct links (#question-ID) to bookmark and share specific questions

Related Resources

← Back to Database Management System Chapters

Unit 6: SQL (8 Hrs.) chapter questions with answers for Database Management System (Bsc CSIT Semester 4). Prepare for TU exams with our comprehensive question bank and model answers.

H
Hami IT

Empowering IT students with quality education resources and comprehensive exam preparation materials.

Programs

  • Flutter
  • Java
  • DevOps

Company

  • About Us
  • Contact

Contact

  • 📧hamiit.dev@gmail.com
  • 📞+977 9813706443
  • 📍Kathmandu, Nepal

© 2026 Hami IT. All rights reserved.