Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ginga1402/travego_travellers
MySQL Mini Project
https://github.com/ginga1402/travego_travellers
college-project data mysql-database
Last synced: about 2 months ago
JSON representation
MySQL Mini Project
- Host: GitHub
- URL: https://github.com/ginga1402/travego_travellers
- Owner: Ginga1402
- Created: 2023-05-03T18:01:21.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-01-25T14:44:45.000Z (about 1 year ago)
- Last Synced: 2024-01-25T15:57:23.478Z (about 1 year ago)
- Topics: college-project, data, mysql-database
- Homepage:
- Size: 190 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Travego_Travellers
MySQL Mini ProjectThe focus of this project is to learn to write different types SQL statements to insert and retrieve data from a database. For database storage we will use MySQL, information related to MySQL and several commands have already been discussed in weekly notebooks. You can refer to these to gather hints on functionality.
![R](https://github.com/Ginga1402/Data_Visualization_on_Honey_Production_dataset/assets/130181481/287ca17c-3e06-4ec5-a2ec-1d3d08975827)
##Problem Statement
In this project you have to do the following activities…
● Create the two tables
● Insert data in these tables
![image](https://github.com/Ginga1402/Data_Visualization_on_Honey_Production_dataset/assets/130181481/6e92a029-a8ed-4a1c-9b4b-d49e49a9d7a8)
● Retrieve the data from these tables based on the requirements mentioned below
a. Create a schema named Travego and create the tables mentioned above with the mentioned column names. Also, declare the relevant datatypes for each feature/column in the dataset.
b. Insert the data in the newly created tables.
● Perform read operation on the designed table created in the above task.
a. How many female passengers traveled a minimum distance of 600 KMs?
b. Write a query to display the passenger details whose travel distance is greater than 500 and who are traveling in a sleeper bus.
c. Select passenger names whose names start with the character 'S'
d. Calculate the price charged for each passenger, displaying the Passenger name, Boarding City, Destination City, Bus type, and Price in the output.
e. What are the passenger name(s) and the ticket price for those who traveled 1000 KMs Sitting in a bus?
f. What will be the Sitting and Sleeper bus charge for Pallavi to travel from Bangalore to Panaji?
g. Alter the column category with the value "Non-AC" where the Bus_Type is sleeper
h. Delete an entry from the table where the passenger name is Piyush and commit this change in the database.
i. Truncate the table passenger and comment on the number of rows in the table (explain if required).
j. Delete the table passenger from the database.
## The SQL queries for the questions asked above are provided in the Travego Travellers Solution.sql File.