forked from CodeYourFuture/Databases-Homework
-
Notifications
You must be signed in to change notification settings - Fork 44
London 10 | Maksim Lukianenko | Databases-Homework Week 2 #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
maxbmaapc
wants to merge
6
commits into
KeithBremer:master
Choose a base branch
from
maxbmaapc:maksim_lukianenko/week1
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…L queries feat(README.md): add task 1 to README.md to list rooms with a rate of more than 100.00 feat(README.md): add task 2 to README.md to list reservations with a checkin date this month and for more than three nights feat(README.md): add task 3 to README.md to list customers from cities that begin with the letter 'M' feat(README.md): add task 4 to README.md to create a new room type PENTHOUSE with a default rate of £185.00 feat(README.md): add task 5 to README.md to add new rooms 501 and 502 as room type PENTHOUSE with the default rate feat(README.md): add task 6 to README.md to add a new room 503 as a PREMIER PLUS type with a room rate of 143.00 to reflect improved views over the city
This commit adds SQL queries to complete the tasks for setting up and querying an ecommerce database. The queries include retrieving customers' names and addresses who live in the United States, retrieving customers in ascending name sequence, retrieving products whose name contains the word 'socks', retrieving products that cost more than 100, retrieving the 5 most expensive products, retrieving products with their corresponding suppliers, retrieving products sold by suppliers based in the United Kingdom, retrieving orders from a specific customer ID, retrieving orders from a customer named 'Hope Crosby', retrieving products in a specific order, retrieving products with their supplier for all orders of all customers, retrieving customers who bought a product from a supplier based in China, and listing all orders with customer name, order reference, order date, and order total amount in descending order of total.
This commit adds SQL queries to complete the tasks for setting up and querying an ecommerce database. The queries include retrieving customers' names and addresses who live in the United States, retrieving customers in ascending name sequence, retrieving products whose name contains the word 'socks', retrieving products that cost more than 100, retrieving the 5 most expensive products, retrieving products with their corresponding suppliers, retrieving products sold by suppliers based in the United Kingdom, retrieving orders from a specific customer ID, retrieving orders from a customer named 'Hope Crosby', retrieving products in a specific order, retrieving products with their supplier for all orders of all customers, retrieving customers who bought a product from a supplier based in China, and listing all orders with customer name, order reference, order date, and order total amount in descending order of total.
…base tasks" This reverts commit 64241c0. revert
This commit adds SQL queries to complete the tasks for setting up and querying an ecommerce database. The queries include retrieving customers' names and addresses who live in the United States, retrieving customers in ascending name sequence, retrieving products whose name contains the word 'socks', retrieving products that cost more than 100 showing product id, name, unit price, and supplier id, retrieving the 5 most expensive products, retrieving all products with their corresponding suppliers, retrieving all products sold by suppliers based in the United Kingdom, retrieving all orders, including order items, from customer ID 1, retrieving all orders, including order items, from customer named 'Hope Crosby', retrieving all the products in the order 'ORD006', retrieving all the products with their supplier for all orders of all customers, retrieving the names of all customers who bought a product from a supplier based in China, and listing all orders giving customer name, order reference, order date, and order total amount in descending order of total.
…tel management system feat(3-api): add .gitignore file to ignore node_modules directory feat(3-api): add db.js file to establish connection to PostgreSQL database feat(3-api): add package.json file with necessary dependencies and start script feat(3-api): add routes.js file with routes for /customers, /suppliers, and /products endpoints feat(3-api): add server.js file to start the Express server on a specified port
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…L queries
feat(README.md): add task 1 to README.md to list rooms with a rate of more than 100.00
feat(README.md): add task 2 to README.md to list reservations with a checkin date this month and for more than three nights
feat(README.md): add task 3 to README.md to list customers from cities that begin with the letter 'M'
feat(README.md): add task 4 to README.md to create a new room type PENTHOUSE with a default rate of £185.00
feat(README.md): add task 5 to README.md to add new rooms 501 and 502 as room type PENTHOUSE with the default rate
feat(README.md): add task 6 to README.md to add a new room 503 as a PREMIER PLUS type with a room rate of 143.00 to reflect improved views over the city