Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDBS-Spring20-Fudan/assignment1/readme/ #3

Open
utterances-bot opened this issue Mar 13, 2020 · 14 comments
Open

IDBS-Spring20-Fudan/assignment1/readme/ #3

utterances-bot opened this issue Mar 13, 2020 · 14 comments

Comments

@utterances-bot
Copy link

Instruction - IDBS-Spring20-Fudan

Course website for introduction to database systems at Fudan University

https://zfhu.ac.cn/IDBS-Spring20-Fudan/assignment1/readme/

Copy link
Collaborator

ichn-hu commented Mar 13, 2020

You could also ask questions here~

Copy link
Contributor

What about the DDL?

@mirackk
Copy link
Contributor

mirackk commented Mar 13, 2020

“Once you've cloned the project in your local environment, get to IDBS-Spring20-Fudan/assignments/submission and create a directory and name it by your student id, for example IDBS-Spring20-Fudan/assignments/submission/16307130177, and this directory will be your working directory. You are ONLY allowed to modify files under this directory, any other modifications outside this directory will make your submission invalid.”
请问这个提交目录是建在我自己fork下还是助教您的页面?以及找不到IDBS-Spring20-Fudan/assignments/submission,应该是IDBS-Spring20-Fudan/assignments/ass1/submission吗

@ichn-hu
Copy link
Collaborator

ichn-hu commented Mar 13, 2020

“Once you've cloned the project in your local environment, get to IDBS-Spring20-Fudan/assignments/submission and create a directory and name it by your student id, for example IDBS-Spring20-Fudan/assignments/submission/16307130177, and this directory will be your working directory. You are ONLY allowed to modify files under this directory, any other modifications outside this directory will make your submission invalid.”
请问这个提交目录是建在我自己fork下还是助教您的页面?以及找不到IDBS-Spring20-Fudan/assignments/submission,应该是IDBS-Spring20-Fudan/assignments/ass1/submission吗

在你自己 fork 的仓库下,clone 之后去新建。你说的对……路径是我打错了,马上改。

Copy link
Contributor

  1. Query the names of all publishers, if one publisher has more than two books in the database, output the name of the publisher only once (ordered by name, ascii order)

"(ordered by name, ascii order)": Which does name refer to, book.name or book.publisher?

@ichn-hu
Copy link
Collaborator

ichn-hu commented Mar 14, 2020

  1. Query the names of all publishers, if one publisher has more than two books in the database, output the name of the publisher only once (ordered by name, ascii order)

"(ordered by name, ascii order)": Which does name refer to, book.name or book.publisher?

Of course it is the publisher's name, since I only asked you to output the names of the publishers.

@mirackk
Copy link
Contributor

mirackk commented Mar 14, 2020

请问一下在workbench写sql的时候,大小写有区别吗?书上的语句全是大写,但是好像小写也能用?

Copy link
Contributor

The name of the third table should be 'loan' or 'record'?

@ichn-hu
Copy link
Collaborator

ichn-hu commented Mar 14, 2020

请问一下在workbench写sql的时候,大小写有区别吗?书上的语句全是大写,但是好像小写也能用?

MySQL 不区分大小写的,都可以

@ichn-hu
Copy link
Collaborator

ichn-hu commented Mar 14, 2020

The name of the third table should be 'loan' or 'record'?

record

@Tan-YiFan
Copy link
Contributor

Will the test script be provided for us?

@ichn-hu
Copy link
Collaborator

ichn-hu commented Mar 16, 2020

Will the test script be provided for us?

Yes, just be patient, I am working on it.

@Tan-YiFan
Copy link
Contributor

Will the test script be provided for us?

Yes, just be patient, I am working on it.

'''
Query the names of all publishers, if one publisher has more than two books in the database, output the name of the publisher only once (ordered by name, ascii order)
'''

Does it mean "Query the names of publishers having more than 2 books, without repetition" or "Query the names of all publishers having published books without repetition. Deal with publishers who has exactly two books in a different way. (You wrote MORE THAN TWO, not including two)" ?

And can I get the test script before ddl? I'm very afraid that I wouldn't pass the tests in the first assignment which seems not very complex. Or can you offer me some teaching notes about how to debug sql? Very Thanks!

@ichn-hu
Copy link
Collaborator

ichn-hu commented Mar 21, 2020

Will the test script be provided for us?
Yes, just be patient, I am working on it.

'''
Query the names of all publishers, if one publisher has more than two books in the database, output the name of the publisher only once (ordered by name, ascii order)
'''

Does it mean "Query the names of publishers having more than 2 books, without repetition" or "Query the names of all publishers having published books without repetition. Deal with publishers who has exactly two books in a different way. (You wrote MORE THAN TWO, not including two)" ?

And can I get the test script before ddl? I'm very afraid that I wouldn't pass the tests in the first assignment which seems not very complex. Or can you offer me some teaching notes about how to debug sql? Very Thanks!

The latter.

The test script is actually the second assignment. Do not worry if you made any mistakes in assignment 1, you are allowed to argue.

As for debugging SQL, just send the SQL to MySQL, and MySQL will tell you the result. You'll understand how to debugging SQL in assginment 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants