Answered step by step
Verified Expert Solution
Question
1 Approved Answer
consider two following sql tables: CREATE TABLE user ( user _ id int PRIMARY KEY, first _ name varchar ( 2 0 ) DEFAULT NULL,
consider two following sql tables:
CREATE TABLE user
userid int PRIMARY KEY,
firstname varchar DEFAULT NULL,
lastname varchar DEFAULT NULL
CREATE TABLE omment
commentid int PRIMARY KEY,
rate int DEFAULT NULL,
userid int NOT NULL,
FOREIGN KEYuserid REFERENCES useruserid
now consider this rule: "The user's first and last name will not be completely displayed, only the first character of the first and last name will be shown."
add a sql constraint that supports this rule.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started