English

Create a table for the information given below by choosing appropriate data types. Specify proper primary key for the table 1) Movie 2) Actor - Information Technology

Advertisements
Advertisements

Question

Create a table for the information given below by choosing appropriate data types. Specify proper primary key for the table 1) Movie 2) Actor

  1. Movie (Registeration_no, movie_name, Realease_Date)
  2. Actor (actor_id, Actor_name, birth_date )
One Line Answer

Solution

Create table movie (
Registration_no smallint primary key,
movie_name varchar (20),
Release_Date date
);
Create table actor (
actor_id smallint primary key,
Actor_name varchar (20),
birth_date date
);
shaalaa.com
Data Definition Language (DDL) Commands
  Is there an error in this question or solution?
Chapter 2: Introduction to DBMS - Exercise [Page 28]

APPEARS IN

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×