Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

SQL Please help me by filling in the 5 ______ blanks below with the correct SQL

ID: 3591122 • Letter: S

Question

SQL Please help me by filling in the 5 ______ blanks below with the correct SQL commands. Thank you!!

Fill in the blanks in the SQL statement below to add to the vendors table a new character field named waiver that is one character in length.

______________ vendors _________________ waiver CHAR(1);

Fill in the blanks in the SQL statement below to change the name in the vendors table a character field that is 60 characters in length.

________________ vendors _______________  name _______________ ;

Accounts Payable Database Listing Description of tables in the AP database Table: general_ledger_accounts general_ledger_accounts(account_number, description) Table: terms terms(terms_id, description, due_days) Table: vendor contacts vendor_contacts(contact_id, last_name, first_name) Table: vendor vendor(vendor_id, name, address1, address2, city, state, zip, phone, contact id, default_terms_id, default_account_number) Table: invoices invoices(vendor_id, number, invoice_date, invoice_total, payment_total, credit_total, terms_id, invoice_due_date, payment_date) Table: invoice_line_items invoice_line_items(invoice_id, sequence, a ccount number, amount, descriptiou

Explanation / Answer

ALTER TABLE vendors ADD waiver CHAR(1);

      Here to add a new field in to a table we use Alter Table

      command as above which is a DDL command.

ALTER TABLE vendors ALTER COLUMN name CHAR(60);

      Here to modify a exisiting field in the table we use Alter Table

      command as above which is a DDL command.