Create a list that displays the title of each book and the name and phone number of the contact at the publishers office for reordering each book.
Determine which books customer Jake Lucas has purchased. Perform the search using the customer name, not the customer number. If he has purchased multiple copies of the same book, unduplicate the...
Determine the profit of each book sold to Jake Lucas, using the actual price the customer paid (not the books regular retail price). Sort the results by order date. If more than one book was ordered,...
Which books were written by an author with the last name Adams? Perform the search using the author name.
Identify the authors of the books Becca Nelson ordered. Perform the search using the customer name.
Which line in the following SQL statement raises an error? 1. SELECT name, title 2. FROM books JOIN publisher 3. WHERE books.pubid = publisher.pubid 4. AND 5. cost < 45.95 a. line 1 b. line 2 c. line...
Given the following query: SELECT title, gift FROM books CROSS JOIN promotion; Which of the following queries is equivalent? a. SELECT title, gift FROM books NATURAL JOIN promotion; b. SELECT title...
If the CUSTOMERS table contains seven records and the ORDERS table has eight records, how many records does the following query produce? SELECT* FROM customers CROSS JOIN orders; a. 0 b. 8 c. 7 d. 15...
Which of the following lists all books published by the publisher named Printing Is Us? a. SELECT title FROM books NATURAL JOIN publisher WHERE name = 'PRINTING IS US'; b. SELECT title FROM books,...
Which of the following statements about an outer join between two tables is true? a. If the relationship between the tables is established with a WHERE clause, both tables can include the outer join...
Which line in the following SQL statement raises an error? 1. SELECT name, title 2. FROM books b, publisher p 3. WHERE books.pubid = publisher.pubid 4. AND 5. (retail > 25 OR retail-cost > 18.95); a....
Which of the following SQL statements is valid? a. SELECT books.title, orderitems.quantity FROM books b, orderitems o WHERE b.isbn = o.ibsn; b. SELECT title, quantity FROM books b JOIN orderitems o;...
Which of the following statements is correct? a. The WHERE clause can contain a group function only if the function isnt also listed in the SELECT clause. b. Group functions cant be used in the...
Which of the following isnota valid SQL statement? a. SELECT MIN (pubdate) FROM books GROUP BY category HAVING pubid = 4; b. SELECT MIN (pubdate) FROM books WHERE category = 'COOKING'; c. SELECT...
Which of the following statements is correct? a. The COUNT function can be used to determine how many rows contain a NULL value. b. Only distinct values are included in group functions, unless the...
Which of the following functions is used to calculate the total value stored in a specified column? a. COUNT b. MIN c. TOTAL d. SUM e. ADD
Which of the following functions can be used to include NULL values in calculations? a. SUM b. NVL c. MAX d. MIN
Which of the following functions can be used to determine the earliest ship date for all orders recently processed by JustLee Books? a. COUNT function b. MAX function c. MIN function d. STDDEV...
Which of the following is not a valid SELECT statement? a. SELECT STDDEV (retail) FROM books; b. SELECT AVG (SUM (retail)) FROM orders NATURAL JOIN orderitems NATURAL JOIN books GROUP BY customer#;...
List the retail price of the least expensive book in the Computer category.
Determine the average retail price of books by publisher name and category. Include only the categories Children and Computer and the groups with an average retail price greater than $50.
List the customers living in Georgia or Florida who have recently placed an order totaling more than $80.
Whats the retail price of the most expensive book written by Lisa White?
Which of the following operators is considered a single-row operator? a. IN b. ALL c. d. ALL
Which query determines the customers who have ordered themost books from JustLee Books? a. SELECT customer# FROM orders JOIN orderitems USING (order#) HAVING SUM (quantity) = (SELECT MAX (SUM...
A subquery must be placed in the outer querys HAVING clause if: a. The inner query needs to reference the value returned to the outer query. b. The value returned by the inner query is to be compared...
Given the following SQL statement, which statement is most accurate? SELECT customer# FROM customers JOIN orders USING (customer#) WHERE shipdate-orderdate IN (SELECT MAX (shipdate-orderdate) FROM...
Create a view called HOMEWORK13 that includes the columns named Col1 and Col2 from the FIRSTATTEMPT table. Make sure the view is created even if the FIRSTATTEMPT table doesnt exist.
Attempt to view the structure of the HOMEWORK13 view.
You cant perform any DML operations on which of the following? a. Views created with the WITH READ ONLY option b. Views that include the DISTINCT keyword c. Views that include a GROUP BY clause d....
A TOP-N analysis is performed by determining the rows with: a. The highest ROWNUM values b. A ROWNUM value greater than or equal to N c. The lowest ROWNUM values d. A ROWNUM value less than or equal...
The Marketing Department of JustLee Books is about to begin an aggressive marketing campaign to generate sales to repeat customers. The strategy is to look at existing customers previous purchases,...
To assign names to the columns in a view, you can do which of the following? a. Assign aliases in the subquery, and the aliases are used for the column names. b. Use the ALTER VIEW command to change...
If you try to add a row to a complex view that includes a GROUP BY clause, you get which of the following error messages? a. Virtual column not allowed here b. Data manipulation operation not legal...
A simple view can contain which of the following? a. Data from one or more tables b. An expression c. A GROUP BY clause for data retrieved from one table d. Five columns from one table e. All of the...
A complex view can contain which of the following? a. Data from one or more tables b. An expression c. A GROUP BY clause for data retrieved from one table d. Five columns from one table e. All of the...
How does polymorphism promote extensibility?
Why do you need wireless services when adequate wired infrastructure exists in most parts of the United States?
Which of the following DML operations cant be performed on a view containing a group function? a. INSERT b. UPDATE c. DELETE d. All of the above can be performed on a view containing a group...
A department survey found that 4 of 10 graduate students use CDMA cell phone service. If 3 graduate students are selected at random, what is the probability that 3 graduate students use CDMA cell...
There are three red balls and seven white balls in box A, and six red balls and four white balls in box B. After throwing a die, if the number on the die is 1 or 6, then pick a ball from box A....
Given that the number of arrivals of data packet in the receiver follows a Poisson distribution on which arrival rate is 10 arrivals per second. What is the probability that the number of arrivals is...
In the M/M/1/ queuing system, suppose and are doubled. How are L s and W s changed?
Repeat Problem P3.6. Calculate the average fading duration if = 0.1. Repeat Problem What does a small delay spread indicate about the characteristics of a fading channel? If the delay spread is 1...
Write C# statements to accomplish each of the following tasks: a) Display the value of the element of character array f with index 6. b) Initialize each of the five elements of one-dimensional...
How is radio propagation on land different from that in free space?
Describe the consequence of the Doppler Effect on the receiver in an isotropic scattering environment. Based on your description, speculate on the meaning of the term Doppler Spread. (a) Is the term...
A new wireless service provider decided to employ a cluster of 19 cells as the basic module for frequency reuse. (a) Can you identify one such cluster structure? (b) Repeat (a) for N = 28. (c) Can...
Given a bandwidth of 25 MHz and a frequency reuse factor of 1 and RF channel size of 1.25 MHz and 38 calls per RF channel, find: (a) The number of RF channels for CDMA. (b) The number of permissible...
Prove the following for a hexagonal cellular system with radius R, reuse distance D and given the value of N (a) N = 3, prove D = 3R. (b) N = 4, prove D = 12 R. (c) N = 7, prove D = 21 R.
In a cellular system with 4 channels, one channel is reserved for handoff calls. (a) What is the value of B O and B H , given O = H = 0.001 and = 0.0003? (b) What are the values of probabilities...
Forthcoming 802.11ac APs is expected to have a smaller coverage range than existing standards. Then, what features makes it attractive for its future use?
Compute the minimum number of TCP segments required to open a connection, send an HTTP request and response message, and close the connection if the HTTP response message must be fragmented across...
a. How does fiber usually transmit a 1? 9a.) In optical fiber, light travels through the ______. a. Core b. Cladding c. Both A and B b. How do fiber cords typically provide full-duplex transmission?...
a. Create addition and multiplication tables for base 12 arithmetic. Use alphabetic characters to represent digits 10 and larger. b. Using your tables from part (a), perform the following addition:...
How many bits will it take to represent the decimal number 3,175,000? How many bytes will it take to store this number?
Modify and test an HTML document from Exercise 2.9 that adds a secondlevel column label, Tree, and a second-level row label, Characteristics. Data from exercises 2.9 Create and test an HTML document...
As an alternative alphanumeric code, consider a code where punched holes in the columns of a card represent alphanumeric codes. The punched hole represents a 1; all other bits are 0. The Hollerith...
Use the Web as a resource to study the PDF format. a. Describe how PDF provides output that is consistent across different types of devices, including printers and monitors of various resolutions. b....
Consider the periodic signal x(t) shown in Figure 4.21. (a) Use the Laplace transform to compute the Fourier series coefficients X k , k 0 of x(t). (b) Suppose that to find the Fourier series of x(t)...
The sender uses HTTP to transmit mail. What standard or standards will the receiver use to download the message?
Suppose that, in addition to edge capacities, a flow network has vertex capacities. That is each vertex has a limit l() on how much flow can pass through . Show how to transform a flow network G =...
Given the matrices corresponding to the state and output equations for a system with input x[n] and output y[n]: (a) Find the transfer function H(z) = Y(z)/X(z) corresponding to the state and output...
How do the conditions for DK/NF correspond to the conditions for BCNF?
Suppose you want to find a reasonable sampling period T s for the non-causal exponential x(t)= e |t| . (a) Find the Fourier transform of x(t), and plot |X()|. Is x(t) band-limited? Use the symbolic...
Describe a MUST NOT constraint. Give an example other than one in this chapter.
Describe a MUST constraint. Give an example other than one in this chapter. AGENT (AgentID, {other attributes} CLIENT (ClientID, AgentID{other attributes} PROPERTY (PropertyID, {other attributes}...
A firm is assigned the network part 128.171. It selects an 8-bit subnet part. a. Write the bits for the four octets of the IP address of the first host on the first subnet. b. Convert this answer to...
Suppose that we are given a directed acyclic graph G = (V, E) with real-valued edge weights and two distinguished vertices s and t. Describe a dynamic-programming approach for finding a longest...
Consider a saw-tooth signal x(t) with fundamental period T 0 = 2 and period (a) Find the Fourier coefficients X k using the Laplace transform. Consider the cases when kis odd and even (k 0). You need...
Describe how scaling up differs from scaling out. Given the speed difference between a typical system bus and a typical high-speed network, is it reasonable to assume that both approaches can yield...
What are the three key parts of an entity relationship diagram (ERD)?
The voltage-current characterization of a p-n diode is given by (see Figure 2.22) i(t) = I s (e qv(t)/kT 1) where i(t) and v(t) are the current and the voltage in the diode (in the direction...
Convert the following set of sentences to clausal form. S1: A (B E). S2: E D. S3: C F B. S4: E B. S5: B F. S6: B C Give a trace of the execution of DPLL on the conjunction of these clauses.
Use resolution to prove the sentence A B from the clauses in Exercise 7.20.
Does the fact Spouse(George, Laura) follow from the facts Jim George and Spouse (Jim, Laura)? If so, give a proof; if not, supply additional axioms as needed. What happens if we use Spouse as a...
Using your solution to problem 10, do the following: a. Add the view layer classes and the data access classes to your diagram. b. Develop a package diagram showing a three layer solution with view...
Define an ontology in first-order logic for tic-tac-toe. The ontology should contain situations, actions, squares, players, marks (X, O, or blank), and the notion of winning, losing, or drawing a...
The missionaries and cannibals problem is usually stated as follows. Three missionaries and three cannibals are on one side of a river, along with a boat that can hold one or two people. Find a way...
Give a complete problem formulation for each of the following. Choose a formulation that is precise enough to be implemented. a. Using only four colors, you have to color a planar map in such a way...
Your goal is to navigate a robot out of a maze. The robot starts in the center of the maze facing north. You can turn the robot to face north, east, south, or west. You can direct the robot to move...
Under what circumstances can PopularShows be used for inserts and modifications?
Which of the following are correct? a. False True. b. True False. c. (A B) (A B). d. A B A B. e. A B A B. f. (A B) C (A C) (B C). g. (C (A B)) ((A C) (B C)). h. (A B) (C D ...
Translate the following C code to MIPS. Assume that the variables f, g, h, i, and j are assigned to registers $s0, $s1, $s2, $s3, and $s4, respectively. Assume that the base address of the arrays A...
What is 5ED4 - 07A4 when these values represent unsigned 16-bit hexadecimal numbers? The result should be written in hexadecimal. Show your work.
This exercise uses the function MapColor and predicates In(x, y), Borders(x, y), and Country(x), whose arguments are geographical regions, along with constant symbols for various regions. In each of...
These questions concern concern issues with substitution and Skolemization. a. Given the premise x y P(x, y), it is not valid to conclude that q P(q, q). Give an example of a predicate P where the...
Develop a representational system for reasoning about windows in a window-based computer interface. In particular, your representation should be able to describe: The state of a window: minimized,...
We have a bag of three biased coins a, b, and c with probabilities of coming up heads of 20%, 60%, and 80%, respectively. One coin is drawn randomly from the bag (with equal likelihood of drawing...
Rewrite the loop from Exercise 2.29 to reduce the number of MIPS instructions executed. Exercise 2.29 Translate the following loop into C. Assume that the C-level integer i is held in register $t1,...
All method declarations contain _____________. a. Arguments b. One or more explicitly named access specifiers c. Parentheses d. The keyword static
When a block exists within another block, the blocks are _____________. a. Structured b. Illegal c. Sheltered d. Nested
Nonambiguous, overloaded methods must have the same _____________. a. Types of parameters b. Number of parameters c. Parameter names d. Name
A constructor _____________ parameters. a. Can receive b. Cannot receive c. Must receive d. Can receive a maximum of 10
If you create a class that contains one method, and instantiate two objects, you usually store _____________ for use with the objects. a. One copy of the method b. Two copies of the method c. Two...
Which of the following statements determines the square root of a number and assigns it to the variable s? a. s = sqrt(number); b. s = Math.sqrt(number); c. number = sqrt(s); d. number = Math.sqrt(s);
A LocalDate object _____________. a. Can be displayed as a String b. Contains static fields with data such as the current year c. Is created using a public default constructor d. All of the above
Which of the following expressions correctly returns an integer that represents the month of a LocalDate object named hireDate? a. getMonth(hireDate) b. getMonthValue(hireDate) c....
The logical structure in which one instruction occurs after another with no branching is a ____________. a. Sequence b. Selection c. Loop d. Case
Which of the following is not a type of if statement? a. Single-alternative b. Dual-alternative c. Reverse d. Nested