Purchase Solution

SQL Command Code

Not what you're looking for?

Ask Custom Question

CREATE TABLE contacts
(Con_id NUMBER(4),
Company_name VARCHAR2(30) not null,
E_mail VARCHAR2(30),
Last_date DATE DEFAULT SYSDATE,
Con_cnt NUMBER(3) CHECK (Con_cnt > 0),
PRIMARY KEY (Con_id));

1. Write a code to add two rows of data to the table that was created using the command above. Ensure the default option on the LAST_DATE column is used in the second row added. Also, issue a command to permanently save the data to the table.

Purchase this Solution

Solution Summary

This solution contains step-by-step instructions on how to execute the SQL commands and also additional codes.

Solution Preview

Dear student,

To insert a row into the already created table, you need to use the Insert command.
The structure of the command is usually like this...Insert into TABLENAME values(...,...,...);
In the above statement insert, into and values are the keywords. That means these 3 words will always be used for every insertion operation. The TABLENAME ...

Purchase this Solution


Free BrainMass Quizzes
C++ Operators

This quiz tests a student's knowledge about C++ operators.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

C# variables and classes

This quiz contains questions about C# classes and variables.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.