2. Project Problem for ticket GSC online ticket
system is the need of the clients and the users,
what is desired from the system such as provide
the customer the complete information of the
movie. Besides that, admin can use the system to
insert and update data which will update and
changing according to the database. For
example, for administrator the system can be
accessed by providing administrator password.
Administrator can search or update the
information related to customer details and so
on. And for customer, customer can view and
book the movie ticket by selecting the seat of
their choices.
3.
4. The attributes for user are user ID and password,
address and phone No which user ID are primary
key.
The attributes for ticket are ticket No, time, date,
seat No and movie title.
The attributes for GSC Account are user ID,
username and password which is user ID is
primary key.
The attributes for payment are payment No, date
and time which primary key payment No.
The attributes for confirmation are User ID,
name, movie title, ticket No, date, time and seat
No.
5. Superclass is Payment.
Subclasses are Cash Counter and Online
which are also type of payment.
The constraint is MANDATORY because ALL
Payment must be either Cash or Online.
The constraint is OR because the Payment
must either Cash r or Online but not at
the same time.
6. SQL is a standard language for accessing databases.
The SQL SELECT statement is what we use to choose, or
select, the data that we want returned from the database to
our application.
The WHERE Clause is to start limiting, or filtering, the data we
fetch from the database. By adding a WHERE clause to
the SELECT statement,add one (or more) conditions that must
be met by the selected data.
This will limit the number of rows that answer the query and
are fetched. In many cases, this is where most of the "action"
of a query takes place.
7.
8.
9. EXAMPLE OF QUERIES IN MOVIE TICKET SYSTEM
Query to view the Customer Name,Movie Title, time
and SeatNo.
SELECT Confirmation.CustomerName, Confirmation.MovieTitle,
Confirmation.Time, Confirmation.SeatNo
FROM Confirmation;
The selection from the "Confirmation" table will now look like this:
10. •Query to update customer detail.
The UPDATE statement is used to update existing records in a
table.
UPDATE Customer
SET CustomerName='NurSyafizah',address='Setiawangsa'
WHERE CustomerName='Syafiza';
The selection from the "Customers" table will now look like this: