logo

Database Creation and Management for PartyKids

Ms Donta Pop, the owner of Party Kids, wants to shift her paper-based records into a database to manage customer details, bookings, and asset storage locations.

26 Pages1726 Words365 Views
   

Added on  2023-06-11

About This Document

This article provides a step-by-step guide to creating and managing a database for PartyKids, an event management company. It includes examples of creating tables, inserting records, adding relationships, and securing confidential information. The article also explains the importance of database design modelling and normalization. Legal issues related to storing confidential information like credit card details are also discussed.

Database Creation and Management for PartyKids

Ms Donta Pop, the owner of Party Kids, wants to shift her paper-based records into a database to manage customer details, bookings, and asset storage locations.

   Added on 2023-06-11

ShareRelated Documents
COVER PAGE
Database Creation and Management for PartyKids_1
Task 1
Assumptions
A booking can have one or more items booked for that single booking.
Database Creation and Management for PartyKids_2
Task 2
Task 2a
1. Create database
/*Gaurav- st id 40773 creating database */
Create database partykids;
/* Gaurav- st id 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
);
Database Creation and Management for PartyKids_3
2. Insert statements
/*Gaurav-st id 40773 Inserting record 1*/
use partykids;
insert into customer VALUES(1,'John p','Smith','12/1 Flinders St, Melbourne
3000');
/*Gaurav-st id 40773 inserting records*/
insert into customer VALUES(2,'Angelina','Jolie','12/1 Flinders St, Melbourne
2000');
Database Creation and Management for PartyKids_4
--Gaurav-st id 40773 inserting records
use partykids;
insert into customer VALUES(3,'Peter','Parker','12/2 Flinders St,
Melbourne 1000');
--Gaurav-st id 40773 inserting records
use partykids;
insert into customer VALUES(4,'Will','Smith','12/2 Flinders St, Melbourne
1000');
Database Creation and Management for PartyKids_5
/*Gaurav-st id 40773 inserting records*/
use partykids;
insert into customer VALUES(6,'Jon','Snow','13/2 Flinders St, Melbourne
3000');
--Gaurav-st id 40773 inserting records
insert into customer VALUES(7,'Brianne','Tarth','13/2 Flinders St,
Melbourne 3000');
Database Creation and Management for PartyKids_6

End of preview

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

Related Documents
Database Fundamental: Creating and Managing a Party Rental Database
|13
|1898
|247

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

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

Microsoft SQL Server Database Designs
|15
|1734
|98

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

ER Diagram, SQL Queries and Database Security for Desklib
|15
|1974
|437