logo

Database Implementation for PartyKids

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

21 Pages1513 Words397 Views
   

Added on  2023-06-11

About This Document

This article discusses the implementation of a database for PartyKids, an event management company. It includes tasks such as creating tables, populating data, and executing queries. The article also highlights the importance of an ER diagram and legal issues related to storing customer data.

Database Implementation for PartyKids

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

   Added on 2023-06-11

ShareRelated Documents
Running head: DATABASE IMPLEMENTATION
Database Implementation
Name of the Student:
Name of the University:
Author Note
Database Implementation for PartyKids_1
1
DATABASE IMPLEMENTATION
Task 1
ER Diagram
Task 2
Task 2a
1
PRINT 'Creating database.';
CREATE DATABASE PartyKids;
GO
Database Implementation for PartyKids_2
2
DATABASE IMPLEMENTATION
PRINT 'Creating table Customer ...';
CREATE TABLE Customer (
CustomerID INTEGER NOT NULL IDENTITY ,
CustomerName VARCHAR(45) ,
CustomerAddress VARCHAR(150) ,
PRIMARY KEY(CustomerID));
GO
2
PRINT 'Populating the Customer table'
SET IDENTITY_INSERT [dbo].[Customer] ON
Insert Into Customer(CustomerID,CustomerName, CustomerAddress)
VALUES
(1, 'Cristiano Ronalado', '123 Porto street'),
(2, 'Pedro Rodriguez', 'benson road'),
(3, 'John Smith', '12/1 Flinders St, Melbourne 3000'),
(4, 'Adil Rashid', 'BJ road'),
(5, 'Michael owen', '32 centre street'),
Database Implementation for PartyKids_3
3
DATABASE IMPLEMENTATION
(6, 'Robie Fowler', '45 benton street'),
(7, 'Lionel Messi', '56 avenue road');
SET IDENTITY_INSERT [dbo].[Customer] OFF
GO
3
Select * from Customers;
4
Print 'Updating columns';
UPDATE dbo.Customer
SET CustomerAddress = ' 15/1 Flinders Street'
Database Implementation for PartyKids_4
4
DATABASE IMPLEMENTATION
WHERE CustomerName = 'John P Smith'
GO
Select CustomerName, CustomerAddress From Customer;
5
Select *
From Customer
Where CustomerName LIKE 'J%';
Database Implementation for PartyKids_5
5
DATABASE IMPLEMENTATION
6
Select *
From Customer
Where CustomerAddress LIKE '%3000%';
Database Implementation for PartyKids_6

End of preview

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

Related Documents
Database Implementation: ER Diagram, Tables, and Queries
|19
|1655
|417

Database Fundamentals: ER Diagram, Tables, and Queries
|26
|2044
|65

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

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

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