Create Tables Instructions
create_tables_instructions
User Manual:
Open the PDF directly: View PDF 
.
Page Count: 3
| Download | |
| Open PDF In Browser | View PDF | 
LON COMMNT (0) QL > Dataase Manipulation Create Tales We'll make some tales using QL CRAT TAL statements. We recommend writing our QL in some le just to make it eas to save and edit. You can then cop and paste from this le into our sqlite shell to execute the commands. elow are the three tales we need. After looking at the linked guide aove, attempt to write the code ourself and then open the hint and compare the answer to our code. Add the following attriutes to the movie tale. • id • tpe INTGR • primar ke • name • tpe TXT • default value NULL • ear • tpe INTGR • default value NULL • rank • tpe RAL • default value NULL Hint: CRAT movies CRAT TAL movie ( id INTGR PRIMARY KY, name TXT DFAULT NULL, ear INTGR DFAULT NULL, rank RAL DFAULT NULL ); Click to toggle hint  WARNING: Primar ke columns onl auto-increment properl if the are of tpe INTGR . nonms such as INT cause such columns to ehave as normal data elds - reference. Add the following attriutes to the actor tale. • id • tpe INTGR • primar ke • rst_name • tpe TXT • default value NULL • last_name • tpe TXT • default value NULL • gender • tpe TXT • default value NULL Hint: CRAT actors Click to toggle hint  Click to toggle hint  Add the following attriutes to the role tale. • actor_id • tpe INTGR • movie_id • tpe INTGR • role_name • tpe TXT • DFAULT value NULL Hint: CRAT roles NOT: QLite's CRAT TAL command de nition is similar, ut not the same, as the Postgres CRAT TAL . Once ou learn the concept however, ou won't have troule learning the nuances of the Postgres CRAT TAL command either. PREVIOUS LESSON Get tarted: et Up a Dataase NEXT LESSON eed the Dataase
Source Exif Data:
File Type : PDF File Type Extension : pdf MIME Type : application/pdf PDF Version : 1.4 Linearized : No Page Count : 3 Creator : Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36 Producer : Skia/PDF m66 Create Date : 2018:06:04 20:26:44+00:00 Modify Date : 2018:06:04 20:26:44+00:00EXIF Metadata provided by EXIF.tools