MySQL Forums
Forum List  »  Newbie

Re: SUM IF totals help
Posted by: Andrew Adcock
Date: February 04, 2010 07:12PM

could the following work??

CREATE TABLE IF NOT EXISTS `bdgt_month_year_combo` (
  `month_year_combo_id` int(11) NOT NULL AUTO_INCREMENT,
  `monthly_budget_id` int(11) NOT NULL,
  `select_month` date NOT NULL,
  PRIMARY KEY (`month_year_combo_id`),
  KEY `month_year_combo_id` (`month_year_combo_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;

--
-- Dumping data for table `bdgt_month_year_combo`
--

INSERT INTO `bdgt_month_year_combo` (`month_year_combo_id`, `monthly_budget_id`, `select_month`) VALUES
(1, 5, '2010-01-01'),
(2, 5, '2010-02-01'),
(3, 5, '2010-03-01'),
(4, 5, '2010-04-01'),
(5, 5, '2010-05-01');

Options: ReplyQuote


Subject
Written By
Posted
February 03, 2010 10:24AM
February 03, 2010 02:31PM
February 03, 2010 03:19PM
February 03, 2010 07:57PM
February 04, 2010 04:10AM
February 04, 2010 06:12AM
February 04, 2010 07:57AM
February 04, 2010 08:35AM
February 04, 2010 09:12AM
February 04, 2010 10:02AM
February 04, 2010 10:19AM
February 04, 2010 10:26AM
February 04, 2010 11:06AM
February 04, 2010 12:52PM
Re: SUM IF totals help
February 04, 2010 07:12PM
February 04, 2010 06:53PM
February 04, 2010 02:11PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.