
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Topic Video
Question

Transcribed Image Text:3.7 LAB - Create Horse table with constraints
Create a Horse table with the following columns, data types, and constraints. NULL is allowed unless 'not NULL' is explicitly stated.
ID - integer with range 0 to 65 thousand, auto increment, primary key
●
RegisteredName - variable-length string with max 15 chars, not NULL
●
Breed - variable-length string with max 20 chars, must be one of the following: Egyptian Arab, Holsteiner, Quarter Horse, Paint,
Saddlebred
●
Height - number with 3 significant digits and 1 decimal place, must be ≥ 10.0 and ≤ 20.0
• BirthDate - date, must be ≥ Jan 1, 2015
Note: Not all constraints can be tested due to current limitations of MySQL.
401682.2354678.qx3zqy7
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 2 steps

Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question
I keep getting this message.
ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'number(66) primary key, RegisteredName varchar(15)Not null, Breed varchar(20), H' at line 2

Transcribed Image Text:1 create table HORSE (
2 ID number (66) primary key,
3 RegisteredName varchar(15)Not null,
4 Breed varchar(20),
5 Height (>=10 and <=20)integer (3)
6 BirthDate date(>= Jan, 2015));
Main.sql
Solution
by Bartleby Expert
Follow-up Question
What do I put in the corresponding numbers

Transcribed Image Text:Edit View History Bookmarks Window Help
Grades for Gerardo Quintero: 202230 Databas...
zyBooks
esc
1
Q
A
Mind Tap - Cengage Learning
My library > CGS 2545C: Database Management Systems home >
11.1: LAB - Create Horse table with constraints
10
leger
Saddlebred
2
RegisteredName - variable-length string with max 15 chars, not NULL
• Breed-variable-length string with max 20 chars, must be one of the following: Egyptian Arab, Holsteiner, Quarter Horse, Pain
• Height-number with 3 significant digits and 1 decimal place, must be ≥ 10.0 and ≤ 20.0
• BirthDate- date, must be ≥ Jan 1, 2015
Note: Not all constraints can be tested due to current limitations of MySQL.
392832.2608952.qx3zqy7
LAB
ACTIVITY 11.1.1: LAB - Create Horse table with constraints
1 DataType NOT NULL AUTO_INCREMENT
2 DataType NOT NULL,
W
S
I
#
3
E
D
JUL
20
$
4
R
F
%
175⁰
learn.zybooks.com
T
G
<C
Main.sql
Y
&
7
zy Section 11.1 - CGS 2545C: Database Managem...
H
U
8
J
LE zyBooks catalog
zyBooks catalog ? Help/F
#tv A
9
Ć
K
O
0
Load default template...
L
0/10
DO
P
1
{
Solution
by Bartleby Expert
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question
I keep getting this message.
ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'number(66) primary key, RegisteredName varchar(15)Not null, Breed varchar(20), H' at line 2

Transcribed Image Text:1 create table HORSE (
2 ID number (66) primary key,
3 RegisteredName varchar(15)Not null,
4 Breed varchar(20),
5 Height (>=10 and <=20)integer (3)
6 BirthDate date(>= Jan, 2015));
Main.sql
Solution
by Bartleby Expert
Follow-up Question
What do I put in the corresponding numbers

Transcribed Image Text:Edit View History Bookmarks Window Help
Grades for Gerardo Quintero: 202230 Databas...
zyBooks
esc
1
Q
A
Mind Tap - Cengage Learning
My library > CGS 2545C: Database Management Systems home >
11.1: LAB - Create Horse table with constraints
10
leger
Saddlebred
2
RegisteredName - variable-length string with max 15 chars, not NULL
• Breed-variable-length string with max 20 chars, must be one of the following: Egyptian Arab, Holsteiner, Quarter Horse, Pain
• Height-number with 3 significant digits and 1 decimal place, must be ≥ 10.0 and ≤ 20.0
• BirthDate- date, must be ≥ Jan 1, 2015
Note: Not all constraints can be tested due to current limitations of MySQL.
392832.2608952.qx3zqy7
LAB
ACTIVITY 11.1.1: LAB - Create Horse table with constraints
1 DataType NOT NULL AUTO_INCREMENT
2 DataType NOT NULL,
W
S
I
#
3
E
D
JUL
20
$
4
R
F
%
175⁰
learn.zybooks.com
T
G
<C
Main.sql
Y
&
7
zy Section 11.1 - CGS 2545C: Database Managem...
H
U
8
J
LE zyBooks catalog
zyBooks catalog ? Help/F
#tv A
9
Ć
K
O
0
Load default template...
L
0/10
DO
P
1
{
Solution
by Bartleby Expert
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- def city_dict(adict): """ Question 6 -Given a dictionary that maps a person to a list of countries they want to travel to, return a dictionary with the value being the list sorted by the last letter in each countries name. If two countries have the same last letter, sort by the first letter. -For an extra challenge, try doing this in one line (Optional). Args: adict (dict) Returns: dict >>> city_dict({"Pablo": ["Belgium", "Canada", "Germany"], "Athena": ["Italy", "France", "Egypt"], "Liv": ["Japan", "Bolivia", "Greece"]}) {'Pablo': ['Canada', 'Belgium', 'Germany'], 'Athena': ['France', 'Egypt', 'Italy'], 'Liv': ['Bolivia', 'Greece', 'Japan']} >>> city_dict({"Jacob": ["Bahamas", "Brazil", "Chile"], "Lexi": ["Colombia", "Finland", "Panama"], "Emily": ["Ireland", "Russia", "Kenya", "Jordan"]}) {'Jacob': ['Chile', 'Brazil', 'Bahamas'], 'Lexi': ['Colombia', 'Panama', 'Finland'], 'Emily': ['Kenya',…arrow_forward+|| 8 Exercise 1 (2%) Create an anonymous block that displays a course list. Declare a cursor and use the OPEN,FETCH, and CLOSE cursor statements to access the cursor. Use the %ROWTYPE attribute for the cursor. Output: Course Code Course Title Accounting Theory Microeconomics Financial Accounting Anthropology Introduction to Business Businéss Planning Web Technologies I Programming Logic Web Technologies II Python Programming Web Technologies III Database Design & SQL Communications I ACC104 ACC205 ANT100 BUS100 BUS230 CIS100 CIS105 CIS200 CIS225 00ESI) CIS400 ENG101 ENG201 GEO101 MGT410 Communication II The Physical Environment Human Resources Management Project Management Algebra Geometry Nursing Theory I Nursing Theory II MGT415 MTH120 MTH400 NSG130 NSG230 -19°C Mostly sunny ^ o prt sc home end insert delete F6 F7 F10 F11 F12 81 ) ( num backspace lock 6 } { ] enter 7. shift B. / dn 6d up 6d alt ctrl >arrow_forwardPOEM_LINE = str POEM = List[POEM_LINE] PHONEMES = Tuple[str] PRONUNCIATION_DICT = Dict[str, PHONEMES] def all_lines_rhyme(poem_lines: POEM, lines_to_check: List[int], word_to_phonemes: PRONUNCIATION_DICT) -> bool: """Return True if and only if the lines from poem_lines with index in lines_to_check all rhyme, according to word_to_phonemes. Precondition: lines_to_check != [] >>> poem_lines = ['The mouse', 'in my house', 'electric.'] >>> lines_to_check = [0, 1] >>> word_to_phonemes = {'THE': ('DH', 'AH0'), ... 'MOUSE': ('M', 'AW1', 'S'), ... 'IN': ('IH0', 'N'), ... 'MY': ('M', 'AY1'), ... 'HOUSE': ('HH', 'AW1', 'S'), ... 'ELECTRIC': ('IH0', 'L', 'EH1', 'K', ... 'T', 'R', 'IH0', 'K')} >>> all_lines_rhyme(poem_lines, lines_to_check, word_to_phonemes) True…arrow_forward
- LAB ASSIGNMENT, CONT. 2) author_book.py Use the previous project as a model. This time, use a variable called readings, of the dictionary data type (instead of users). It stores your favorite authors and book titles, as key-value pairs. Initialize the dictionary with 3 authors and book titles. Like the previous program, this one should display a command menu and let the user view, add, edit and delete dictionary entries. With the new program, you need to adapt the variable names, user-facing messages and capitalization strategies to fit the new content. NOTE: test data needs to use the same capitalization strategy as the program. COMMAND MENU view - View readings add Add a reading edit del exit Edit a reading Delete a reading Exit program Command: edit Enter author's name: G.W. Bush Current book title is 41: Portrait of My Father. Enter new title for G.W. Bush: Decision Points G.W. Bush title was edited to Decision Points. Command:arrow_forward*Data Structures and Algorithmarrow_forwardhi I really need help with this assignment problem flip_matrix(mat:list)->list You will be given a single parameter a 2D list (A list with lists within it) this will look like a 2D matrix when printed out, see examples below. Your job is to flip the matrix on its horizontal axis. In other words, flip the matrix horizontally so that the bottom is at top and the top is at the bottom. Return the flipped matrix. To print the matrix to the console: print('\n'.join([''.join(['{:4}'.format(item) for item in row]) for row in mat])) Example: Matrix:W R I T XH D R L GL K F M VG I S T CW N M N FExpected:W N M N FG I S T CL K F M VH D R L GW R I T X Matrix:L CS PExpected:S PL C Matrix:A D JA Q HJ C IExpected:J C IA Q HA D Jarrow_forward
- def sw_vehicle_search(cargo_capacity: int, max_speed: int, cost: int) -> list: This function will use the https://swapi.dev/ API to collect its information. This function is meant to be used to search for vehicles in Star Wars that meet the specified criteria. The function should return a list of names of the vehicles that have cargo capacities and a max speed greater than or equal to the value specified but also cost less than or equal to the cost given. Vehicles with "unknown" or "none" for any of the mentioned categories should not be regarded. Keep in mind that not all of the vehicles in star wars are returned in one request to https://swapi.dev/api/vehicles/. The JSON object returned by this request has a next attribute that represents the next page of information. You must make multiple requests for each page to collect all vehicle information. You might find it helpful to use the following API handle(s): https://swapi.dev/api/vehicles/ - to retrieve all vehicles in Star Wars…arrow_forwardindividual characters using their 0-based index. Hint: You will need to do this for checking all the rules. However, when you access a character .arrow_forwardPython question please include all steps and screenshot of code. Also please provide a docstring, and comments throughout the code, and test the given examples below. Thanks. Write function week() that takes no arguments. It will repeatedly ask the user to enter anabbreviation for a day of the week (Mo, Tu, We, Th, Fr, Sa, or Su) and then print thecorresponding day. Use a dictionary to implement this result.>>> week() Enter day abbreviation: TuTuesdayEnter day abbreviation: SuSundayEnter day abbreviation: SaSaturdayEnter day abbreviationarrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education