Skip to content

Commit

Permalink
Fixing SQL
Browse files Browse the repository at this point in the history
  • Loading branch information
ML-Chen committed Apr 21, 2020
1 parent f3b53ba commit 64f8918
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Contributors (and their primary Georgia Tech username):
- Michael Chen (mchen419)
- Min Htat Kyaw (mkyaw6)
- Alexander Trotter (atrotter6)
- Duncan Siebert (dsiebert3)
- Duncan Siebert (dsiebert3) – opted to take the final exam

## Getting started: server

Expand Down
6 changes: 3 additions & 3 deletions database/cs4400spring2020.sql
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ CREATE TABLE cs4400spring2020.BuildingTag (
);

CREATE TABLE cs4400spring2020.OrderDetail (
orderID INT(10) ZEROFILL NOT NULL,
orderID INT NOT NULL,
foodTruckName VARCHAR(55) NOT NULL,
foodName VARCHAR(55) NOT NULL,
purchaseQuantity INT NOT NULL,
Expand Down Expand Up @@ -469,7 +469,7 @@ SELECT FoodTruck.foodTruckName, FoodTruck.stationName, remainingCapacity, staffs
((i_hasRemainingCapacity = TRUE AND remainingCapacity>0) OR (i_hasRemainingCapacity =
FALSE)) AND
((i_minStaffCount is NULL AND i_maxStaffCount is NULL) OR (i_minStaffCount is
NULL AND staffs <= i_maxStaffCount) OR (i_maxStaffCount is NULL AND i_minStaffCount <= staffs) OR (staffs BETWEEN i_minStaffCount AND i_maxStaffCount))
NULL AND staffs <= i_maxStaffCount) OR (i_maxStaffCount is NULL AND i_minStaffCount <= staffs) OR (staffs BETWEEN i_minStaffCount AND i_maxStaffCount));
END //
DELIMITER ;
-- Query #18: mn_delete_foodTruck [Screen #11 Manager Manage Food Truck] COMPLETE
Expand Down Expand Up @@ -498,7 +498,7 @@ DELIMITER //
CREATE PROCEDURE mn_create_foodTruck_add_staff(IN i_foodTruckName VARCHAR(50), IN
i_staffName VARCHAR(50))
BEGIN
UPDATE STAFF(username, foodTruckName)
UPDATE STAFF
SET foodTruckName = i_foodTruckName
WHERE username = i_staffName;
END //
Expand Down

0 comments on commit 64f8918

Please sign in to comment.