This project includes SQL scripts to create database tables for managing user credentials, cellular packages, and tariffs.
This project contains SQL scripts to create and manage database tables for a system that handles user credentials, cellular packages, and tariffs. The tables are designed to store information about users, their associated packages, and pricing details for different tariffs.
The UserCredentials table stores user authentication information.
user_id: Primary key for identifying users.username: Unique username for login.password: Password for user authentication.email: Unique email address for user contact.created_at: Timestamp for user registration.package_id: Foreign key referencing the package chosen by the user.tariff_id: Foreign key referencing the tariff selected by the user.
The CellularPackages table stores information about available cellular packages.
package_id: Primary key for identifying packages.package_name: Unique name of the cellular package.description: Description of the package details.price: Price of the package per unit.
The Tariffs table stores information about tariffs for cellular usage.
tariff_id: Primary key for identifying tariffs.tariff_name: Unique name of the tariff.description: Description of the tariff details.price_per_minute: Price per minute for tariff usage.
- The
UserCredentialstable has relationships (package_idandtariff_id) with theCellularPackagesandTariffstables respectively, allowing users to be associated with their chosen package and tariff details.
-
Database Configuration:
- Ensure Oracle Database is installed and running.
- Connect to Oracle using SQL*Plus, SQL Developer, or another client.
-
Running SQL Scripts:
- Execute the provided SQL scripts (
create_tables.sql) to create the necessary tables.
- Execute the provided SQL scripts (
-
Inserting Data:
- Use SQL
INSERTstatements to populate tables with initial data.
- Use SQL
-
Querying Data:
- Write SQL
SELECTqueries to retrieve information from the tables.
- Write SQL
Contributions are welcome. For major changes, please open an issue first to discuss what you would like to change.