function addDepartment(){
    inquirer.prompt([
        {
            type: "input",
            name: "name",
            message: "What is the name of the department you would like to add?"
        }
    ])
    .then((response) => {
        connection.query("INSERT INTO department SET ?",
        response,
        function(err, res){
            if(err) throw err;
        question1Prompt();
        }
        )
    })

}
//INSERT INTO departments (add a department)
INSERT INTO departments (add a department)
INSERT INTO departments ( add a department )
function addDepartment(){
    inquirer.prompt([
        {
            type: "input",
            name: "name",
            message: "What is the name of the department you would like to add?"
        }
    ])
    .then((response) => {
        connection.query("INSERT INTO department SET ?",
        response,
        function(err, res){
            if(err) throw err;
        question1Prompt();
        }
        )
    })
}
function addDepartment ( ) { inquirer . prompt ( [ { type : "input" , name : "name" , message : "What is the name of the department you would like to add?" } ] ) . then ( ( response ) => { connection . query ( "INSERT INTO department SET ?" , response , function ( err , res ) { if ( err ) throw err ; question1Prompt ( ) ; } ) } ) }
INSERT INTO departments (add a department)
INSERT INTO departments ( add a department )