Skip to content

implemented army scenario#21

Open
Shevawedeck wants to merge 4 commits into
CPU-Code-School:mainfrom
Shevawedeck:main
Open

implemented army scenario#21
Shevawedeck wants to merge 4 commits into
CPU-Code-School:mainfrom
Shevawedeck:main

Conversation

@Shevawedeck
Copy link
Copy Markdown

i did the army scenario

Comment thread 1 table.sql Outdated
SoldierID int not null identity primary key,
FirstName varchar(25) not null constraint ck_Soldier_first_name_cannot_be_blank check(FirstName <> ''),
LastName varchar(25) not null constraint ck_Soldier_last_name_cannot_be_blank check(LastName <> ''),
SSN char(10) not null constraint ck_Soldier_SSN_cannot_be_blank check(SSN <> ''),
Copy link
Copy Markdown

@ghost ghost Jan 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SSN if you use char(10) you need to have a constraint that would make sure it's 10 characters long. And make sure they are ints (meaning you can't insert a letter).

@ghost
Copy link
Copy Markdown

ghost commented Jan 23, 2023

You missed the reports.

@Shevawedeck
Copy link
Copy Markdown
Author

Here are the corrections and reports

Comment thread 3 reports.sql

/* 3) Following an upward trend in recruitment since the outbreak of Covid, I need data on recruitment between the years 2017-2019 compared to the years 2020-2022.
The format should be as follows :Year Range (2017-2019/2020-2022), First Name Last Name - SSN (date of enlistment), service unit.
(This should be done by using a union select and adding a literal column for year range.) */
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The report specifies how to do it. But it's ok

Copy link
Copy Markdown

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent! Looks good.

jacobglanz added a commit to jacobglanz/cpu-biz-scenario that referenced this pull request Aug 15, 2023
hanochp added a commit to hanochp/cpu-biz-scenario that referenced this pull request Aug 24, 2025
hanochp added a commit to hanochp/cpu-biz-scenario that referenced this pull request Aug 24, 2025
hanochp added a commit to hanochp/cpu-biz-scenario that referenced this pull request Aug 24, 2025
hanochp added a commit to hanochp/cpu-biz-scenario that referenced this pull request Aug 25, 2025
hanochp added a commit to hanochp/cpu-biz-scenario that referenced this pull request Aug 25, 2025
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

Successfully merging this pull request may close these issues.

1 participant