implemented RecruitingEducatorsCompany scenario#36
Open
RuchyBrach wants to merge 1 commit into
Open
Conversation
ghost
reviewed
Nov 13, 2023
ghost
left a comment
There was a problem hiding this comment.
Excellent! 100% See comments, no need to resubmit,
| constraint ck_Recruiting_firstname_cannot_be_blank check(Firstname <> ''), | ||
| LastName varchar(30) not null | ||
| constraint ck_Recruiting_lastname_cannot_be_blank check(lastname <> ''), | ||
| DOB date not null |
There was a problem hiding this comment.
No need for constraint on DOB. You are restricting it to be before DateContacted.
| DOB date not null | ||
| constraint ck_Recruiting_dob_cannot_be_more_than_current_date check(DOB < getdate()), | ||
| Gender varchar(6) | ||
| constraint ck_Recruiting_gender_must_be_either_male_or_female check(Gender in('male', 'female')), |
| Media varchar(20) not null | ||
| Constraint ck_Recruiters_media_cannot_be_blank check(Media <> ''), | ||
| DateContacted date not null | ||
| constraint ck_Recruiters_datecontacted_must_be_after_or_on_february_17_2017 check(DateContacted >= '02-17-2017'), |
| SchoolPlaced varchar(40) null | ||
| constraint ck_Recruiters_school_placed_cannot_be_blank check (SchoolPlaced <> ''), | ||
| DateFoundJob date null | ||
| constraint ck_Recruiters_Date_Found_job_cannot_be_blank check (DateFoundJob <> ''), |
There was a problem hiding this comment.
No need for this constraint. A blank date returns a valid date. Maybe change it to not in future constraint.
|
|
||
| select amountofstudents = count(*), r.CollegeAttended | ||
| from RecruitingEducatorsCompany r | ||
| where datediff(day, r.Datefoundjob, r.Datecontacted) < 14 |
|
|
||
| --5. How many educators get placed a day per type of education degree? | ||
|
|
||
| select day = day(r.datefoundjob), placedperday = count(day(r.DateFoundJob)), r.TitleOfDegree |
There was a problem hiding this comment.
No need to show the day. This can be done same as previous results, just split it up per degree.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I chose the Recruiting Educators Company.