We use stored procedure because it may or may not return value but function must return a value.
We have first change delimiter as // to mark end of strored procedure
Then write stored procedure and then change delimiter as ;
after that call procedure to display records from tables.
mysql>DELIMITER //
mysql>CREATE PROCEDURE simple()
BEGIN
SELECT day, customerName, customerAddress ,customerPhone, ID, countOfWorkers,equipment, totalHours, price FROM Work,Customer ORDER BY FIELD(day,'M','T','W','H','F');
END//
mysql>DELIMITER ;
mysql>call simple();
##Relation Work: workld customerName totalHours jobCompleted equipment countOfWorkers day price Dog True hammer 100 Cat 2...
the
true and false
EXERCISES 101 About the Data The Web shopping data in this chapter (and Chapter 3) kitchen preferences Consump- in the United States.) The data for derived from surveys reported by ComScore, a are a subset of the Residential Energy (RECS), performed by the Department of of attitudes toward file sharing are firm that monitors the Web-browsing habits of a tion Survey on airline arrivals in the 4M example of tics. (From the main page, follow the...