Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions part1-productsQuery.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/* My MariaDB assignment on query*/


SELECT productName, productLine, buyPrice
FROM products;
5 changes: 5 additions & 0 deletions part2-customersQuery.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/* My MairaDB queries for Part 2 */

SELECT contactFirstName, contactLastName, city
FROM customers
WHERE country = 'Germany';
6 changes: 6 additions & 0 deletions part3-ordersQuery.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/* Part three of the assignmment. */


SELECT DISTINCT STATUS
FROM orders
ORDER BY STATUS ASC;
4 changes: 4 additions & 0 deletions part4-paymentQuery.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/* Assignment question part 4 */

SELECT * FROM payments
WHERE paymentDate > '2005/01/01';
7 changes: 7 additions & 0 deletions part5-employeeQuery.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* Part 5 answer on employee queries */

SELECT lastName, firstName, email, jobTitle
FROM employees, offices
WHERE employees.officeCode = offices.officeCode
AND offices.city = ('San Francisco')
ORDER BY lastName asc;
8 changes: 8 additions & 0 deletions part6-productsQuery.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* Final question on the assignment on car products */

SELECT productName, productLine, productScale, productVendor
FROM products
WHERE productLine = 'Vintage Cars'
or productLine = 'Classic Cars'
ORDER BY productName ASC;