logo

Database Design and Legal Issues for Storing Credit Card Details - Desklib

   

Added on  2023-06-11

17 Pages1616 Words451 Views
COVER PAGE

Task 1
Assumptions
A booking results to only one payment although the booking may have one or more items.

Task 2
Task 2a
1. Create database and customer table
--Name: gursevak singh
--studnet ID: 40485
create database partykids;
--Name: gursevak singh
--studnet ID: 40485
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 records into customers table.
--Name: gursevak singh
--studnet ID: 40485
insert into customer VALUES(1,'John','Smith','12/1 Flinders St, Melbourne
2000'),
(2,'Peter','Griffin','13/1 Flinders
St, Melbourne 2000'),
(3,'Lois','Griffin','12/2 Flinders
St, Melbourne 1000'),
(4,'Brian','Griffin','12/3 Flinders
St, Melbourne 2000'),
(5,'Meg','Griffin','12/3 Flinders St,
Melbourne 2000'),
(6,'jr Stweie','Griffin','12/3
Flinders St, Melbourne 3000');
3. Selecting all customers
--Name: gursevak singh
--studnet ID: 40485
select * from customer;

End of preview

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

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

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

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

Database Implementation for PartyKids
|21
|1513
|397

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

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