Menu

#20 auto class rosters update

open
SQL (8)
5
2004-04-21
2004-04-21
Mark Inmon
No

Originator MAHC Administrator

Issue – auto class rosters update

Description – the education dept. at MAHC requested
that the class manager update the roster with the
personnel required taking the class. This will save a lot
of time for them by not having to update the roster one
person at a time.

Example – This query is for a class that all officers are
required to take. You can modify it to suit your needs.
Huge thanks go out to IACH administrator for his help on
this turning my on the right path.

INSERT INTO mepsdata.dbo.events (ssn, class, instrpot,
status, credtype, changedby, approved)

SELECT
vatz, 164, 0, 'enrolled', 19, '3001', 1

FROM personnel INNER JOIN rank on personnel.rank =
rank.rankid WHERE officer=1 AND departed=0

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.