CHAPTER 3-DDsql
CHAPTER 3-DDsql
DEFINITION
IN SQL
Data Definition Language (DDL)
Column_name may be up to 30
characters in length starting with an initial
alphabetic character. The name may
consist of alphanumeric characters and
the special characters _, $, #, or @.
The SQL standard suggests the following types:
This will insert a record using a supplied column list the supplied
values. If no column list is supplied the record will be inserted as
is, which may generate errors if the columns don’t match up.
SQL:
2. Write an appropriate SQL query to insert a new
property into propertyBarbados with the following
details
propertyno – BD67
Street – Sunrise St
Country – Barbados
Type – Villa
Rooms – 7
Rent – 600
Year income – 14000
Owner – CO96
SQL:
3. Write a query that will insert the details of other
properties in Barbados into a table
SQL:
4. Write an SQL statement to drop the
propertyBarbados table
SQL: