Answer the question
In order to leave comments, you need to log in
"Complex" constraint for SQL character field?
Can the database perform such a check?
CREATE TABLE flyght_details
(
table_id int PRIMARY KEY,
flight_id int,
aircraft_code varchar,
seat_no varchar,
fare_conditions varchar CHECK (fare_conditions IN ('Economy' < 150 записей, 'Comfort' < 30 записей, 'Business' < 20 записей))
)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question