SELECT (
SELECT COUNT(*)
FROM user_table
) AS tot_user,
(
SELECT COUNT(*)
FROM cat_table
) AS tot_cat,
(
SELECT COUNT(*)
FROM course_table
) AS tot_course
More Related Contents:
- SQL select only rows with max value on a column [duplicate]
- What is the error “Every derived table must have its own alias” in MySQL?
- Generating Depth based tree from Hierarchical Data in MySQL (no CTEs)
- Authentication plugin ‘caching_sha2_password’ cannot be loaded
- MySQL Error: : ‘Access denied for user ‘root’@’localhost’
- How to grant remote access permissions to mysql server for user?
- mySQL convert varchar to date
- Generating a series of dates [duplicate]
- How to escape single quotes in MySQL
- MySQL comparison with null value
- Why is the estimated rows count very different in phpmyadmin results?
- Slow query when using ORDER BY
- How to import XML file into MySQL database table using XML_LOAD(); function
- Unique constraint that allows empty values in MySQL
- Matching all values in IN clause
- INTERSECT in MySQL
- Having both a Created and Last Updated timestamp columns in MySQL 4.0
- MySQL select with CONCAT condition
- mysql field name from variable
- What does SQL clause “GROUP BY 1” mean?
- Bogus foreign key constraint fail
- MySQL SELECT LIKE or REGEXP to match multiple words in one record
- Syntax error when using except in a query
- Easiest way to copy a table from one database to another?
- sql like operator on integer
- How to make a primary key start from 1000?
- The best way to remove value from SET field?
- connecting to a docker-compose mysql container denies access but docker running same image does not
- MySQL’s lower_case_table_names won’t change
- Optimistic locking in MySQL