logo

Database Fundamental: Creating and Managing a Party Rental Database

   

Added on  2023-06-11

13 Pages1898 Words247 Views
Name Gurpreet singh
student id 40738
Database fundamental

Task 1
Assumptions
A customer can book more than one item in one single booking thus a booking has one or more items.

Task 2
Task 2a
1. Create statemets
/*Gurpreet singh-40738 creating database*/
create database partykids;
/*Gurpreet singh-40738 creating database*/
use partykids;
create table customer (
customerID smallint not null primary key,
firstname nvarchar(50) not null,
lastname nvarchar(50) not null,
address nvarchar(50) not null
);
2. Insert statements
/*Gurpreet singh-40738 Inserting record 1*/
use partykids;
insert into customer VALUES(1,'John p','Smith','12/1 Flinders St, Melbourne
3000');

/*Gurpreet singh-40738 Inserting record 1*/
use partykids;
insert into customer VALUES(2,'Lebron','James','12/1 Flinders St,
Melbourne 2000');
/*Gurpreet singh-40738 Inserting record 1*/
use partykids;
insert into customer VALUES(3,'Tristan','THompson','12/2 Flinders St,
Melbourne 1000');
/*Gurpreet singh-40738 Inserting record 1*/
use partykids;
insert into customer VALUES(4,'Peter','Griffin','13/2 Flinders St,
Melbourne 3000');
/*Gurpreet singh-40738 Inserting record 1*/
use partykids;
insert into customer VALUES(5,'Lois','Griffin','13/2 Flinders St,
Melbourne 3000');
/*Gurpreet singh-40738 Inserting record 1*/
use partykids;
insert into customer VALUES(6,'Meeg','Griffin','13/2 Flinders St,
Melbourne 3000');
/*Gurpreet singh-40738 Inserting record 1*/
use partykids;
insert into customer VALUES(7,'Brian','Griffin','13/2 Flinders St,
Melbourne 3000');

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Database Creation and Management for PartyKids
|26
|1726
|365

Creating and Modelling a Database for Partykids Business
|20
|1589
|231

Database Design and Legal Issues for Storing Credit Card Details - Desklib
|17
|1616
|451

Database Fundamentals: ER Diagram, SQL Queries, Importance of ER Diagram, Legal Issues and Security Techniques
|20
|2283
|323

Database Designs Using Microsoft SQL Server: PartyKid Database System
|15
|2060
|494

Database Design and Legal Issues - Desklib Report
|18
|2265
|342