Student borrowing enquiries

Source: Internet
Author: User

Use Bookgoselect student number =stuid, student name = (SELECT stuname from dbo. STUDENT WHERE stuid = dbo. BORROW.STUID), book number =bid, book name = (SELECT Title from dbo. Book WHERE bid=dbo. Borrow.bid), lent date =t_timefrom dbo. Borrow WHERE Stuid in (SELECT stuid from dbo. STUDENT WHERE major= ' computer ') and T_time > ' 2007-12-15 ' and T_time < ' 2008-1-8 ' select Stuid as student number (select Stuname FRO M dbo. STUDENT WHERE stuid = dbo. BORROW.STUID) as student name, BID as book number, (SELECT Title from dbo. Book WHERE BID = dbo. Borrow.bid) as book name, T_time as loan date from dbo. Borrow WHERE Stuid in (SELECT stuid from dbo.  STUDENT WHERE Major = ' computer ') and t_time between ' 2007-10-15 ' and ' 2008-1-8 ' SELECT stuid as student number, stuname as student name, Major as professional FROM dbo. STUDENT WHERE Stuid in (SELECT stuid from dbo. Borrow) Select (select Stuname from dbo. STUDENT WHERE stuid = dbo. BORROW.STUID) as Student name (SELECT Title from dbo. Book WHERE BID = dbo. Borrow.bid) as book name from dbo. Borrow WHERE BID in (SELECT BID from dbo. Book WHERE author= ' Jing Jinnan ') Select (select Stuname from dbo. StUdent WHERE stuid = dbo. BORROW.STUID) as student name, COUNT (*) as borrowing quantity from dbo. Borrow WHERE B_time is the NULL GROUP by Stuid

  

Student borrowing enquiries

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.