You are viewing a single comment's thread from:

RE: SEC S20W1 || Databases and SQL language - Part 1

in #dynamicdevs-s20w12 months ago
Thank you,@jen0revision for publishing an article using our tag #dynamicdevs-s20w1. We have accessed your article and we present the result of the assessment below.

Criteria Remark
#steemexclusive
Free of Plagiarism
AI Article ✅ Original (Human text!)
Bot free

Comment/Recommendation

Exercise 1:

Your answer demonstrates a good general understanding of SQL concepts, but some answers need adjustment. You correctly identified that a column corresponds to a basic property and that the correct answer for the tabular data structure is a "Table". However, errors appear in identifying primary keys and specific SQL clauses.

Exercise 2:

Your schema effectively addresses the initial anomalies and implements a structured approach to managing employee data, function assignments, and bonuses. By separating out function titles and employing a composite key for bonuses, you've improved the database design.

Just ensure all foreign key relationships are properly defined and consider any potential clarifications needed for composite keys.

Exercise 3:

Your SQL script shows a good understanding of basic relational database concepts, but there are some important areas for improvement to ensure accuracy and efficiency. Here is a general assessment based on the different parts of the script:

Table Creation

  • Typographical Correction: You correctly identified the need to correct AUTO_INCEMENT to AUTO_INCREMENT.

  • Table Creation Order: You adjusted the order of table creation to ensure that foreign keys are referenced correctly.

  • Table Structure: You correctly defined the tables with the necessary constraints, but you need to ensure that all tables are created in the correct order to avoid foreign key errors.

Table Modifications

  • Adding Columns :

  • Adding the Datevote column to the Voter table is correctly implemented with a default value of CURRENT_DATE.

  • Enlarging the Appelation column is correctly done with the MODIFY command.

  • Column Splitting : You proposed to split the NomPrenElv column into LastName and FirstName. You will also need to remove the old column after the split.

Adding the Gender Column

  • Adding Gender : The proposal to add the Gender column is correct and relevant for collecting voting statistics by gender. The ENUM type is appropriate for this situation.

Improvement Points

Constraint Validation**: Ensure that constraints like foreign keys are properly implemented and checked to maintain data integrity.

Column Modification: When modifying columns, it is crucial to handle old data properly. Deleting the NomPrenElv column after creating the new columns is essential.

Testing and Validation: Perform validation testing to ensure that all column changes and additions work as expected without introducing errors.


Overall, your answers to the exercises demonstrate an acceptable understanding of database design principles and practical SQL skills. You have successfully identified and corrected anomalies, proposed relevant improvements, and adapted the database to the specified needs. With some minor adjustments and rigorous testing, you have laid the foundation for effective data management.

Total| 6.5/10

Sort:  

Thank you for your detailed and constructive feedback! ❤️

  • Exercise 1: I’ll re-read about primary keys and SQL clauses to better understand these concepts in future

  • Exercise 2: I will try to improve the way I define all foreign key relationships and clarify the use of composite keys.

  • Exercise 3: I didn't notice my typo with AUTO_INCREMENT😅

I hope I will improve in these aspects in time for the next lesson, thank you again!

Coin Marketplace

STEEM 0.15
TRX 0.16
JST 0.028
BTC 67779.88
ETH 2396.01
USDT 1.00
SBD 2.32