Actions
SQA #4367
open[SQA] Learning and Practicing SQL & JavaScript
Description
Description:
Today's Learning Activities:
-
Practiced SQL query debugging and correction:
- Fixed filtering issues (typo in string comparison)
- Corrected JOIN queries between multiple tables (products & providers)
- Learned proper use of table aliases and filtering with foreign keys
-
Deepened understanding of SQL JOINs:
- Explained INNER JOIN logic with real examples
- Understood relationship between
id_providersandidcolumns
-
Solved basic JavaScript problem (Sum of two variables):
- Handled file input using
fs.readFileSyncand line splitting - Ensured exact output format as per specification
- Handled file input using
-
Solved and improved Justifier II problem (Text Right Justification):
- Handled multiple test cases until N=0
- Implemented text cleaning (trim + multiple space normalization)
- Applied dynamic right justification based on maximum line length
- Added detailed comments for better code readability
Key Learnings:
- Importance of exact string matching in SQL
- Proper JOIN syntax and table relationship handling
- Input processing and text manipulation in JavaScript
- Clean code practices with comments and modular logic
Next Plan: Continue practicing string manipulation and multi-test-case problems.
Actions