Given:
$cat file1
This is in file 1.
$cat file2
This is in file 2.
What does "cat file1 > file2" mean?
Choice 1. Replace content of file2 with file1.
Choice 2. Replace content of file1 with file2.
Choice 3. Cut the contents of file1 and append it in file2.
Choice 4. Remove file1 and create file2.
The shell variable $? is automatically set by the shell to the exit status of the last command executed. When you execute echo $? and returns 1, it means that the exit status of the last command "succeeded". (True or False)
In SQL DDL (data definition language) commands are used to define the structures of a database. The effects of DDL commands are permanently stored in a data dictionary. An example of DDL statement is:
CREATE TABLE aircraft
(serial_no INT(10),
model_no VARCHAR(15));
(True or False)
By default MySQL runs with autocommit mode enabled (True or False).
Provide a SQL statement to create a table with the following specifications:
Table Name: person
Attributes, Domain Types and Constraints:
Name, variable length, 15 characters, null values not allowed
Address, variable length, 15 characters, null values not allowed
Phone, variable length, 12 characters
*Primary Key: name
Provide a SQL statement to create a table with the following specifications:
Table Name: employee
Attributes, DOmain Types and Constraints:
Name, variable length, 15 characters, null values not allowed
Salary, fixed point number, 10 digits, 2 decimal
Emp_No, smallint, unique, null values not allowed
*Primary Key: name
*Foreign Key: name
*References person(name)