First-day internship experience

Source: Internet
Author: User

In life, we always want to have wonderful and challenging things, but correspondingly, as travelers on the journey of life, we must also have the courage and ability to cope with different challenges.

 

The rapid development of transportation means that the distance between people and between regions is getting closer. This morning, I woke up and lie in my bed for more than 20 years. But in the afternoon, I woke up and stood in a strange place, Hangzhou.

 

I once said to myself that one day we must embark on the wave, give pointers to the mountains, stir up texts, and learn the spirit of old Mao when he was young. But when I set foot on this strange land in Hangzhou, I felt confused, confused, worried, and even scared. Who can understand it. I don't know who I can talk.

 

Go back to the house I rented a week ago, put down the luggage of migrant workers, sort out my emotions, and rush to the internship company.

 

When my boss assigned me the internship exercises I needed to complete, I was so happy that I finally became a software developer, but the result was counterproductive.

 

Looking at the practice requirements on the whole page, I just got stuck. I don't even write many of my self-proclaimed SQL statements.

 

I have been writing for more than two hours, but I can't even write 12 simple SQL statements. I am so ashamed that I can't help but blame myself for not learning well, but now I am in a company. Unlike in a school, I can ask the teacher at any time. No way. The old method is Baidu Bai.

 

With the help of my colleagues, I finally finished writing all the SQL statements.

Record it first, and you will forget it later.

Obtain the total score of each student:

Select student_name,
Sum (score) as sumscore
From [yx_demo]. [DBO]. [view_1] group by student_name
Go

 

Query the list of students whose total score is more than 400.

(Nesting is required, and "virtual tables" are also required. This is a stranger and requires special attention)

Select student_name from (select student_name,
Sum (score) as sumscore
From [yx_demo]. [DBO]. [view_1] group by student_name) tab where sumscore> 400;

 

The number of failed students in each class is queried.

(The key point of use is the nesting of SQL statements and the use of virtual table "tab)

Select class_name, count (*) from (select * from [yx_demo]. [DBO]. [view_1] Where score <60) tab group by class_name

 

Basic Learning is poor, and urgent efforts are needed. Liu Nian, come on, try your best

 

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.