Skip to content

Work complete#2

Open
AvigailGellis wants to merge 2 commits into
moshefidds:mainfrom
AvigailGellis:main
Open

Work complete#2
AvigailGellis wants to merge 2 commits into
moshefidds:mainfrom
AvigailGellis:main

Conversation

@AvigailGellis
Copy link
Copy Markdown

Hi here is the work for your biz scenario, sorry I only got to it today. Nice and detailes spec! Let me know of any corrections.

Copy link
Copy Markdown
Owner

@moshefidds moshefidds left a comment

Choose a reason for hiding this comment

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

Great Job!!
Minor changes requested

Comment thread CommunityCenterDB/3 table.sql
Comment thread CommunityCenterDB/3 table.sql Outdated
SatisfactionRate int not null constraint ck_ExpenseLedger_SatisfactionRate_must_be_between_1_and_4 check(SatisfactionRate between 1 and 4),
SatisfactionDesc as case SatisfactionRate when 1 then 'Gold' when 2 then 'Silver' when 3 then 'Bronze' when 4 then 'Copper' end persisted,
--AS I made the following constraint according to the instructions that Q: Would any of the sub-causes belong to multiple causes? A: No. But the data included duplicates so I had to take it out.
-- constraint u_ExpenseLedger_Cause_SubCause unique(Cause, SubCause)
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

My intention was to clarify that each sub-cause was only a "child" of one cause. I admit there was no intention for a unique constraint.
Can a check constraint be used that first five characters must match?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

fiixed

Comment thread CommunityCenterDB/4 data.sql
Comment thread CommunityCenterDB/4 data.sql
Comment thread CommunityCenterDB/4 data.sql
Comment thread CommunityCenterDB/4 data.sql Outdated
end,
datetimefromparts(m.OlympicYear, 01, len(m.LastName), m.AgeofMedalist/8, len(m.Sport), 52, len(m.FirstName + m.LastName + m.OlympicLocation) * 10),
--It makes more sense for table to have an int column and the desc computed off of that. However, for this data then I had to do the opposite to get the correct results.
case when m.AgeofMedalist > 29 then 4
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

29 should be included

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

fixed

Comment thread CommunityCenterDB/5 reports.sql
@AvigailGellis
Copy link
Copy Markdown
Author

AvigailGellis commented Feb 22, 2024

Please see corrections and comments and let me know if there is anything else you would like changed.

@moshefidds
Copy link
Copy Markdown
Owner

Awesome Job!!!
Can you close Issue HW #20

@moshefidds
Copy link
Copy Markdown
Owner

Awesome Job!!! Can you close Issue HW #20

And mark if appropriate
Thanks!

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.

2 participants