SELECT TO CNAR(2000, '$#,###.##') FROM dual;
SELECT TO CNAR(2000, '$0,000.00') FROM dual;
SELECT TO CNAR(2000, '$9,999.00') FROM dual;
SELECT TO CNAR(2000, '$9,999.99') FROM dual;
SELECT TO CNAR(2000, '$2,000.00') FROM dual;
SELECT TO CNAR(2000, '$N,NNN.NN') FROM dual;
第1题:
显示本月月末的日期()
第2题:
Which SQL statement displays the date March 19, 2001 in a format that appears as "Nineteenth of March 2001 12:00:00 AM"?()
第3题:
取出工资在2000到3000元(包括上下限)之间的员工()
第4题:
如何显示今天是星期几(周一到周日,分别用1~7表示)()
第5题:
You would like to display the system date in the format "Monday, 01 June, 2001".Which SELECT statement should you use?()
第6题:
select * from emp wher sal in (2000,3000);
select * from emp wher sal like (2000,3000);
select * from emp wher sal = (2000,3000);
select * from emp wher sal between 2000 and 3000;
第7题:
select sal,decode(sal>3000,'A',sal>2000,'B','C') grade from emp;
select sal,decode(sal,3000,'A',2000,'B','C') grade from emp;
select sal,(case when sal>3000 then 'A' when sal>2000 then 'B' else 'C' end) grade from emp;
select sal,(if sal>3000 then 'A' elsif sal>2000 then 'B' else 'C' end if) grade from emp;
第8题:
select to_char(sysdate,'D') from dual;
select to_char(sysdate,'W') from dual;
select to_char(sysdate,'D')-1 from dual;
select to_char(sysdate-1,'D') from dual;
select to_char(sysdate-1,'W') from dual;
第9题:
SELECT * FROM t1 UNION SELECT * FROM t2
SELECT * FROM t1 UNION DISTINCT SELECT * FROM t2
SELECT * FROM t1 INTERSECT SELECT * FROM t2
SELECT * FROM t1 WHERE (c1,c2)= (SELECT c1,c2 FROM t2)
第10题:
SELECT TO_CHAR(2000, '$#,###.##') FROM dual;
SELECT TO_CHAR(2000, '$0,000.00') FROM dual;
SELECT TO_CHAR(2000, '$9,999.00') FROM dual;
SELECT TO_CHAR(2000, '$9,999.99') FROM dual;
SELECT TO_CHAR(2000, '$2,000.00') FROM dual;
SELECT TO_CHAR(2000, '$N,NNN.NN') FROM dual;
第11题:
SELECT SUBSTR( ‘Hello World’,1) FROM dual;
SELECT INITCAP(TRIM (‘Hello World’, 1,1)) FROM dual;
SELECT LOWER(SUBSTR(‘Hello World’, 1, 1) FROM dual;
SELECT LOWER(SUBSTR(‘Hello World’, 2, 1) FROM dual;
SELECT LOWER(TRIM (‘H’ FROM ‘Hello World’)) FROM dual;
第12题:
SELECT TO_CHAR(TO_DATE('19-Mar-2001', 'DD-Mon-YYYY'), 'fmDdspth of Month YYYY fmHH:MI:SS AM') NEW_DATE FROM dual;
SELECT TO_CHAR(TO_DATE('19-Mar-2001', 'DD-Mon-YYYY'), 'Ddspth of Month YYYY fmHH:MI:SS AM') NEW_DATE FROM dual;
SELECT TO_CHAR(TO_DATE('19-Mar-2001', 'DD-Mon-YYYY'), 'fmDdspth of Month YYYY HH:MI:SS AM') NEW_DATE FROM dual;
SELECT TO_CHAR(TO_DATE('19-Mar-2001', 'DD-Mon-YYYY'), 'fmtDdspth of Month YYYY fmtHH:MI:SS AM') NEW_DATE FROM dual;
第13题:
Which three SELECT statements displays 2000 in the format “$2,000.00”?()
第14题:
Which SELECT statement should you use to extract the year from the system date and display it in the format "1998"?()
第15题:
Which three SELECT statements display 2000 in the format "$2,000.00"? ()
第16题:
查询出当前的数据库系统时间,精确到秒()
第17题:
Which SELECT statement will the result ‘ello World’ from the string ‘Hello World’?()
第18题:
SELECT AVERAGE(gpa) FROM student_grades WHERE semester _ end > '01-JAN-2000' and semester end <31-DEC-2000';
SELECT COUNT(gpa) FROM student grades WHERE semester _ end > '01-JAN-2000' and semester end <31-DEC-2000';
SELECT MIN(gpa) FROM student grades WHERE semester _ end > '01-JAN-2000' and semester end <31-DEC-2000';
SELECT AVG(gpa) FROM student_grades WHERE semester _ end BETWEEN '01-JAN-2000' and '31-DEC-2000';
SELECT SUM(gpa) FROM student grades WHERE semester _ end > '01-JAN-2000' and semester end <31-DEC-2000';
SELECT MEDIAN(gpa) FROM student_grades WHERE semester _ end > '01-JAN-2000' and semester end <31-DEC-2000';
第19题:
SELECT TO CNAR(2000, '$#,###.##') FROM dual;
SELECT TO CNAR(2000, '$0,000.00') FROM dual;
SELECT TO CNAR(2000, '$9,999.00') FROM dual;
SELECT TO CNAR(2000, '$9,999.99') FROM dual;
SELECT TO CNAR(2000, '$2,000.00') FROM dual;
SELECT TO CNAR(2000, '$N,NNN.NN') FROM dual;
第20题:
SELECT TO_DATE(SYSDATE, 'FMDAY, DD Month, YYYY') FROM dual;
SELECT TO_CHAR(SYSDATE, 'FMDD, DY Month, 'YYY') FROM dual;
SELECT TO_CHAR(SYSDATE, 'FMDay, DD Month, YYYY') FROM dual;
SELECT TO_CHAR(SYSDATE, 'FMDY, DDD Month, YYYY') FROM dual;
SELECT TO_DATE(SYSDATE, 'FMDY, DDD Month, YYYY') FROM dual;
第21题:
select last_date(sysdate) from dual;
select finally_day(sysdate) from dual;
select last_day(sysdate) from dual;
select tail_day(sysdate) from dual;
第22题:
SELECT TO_CHAR(SYSDATE,'yyyy') FROM dual;
SELECT TO_DATE(SYSDATE,'yyyy') FROM dual;
SELECT DECODE(SUBSTR(SYSDATE, 8), 'YYYY') FROM dual;
SELECT DECODE(SUBSTR(SYSDATE, 8), 'year') FROM dual;
SELECT TO_CHAR(SUBSTR(SYSDATE, 8,2),'yyyy') FROM dual;
第23题:
SELECT customer_id, order_id, order_total FROM orders RANGE ON order _ total (100 AND 2000) INCLUSIVE;
SELECT customer_id, order_id, order_total FROM orders HAVING order _ total BETWEEN 100 and 2000;
SELECT customer_id, order_id, order_total FROM orders WHERE order _ total BETWEEN 100 and 2000;
SELECT customer_id, order_id, order_total FROM orders WHERE order_total>= 100 and <= 2000;
SELECT customer_id, order_id, order_total FROM orders WHERE order_total>= 100 and order_total <= 2000;
第24题:
select to_date(sysdate,'YYYY-MM-DD HH24:MI:SS') from dual;
select to_char(sysdate,'YYYY-MM-DD HH24:MI:SS') from dual;
select date(sysdate,'YYYY-MM-DD HH24:MI:SS') from dual;
select chr(sysdate,'YYYY-MM-DD HH24:MI:SS') from dual;