Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dm-zhuk/goit-rdb-hw-05
Relationship Databases Topic V Nested requests. Code reuse
https://github.com/dm-zhuk/goit-rdb-hw-05
mysql nested reuseable
Last synced: about 2 months ago
JSON representation
Relationship Databases Topic V Nested requests. Code reuse
- Host: GitHub
- URL: https://github.com/dm-zhuk/goit-rdb-hw-05
- Owner: dm-zhuk
- Created: 2024-06-05T14:19:09.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-06-07T21:26:58.000Z (9 months ago)
- Last Synced: 2024-11-07T21:13:21.737Z (3 months ago)
- Topics: mysql, nested, reuseable
- Homepage: https://dm-zhuk.github.io/goit-rdb-hw-05/
- Size: 7.71 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# goit-rdb-hw-05 Relationship Databases Topic V Nested requests. Code reuse
-- Task 1. SQL query that displays the `order_details` table and the `customer_id` field from the `orders` table, respectively, for each record field from the `order_details` table

-- Task 2. SQL query that displays the `order_details` table. The results are filtered so that the corresponding record from the `orders` table fulfils the condition `shipper_id=3`. A nested query in the `WHERE` clause used

-- Task 3. SQL query nested in the `FROM' statement, which selects rows with the `quantity>10' condition from the `order_details` table.

-- Task 4: Solution for task 3 using the `WITH` statement to create the temporary table `temp`

-- Task 5: This function has two parameters that divide the first parameter by the second. Both the parameters and the return value are of `FLOAT` type. The `DROP FUNCTION IF EXISTS` construct applied to the `quantity` attribute of the `order_details` table

[text](sql_code.txt)