Skip to content

Instantly share code, notes, and snippets.

@cavebatsofware
Last active June 8, 2017 19:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cavebatsofware/54f70c4079efb4693de146fe4820e70a to your computer and use it in GitHub Desktop.
Save cavebatsofware/54f70c4079efb4693de146fe4820e70a to your computer and use it in GitHub Desktop.
SELECT * FROM DocumentsUploadConfig WHERE DocumentType in ('Essay', 'LPN Program Classes') AND sectionid in (select id from supplementalsection where formsubsectionid in (select id from ApplicationFormSubsection where formsectionid in (select id from ApplicationFormSection where formid = @application_form_id)));
USE unicas_config;
SELECT * FROM DocumentsUploadConfig WHERE DocumentType in ('Essay', 'LPN Program Classes') AND formsubsectionid in (
select id from ApplicationFormSubsection where formsectionid in (
select id from ApplicationFormSection where formid = 6412));
@cavebatsofware
Copy link
Author

USE unicas_config;
SELECT * FROM DocumentsUploadConfig WHERE DocumentType in ('Essay', 'LPN Program Classes') AND sectionid in (
select id from ApplicationFormSection where formid = 6412);

@cavebatsofware
Copy link
Author

SELECT * FROM DocumentsUploadConfig WHERE DocumentType in ('Essay', 'LPN Program Classes') AND sectionid in (select id from programsections where formid = @application_form_id)

@cavebatsofware
Copy link
Author

use unicas_config;
SELECT * FROM DocumentsUploadConfig WHERE sectionid in (select id from supplementalsection where programid in (select id from programsections where formid = 6412))

@cavebatsofware
Copy link
Author

select * from DocumentsUploadConfig where SectionId in (select id from SupplementalSection where ProgramId in
(select id from Program where AssociationOrgId in (select id from AssociationOrg where FormId = 6412)))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment