多选题Which two tasks can your perform by using the TO_CHAR function? ()AConvert 10 to 'TEN'BConvert '10' to 10CConvert '10' to '10'DConvert 'TEN' to 10EConvert a date to a character expressionFConvert a character expression to a date

题目
多选题
Which two tasks can your perform by using the TO_CHAR function? ()
A

Convert 10 to 'TEN'

B

Convert '10' to 10

C

Convert '10' to '10'

D

Convert 'TEN' to 10

E

Convert a date to a character expression

F

Convert a character expression to a date


相似考题
参考答案和解析
正确答案: C,E
解析: 暂无解析
更多“多选题Which two tasks can your perform by using the TO_CHAR function? ()AConvert 10 to 'TEN'BConvert '10' to 10CConvert '10' to '10'DConvert 'TEN' to 10EConvert a date to a character expressionFConvert a character expression to a date”相关问题
  • 第1题:

    In a design situation, there are multiple character sets that can properly encode your data. Which three should influence your choice of character set?()

    • A、Syntax when writing queries involving JOINS
    • B、Memory usage when working with the data 
    • C、Character set mapping index hash size
    • D、Disk usage when storing data

    正确答案:B,C,D

  • 第2题:

    You are maintaining your database in Oracle10g. You find that the number of languages that should be supported in your database has increased. The character set of your database is UTF8. You decide to migrate your database to the AL16UTF16 national character set.   How will you migrate your database from UTF8 to AL16UTF16?()  

    • A、 by using the RMAN utility
    • B、 by using the export/import utility
    • C、 by using the ALTER DATABASE command
    • D、 by enabling the change tracking feature

    正确答案:C

  • 第3题:

    Which two tasks can you perform using only the TO_CHAR function? ()

    • A、convert 10 to 'TEN'
    • B、convert '10' to 10
    • C、convert 10 to '10'
    • D、convert 'TEN' to 10
    • E、convert a date to a character expression
    • F、convert a character expression to a date

    正确答案:C,E

  • 第4题:

    For which action can you use the TO_DATE function? ()

    • A、Convert any date literal to a date
    • B、Convert any numeric literal to a date
    • C、Convert any character literal to a date
    • D、Convert any date to a character literal
    • E、Format '10-JAN-99' to 'January 10 1999'

    正确答案:C

  • 第5题:

    You need to create a table named ORDERS that contain four columns: 1. an ORDER_ID column of number data type 2. aCUSTOMER_ID column of number data type 3. an ORDER_STATUS column that contains a character data type 4. aDATE_ORDERED column to contain the date the order was placed. When a row is inserted into the table, if no value is provided when the order was placed, today's date should be used instead. Which statement accomplishes this?()

    • A、CREATE TABLE orders ( order_id NUMBER (10), customer_id NUMBER (8), order_status VARCHAR2 (10), date_ordered DATE = SYSDATE);
    • B、CREATE TABLE orders ( order_id NUMBER (10), customer_id NUMBER (8), order_status VARCHAR2 (10), date_ordered DATE DEFAULT SYSDATE);
    • C、CREATE OR REPLACE TABLE orders ( order_id NUMBER (10), customer_id NUMBER (8), order_status VARCHAR2 (10), date_ordered DATE DEFAULT SYSDATE);
    • D、CREATE OR REPLACE TABLE orders ( order_id NUMBER (10), customer_id NUMBER (8), order_status VARCHAR2 (10), date_ordered DATE = SYSDATE);
    • E、CREATE TABLE orders ( order_id NUMBER (10), customer_id NUMBER (8), order_status NUMBER (10), date_ordered DATE = SYSDATE);
    • F、CREATE TABLE orders ( order_id NUMBER (10), customer_id NUMBER (8), order_status NUMBER (10), date_ordered DATE DEFAULT SYSDATE);

    正确答案:B

  • 第6题:

    Your company uses SQL Server 2005. You are implementing a series of views that are used in ad hoc queries. The views are used to enforce your companys security policy of abstracting data.  Some of these views perform slowly. You create indexes on those views to increase performance, while still maintaining the companys security policy. One of the views returns the current date as one of the columns. The view returns the current date by using the GETDATE( ) function. This view does not allow you to create an index. You need to create an index on the view.  Which two actions should you perform?()

    • A、 Remove all deterministic function calls from within the view. 
    • B、 Remove all nondeterministic function calls from within the view. 
    • C、 Schema-bind all functions that are called from within the view. 
    • D、 Create the view and specify the WITH CHECK OPTION clause.

    正确答案:B,C

  • 第7题:

    多选题
    For which two actions can you use the TO_DATE function? ()
    A

    convert any date literal to a date

    B

    convert any numeric literal to a date

    C

    convert any date to a character literal

    D

    format 'January 10 1999' for input

    E

    format '10-JAN-99' to 'January 10 1999'


    正确答案: C,B
    解析: 暂无解析

  • 第8题:

    多选题
    Which three tasks can be performed using regular expression support in Oracle Database 10g?()
    A

    it can be used to concatenate two strings.

    B

    it can be used to find out the total length of the string.

    C

    it can be used for string manipulation and searching operations.

    D

    it can be used to format the output for a column or expression having string data.

    E

    it can be used to find and replace operations for a column or expression having string data.


    正确答案: C,A
    解析: 暂无解析

  • 第9题:

    多选题
    Examine the description of the STUDENTS table: STD_ID NUMBER(4) COURSE_ID VARCHARD2(10) START_DATE DATE END_DATE DATE Which two aggregate functions are valid on the START_DATE column?()
    A

    SUM(start_date)

    B

    AVG(start_date)

    C

    COUNT(start_date)

    D

    AVG(start_date, end_date)

    E

    MIN(start_date)

    F

    MAXIMUM(start_date)


    正确答案: F,B
    解析: 暂无解析

  • 第10题:

    多选题
    Which two tasks can your perform by using the TO_CHAR function? ()
    A

    Convert 10 to 'TEN'

    B

    Convert '10' to 10

    C

    Convert '10' to '10'

    D

    Convert 'TEN' to 10

    E

    Convert a date to a character expression

    F

    Convert a character expression to a date


    正确答案: B,A
    解析: 暂无解析

  • 第11题:

    多选题
    Which two statements are true regarding working with dates?()
    A

    The default internal storage of dates is in the numeric format

    B

    The default internal storage of dates is in the character format

    C

    The RR date format automatically calculates the century from the SYSDATE function and does not allow the user to enter the century

    D

    The RR date format automatically calculates the century from the SYSDATE function but allows the user to enter the century if required


    正确答案: C,D
    解析: 暂无解析

  • 第12题:

    多选题
    Examine the description of the STUDENTS table: STD_ID NUMBER(4) COURSE_ID VARCHARD2(10) START_DATE DATE END_DATE DATE Which two aggregate functions are valid on the START_DATE column?()
    A

    SUM(start_date)

    B

    AVG(start_date)

    C

    COUNT(start_date)

    D

    AVG(start_date, end_date)

    E

    MIN(start_date)

    F

    MAXIMUM(start_date)


    正确答案: B,E
    解析: 暂无解析

  • 第13题:

    Which three tasks can be performed using regular expression support in Oracle Database 10g?()

    • A、 it can be used to concatenate two strings.
    • B、 it can be used to find out the total length of the string.
    • C、 it can be used for string manipulation and searching operations.
    • D、 it can be used to format the output for a column or expression having string data.
    • E、 it can be used to find and replace operations for a column or expression having string data.

    正确答案:C,D,E

  • 第14题:

    Which two tasks can your perform by using the TO_CHAR function? ()

    • A、Convert 10 to 'TEN'
    • B、Convert '10' to 10
    • C、Convert '10' to '10'
    • D、Convert 'TEN' to 10
    • E、Convert a date to a character expression
    • F、Convert a character expression to a date

    正确答案:C,E

  • 第15题:

    Which statement accomplish this? ()

    • A、CREATE TABLE orders ( order_id NUMBER (10), customer_id NUMBER (8), order_status VARCHAR2 (10), date_ordered DATE = SYSDATE);
    • B、CREATE TABLE orders ( order_id NUMBER (10), customer_id NUMBER (8), order_status VARCHAR2 (10), date_ordered DATE DEFAULT SYSDATE);
    • C、CREATE OR REPLACE TABLE orders ( order_id NUMBER (10), customer_id NUMBER (8), order_status VARCHAR2 (10), date_ordered DATE DEFAULT SYSDATE);
    • D、CREATE OR REPLACE TABLE orders ( order_id NUMBER (10), customer_id NUMBER (8), order_status NUMBER (10), date_ordered DATE = SYSDATE);
    • E、CREATE TABLE orders ( order_id NUMBER (10), customer_id NUMBER (8), order_status NUMBER (10), date_ordered DATE = SYSDATE);
    • F、CREATE TABLE orders ( order_id NUMBER (10), customer_id NUMBER (8), order_status NUMBER (10), date_ordered DATE DEFAULT SYSDATE);

    正确答案:B

  • 第16题:

    You need to create a table named ORDERS that contains four columns: 1.an ORDER_ID column of number data type 2.a CUSTOMER_ID column of number data type 3.an ORDER_STATUS column that contains a character data type 4.a DATE_ORDERED column to contain the date the order was placed When a row is inserted into the table, if no value is provided for the status of the order, the value PENDING should be used instead. Which statement accomplishes this?()

    • A、CREATE TABLE orders ( order_id NUMBER(10), customer_id NUMBER(8), order_status NUMBER(10) DEFAULT 'PENDING', date_ordered DATE );
    • B、CREATE TABLE orders ( order_id NUMBER(10), customer_id NUMBER(8), order_status VARCHAR2(10) = 'PENDING', date_ordered DATE );
    • C、CREATE OR REPLACE TABLE orders ( order_id NUMBER(10), customer_id NUMBER(8), order_status VARCHAR2(10) DEFAULT 'PENDING', date_ordered DATE );
    • D、CREATE OR REPLACE TABLE orders ( order_id NUMBER(10), customer_id NUMBER(8), order_status VARCHAR2(10) = 'PENDING', date_ordered DATE );
    • E、CREATE TABLE orders ( order_id NUMBER(10), customer_id NUMBER(8), order_status VARCHAR2(10) DEFAULT 'PENDING', date_ordered DATE );
    • F、CREATE TABLE orders ( order_id NUMBER(10), customer_id NUMBER(8), order_status VARCHAR2(10) DEFAULT 'PENDING', date_ordered VARCHAR2 );

    正确答案:E

  • 第17题:

    Which two statements are true regarding working with dates?()

    • A、The default internal storage of dates is in the numeric format 
    • B、The default internal storage of dates is in the character format 
    • C、The RR date format automatically calculates the century from the SYSDATE function and does not allow the user to enter the century 
    • D、The RR date format automatically calculates the century from the SYSDATE function but allows the user to enter the century if required

    正确答案:A,D

  • 第18题:

    多选题
    In a design situation, there are multiple character sets that can properly encode your data. Which three should influence your choice of character set?()
    A

    Syntax when writing queries involving JOINS

    B

    Memory usage when working with the data 

    C

    Character set mapping index hash size

    D

    Disk usage when storing data


    正确答案: B,A
    解析: 暂无解析

  • 第19题:

    多选题
    Which two tasks can you perform using only the TO_CHAR function? ()
    A

    convert 10 to 'TEN'

    B

    convert '10' to 10

    C

    convert 10 to '10'

    D

    convert 'TEN' to 10

    E

    convert a date to a character expression

    F

    convert a character expression to a date


    正确答案: D,C
    解析: 暂无解析

  • 第20题:

    单选题
    For which action can you use the TO_DATE function?()
    A

    Convert any date literal to a date

    B

    Convert any numeric literal to a date

    C

    Convert any character literal to a date

    D

    Convert any date to a character literal

    E

    Format '10-JAN-99' to 'January 10 1999'


    正确答案: D
    解析: 暂无解析

  • 第21题:

    多选题
    Which four statements correctly describe functions that are available in SQL? ()
    A

    INSTR returns the numeric position of a named character.

    B

    NVL2 returns the first non-null expression in the expression list.

    C

    TRUNCATE rounds the column, expression, or value to n decimal places.

    D

    DECODE translates an expression after comparing it to each search value.

    E

    TRIM trims the heading or trailing characters (or both) from a character string.

    F

    NVL compares two expressions and returns null if they are equal, or the first expression if they are not equal.

    G

    NULLIF compares two expressions and returns null if they are equal, or the first expression if they are not equal.


    正确答案: F,D
    解析: 暂无解析

  • 第22题:

    单选题
    You are maintaining your database in Oracle10g. You find that the number of languages that should be supported in your database has increased. The character set of your database is UTF8. You decide to migrate your database to the AL16UTF16 national character set.   How will you migrate your database from UTF8 to AL16UTF16?()
    A

     by using the RMAN utility

    B

     by using the export/import utility

    C

     by using the ALTER DATABASE command

    D

     by enabling the change tracking feature


    正确答案: A
    解析: 暂无解析

  • 第23题:

    多选题
    Your company uses SQL Server 2005. You are implementing a series of views that are used in ad hoc queries. The views are used to enforce your companys security policy of abstracting data.  Some of these views perform slowly. You create indexes on those views to increase performance, while still maintaining the companys security policy. One of the views returns the current date as one of the columns. The view returns the current date by using the GETDATE( ) function. This view does not allow you to create an index. You need to create an index on the view.  Which two actions should you perform?()
    A

    Remove all deterministic function calls from within the view.

    B

    Remove all nondeterministic function calls from within the view.

    C

    Schema-bind all functions that are called from within the view.

    D

    Create the view and specify the WITH CHECK OPTION clause.


    正确答案: C,B
    解析: 暂无解析