Skip to content

Conversation

@maxbmaapc
Copy link

…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

…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.
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.
@maxbmaapc maxbmaapc changed the title London 10 | Maksim Lukianenko | Databases-Homework Week 1 London 10 | Maksim Lukianenko | Databases-Homework Week 2 Aug 28, 2023
…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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant