Question : Examine the structure and data of the CUST_TRANS table: Dates are stored in the default date format dd-mon-rr in the CUST_TRANS table. Which three SQL statements would execute successfully? 1. SELECT transdate + '10' FROM cust_trans; 2. SELECT * FROM cust_trans WHERE transdate = '01-01-07'; 3. Access Mostly Uused Products by 50000+ Subscribers 4. SELECT * FROM cust_trans WHERE transdate='01-JANUARY-07'; 5. SELECT custno + 'A' FROM cust_trans WHERE transamt > 2000;
Question : View the Exhibit and examine the structure of the customers table. NEW_CUSTOMERS is a new table with the columns CUST_ID, CUST_NAME and CUST_CITY that have the same data types and size as the corresponding columns in the customers table. Evaluate the following insert statement: The insert statement fails when executed. What could be the reason? 1. The values clause cannot be used in an INSERT with a subquery. 2. Column names in the NEW_CUSTOMERS and CUSTOMERS tables do not match. 3. Access Mostly Uused Products by 50000+ Subscribers 4. The total number of columns in the NEW_CUSTOMERS table does not match the total number of columns in the CUSTOMERS table.
Correct Answer : Get Lastest Questions and Answer : Exp: Copying Rows from Another Table, Write your INSERT statement with a subquery: Do not use the VALUES clause. Match the number of columns in the INSERT clause to those in the subquery. Inserts all the rows returned by the subquery in the table, sales_reps.
Question : YOU need to display the date ll-oct- in words as 'Eleventh of October, Two Thousand Seven'. Which SQL statement would give the required result?