Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

Name:

Iman

Assignment:

Database System

Submitted To:

Sir Usama

Roll No: 43

Section:

BS SWE

Minhaj University Lahore

Task:
DDL Tasks for Library Management System In this task, you will create tables for
the Library Management System using Data Definition Language (DDL). The focus
is on defining the structure of the database by creating tables and specifying the
data types and constraints. Entities and Attributes Books: BookID (Primary Key,
Integer) Title (Varchar(255)) Author (Varchar(255)) Genre (Varchar(100))
YearPublished (Integer) ISBN (Varchar(13), Unique) Members: MemberID
(Primary Key, Integer) FirstName (Varchar(100)) LastName (Varchar(100))
DateOfBirth (Date) Email (Varchar(255), Unique) Loans: LoanID (Primary Key
Integer) BookID ( Integer) MemberID ( Integer) LoanDate (Date) ReturnDate (Date)

Create Database
➢ Create First Table “Books”
❖ Insert Information:

❖ Result:
➢ Create Second Table “Loans”

❖ Insert Information:
❖ Result:
➢ Create Third table “Members”

❖ Insert Information:
❖ Result:

You might also like