Question

Add order_region to the MT_Order_Details table that always has to have 1 character. Next ensure only...

Add order_region to the MT_Order_Details table that always has to have 1 character. Next ensure only the following values can be a valid state N, S, E, W. I recommend using 2 separate SQL statements.

0 0
Add a comment Improve this question Transcribed image text
Answer #1
Alter TABLE MT_Order_Details add column order_region Char(1);

ALTER TABLE MT_Order_Details ADD CONSTRAINT CHK_Order_Region CHECK (order_region IN ('N', 'S', 'E', 'W'));

Do ask if any doubt.

Add a comment
Know the answer?
Add Answer to:
Add order_region to the MT_Order_Details table that always has to have 1 character. Next ensure only...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Chapter 9 Lab Text Processing and Wrapper Classes Lab Objectives ? Use methods of the Character...

    Chapter 9 Lab Text Processing and Wrapper Classes Lab Objectives ? Use methods of the Character class and String class to process text ? Be able to use the StringTokenizer and StringBuffer classes Introduction In this lab we ask the user to enter a time in military time (24 hours). The program will convert and display the equivalent conventional time (12 hour with AM or PM) for each entry if it is a valid military time. An error message will...

  • Which four of the following statements are true? Generic code only works with values of reference...

    Which four of the following statements are true? Generic code only works with values of reference types. Autoboxing is when a reference type is automatically converted into the corresponding primitive type. Java will always add a default constructor to any class that you define All exceptions in Java implement the Thwable interface Generic algorithms allow you to write code that can operate on arguments of multiple different types. The type wrapper for the int primitive type is called Int A...

  • You are designing a table for employee data of a company. You have a requirement to...

    You are designing a table for employee data of a company. You have a requirement to identify if an employee is a United States citizen or not. You have designed a table called EMPLOYEE to store information related to each employee and you have a column called US CITIZEN INDICATOR to store if an employee is a US citizen or not. You only want to store values "Y" or "N" in this column. From the following options, what is the...

  • Things are tense on the battlefield and our army is on the verge of defeat. The only chance is to...

    Programming language is Java 8 Thank you Things are tense on the battlefield and our army is on the verge of defeat. The only chance is to retreat for now, regroup, and then initiate another attack. To do this however, the king must be rescued first. A brave soldier named S wants to rescue the king. S wants to get to the king as fast as possible while avoiding the obstacles on the field such as pits, trees, bodies, etc....

  • DROP TABLE EMPLOYEE; DROP TABLE JOB; DROP TABLE EMP; DROP TABLE EMP_1; DROP TABLE EMP_2; CREATE...

    DROP TABLE EMPLOYEE; DROP TABLE JOB; DROP TABLE EMP; DROP TABLE EMP_1; DROP TABLE EMP_2; CREATE TABLE JOB(JOB_CODE CHAR (3) PRIMARY KEY, JOB_DESCRIPTION VARCHAR (20) NOT NULL,JOB_CHG_HOUR NUMBER (5,2) NOT NULL,JOB_LAST_UPDATE DATE NOT NULL); INSERT INTO JOB VALUES('500','Programmer','35.75','20-Nov-2017'); INSERT INTO JOB VALUES('501','System Analyst','96.75','20-Nov-2017'); INSERT INTO JOB VALUES('502','Database Designer','125.00','24-Mar-2018'); CREATE TABLE EMPLOYEE(EMP_NUM CHAR (3) PRIMARY KEY,EMP_LNAME VARCHAR (15) NOT NULL,EMP_FNAME VARCHAR (15) NOT NULL, EMP_INITIAL CHAR (1),EMP_HIREDATE DATE NOT NULL,JOB_CODE CHAR (3), EMP_YEARS NUMBER (2),FOREIGN KEY (JOB_CODE) REFERENCES JOB (JOB_CODE)); INSERT...

  • Question:Matrix Notation Interpreter (matrix elements to cell array of formatted character vectors) Matlab question Matrix Notation Interpreter (matrix elements to cell array of formatted character...

    Question:Matrix Notation Interpreter (matrix elements to cell array of formatted character vectors) Matlab question Matrix Notation Interpreter (matrix elements to cell array of formatted character vectors) A system of linear algebraic equations can be writen in matrx notation by applying the definizion of matrix multiplication. For example, the linear system Can be writen as or where and x = 2 matrix input ror the variable A and a × T e function command dennes the output variable linearSystem Code has...

  • 1. Create a table that is named test_table. This table should have two columns named test_id...

    1. Create a table that is named test_table. This table should have two columns named test_id and test_description. These columns should be defined to store the following type of data, respectively: test_id stores numeric data that is a maximum of 3 characters in size; test_description stores variable character data that is a maximum of 25 characters in size.(Hint: Refer to SQL Example 2.1) 2. Insert two rows into the test_table as follows: INSERT INTO test_table VALUES (1, 'Test1'); INSERT INTO...

  • need help Create or edit the SQL statements required to accomplish the following tasks. All columns...

    need help Create or edit the SQL statements required to accomplish the following tasks. All columns should have a column name, feel free to create appropriate aliases Use screen shots to ca evidence that each task is completed; include the SQL records before and after statements are executed, as appropriate. Include all work, even if you get errors. Paste your screen shots into a single PowerPoint file pture statements output from the statements, and views of the object explorer when...

  • 7. The following state table is implemented as a ROM LUT Next State Output State 00 001 1 1 011 1...

    7. The following state table is implemented as a ROM LUT Next State Output State 00 001 1 1 011 101 1 1 00 1 0 0 In the 22 x m naming convention, what values are n and m? How many entries are in the ROM LUT? Write the Verilog code to implement the state table using a case block where X and a clock are inputs. Each state take 15 ns to change after a negative edge of...

  • 1) Using the periodic table only, arrange the elements in each set in order of increasing electronegativity. (a) Mg, P...

    1) Using the periodic table only, arrange the elements in each set in order of increasing electronegativity. (a) Mg, P, As (b) S, O, Si ....................................................................................................................................................... 2) Using the periodic table only, arrange the members of each of the following sets in order of increasing bond strength. (a) C=N, C-N, C N (b) S-H, S-Br, S-Cl (c) Br-Br, Cl-Cl, I-I ..................................................................................................................................... 3) Using the periodic table only, arrange the members of each of the following sets in order of increasing...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
Active Questions
ADVERTISEMENT