function viewDepartments() {
    db.query(
        `SELECT * FROM department`,
        function (err, results) {
            if (err) throw err;
            console.table('Departments', results);
            comfirmPrompt();
        }
    );
}
//function to query and display all departments
function to query and display all departments
function to query and display all departments
function viewDepartments() {
    db.query(
        `SELECT * FROM department`,
        function (err, results) {
            if (err) throw err;
            console.table('Departments', results);
            comfirmPrompt();
        }
    );
}
function viewDepartments ( ) { db . query ( ` ` , function ( err , results ) { if ( err ) throw err ; console . table ( 'Departments' , results ) ; comfirmPrompt ( ) ; } ) ; }
function to query and display all departments
function to query and display all departments