Error code: 1248 Every derived table must have its own alias, 1248 derived

Source: Internet
Author: User

Error code: 1248 Every derived table must have its own alias, 1248 derived

1. Error description

1 queries executed, 0 success, 1 errors, 0 warnings query: SELECT stu_id, (SELECT stu_name FROM t_student_info t WHERE t. stu_id = t. stu_id) stu_name FROM (select sum (CASE course WHEN 'then .. error code: 1248 Every derived table must have its own alias execution time: 0 sec Transfer Time: 0 sec total time consumed: 0 sec

2. Error cause

SELECT stu_id, (SELECT stu_name FROM t_student_info t WHERE t. stu_id = t. stu_id) stu_name FROM (select sum (CASE course WHEN 'mate' THEN Score ELSE 0 END) mathematics, SUM (CASE course WHEN 'chine' THEN score ELSE 0 END) language, SUM (CASE course WHEN 'then score ELSE 0 END) English, stu_id FROM t_score_info group by stu_id)

3. Solution

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.