Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

GNUMBER LASTNAME FIRSTNAME HOUSENO STREET CITY STATE ZIPCODE G-1234 Doe John 12 Main Street Fairfax VA 22030 G-4567 Smith Kelly 560 Lee Hwy Vienna VA

GNUMBER LASTNAME FIRSTNAME HOUSENO STREET CITY STATE ZIPCODE
G-1234 Doe John 12 Main Street Fairfax VA 22030
G-4567 Smith Kelly 560 Lee Hwy Vienna VA 22027
G-7890 Will Shawn 45 Chain Bridge Rd Fairfax VA 22029
data type null policy Keys checks needed (if any)
GNUMBER gNumDT not null PK always 6 characters and last 4 are digits [0-9]
LASTNAME nameDT not null
FIRSTNAME nameDT not null
HOUSENO varchar(5) not null
STREET streetDT not null
CITY cityDT not null
STATE stateDT not null always 2 characters [A-Z]
ZIPCODE zipDT not null always 5 digits [0-9]

Answer questions:

1) Check constraint for always 6 characters and last 4 are digits [0-9]

2) Check constraint for always 2 characters [A-Z]

3) Check constraint for always 5 digits [0-9]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DATABASE Administrator Make A Difference

Authors: Mohciine Elmourabit

1st Edition

B0CGM7XG75, 978-1722657802

More Books

Students also viewed these Databases questions