Jump to content

not enough rows returned.


The Little Guy

Recommended Posts

Why is this only returning 5 results? It should return 6.

 

The second select returns two rows count of "males" and count of "females".

 

When run individually they all return the correct results.

 

				(SELECT COUNT(id) AS count FROM users)
			UNION
			(SELECT COUNT(id) as count FROM users GROUP BY gender)
			UNION
			(SELECT COUNT(id) as count FROM images)
			UNION
			(SELECT COUNT(id) as count FROM videos)
			UNION
			(SELECT COUNT(id) as count FROM events)
			UNION
			(SELECT COUNT(id) as count FROM leagues)

Link to comment
https://forums.phpfreaks.com/topic/118985-not-enough-rows-returned/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.