Beruflich Dokumente
Kultur Dokumente
column, record, table, item, field, element, primary key, foreign key, and datatype.
Q:
Q: What is a Database? Q: Query the employee names and their salaries from the employee table.
Q:
Repeat the previous query and have Salary for the sal column heading.
Q:
Q:
Q: Use the (NVL ) the null value function to assign zero to any null value in the commission column for the previous query.
Q:
Concatenate the customers last name and first name separated by comma.
Q:
Q:
Q:
Q:
Query the employees name whose names start with the letter
M.
Q:
Query the employees name whose names end with the letter R.
Q:
Query the employees name whose salaries between 2000 and 3000 dollars.
Q:
Query the employees name and their department name using the DECODE function. If the department number is 10 then print "accounting. If the department number is 20 then print "research," or if the department number is 30 then print "sale s." Anything else prints others. Q: What is an ambiguous column?
Q:
Q:
Q:
Q:
Q:
Q:
Q: Query all the employee names and their department including all the departm ents with no employees.
Q:
Q: Query the department number and their total, average, min, and max salaries for each department.
Q: Query the department no and their total salaries that have more than 5 empl oyees working in their department.
Q: Query the employees name that work for the Research or Sales department (th e department number 20 or 30).
Q: Query the employees name that work in the "accounting" department. Assumin g the department number is unknown.
Q: Query the employees name and use the runtime variable to substitute the dep artment number? Then run it for following department no 10, 20, and 30.
Q: Q:
Query the customer names which have more than four orders. Create an employee table that contains five columns:
Such as Employee Id, last name, First name, Phone number and Department number w ith the following constraints. The last name and first name should be not null. Make a check constraint to check the department number is between 9 and 100. Make a primary constraint on the employee ID column. Make a foreign key on the department number column. Use the "delete cascade" to delete all records if parent gets deleted.
Use the "phone number" as a unique key. Q: Create a composite index on the employee table that contains two index colu mns (last name and first name).
Q:
Q: Query the index tables that belong to the employee table and owns by the is elf user.
Q: Change the size of the "column_name" to 30 characters logically (for displa y only.
Q:
Q:
Q:
Q:
Q: Delete all the employee records from the "employee" table using the delete command and the truncate command.
Q:
Q: What is the difference between the delete statement and the truncate statem ent? Q: Copy the EMP table to another table and name the new table "employee." In th e new employee table use the employee name, job, commission and department numbe r.
Q:
Q:
Q:
Q: .
Q:
Q:
Q:
Q: Create an index on the employee table on the ename column only and name it employee_indx.
Q:
Reorganize the
Q:
Q: Create a user with username newuser and password "newpass." Its default tabl espace should be the "iself_data" tablespace.
Q:
Q:
Q:
Can the above new user access to any other user tables?
Q:
Q:
Q:
Q:
Q: Q:
Revoke an object privilege on a table from a user. What does the LIST or L command line editor?
Q:
Q:
Q:
Q:
Q: Q:
How do you open the SQL Script into the Oracle Buffer? How do you use the notepad editor?
Q:
What is afiedt.buf?
Q:
Q:
Q:
Q:
How do you use the notepad editor as an independent tool in the SQLPLUS uti
lity?
Q: Q:
How do you execute or run a SQL script? What is the SQL ANSI statement?
Q: What is the difference between the SQL ANSI statement and Original Oracle s tatement?
Q:
Q:
Q:
What does the JOIN syntax in the Oracle SQL (DML) statement?
Q:
What is the difference between the JOIN syntax and the NATURAL JOIN syntax?
Q:
Q:
Q:
Q:
What does the CROSS JOIN syntax in the Oracle SQL statement?
Q:
Q: What do the OUTER JOIN, RIGHT OUTER JOIN, LEFT OUTER JOIN, and FULL OUTER J OIN syntax in the Oracle SQL statement?
Q: How can you perform the FULL OUTER JOIN syntax using the Original Oracle sy ntax? Oracle9i: More SQL New Features
Lesson 09 Q: When do you use the WITH AS clause in the SQL statement?
Q:
Q: Write a query to list all the department names that their total paid salari es are more than 1/3 of the total salary of the company.
Q: What are the multiple columns in the SQL statement? Where or how do you use them?
Q: Write a SQL statement to query the name of all employees who earn the maxim um salary in their department using the multiple columns syntax.
Q:
Q: Write a SQL statement to query all of the employee names, jobs, and salarie s where their salary is more than 10% of the total company paid salary.
Q:
Q: Can you update, insert, or delete any records while you are using the MERGE statement?
Hebrews - 10:24 And let us consider one another to provoke unto love and to good works: Materialized Views Lesson 10 Q: The view that stores data
Q:
Q: .
Write the difference between ROWID and PRIMARY KEY in the Materialized View
Q:
Q:
Q:
Q:
What are the PRIMARY KEY and ROWID in the Materialized View Log?
Q:
Q: Create a materialized view that contains the department number, number of e mployees, and total salaries paid to employees by department.
Q:
Q:
Q:
Q: What parameter should be used to update the materialized view every month a utomatically without human intervention?
Q:
Q:
Q:
James - 2:8 If ye fulfil the royal law according to the scripture, Thou shalt lo ve thy neighbour as thyself, ye do well:
The BREAK ON clause Lesson 11 Q: What does the BREAK ON clause in SQLPLUS?
Q:
Q:
REPHEADER ''
SPOOL c:\salary.out
SPOOL OFF
REPFOOTER ''
CLEAR BUFFER
CLEAR COLUMNS
CLEAR COMPUTE
Q:
1 Peter - 1:22 Seeing ye have purified your souls in obeying the truth through t he Spirit unto unfeigned love of the brethren, see that ye love one another with a pure heart fervently: UNION , INTERSET , and MINUS statements Lesson 12 Q: What does the UNION statement in the SQL statement?
Q:
Q:
2 John - 1:5 And now I beseech thee, lady, not as though I wrote a new commandme nt unto thee, but that which we had from the beginning, that we love one another . 1:6 And this is love, that we walk after his commandments. This is the comman dment, That, as ye have heard from the beginning, ye should walk in it. Troubleshooting Deleting duplicated records Lesson 13 Q: Why it is important to eliminate duplicate records?
Q:
SQL > DELETE FROM dup_emp WHERE ROWID IN (SELECT MAX (ROWID) FROM dup_emp GROUP BY empno HAVING COUNT (empno) > 1) SQL> / Leviticus - 19:18 Thou shalt not avenge, nor bear any grudge against the childre n of thy people, but thou shalt love thy neighbour as thyself: I am the LORD. Data Partitioning Lesson 14 Q: What is a data partitioning in the Oracle database?
Q:
Q:
Q:
Q:
Q:
Q:
Q:
Q:
Q: Create a range-based partitioning table named p_emp. Be sure that the data entry of the each department goes to its own provided tablespaces such as the ac counting department goes to the dept10ts tablespace, the data entry of the resea rch department goes to the dept20ts tablespace, etc.
Q:
Q:
Q:
Q: Write a query to list the accounting employees from the partition table. Us e the partition option.
Q:
Write a query to list employee number 7900 from the sales department.
Q:
Q:
Q:
Deuteronomy - 10:19 Love ye therefore the stranger: for ye were strangers in the land of Egypt. The ROLLUP and CUBE function Lesson 15 Q: What does the ROLLUP operator?
Q:
Q:
What are the differences between the CUBE and ROLLUP functions?
Q:
What environments may use the CUBE and ROLLUP functions most?
Q: Write a query to list an aggregation sum report for each job, in each year, using the ROLLUP grouping option.
Q: Write a query to list an aggregation sum report for each job, in each year, using the CUBE grouping option.
Proverbs - 10:12 Hatred stirreth up strifes: but love covereth all sins. Defining Objects and Collection Types Lesson 16 Q: What is an object type?
Q:
Q: Create an object type with two columns to hold the employee's child name an d date of birth and name it employee_kids .
Q:
Q: Create the emp_family table containing the kid s column with a type of employ ee_kids_table.
Q:
Q:
Q:
sub-query?
Q:
THE
sub-query?
Q:
Q:
Q:
Q:
Song of Solomon - 1:2 Let him kiss me with the kisses of his mouth: for thy love is better than wine. Replicating data with a NESTED TABLE collection type Lesson 17 Q: What is a data replica?
Q: What is the difference between a materialized view and a materialized view log?
Q:
Q:
Q: