Code Monkey home page Code Monkey logo

alumni_db's Introduction

alumni_db

Development Log for Alumni Database

See associated PDF file for ERD. "query_preprocessing.py" automates preprocessing of raw queries extracted from Peoplesoft.

NOTE: Microsoft Access file is hidden due to privacy considerations.

List of queries:

  1. Alumni Employment Lookup: Checks employment history for specific alumni based on their last names.
    SELECT Alumni_Employment.StudentID, Alumni_Term_Prog.LastName+' '+Alumni_Term_Prog.FirstName AS [Full Name], Alumni_Term_Prog.GradTerm, Alumni_Employment.Company, Alumni_Employment.Position, Alumni_Employment.LinkedIn
    FROM Alumni_Employment INNER JOIN Alumni_Term_Prog ON Alumni_Employment.StudentID = Alumni_Term_Prog.StudentID
    WHERE (((Alumni_Term_Prog.LastName)=[Enter last name: ]));
    
  1. Boeing Alumni: Shows alumni working at Boeing (Boeing Partnership); use work email domain as a filter.
    SELECT Alumni_Contact.StudentID, Alumni_Term_Prog.GradTerm, Alumni_Term_Prog.LastName, Alumni_Term_Prog.FirstName, Alumni_Term_Prog.Degree, Alumni_Term_Prog.Plan, Alumni_Term_Prog.[Continuing?], Alumni_Contact.[Personal Email]
    FROM Alumni_Term_Prog INNER JOIN Alumni_Contact ON Alumni_Term_Prog.StudentID = Alumni_Contact.StudentID
    WHERE (((Alumni_Contact.[Personal Email]) Alike '%boeing%'));
    
  1. Faculty Alumni: Display alumni currently employed as associate faculty.
    SELECT Alumni_Term_Prog.StudentID, Alumni_Term_Prog.GradTerm, Alumni_Term_Prog.LastName, Alumni_Term_Prog.FirstName, Alumni_Term_Prog.Degree AS [Grad Degree], Alumni_Term_Prog.[IsFaculty]
    FROM Alumni_Term_Prog
    WHERE (((Alumni_Term_Prog.[IsFaculty])=Yes));
    
  1. CompanyListSQL: List of companies offering partnership for case studies and class visits.
    SELECT DISTINCT L.Company
    FROM Company_List AS L INNER JOIN Company_Contacts AS C ON L.Company = C.Company;
    
  1. DBAKingNotFac: Capture DBA alumni currently not employed as associate faculty (allows to look for potential teaching candidates).
    SELECT Alumni_Term_Prog.StudentID, Alumni_Term_Prog.LastName, Alumni_Term_Prog.FirstName, Alumni_Term_Prog.Degree, Alumni_Contact.[Personal Email], Alumni_Contact.City, Alumni_Contact.State
    FROM Alumni_Term_Prog INNER JOIN Alumni_Contact ON Alumni_Term_Prog.StudentID = Alumni_Contact.StudentID
    WHERE (
            (Alumni_Contact.Zipcode ALIKE '980%' AND Alumni_Contact.Zipcode <> '98000') 
            OR Alumni_Contact.Zipcode ALIKE '981%' 
            OR (Alumni_Contact.Zipcode ALIKE '982%' AND Alumni_Contact.Zipcode NOT ALIKE '9829%')
        )
    AND Alumni_Term_Prog.Degree = 'DBA' 
    AND Alumni_Term_Prog.[CityU Faculty?] = False;
    
  1. DMD_Inductees: Lists alumni inducted into honorary chapter.
    SELECT Q.StudentID, Q.GradTerm, Q.LastName, Q.FirstName, Q.Degree, Nz(Q.PartnerEmail, C.[Personal Email]) AS [Personal Email], Q.Partner
    FROM Unioned_DMDs AS Q LEFT JOIN Alumni_Contact AS C ON Q.StudentID = C.StudentID;
    
  1. King_County_Alumni: List of local alumni (based in King County) - intended for promotion of onsite events and class visit planning.
    SELECT Alumni_Term_Prog.StudentID, Alumni_Term_Prog.LastName, Alumni_Term_Prog.FirstName, Alumni_Term_Prog.Degree, Alumni_Contact.[Personal Email], Alumni_Contact.City, Alumni_Contact.State
    FROM Alumni_Term_Prog INNER JOIN Alumni_Contact ON Alumni_Term_Prog.StudentID = Alumni_Contact.StudentID
    WHERE Alumni_Contact.Zipcode Alike '980%' AND Alumni_Contact.Zipcode <> '98000' OR Alumni_Contact.Zipcode Alike '981%' OR Alumni_Contact.Zipcode Alike '982%' AND Alumni_Contact.Zipcode Not Alike '9829%';
    
  1. MBA Graduates: List of MBA graduates - accreditation/reporting.
    SELECT StudentID, GradTerm, LastName, FirstName, Degree, Plan
    FROM Alumni_Term_Prog
    WHERE Degree="MBA"
    ORDER BY GradTerm DESC; 
    
  1. PotentialFacultyLocal: Displays contacts from partner companies potentially interested in teaching.
    SELECT [Full Name], Company, Email, LinkedIn, [Highest Credentials]
    FROM Company_Contacts
    WHERE Local = True AND [Interested in Teaching] = True;
    
  1. RecentPMs: Shows alumni, including returning students, with degrees/plans in project management - useful for promoting new PM degrees, as well as PMI partnership event promotion.
    SELECT Alumni_Term_Prog.StudentID, Alumni_Term_Prog.GradTerm, Alumni_Term_Prog.LastName, Alumni_Term_Prog.FirstName, Alumni_Term_Prog.Degree, Alumni_Term_Prog.Plan, Alumni_Term_Prog.[Continuing?], Alumni_Secondary_Degree.Degree AS [Secondary Degree], Alumni_Secondary_Degree.Plan AS [Secondary Plan], Alumni_Secondary_Degree.GradTerm AS [Secondary Grad Term], 
    Alumni_Continuing.Degree AS [Continuing Degree], Alumni_Continuing.Plan AS [Continuing Plan]
    FROM (Alumni_Term_Prog LEFT JOIN Alumni_Secondary_Degree ON Alumni_Term_Prog.StudentID = Alumni_Secondary_Degree.StudentID) LEFT JOIN Alumni_Continuing ON Alumni_Term_Prog.StudentID = Alumni_Continuing.StudentID
    WHERE Alumni_Term_Prog.Degree IN ("BSPM", "MSPM") OR Alumni_Term_Prog.Degree IN ("BSPM", "MSPM")
    ORDER BY Alumni_Term_Prog.GradTerm DESC;
    
  1. Selected Per Location: Captures total number of alumni in each term per most popular programs across specific international campuses.
    SELECT Q.Degree, Q.GradTerm, Q.Country, Count(*) AS [Total Alumni]
    FROM (SELECT Alumni_Term_Prog.Degree, Alumni_Term_Prog.GradTerm, "US" AS Country
       FROM Alumni_Term_Prog
       WHERE Alumni_Term_Prog.Degree IN ("BAM", "BSBA", "MBA")
    
       UNION ALL
       
       SELECT Alumni_Partner.Degree, Alumni_Partner.GradTerm, Alumni_Partner.Country
       FROM Alumni_Partner
       WHERE Alumni_Partner.Degree IN ("BAM", "BSBA", "MBA")
       AND Alumni_Partner.Country NOT IN ("Canada", "China", "Vietnam")
    )  AS Q
    GROUP BY Q.Degree, Q.GradTerm, Q.Country;
    
  1. Total Alumni Per Program and Term: For capturing retention.
    SELECT Alumni_Term_Prog.Degree, Alumni_Term_Prog.GradTerm, Count(*) AS [Total Alumni]
    FROM Alumni_Term_Prog
    GROUP BY Alumni_Term_Prog.Degree, Alumni_Term_Prog.GradTerm;
    

alumni_db's People

Contributors

kriuchkovaa avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.