Write a statement in Java that stores the port number 62230 in a variable in Java and guarantees that the number is stored as an unsigned number.
You want to write a program in which you need to refer to the InetAddress of the computer you are working with. Write a statement in Java to create the corresponding object.
You think that a computer with the IP address 14.26.89.101 has more IP addresses. Write a statement in Java to create an array of InetAddress classes associated with this host.
Create the relational diagram. Use the database shown in Figure P3.24 to answer this Problem. ROBCOR is an aircraft charter company that supplies on-demand charter flight services using a fleet of...
Assume that we make an enhancement to a computer that improves some mode of execution by a factor of 10. Enhanced mode is used 50% of the time, measured as a percentage of the execution time when the...
Using your schools student information system, print your class schedule. The schedule probably would contain the student identification number, student name, class code, class name, class credit...
Write the relational algebra formula to apply a UNION relational operator to the tables shown in Figure Q3.13. Figure Q3.13: Database name: Ch03_VendingCo Table name: MACHINE MACHINE_PRODUCT...
Create the table that results from applying an INTERSECT relational operator to the tables shown in Fig Q3.13. Figure Q3.13: Database name: Ch03_VendingCo Table name: MACHINE MACHINE_PRODUCT...
Use the database composed of the two tables shown in Figure Q3.18. Suppose you wanted quick lookup capability to get a listing of all plays directed by a given director. Which table would be the...
Use the database composed of the two tables shown in Figure Q3.18. What would be the conceptual view of the INDEX table that is described in question 26? Depict the contents of the conceptual INDEX...
What are the three types of results a subquery can return?
What does it mean to say that SQL operators are set-oriented?
Suppose that you have two tables, EMPLOYEE and EMPLOYEE_1. The EMPLOYEE table contains the records for three employees: Alice Cordoza, John Cretchakov, and Anne McDonald. The EMPLOYEE_1 table...
What MS Access/SQL Server function should you use to calculate the number of days between the current date and January 25, 1999?
Use the following brief description of operations as the source for the next database design: All aircraft owned by ROBCOR require periodic maintenance. When maintenance is required, a maintenance...
You have just been employed by the ROBCOR Trucking Company to develop a database. To gain a sense of the databases intended functions, you have spent some time talking to ROBCORs employees and youve...
Assume the following business rules: A course contains many Sections, but each Section references only one course. A Section is taught by one professor, but each professor may teach one or more...
Convert the following relational database tables to the equivalent OO conceptual representation. Explain each of your conversions with the help of a diagram. The R&C Stores database includes the...
Convert the following relational database tables to the equivalent OO conceptual representation. Explain each of your conversions with the help of a diagram. ) The Avion Sales database includes the...
One proposed solution for the problem of false sharing is to add a valid bit per word. This would allow the protocol to invalidate a word without removing the entire block, letting a processor keep a...
Because of the massive scale of WSCs, it is very important to properly allocate network resources based on the workloads that are expected to be run. Different allocations can have significant...
Which of the following is not an E-R model relationship? a. Some-to-many b. One-to-one c. One-to-many d. Many-to-many
Which of the following represents a field in a table? a. A record b. A row c. A column d. An entity
A college needs to track placement test scores for incoming students. Each student can take a variety of tests, including English and math. Some students are required to take placement tests because...
What are the two required clauses for a SELECT statement?
Create a list of authors that displays the last name followed by the first name for each author. The last names and first names should be separated by a comma and a blank space.
Modify the Job_class column of the EMPLOYEES table so that it allows storing a maximum width of two characters.
Rename the EMPLOYEES table as JL_EMPS.
Delete the BOOK_PRICING table permanently so that it isnt moved to the recycle bin. Delete the JL_EMPS table so that it can be restored. Restore the JL_EMPS table and verify that its available again.
What is the difference between a PRIMARY KEY constraint and a UNIQUE constraint?
Which of the following data dictionary objects should be used to view information about the constraints in a database? a. USER_TABLES b. USER_RULES c. USER_COLUMNS d. USER_CONSTRAINTS e. None of the...
Create a table named BOOK_STORES to include the columns listed in the following chart.
Create a table named REP_CONTRACTS containing the columns listed in the following chart. A composite PRIMARY KEY constraint including the Rep_ID, Store_ID, and Quarter columns should be assigned. In...
When do changes generated by DML operations become stored in database tables permanently?
Explain the difference between explicit and implicit locks.
If you add a record to the wrong table, whats the simplest way to remove the record from the table?
How does Oracle 12c identify a substitution variable in an SQL command?
How are NULL values included in a new record being added to a table?
When should the VALUES clause be omitted from the INSERT INTO command?
What happens if a user attempts to add data to a table, and the addition would cause the record to violate an enabled constraint?
Create a script using substitution variables that allows a user to set a new cost amount for a book based on the ISBN.
What command is used to modify an index?
What is the purpose of a synonym?
Which of the following generates an integer in a sequence? a. NEXTVAL b. CURVAL c. NEXT_VALUE d. CURR_VALUE e. NEXT_VAL f. CUR_VAL
Answer each of the following questions using the Colonial Adventure Tours data shown in Figures 1-15 through 1-19. No computer work is required. 1. List the last name of each guide that does not live...
Suppose the user Juan creates a table called MYTABLE with four columns. The first column has a PRIMARY KEY constraint, the second column has a NOT NULL constraint, the third column has a CHECK...
Given the table created in Question 6, which of the following commands can Juan use to create a synonym that allows anyone to access the table without having to identify his schema in the table...
What is a primary key? What is the primary key for each table in the Colonial Adventure Tours database shown in Figures 1-15 through 1-19 in Chapter 1? Figure 1-15 GuideNum LastName FirstName Address...
When is creating an index manually inappropriate? a. When queries return a large percentage of rows in the results b. When the table is small c. When the majority of table operations are updates d....
Create a private synonym that enables you to reference the MY_FIRST_SEQ object as NUMGEN.
Use a SELECT statement to view the CURRVAL of NUMGEN. Delete the NUMGEN synonym and MY_FIRST_SEQ.
In the TAL Distributors database shown in Figure 2-1, the Rep table contains four rows and the Customer table contains 12 rows. How many rows would be contained in the Cartesian product of these two...
What does a database account with the CREATE SESSION privilege allow the user to do?
List the changes you would need to make in your answer to Question 7 if they could have more than one advisor.
What is a privilege?
How can you assign a password to a role?
Which of the following commands can be used to change a password for a user account? a. ALTER PASSWORD b. CHANGE PASSWORD c. MODIFY USER PASSWORD d. ALTER USERPASSWORD e. None of the above
What is meant by concurrent update?
Which of the following statements creates a user account named DeptHead? a. CREATE ROLE depthead IDENTIFIED BY apassword; b. CREATE USER depthead IDENTIFIED BY apassword; c. CREATE ACCOUNT depthead;...
How do views relate to security?
Assign privileges to the new account that allow connecting to the database, creating new tables, and altering an existing table.
Log in to Oracle 12c with the new account created in Assignment 1. Determine the privileges currently available to the account.
Which clause of an SQL query is used to restrict the number of rows returned?
Which clause of an SQL query displays the results in a specific sequence?
Which operator can you use to find any books with a retail price of at least $24.00?
The management of Colonial Adventure Tours wants to upgrade its database and wants you to help select a different DBMS. To help management, they would like you to complete the following exercises....
Why is local control of data an advantage in a distributed database?
For the following exercises, you will answer problems and questions from management at TAL Distributors. You do not use the TAL Distributors database for any of these exercises. 1. Fragment the...
Which of the following SQL statements isnt valid? a. SELECT address || city || state || zip "Address" FROM customers WHERE lastname='SMITH'; b. SELECT * FROM publisher ORDER BY contact; c. SELECT...
How many rows are returned in a Cartesian join between one table having 5 records and a second table having 10 records?
Describe problems you might encounter when using the NATURAL JOIN keywords to perform join operations.
Why are the NATURAL JOIN keywords not an option for producing a self-join?
Whats the difference between the UNION and UNION ALL set operators?
Whats the difference between an equality and a non-equality join?
Given the following query: SELECT lastname, firstname, order# FROM customers LEFT OUTER JOIN orders USING (customer#) ORDER BY customer#; Which of the following queries returns the same results? a....
How is the TRUNC function different from the ROUND function?
What functions can be used to search character strings for specific patterns of data?
Whats the difference between using the CONCAT function and the concatenation operator (||) in a SELECT clause?
Describe a situation that calls for using the DECODE function.
What format model should you use to display the date 25-DEC-09 as Dec. 25?
Why does the function NVL(shipdate, 'Not Shipped') return an error message?
Which function can be used to add spaces to a column until its a specific width? a. TRIML b. PADL c. LWIDTH d. None of the above
Which of the following format elements causes months to be displayed as a three-letter abbreviation? a. MMM b. MONTH c. MON d. none of the above
Whats the name of the table provided by Oracle 12c for completing queries that dont involve a table? a. DUMDUM b. DUAL c. ORAC d. SYS
Determine the amount of total profit generated by the book purchased on order 1002. Display the book title and profit. The profit should be formatted to display a dollar sign and two decimal places....
Display the current day of the week, hour, minutes, and seconds of the current date setting on the computer youre using.
Management is proposing to increase the price of each book. The amount of the increase will be based on each books category, according to the following scale: Computer books, 10%; Fitness books, 15%;...
Which of the following is a valid SQL statement? a. SELECT customer#, order#, MAX (shipdate-orderdate) FROM orders GROUP BY customer# WHERE customer# = 1001; b. SELECT customer#, COUNT (order#) FROM...
What comparison operators are required for multiple-row subqueries?
Which query identifies customers living in the same state as the customer named Leila Smith? a. SELECT customer# FROM customers WHERE state = (SELECT state FROM customers WHERE lastname = 'SMITH');...
Which of the following queries determines which customers have ordered the same books as customer 1017? a. SELECT order# FROM orders WHERE customer# = 1017; b. SELECT customer# FROM orders JOIN...
What is the purpose of the following query? SELECT isbn, title FROM books WHERE (pubid, category) IN (SELECT pubid, category FROM books WHERE title LIKE '%ORACLE%'); a. It determines which publisher...
In a MERGE statement, an INSERT is placed in which conditional clause? a. USING b. WHEN MATCHED c. WHEN NOT MATCHED d. INSERTS arent allowed in a MERGE statement.
Which operator is used to process a correlated subquery? a. EXISTS b. IN c. LINK d. MERGE
Determine which orders were shipped to the same state as order 1014
List the shipping city and state for the order that had the longest shipping delay.
Change the CONTACT view so that no users can accidentally perform DML operations on the view.
Delete the REORDERINFO view.
Write a C# statement to accomplish each of the following tasks: a) Declare the int variable sum and initialize it to 0. b) Declare the int variable x and initialize it to 1. c) Add variable x to...
What type of iteration would be appropriate for calculating the sum of the first 100 positive integers? What type of iteration would be appropriate for calculating the sum of an arbitrary number of...