Try this:
SELECT SEC_TO_TIME(AVG(TIME_TO_SEC(`login`))) FROM Table1;
Test data:
CREATE TABLE `login` (duration TIME NOT NULL);
INSERT INTO `login` (duration) VALUES
('00:00:20'),
('00:01:10'),
('00:20:15'),
('00:06:50');
Result:
00:07:09
More Related Contents:
- Calculate Average of the largest values in multiple columns
- Should MySQL have its timezone set to UTC?
- How to set a maximum execution time for a mysql query?
- Checking a table for time overlap?
- How do I get the first day of the week of a date in mysql?
- Difference in minutes from two time fields in MySQL
- Surpassing MySQL’s TIME value limit of 838:59:59
- SQL query with avg and group by
- how to create mysql database backup file in windows [closed]
- Calculate date range between two rows
- remove duplicate records – mysql
- SQL query return data from multiple tables
- MySQL Creating tables with Foreign Keys giving errno: 150
- Inserting multiple rows in mysql
- How do I quickly rename a MySQL database (change schema name)?
- Laravel Migration Error: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes
- Convert MySQL to SQlite [closed]
- MySQL query String contains
- ERROR 1067 (42000): Invalid default value for ‘created_at’
- Capitalize first letter. MySQL
- #1055 – Expression of SELECT list is not in GROUP BY clause and contains nonaggregated column this is incompatible with sql_mode=only_full_group_by
- MySQL remote connection fails with “unknown authentication method”
- Import MySQL database into a SQL Server
- How does MySQL’s ORDER BY RAND() work?
- How create json format with group-concat mysql?
- What is the difference between SQL and MySQL? [closed]
- how to use a like with a join in sql?
- Escaping the colon character ‘:’ in JPA queries
- MySQL “ERROR 1005 (HY000): Can’t create table ‘foo.#sql-12c_4’ (errno: 150)”
- Dump only the data with mysqldump without any table information?