
CodePudding user response:
Is anyone here
CodePudding user response:
The answer to 2.2SELECT
TIMESTAMPDIFF (DAY, MIN (Todd Harper IREDATE), MAX (Todd Harper IREDATE)) ` differs days `,
TIMESTAMPDIFF (MONTH, MIN (Todd Harper IREDATE), MAX (Todd Harper IREDATE)) ` differ months `,
TIMESTAMPDIFF (YEAR, MIN (Todd Harper IREDATE), MAX (Todd Harper IREDATE)) ` differ years `
FROM the table name t;
CodePudding user response:
Picture is not complete, can you send a complete,CodePudding user response:
2.1 the answerSET @ c:=(SELECT COUNT (0) FROM the table name);
The SET @ c1:=FLOOR (@ c/2);
The SET @ c2:=CEIL (@ c/2);
SELECT AVG (t. digital) FROM (
SELECT Numbers, t. @ r:=@ r + 1 r FROM (
SELECT id, @ r:=0 FROM the name of the table WHERE DNAME='Research Institute' ORDER BY id) t) t WHERE t.r BETWEEN @ c1 AND @ c2.
CodePudding user response: