QuestionQ176Verified/Manipulating DataCopy linkReport a problemAsk AstroTutorSave questionExamine the description of the TRANSACTIONS table: Which two SQL statements run successfully?Choose threeASELECT customer_id AS “CUSTOMER_ID”, transaction_date AS “DATE”, amount + 100 DUES FROM transactions;BSELECT customer_id AS ‘CUSTOMER_ID’, transaction_date AS DATE, amount + 100 ‘DUES’ FROM transactions;CSELECT customer_id AS “CUSTOMER_ID”, transaction_date AS DATE, amount + 100 “DUES” FROM transactions;DSELECT customer_id AS CUSTOMER_ID, transaction_date AS TRANS_DATE, amount + 100 “DUES AMOUNT” FROM transactions;ESELECT customer_id CUSTID, transaction_date TRANS_DATE, amount + 100 DUES FROM transactions;Show AnswerAnswerExplanationOracle permits column aliases with or without the AS keyword, and double-quoted aliases may use reserved words or include spaces. An unquoted DATE alias is invalid because DATE is an Oracle SQL reserved word. As written, A, D, and E execute successfully; the supplied choices therefore contain three valid statements rather than two.Learn moreOracle Database SELECT ReferenceOracle SQL Reserved WordsShow comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion