Question : Which of the following statements are syntactically correct?
1. SELECT E.EMPLOYEE_ID, J.JOB_ID PREVIOUS_JOB, E.JOB_ID CURRENT_JOB FROM JOB_HISTORY J CROSS JOIN EMPLOYEES E ON (J.START_DATE=E.HIRE_DATE); 2. SELECT E.EMPLOYEE_ID, J.JOB_ID PREVIOUS_JOB, E.JOB_ID CURRENT_JOB FROM JOB_HISTORY J JOIN EMPLOYEES E ON (J.START_DATE=E.HIRE_DATE); 3. Access Mostly Uused Products by 50000+ Subscribers 4. None of the above
Question : If the REGIONS table, which contains rows, is cross joined to the COUNTRIES table, which contains rows, how many rows appear in the final results set? (Choose the best answer.) 1. 100 2. 4 3. Access Mostly Uused Products by 50000+ Subscribers 4. None of the above
Explanation: The cross join associates every four rows from the REGIONS table 25 times with the rows from the COUNTRIES table yielding a result set that contains 100 rows.
Correct Answer : Get Lastest Questions and Answer : Explanation: TO_CHAR (number) converts n to a value of VARCHAR2 datatype, using the optional number format fmt. The value n can be of type NUMBER, BINARY_FLOAT, or BINARY_DOUBLE. If you omit fmt, then n is converted to a VARCHAR2 value exactly long enough to hold its significant digits. Please refer to "Format Models" for information on number formats. The 'nlsparam' argument specifies these characters that are returned by number format elements: Decimal character , Group separator , Local currency symbol , International currency symbol , This argument can have this form: 'NLS_NUMERIC_CHARACTERS = ''dg'' NLS_CURRENCY = ''text'' NLS_ISO_CURRENCY = territory ' The characters d and g represent the decimal character and group separator, respectively. They must be different single-byte characters. Within the quoted string, you must use two single quotation marks around the parameter values. Ten characters are available for the currency symbol. If you omit 'nlsparam' or any one of the parameters, then this function uses the default parameter values for your session. Examples : The following statement uses implicit conversion to combine a string and a number into a number: SELECT TO_CHAR('01110' + 1) FROM dual; TO_C ---- Compare this example with the first example for TO_CHAR (character). In the next example, the output is blank padded to the left of the currency symbol. SELECT TO_CHAR(-10000,'L99G999D99MI') "Amount" FROM DUAL; Amount -------------- $10,000.00- SELECT TO_CHAR(-10000,'L99G999D99MI', 'NLS_NUMERIC_CHARACTERS = '',.'' NLS_CURRENCY = ''AusDollars'' ') "Amount" FROM DUAL; Amount ------------------- AusDollars10.000,00-
1. The outer query can include an inner query. It is not possible to have another query within the inner query. 2. It is possible to embed a single-row subquery inside a multiple-row subquery, but not the other way around. 3. Access Mostly Uused Products by 50000+ Subscribers 4. Subqueries can be embedded within each other with no practical limitations on depth.