I have the queries below in one stored procedure and want to put the results of those queries into one tmp table. How do I do that?
CREATE DEFINER=`server`@`%` PROCEDURE `GetMonthlyRate`() BEGIN SELECT OH.ActualWeight, OH.ServiceDate FROM OperationsHaul OH WHERE OH.RecordDisabled = 0 AND CCT.CoreContentTypeCategoryID = 1; SELECT OH.ActualWeight, OH.IsRecycleContaminated, OH.RecycleContaminationPercent, OH.RecycleRebatePercent, OH.CoreContentTypeID, OH.ServiceDate FROM OperationsHaul OH WHERE OH.RecordDisabled = 0 AND CCT.CoreContentTypeCategoryID = 1; SELECT OH.ActualWeight, OH.IsRecycleContaminated, OH.RecycleContaminationPercent, FROM OperationsHaul OH WHERE OH.RecordDisabled = 1 AND CCT.CoreContentTypeCategoryID = 1; END
Is it a CREATE TABLE or INSERT??