Sqlite代写SQL执行语句代写

Posted helpcode

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Sqlite代写SQL执行语句代写相关的知识,希望对你有一定的参考价值。

Sqlite代写、SQL执行语句代写
SQL Assignment 2 (20%)
Questions:
1. Produce a table showing the total books that are currently “CheckedOut” by every major. Show the
Major and “Total Books Checkedout” in the query result and sort the “Total Books Checkedout” in
descending order. Use only the MediaCode in the Where condition.
2. Produce a table showing the total books published by each author between 2000 and 2015. Show only
the rows if the total published books is greater or equal 3. Sort the authors in ascending order.
Assuming you do not know the MediaID but you know the MediaCode.
Author Total Books Published
3. Find the customers who have an item due on the 8th August 2015 and has not “checkedin” in the loan
table. Sort the Full Name in ascending order. Show only the date without the time. Do not use
strftime() in this question.
Full Name Title DueDate
4. The library would like to know the number of times a customer has an overdue fee and their total
overdue fee. Sort the output by the ‘Number of times overdue’ in descending order then by the ‘Total
overdue fee’ in descending order. Show only the total overdue fee greater or equal to $5 but less than
$100.
Full Name Number of Times
Overdue
Total Overdue Fee
5. (a) Find all the unique customer full name with at least one loan.
*Important*
(1) Use the join syntax below for questions that require an inner join. Other syntax will not
be accepted.
SELECT column-list
FROM table 1 JOIN table 2 ON joint-condition
Where conditions
(2) Use “=” sign, for example “percent_time =100” not “percent_time IS 100”.
(b) Use 5(a) as a subquery, find all INFO students who did not make any loan. Include both their Full
Name, CustomerID, and Major in your results.
CustomerID Full Name Major
{The format of full name should be “Last Name, First
Name”.}
INFO
6. (a) Find the total overdue fee for the customer "Barclay, Fletcher" without using ID in the query.
(b) How many distinct students (exclude "Barclay, Fletcher") with a single overdue fee greater than
half the total overdue fee of "Barclay, Fletcher"? You must use 6(a) as a subquery. You must use
the “NOT” SQL in this question.
7. The manager is interested to know yearly borrowing volume by Gender. Present a table displaying the
Gender, Year, Month and The Number of Loans. Sort the results in descending order by Gender,
ascending order by Year and ascending order by Month. Show only the rows if the number of loans is
less than 25.
Hint: (1) Use CheckedOut date to extract the year and month when the book is loaned; (2) Use
strftime() function to deal with the year and month.
Gender Year Month The Number of Loans
M

F
8. (a) Find the total number of loan for each customerID.
(b) Show the total number of loan for each customer include customers who have no loan. You must
use 8(a) as sub-query to form the right part of the outer join table. Show the result according to the
format below.
CustomerID LastName FirstName Totalloan
9. Show the number of books published each year by each author. Show only the rows for author who
published more than 1 book in a year. The table should show author, Pubyear, and “Total Book
Published in Year”. MediaID should not be used in this query, use MediaCode.
10. Use only a left outer join to find the customers who did not make any loan. Show the CustomerID, Full
Name, and Major. Show only the rows contain “INFO” major only.
CustomerID Full Name Major
{The format of full name should be “Last Name, First
Name”.}
INFO
11. How many students with a total overdue fee greater than half the total overdue fee of "Barclay,
Fletcher" (exclude "Barclay, Fletcher")?
12. Use the SQL date modifier expression in chapter 44 of the Sqlite tutorial to add 3 days, 8 hours, 3
minutes, and 45 seconds to the date “2018-05-11 23:59:59”. This question does not require a
database.
http://www.daixie0.com/contents/15/1278.htm

 

本团队核心人员组成主要包括硅谷工程师、BAT一线工程师,国内Top5硕士、博士生,精通德英语!我们主要业务范围是代做编程大作业、课程设计等等。

 

我们的方向领域:window编程 数值算法 AI人工智能 金融统计 计量分析 大数据 网络编程 WEB编程 通讯编程 游戏编程多媒体linux 外挂编程 程序API图像处理 嵌入式/单片机 数据库编程 控制台 进程与线程 网络安全  汇编语言 硬件编程 软件设计 工程标准规等。其中代写代做编程语言或工具包括但不限于以下范围:

C/C++/C#代写

Java代写

IT代写

Python代写

辅导编程作业

Matlab代写

Haskell代写

Processing代写

Linux环境搭建

Rust代写

Data Structure Assginment 数据结构代写

MIPS代写

Machine Learning 作业 代写

Oracle/SQL/PostgreSQL/Pig 数据库代写/代做/辅导

Web开发、网站开发、网站作业

ASP.NET网站开发

Finance Insurace Statistics统计、回归、迭代

Prolog代写

Computer Computational method代做

 

因为专业,所以值得信赖。如有需要,请加QQ:99515681 或邮箱:[email protected]

微信:codinghelp




































































以上是关于Sqlite代写SQL执行语句代写的主要内容,如果未能解决你的问题,请参考以下文章

代写存储过程SQL函数语句

sql语句代编写sql 游标 事务代写

代写数据库表设计代写SQL语句代做数据库项目代做MySQL数据库

代写SQL数据库SQL代写SQL代写数据库SQL编程代写

代写python,代写python编程,python代写,python编程代写,留学生python代写

代写Assignment代写matlab Assignment代写python Assignment代写essay 代写Assignment代写Assignment