V
V
vetsmen2018-01-30 14:42:47
MySQL
vetsmen, 2018-01-30 14:42:47

How to combine 2 requests?

SELECT COUNT(*) FROM EItems WHERE userid = 22
SELECT COUNT(*) FROM SItems WHERE userid = 22

How to combine these 2 requests so that it gives the sum of the first and second request at once?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
enchikiben, 2018-01-30
@EnChikiben

https://stackoverflow.com/questions/11397690/sum-a...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question