Database SQL statement Exercises 5--9

Source: Internet
Author: User

5. Check the record of 85, 86 or 88 in the score table.

Select *  from where inch (+,+)

6, inquires the student table "95031" class or the sex is "the female" the classmate record.

Select *  from where class='95031'or=' female '

7. Query the student table for all records in descending order of class.

Select *  from Order  by desc

8, in CNO Ascending, Degree descending query score all records of the table.

Select *  from Order  by desc

9. Check the number of students in "95031" class.

Select Count (1from where class='95031'

Database SQL statement Exercises 5--9

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.