Π’Ρ…ΠΎΠ΄ Π‘Π»ΠΎΠ³
Π‘Ρ‚Ρ€ΠΎΠΈΡ‚Π΅Π»ΡŒΡΡ‚Π²ΠΎ ΠΈ Ρ€Π΅ΠΌΠΎΠ½Ρ‚
Π Π΅ΠΏΠ΅Ρ‚ΠΈΡ‚ΠΎΡ€Ρ‹
ΠšΡ€Π°ΡΠΎΡ‚Π°
ЀрилансСры
Π Π°Π·Π½Ρ‹Π΅ спСциалисты
Π’Ρ€Π΅Π½Π΅Ρ€Ρ‹
Π£Ρ…ΠΎΠ΄ Π·Π° ΠΆΠΈΠ²ΠΎΡ‚Π½Ρ‹ΠΌΠΈ
Автоинструкторы

SQL β€” удалённая Ρ€Π°Π±ΠΎΡ‚Π° Π² МосквС

Π”Π°Ρ‚Π°: 2023-06-04
Π”Π΅Ρ‚Π°Π»ΠΈ
Π Π΅Π³ΠΈΠΎΠ½
Москва
Π—Π°Π½ΡΡ‚ΠΎΡΡ‚ΡŒ
дистанционно
Π‘Ρ‚ΠΎΠΈΠΌΠΎΡΡ‚ΡŒ
договорная
Π”Π°Ρ‚Π° ΠΏΡƒΠ±Π»ΠΈΠΊΠ°Ρ†ΠΈΠΈ
2023-06-04
ОписаниС
ΡƒΡ‡Π΅Π±Π½Ρ‹ΠΉ ΠΏΡ€ΠΎΠ΅ΠΊΡ‚ ΠΏΠΎ SQL. НСбольшой ΡƒΡ‡Π΅Π±Π½Ρ‹ΠΉ ΠΏΡ€ΠΎΠ΅ΠΊΡ‚ ΠΏΠΎ SQL. Π”Π΅Π΄Π»Π°ΠΉΠ½: 04.06 22:30. ΠŸΡ€ΠΎΠ΅ΠΊΡ‚ Π½Π° английском языкС. ΠŸΠΎΠ»Π½ΠΎΡΡ‚ΡŒΡŽ ΠΎ ΠΏΡ€ΠΎΠ΅ΠΊΡ‚Π΅: Instructions: 1. A design and implementation document which clearly explains the project must be prepared. This document (DOC) must consist of the following: a. ER diagram of your database, b. Explanations of your design and assumptions, especially for the first three questions, c. SQL query (SELECT) scripts of the query requirements and the first ten rows of outputs of the queries. 2. You must prepare an SQL file (SQL) that includes CREATE/ALTER/INSERT/UPDATE scripts. For questions 4,5, and 6, you should create only one SQL script file similar to hr-schema-mysql.sql on the Blackboard. Please test your script. I will run your SQL script file to evaluate your project. 3. The SQL statements should be written in a good style (indentation, etc.) and be heavily commented on. 4. The deadline is absolute; there will be no extension. 5. The codes at the end of the questions indicate whether your solution will be in the report document (DOC) or the SQL script (SQL). 6. In your report, for questions after the 6th question, it is sufficient to share only the first ten records of the results of your SQL queries in a table with your SQL query. Questions: Read the scenario below carefully and answer the following questions accordingly. You started to work as a database administrator for UEFA. You are asked to design a database containing information about European Football Leagues, including countries, leagues, seasons, teams, and players. Each league belongs to only one country, but one country may have many leagues, such as first, second, super, etc. Historically each team has been in many leagues for some period of time, but the current league of each team is only one. Similarly, each player has played for one or many teams, but the current team of each player is only one. For that purpose, you can create two date attributes to save start and end dates. For each past league, you must hold which team was champion. For each player, you must save how much he earned from each played team. Suppose there is a many-to-many relation between any two tables. In that case, you should specify for which tables this relation exists and convert one many-to-many relation to two one-to-many relation with additional third table. 2 1. Identify the tables in your database together with their attributes. (DOC-20) 2. Identify your database's primary and foreign keys by listing the attributes involved clearly. Explain your reasons. (DOC-10) 3. Draw your database's entity-relationship (ER) diagram by clearly showing tables, attributes, and primary and foreign keys. You can use lucid.app or diagrams.net to draw ER diagram. Or you can produce from ER diagram from MySQL Workbench after creating tables. (DOC-10) 4. Prepare SQL scripts that will create the tables in your database and their primary and foreign keys. (SQL-10) 5. Add other constraints to your tables and explain why you need these constraints. (SQL-5) 6. Prepare insert statements and insert at least ten records into every table. (SQL-5) 7. Find the team with the most champions in each country. (SQL-4) 8. Find out which teams each player plays for. (SQL-4) 9. Please find the total income earned by each player during his career. (SQL-4) 10. Please find out how many foreign players (the countries of a player and his team are different) currently play in each team. (SQL-4) 11. Find out how many foreign players played for each team in the past. (SQL-4) 12. Find the current league of each team. (SQL-4) 13. Find out in which league each team was in the five years after January 1, 2000 (You can change this date according to your inserted data.) (SQL-4) 14. Find all players who played in league L1 but never played in team T1 in league L1 (You can change T1 and L1 according to your records). (SQL-4) 15. Find players who played in country C1 and country C2 (You can change C1 and C2 according to your records). (SQL-4) 16. Find teams that have been in league L1 but have never been champions in that league (You can change L1 according to your records). (SQL-4).
ΠŸΠΎΡ…ΠΎΠΆΠΈΠ΅ Π·Π°ΠΊΠ°Π·Ρ‹

SQL

дистанционно
договорная
Π”ΠΎΡ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ ΡΡƒΡ‰Π΅ΡΡ‚Π²ΡƒΡŽΡ‰ΡƒΡŽ Π±Π°Π·Ρƒ Π΄Π°Π½Π½Ρ‹Ρ…. ΠŸΠΎΠΌΠΎΡ‡ΡŒ Ρ€Π°Π·ΠΎΠ±Ρ€Π°Ρ‚ΡŒΡΡ с Π·Π°Π΄Π°Ρ‡Π°ΠΌΠΈ ΠΏΠΎ ΠΌΠ΅Ρ‚ΠΎΠ΄Π°ΠΌ индСксирования. Π§Ρ‚ΠΎ Π½ΡƒΠΆΠ½ΠΎ Π΅Ρ‰Ρ‘: . ΠŸΡ€ΠΈΠΌΠ΅Ρ€Ρ‹ Π·Π°Π΄Π°Π½ΠΈΠΉ.
Π‘Π°Π½ΠΊΡ‚-ΠŸΠ΅Ρ‚Π΅Ρ€Π±ΡƒΡ€Π³ ЀрилансСры

SQL

дистанционно
договорная
Π’Ρ‹ΠΏΠΎΠ»Π½ΠΈΡ‚ΡŒ Π·Π°Π΄Π°Ρ‡Ρƒ ΠΈΠ· Ρ„Π°ΠΉΠ»Π°. НСобходимо созданиС ΠΌΠ½ΠΎΠ³ΠΎΠΌΠ΅Ρ€Π½ΠΎΠΉ ΠΌΠΎΠ΄Π΅Π»ΠΈ Π₯Π” ΠΏΠΎ Π·Π°Π΄Π°Π½Π½Ρ‹ΠΌ ΠΏΠ°Ρ€Π°ΠΌΠ΅Ρ‚Ρ€Π°ΠΌ ΠΈ с ΡƒΡ‡Π΅Ρ‚ΠΎΠΌ бизнСс-Ρ‚Ρ€Π΅Π±ΠΎΠ²Π°Π½ΠΈΠΉ. Π§Ρ‚ΠΎ Π½ΡƒΠΆΠ½ΠΎ Π΅Ρ‰Ρ‘: Π‘ΠΎΠ·Π΄Π°Ρ‚ΡŒ Π΄ΠΈΠ°Π³Ρ€Π°ΠΌΠΌΡƒ.
Москва ЀрилансСры

SQL

дистанционно
договорная
ΠΠ°ΡƒΡ‡ΠΈΡ‚ΡŒΡΡ ΠΏΠΈΡΠ°Ρ‚ΡŒ запросы. ΠΠ°ΡƒΡ‡ΠΈΡ‚ΡŒΡΡ ΠΏΠΈΡΠ°Ρ‚ΡŒ запросы Π² Π±Π΄.
Ростов-Π½Π°-Π”ΠΎΠ½Ρƒ ЀрилансСры

SQL

дистанционно
договорная
Π Π°Π·Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π±Π°Π·Ρƒ Π΄Π°Π½Π½Ρ‹Ρ… с нуля. НуТно ΠΏΠΎΠΌΠΎΡ‡ΡŒ ΡΠ΄Π΅Π»Π°Ρ‚ΡŒ ΠΏΡ€ΠΎΠ΅ΠΊΡ‚ Π² Π²ΡƒΠ·Π΅. Π§Ρ‚ΠΎ Π½ΡƒΠΆΠ½ΠΎ Π΅Ρ‰Ρ‘: Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»ΡŒΡΠΊΠΈΠΉ интСрфСйс.
Москва ЀрилансСры

SQL

дистанционно
договорная
Π‘Π΄Π΅Π»Π°Ρ‚ΡŒ Π°Π½Π°Π»ΠΈΡ‚ΠΈΠΊΡƒ ΠΏΠΎ Π΄Π°Π½Π½Ρ‹ΠΌ. Π”ΠΎΠ±Ρ€Ρ‹ΠΉ дСнь. Π•ΡΡ‚ΡŒ нСйронная сСтт, которая собираСт ΠΊΠΎΠΎΡ€Π΄ΠΈΠ½Π°Ρ‚Ρ‹ ΠΈΠ³Ρ€ΠΎΠΊΠΎΠ² Π½Π° ΠΊΠΎΡ€Ρ‚Π΅. ΠšΠ°ΠΌΠ΅Ρ€Π° ΠΏΠΈΡˆΠ΅Ρ‚ 60 ΠΊΠ°Π΄Ρ€ΠΎΠ² Π² сСкунду, ΠΌΡ‹ Π·Π°Π±ΠΈΡ€Π°Π΅ΠΌ Ρ‚ΠΎΠ»ΡŒΠΊΠΎ ΠΊΠ°ΠΆΠ΄Ρ‹ΠΉ 3. Π˜Π³Ρ€ΠΎΠΊΠΎΠ² 4. Бтроится гомография. Π”Π°Π½Π½Ρ‹Π΅ находятся Π² json. НСобходимо ΠΏΠΎΡΡ‡ΠΈΡ‚Π°Ρ‚ΡŒ ΠΌΠ΅Ρ‚Ρ€ΠΈΠΊΠΈ расстояния, скорости, спринтов, минимальная дистанция ΠΌΠ΅ΠΆΠ΄Ρƒ ΠΈΠ³Ρ€ΠΎΠΊΠ°ΠΌΠΈ , максимальная ΠΈ всСвозмоТныС Π΄Ρ€ΡƒΠ³ΠΈΠ΅, ΠΊΠΎΡ‚ΠΎΡ€Ρ‹Π΅ ΠΌΠΎΠΆΠ½ΠΎ Π΄ΠΎΡΡ‚Π°Ρ‚ΡŒ ΠΈΠ· ΠΊΠΎΡ€Ρ€Π΄ΠΈΠ½Π°Ρ‚ ΠΈΠ³Ρ€ΠΎΠΊΠΎΠ². Π”Π°Π½Π½Ρ‹Π΅ Π² ΠΌΠ΅Ρ‚Ρ€Π°Ρ… ΠΎΡ‚Π½ΠΎΡΠΈΡ‚Π΅Π»ΡŒΠ½ΠΎ ΠΊΠΎΡ€Ρ‚Π° Π² 10 Π½Π° 20. Π‘Ρ…Π΅ΠΌΠ° Π² Ρ„Π°ΠΉΠ»Π΅, Π΄Π΅Π΄Π»Π°ΠΉΠ½ - ΠΊΠ°ΠΊ ΠΌΠΎΠΆΠ½ΠΎ быстрСС. Π‘Π΄ - кликхаус, Π½ΠΎ ΠΎΠ±Π΅Ρ€Π½ΡƒΡ‚ΡŒ Π² ΠΏΠΈΡ‚ΠΎΠ½, Ρ‚Π°ΠΊ ΠΊΠ°ΠΊ выполняСтся Π² Ρ€Π°ΠΌΠΊΠ°Ρ… ΠΏΠ°ΠΉΠΏΠ»Π°ΠΉΠ½Π°. НСобходимо ΡΠ΄Π΅Π»Π°Ρ‚ΡŒ Ρ‚Π°Π±Π»ΠΈΡ†Ρƒ, ΠΊΠ°ΠΊ называСтся ΠΌΠ΅Ρ‚Ρ€ΠΈΠΊΠ° ΠΈ ΠΊΠ°ΠΊ ΠΎΠ½Π° считаСтся с Ρ‚ΠΎΡ‡ΠΊΠΈ зрСния Π»ΠΎΠ³ΠΈΠΊΠΈ ΠΈ Π² ΠΊΠΎΠ΄Π΅.
Москва ЀрилансСры

SQL

дистанционно
договорная
Ρ„ΠΎΡ€ΠΌΠΈΡ€ΠΎΠ²Π°Π½ΠΈΠ΅ er Π΄ΠΈΠ°Π³Ρ€Π°ΠΌΠΌ. НСобходима тСорСтичСская ΠΏΠΎΠ΄Π³ΠΎΡ‚ΠΎΠ²ΠΊΠ° Π² области Ρ„ΠΎΡ€ΠΌΠΈΡ€ΠΎΠ²Π°Π½ΠΈΠΈ er Π΄ΠΈΠ°Π³Ρ€Π°ΠΌΠΌ (логичСская модСль Π΄Π°Π½Π½Ρ‹Ρ…), Π° Ρ‚Π°ΠΊΠΆΠ΅ практичСская формализация Π΄Π°Π½Π½Ρ‹Ρ… ΠΏΠΎ 1,2,3 Ρ„ΠΎΡ€ΠΌΠ΅. Π₯ΠΎΡ‡Ρƒ ΠΏΡ€ΠΈΠΌΠ΅Ρ€ Π½Π΅ Π½ΠΎΡ€ΠΌΠ°Π»ΠΈΠ·ΠΎΠ²Π°Π½Π½ΠΎΠΉ Ρ‚Π°Π±Π»ΠΈΡ‡ΠΊΠΈ ΠΈ со Π·Π½Π°ΡŽΡ‰ΠΈΠΌ Ρ‡Π΅Π»ΠΎΠ²Π΅ΠΊΠΎΠΌ Π΅Π΅ Π½ΠΎΡ€ΠΌΠ°Π»ΠΈΠ·ΠΎΠ²Π°Ρ‚ΡŒ. И Π½Π° Π΅Π΅ основС ΡΠ΄Π΅Π»Π°Ρ‚ΡŒ Π΅Ρ€ Π΄ΠΈΠ°Π³Ρ€Π°ΠΌΠΌΡƒ.
Π‘Π°Π½ΠΊΡ‚-ΠŸΠ΅Ρ‚Π΅Ρ€Π±ΡƒΡ€Π³ ЀрилансСры

SQL

дистанционно
договорная
ΠŸΠΎΠΌΠΎΡ‡ΡŒ ΡΠ΄Π΅Π»Π°Ρ‚ΡŒ Π°Ρ€Ρ…ΠΈΡ‚Π΅ΠΊΡ‚ΡƒΡ€Ρƒ Π‘Π” sqllite3. ΠŸΠΎΠΌΠΎΡ‡ΡŒ ΡΠ΄Π΅Π»Π°Ρ‚ΡŒ Π°Ρ€Ρ…ΠΈΡ‚Π΅ΠΊΡ‚ΡƒΡ€Ρƒ Π‘Π” sqllite3. Π—Π°Π΄Π°Ρ‡Π° Π·Π°ΠΏΠΈΡΡ‹Π²Π°Ρ‚ΡŒ ΠΈΠ· ΠΎΠ΄Π½ΠΎΠ³ΠΎ скрипта Ρ‡ΠΈΡ‚Π°Ρ‚ΡŒ ΠΈΠ· Π΄Ρ€ΡƒΠ³ΠΎΠ³ΠΎ скрипта. ΠŸΡ€ΠΈ этом Ρ€Π°Π±ΠΎΡ‚Π° происходит с нСсколькими Ρ‚Π°Π±Π»ΠΈΡ†Π°ΠΌΠΈ Π² ΠΎΠ΄Π½ΠΎΠΌ ΠΏΠΎΡ‚ΠΎΠΊΠ΅ Π΄Π°Π½Π½Ρ‹Ρ….
Π‘Π°Π½ΠΊΡ‚-ΠŸΠ΅Ρ‚Π΅Ρ€Π±ΡƒΡ€Π³ ЀрилансСры