Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • The first query has count=1 on all rows. I need the total count. The second query return this error: Can't reopen table: 't1' Commented May 5, 2014 at 8:38
  • not sure about the error you are getting its working for me sqlfiddle.com/#!2/fbfe82/5 Commented May 5, 2014 at 8:40
  • Sorry! I tested it using CREATE TEMPORARY TABLE. How stupid am I? It is working excellent! THANKS! Commented May 5, 2014 at 8:43