Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions Icon

Related questions

Question
mysql> select * from song;
+-----+
| ID | Title
+-----+-
100 | Hey Jude
--+
| Artist
| GenreCode |
Beatles
| PRC
200 | You Belong With Me
| Taylor Swift
| NULL
300 Need You Now
400 Old Town Road
| Lady Antebellum | COU
| NULL
Lil Nas X
| Pearl Jam
500 | That's The Way Love Goes | Janet Jackson | RAB
600 | Even Flow
+-----+--
6 rows in set (0.00 sec)
mysql> desc song;
| GRU
+
| Field
ID
| Type
| int
| Null | Key | Default | Extra |
-----+-----+-
Title
| NO
varchar(60) | YES
| PRI | NULL
|
| NULL
Artist
| varchar(60) | YES
|
| NULL
| GenreCode | char(3)
| YES
| MUL | NULL
+-
4 rows in set (0.00 sec)
mysql> select * from genre;
+------+--
| Code | Name
+-----
| CLA
artists
| Description
| Classical | Orchestral music composed and performed by professionally trained
|
| COU❘ Country | Developed mostly in southern USA, with roots in traditional folk music,
spirituals and blues |
| DRO | Drone
clusters
GRU | Grunge
Pop Rock
R&B
| PRC
RAB
| TEC | Techno
+
| Minimalist music that emphasizes sustained or repeated sounds, notes, or tone
| Alternative rock inspired by hardcore punk, heavy metal, and indie rock
| Rock music with less attitude
Modern version of soul and funk African-American pop music
| Electronic music
7 rows in set (0.01 sec)
mysql> desc genre;
| Field
| Code
Name
| Type
| Null | Key | Default | Extra |
| NO | PRI | NULL
|char(3)
varchar(20) | YES
| Description | varchar(200) | YES
+
3 rows in set (0.01 sec)
| NULL
| NULL
expand button
Transcribed Image Text:mysql> select * from song; +-----+ | ID | Title +-----+- 100 | Hey Jude --+ | Artist | GenreCode | Beatles | PRC 200 | You Belong With Me | Taylor Swift | NULL 300 Need You Now 400 Old Town Road | Lady Antebellum | COU | NULL Lil Nas X | Pearl Jam 500 | That's The Way Love Goes | Janet Jackson | RAB 600 | Even Flow +-----+-- 6 rows in set (0.00 sec) mysql> desc song; | GRU + | Field ID | Type | int | Null | Key | Default | Extra | -----+-----+- Title | NO varchar(60) | YES | PRI | NULL | | NULL Artist | varchar(60) | YES | | NULL | GenreCode | char(3) | YES | MUL | NULL +- 4 rows in set (0.00 sec) mysql> select * from genre; +------+-- | Code | Name +----- | CLA artists | Description | Classical | Orchestral music composed and performed by professionally trained | | COU❘ Country | Developed mostly in southern USA, with roots in traditional folk music, spirituals and blues | | DRO | Drone clusters GRU | Grunge Pop Rock R&B | PRC RAB | TEC | Techno + | Minimalist music that emphasizes sustained or repeated sounds, notes, or tone | Alternative rock inspired by hardcore punk, heavy metal, and indie rock | Rock music with less attitude Modern version of soul and funk African-American pop music | Electronic music 7 rows in set (0.01 sec) mysql> desc genre; | Field | Code Name | Type | Null | Key | Default | Extra | | NO | PRI | NULL |char(3) varchar(20) | YES | Description | varchar(200) | YES + 3 rows in set (0.01 sec) | NULL | NULL
Expert Solution
Check Mark
Knowledge Booster
Background pattern image
Similar questions
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education