0% found this document useful (0 votes)
40 views9 pages

Iman Database

Uploaded by

nimranadeem244
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)
40 views9 pages

Iman Database

Uploaded by

nimranadeem244
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/ 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