Question: Consider a relational schema with three relation schemas: DRIVER (Dr_license_no, Dr_name, Dr_city, Dr_state), TICKET_TYPE (Ttp_offense, Ttp_fine) and TICKET (Tic_ticket_no, Tic_ticket_date, Tic_dr_license_no, Tic_ttp_offense). Assume that Dr_license_no
Consider a relational schema with three relation schemas: DRIVER (Dr_license_no, Dr_name, Dr_city, Dr_state), TICKET_TYPE (Ttp_offense, Ttp_fine) and TICKET (Tic_ticket_no, Tic_ticket_date, Tic_dr_license_no, Tic_ttp_offense). Assume that Dr_license_no is a character data type of size 7, Dr_name, Dr_city and Ttp_offense are character data types of size 20, Dr_state is a character data type of size 2, Tic_ticket_no is a character data type of size 5, and Ttp_fine is an integer between 15 and 150. Each tuple in the TICKET relation corresponds to a ticket received by a driver for having been issued a specific type of ticket on a given data for committing a given offense. Use SQL/DDL to create a schema of these relations, including the appropriate primary key, integrity (e.g., not null), and foreign key constraints. In addition, include the definition of domains for each of the distinct attribute types?
Step by Step Solution
3.36 Rating (177 Votes )
There are 3 Steps involved in it
Drop table driver cascade constraints Drop tabletickettypecascade constraints Drop table ti... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
887-CS-DB (2222).docx
120 KBs Word File
