-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a19214c
commit 5cb391e
Showing
6 changed files
with
445 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
CREATE TABLE "course_duration" ( | ||
"Batch_No" INTEGER, | ||
"Class_Commencement_Date" DATE, | ||
"Course_Duration_in_Months" INTEGER, | ||
"Total_course_weeks" INTEGER, | ||
"Total_course_days" INTEGER, | ||
"Total_time_duration" INTEGER, | ||
PRIMARY KEY ("Batch_No", "Class_Commencement_Date"), | ||
CONSTRAINT uc_course_duration UNIQUE ("Batch_No") | ||
); | ||
|
||
CREATE TABLE "demographics" ( | ||
"SEN" VARCHAR PRIMARY KEY, | ||
"Name" VARCHAR, | ||
"Education" VARCHAR, | ||
"Batch_No" INTEGER, | ||
"Gender" CHAR(1), | ||
"Location" VARCHAR, | ||
"Age" INTEGER, | ||
"Passed_out_Year" INTEGER, | ||
"Marital_Status" VARCHAR, | ||
"Dependents" CHAR(3), | ||
"Years_of_exp" INTEGER, | ||
"Domain" VARCHAR, | ||
FOREIGN KEY ("Batch_No") REFERENCES "course_duration" ("Batch_No") | ||
); | ||
|
||
CREATE TABLE "lms_engagement_monthly" ( | ||
"SEN" VARCHAR , | ||
"Batch_id" VARCHAR, | ||
"Batch_No" INTEGER, | ||
"Class_Commencement_Date" DATE, | ||
"Dec_mnth" INTEGER, | ||
"Jan_mnth" INTEGER, | ||
"Feb_mnth" INTEGER, | ||
"March_mnth" INTEGER, | ||
"April_mnth" INTEGER, | ||
"May_mnth" INTEGER, | ||
"June_mnth" INTEGER, | ||
"July_mnth" INTEGER, | ||
"Aug_mnth" INTEGER, | ||
"Sept_mnth" INTEGER, | ||
"Oct_mnth" INTEGER, | ||
"Nov_mnth" INTEGER, | ||
"Total_hrs_spent" INTEGER, | ||
PRIMARY KEY ("SEN", "Batch_id"), | ||
CONSTRAINT uc_lms_mnthly UNIQUE ("SEN"), | ||
FOREIGN KEY ("Batch_No") REFERENCES "course_duration"("Batch_No"), | ||
FOREIGN KEY ("SEN") REFERENCES "demographics"("SEN") | ||
); | ||
|
||
|
||
CREATE TABLE "assessment_progress_monthly" ( | ||
"SEN" VARCHAR, | ||
"Batch_id" VARCHAR, | ||
"Batch_No" INTEGER, | ||
"Class_Commencement_Date" DATE, | ||
"Py_assessment_Date" DATE, | ||
"Python" INTEGER, | ||
"Python_Score" DECIMAL, | ||
"Nlp_assessment_Date" DATE, | ||
"NLP" INTEGER, | ||
"NLP_Score" DECIMAL, | ||
"Pbi_assessment_Date" DATE, | ||
"Power_BI" INTEGER, | ||
"Power_BI_Score" DECIMAL, | ||
"Excl_assessment_Date" DATE, | ||
"Excel" INTEGER, | ||
"Excel_Score" DECIMAL, | ||
"Dl_assessment_Date" DATE, | ||
"Deep_Learning" INTEGER, | ||
"Deep_Learning_Score" DECIMAL, | ||
"Ml_assessment_Date" DATE, | ||
"Machine_Learning" INTEGER, | ||
"Machine_Learning_Score" DECIMAL, | ||
"Sql_assessment_Date" DATE, | ||
"SQL" INTEGER, | ||
"SQL_Score" DECIMAL, | ||
"Stats_assessment_Date" DATE, | ||
"Statistics" INTEGER, | ||
"Statistics_Score" DECIMAL, | ||
"Aws_assessment_Date" DATE, | ||
"AWS" INTEGER, | ||
"AWS_Score" DECIMAL, | ||
"Total_marks" INTEGER, | ||
"Pass_rate" INTEGER, | ||
"Total_Avg_prcnt" DECIMAL, | ||
"Pass_Fail" CHAR(4), | ||
PRIMARY KEY ("SEN","Batch_No"), | ||
FOREIGN KEY("SEN") REFERENCES "lms_engagement_monthly"("SEN") | ||
); | ||
|
||
CREATE TABLE "lms_engagement_throughout" ( | ||
"SEN" VARCHAR PRIMARY KEY, | ||
"Batch_No" INTEGER, | ||
"lms_engagement_throughout_throughout_course" INTEGER, | ||
"Class_Commencement_Date" DATE, | ||
"Class_End_Date" DATE, | ||
"Total_time_enrolled" INTEGER, | ||
"Total_observed_time" INTEGER, | ||
"Retention_Rate" DECIMAL, | ||
FOREIGN KEY ("SEN") REFERENCES lms_engagement_monthly("SEN") | ||
); | ||
|
||
|
Binary file not shown.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
CREATE TABLE `course_duration` ( | ||
`Batch_No` int, | ||
`Class_Commencement_Date` date, | ||
`Course_Duration_in_Months` int, | ||
`Total_course_weeks` int, | ||
`Total_course_days` int, | ||
`Total_time_duration` int, | ||
PRIMARY KEY (`Batch_No`, `Class_Commencement_Date`) | ||
); | ||
|
||
CREATE TABLE `demographics` ( | ||
`SEN` varchar(255) PRIMARY KEY, | ||
`Name` varchar(255), | ||
`Education` varchar(255), | ||
`Batch_No` int, | ||
`Gender` char, | ||
`Location` varchar(255), | ||
`Age` int, | ||
`Passed_out_Year` int, | ||
`Marital_Status` varchar(255), | ||
`Dependents` char, | ||
`Years_of_exp` int, | ||
`Domain` varchar(255) | ||
); | ||
|
||
CREATE TABLE `lms_engagement_monthly` ( | ||
`SEN` varchar(255), | ||
`Batch_id` varchar(255), | ||
`Batch_No` int, | ||
`Class_Commencement_Date` date, | ||
`Dec_mnth` int, | ||
`Jan_mnth` int, | ||
`Feb_mnth` int, | ||
`March_mnth` int, | ||
`April_mnth` int, | ||
`May_mnth` int, | ||
`June_mnth` int, | ||
`July_mnth` int, | ||
`Aug_mnth` int, | ||
`Sept_mnth` int, | ||
`Oct_mnth` int, | ||
`Nov_mnth` int, | ||
`Total_hrs_spent` int, | ||
`unique` index(SEN) | ||
); | ||
|
||
CREATE TABLE `assessment_progress_monthly` ( | ||
`SEN` varchar(255), | ||
`Batch_id` varchar(255), | ||
`Batch_No` int, | ||
`Class_Commencement_Date` date, | ||
`Py_assessment_Date` date, | ||
`Python` int, | ||
`Python_Score` decimal, | ||
`Nlp_assessment_Date` date, | ||
`NLP` int, | ||
`NLP_Score` decimal, | ||
`Pbi_assessment_Date` date, | ||
`Power_BI` int, | ||
`Power_BI_Score` decimal, | ||
`Excl_assessment_Date` date, | ||
`Excel` int, | ||
`Excel_Score` decimal, | ||
`Dl_assessment_Date` date, | ||
`Deep_Learning` int, | ||
`Deep_Learning_Score` decimal, | ||
`Ml_assessment_Date` date, | ||
`Machine_Learning` int, | ||
`Machine_Learning_Score` decimal, | ||
`Sql_assessment_Date` date, | ||
`SQL` int, | ||
`SQL_Score` decimal, | ||
`Stats_assessment_Date` date, | ||
`Statistics` int, | ||
`Statistics_Score` decimal, | ||
`Aws_assessment_Date` date, | ||
`AWS` int, | ||
`AWS_Score` decimal, | ||
`Total_marks` int, | ||
`Pass_rate` int, | ||
`Total_Avg_prcnt` decimal, | ||
`Pass_Fail` char | ||
); | ||
|
||
CREATE TABLE `lms_engagement_throughout` ( | ||
`SEN` varchar(255), | ||
`Batch_No` int, | ||
`lms_engagement_throughout_throughout_course` int, | ||
`Class_Commencement_Date` date, | ||
`Class_End_Date` date, | ||
`Total_time_enrolled` int, | ||
`Total_observed_time` int, | ||
`Retention_Rate` decimal | ||
); | ||
|
||
ALTER TABLE `demographics` ADD FOREIGN KEY (`Batch_No`) REFERENCES `course_duration` (`Batch_No`); | ||
|
||
ALTER TABLE `lms_engagement_monthly` ADD FOREIGN KEY (`SEN`) REFERENCES `demographics` (`SEN`); | ||
|
||
ALTER TABLE `lms_engagement_monthly` ADD FOREIGN KEY (`Batch_No`) REFERENCES `course_duration` (`Batch_No`); | ||
|
||
ALTER TABLE `assessment_progress_monthly` ADD FOREIGN KEY (`SEN`) REFERENCES `lms_engagement_monthly` (`SEN`); | ||
|
||
ALTER TABLE `lms_engagement_throughout` ADD FOREIGN KEY (`SEN`) REFERENCES `lms_engagement_monthly` (`SEN`); | ||
|
||
ALTER TABLE `lms_engagement_throughout` ADD FOREIGN KEY (`Class_Commencement_Date`) REFERENCES `course_duration` (`Class_Commencement_Date`); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
CREATE TABLE [course_duration] ( | ||
[Batch_No] int, | ||
[Class_Commencement_Date] date, | ||
[Course_Duration_in_Months] int, | ||
[Total_course_weeks] int, | ||
[Total_course_days] int, | ||
[Total_time_duration] int, | ||
PRIMARY KEY ([Batch_No], [Class_Commencement_Date]) | ||
) | ||
GO | ||
|
||
CREATE TABLE [demographics] ( | ||
[SEN] nvarchar(255) PRIMARY KEY, | ||
[Name] nvarchar(255), | ||
[Education] nvarchar(255), | ||
[Batch_No] int, | ||
[Gender] char, | ||
[Location] nvarchar(255), | ||
[Age] int, | ||
[Passed_out_Year] int, | ||
[Marital_Status] nvarchar(255), | ||
[Dependents] char, | ||
[Years_of_exp] int, | ||
[Domain] nvarchar(255) | ||
) | ||
GO | ||
|
||
CREATE TABLE [lms_engagement_monthly] ( | ||
[SEN] nvarchar(255), | ||
[Batch_id] nvarchar(255), | ||
[Batch_No] int, | ||
[Class_Commencement_Date] date, | ||
[Dec_mnth] int, | ||
[Jan_mnth] int, | ||
[Feb_mnth] int, | ||
[March_mnth] int, | ||
[April_mnth] int, | ||
[May_mnth] int, | ||
[June_mnth] int, | ||
[July_mnth] int, | ||
[Aug_mnth] int, | ||
[Sept_mnth] int, | ||
[Oct_mnth] int, | ||
[Nov_mnth] int, | ||
[Total_hrs_spent] int, | ||
[unique] index(SEN) | ||
) | ||
GO | ||
|
||
CREATE TABLE [assessment_progress_monthly] ( | ||
[SEN] nvarchar(255), | ||
[Batch_id] nvarchar(255), | ||
[Batch_No] int, | ||
[Class_Commencement_Date] date, | ||
[Py_assessment_Date] date, | ||
[Python] int, | ||
[Python_Score] decimal, | ||
[Nlp_assessment_Date] date, | ||
[NLP] int, | ||
[NLP_Score] decimal, | ||
[Pbi_assessment_Date] date, | ||
[Power_BI] int, | ||
[Power_BI_Score] decimal, | ||
[Excl_assessment_Date] date, | ||
[Excel] int, | ||
[Excel_Score] decimal, | ||
[Dl_assessment_Date] date, | ||
[Deep_Learning] int, | ||
[Deep_Learning_Score] decimal, | ||
[Ml_assessment_Date] date, | ||
[Machine_Learning] int, | ||
[Machine_Learning_Score] decimal, | ||
[Sql_assessment_Date] date, | ||
[SQL] int, | ||
[SQL_Score] decimal, | ||
[Stats_assessment_Date] date, | ||
[Statistics] int, | ||
[Statistics_Score] decimal, | ||
[Aws_assessment_Date] date, | ||
[AWS] int, | ||
[AWS_Score] decimal, | ||
[Total_marks] int, | ||
[Pass_rate] int, | ||
[Total_Avg_prcnt] decimal, | ||
[Pass_Fail] char | ||
) | ||
GO | ||
|
||
CREATE TABLE [lms_engagement_throughout] ( | ||
[SEN] nvarchar(255), | ||
[Batch_No] int, | ||
[lms_engagement_throughout_throughout_course] int, | ||
[Class_Commencement_Date] date, | ||
[Class_End_Date] date, | ||
[Total_time_enrolled] int, | ||
[Total_observed_time] int, | ||
[Retention_Rate] decimal | ||
) | ||
GO | ||
|
||
ALTER TABLE [demographics] ADD FOREIGN KEY ([Batch_No]) REFERENCES [course_duration] ([Batch_No]) | ||
GO | ||
|
||
ALTER TABLE [lms_engagement_monthly] ADD FOREIGN KEY ([SEN]) REFERENCES [demographics] ([SEN]) | ||
GO | ||
|
||
ALTER TABLE [lms_engagement_monthly] ADD FOREIGN KEY ([Batch_No]) REFERENCES [course_duration] ([Batch_No]) | ||
GO | ||
|
||
ALTER TABLE [assessment_progress_monthly] ADD FOREIGN KEY ([SEN]) REFERENCES [lms_engagement_monthly] ([SEN]) | ||
GO | ||
|
||
ALTER TABLE [lms_engagement_throughout] ADD FOREIGN KEY ([SEN]) REFERENCES [lms_engagement_monthly] ([SEN]) | ||
GO | ||
|
||
ALTER TABLE [lms_engagement_throughout] ADD FOREIGN KEY ([Class_Commencement_Date]) REFERENCES [course_duration] ([Class_Commencement_Date]) | ||
GO |
Oops, something went wrong.