A Library Table Contains The Following Structure As Shown Below Table:-Library
A Library Table Contains The Following Structure As Shown Below Table:-Library
Table:- Library.
Book_no Integer(4) Primary key
Book_name Character(20) Not null
Author Character(20) Not null
Price Integer(4) Default 0
c) To display Email_ID and FirstName of those Employee that have their Names starting with
“L”.
d) To change the data type of a column First_Name to char with size 35.
Write MySql command to create the table SHOP with given structure and constraint
Table: SHOP
COLUMN_NAME DATATYPE(SIZE) CONSTRAINT
Fno Int(10) Primary Key
Fname Varchar(15)
Type Char(3)
Stock Int(3)
Price Decimal(8,2)
Write SQL commands for the following:
a) To create table.