CALL getratews11('USA','CANADA')
CALL expenses.getratews11('USA','CANADA')
SELECT getratews11('USA','CANADA') FROM expenses
SELECT * FROM TABLE(getratews11('USA','CANADA')) AS convert_currency
第1题:
Application developers in TestKing.com create an assembly that contains a CLR function.This CLR function reads data from a spreadsheet, performs some calculations, and returns the data to a SQL Server 2005 computer. You need to register the assembly with SQL Server 2005 by using the CREATE ASSEMBLY statement and the least privileged security permission set. Which permission set should you use?()
第2题:
How should the following UDF be invoked in order to convert US currency values stored in the EXPENSES table into Canadian currency?CREATE FUNCTION getratews11 ( country1 VARCHAR(100), country2 VARCHAR(100) ) RETURNS DOUBLE LANGUAGE SQL CONTAINS SQL EXTERNAL ACTION NOT DETERMINISTIC BEGIN ... END()
第3题:
You executed the following code: SQL> CERATE TABLE COUNTRY (COUNTRY_ID CHAR(2) CONSTRAINT COUNTRY_ID_nn NOT NULL, COUNTRY_NAME VARCHAR2(20), CURRENCY_NAME VARCHAR2(20), CONSTRAINT COUNTRY_ID_PK PRIMARY KEY (COUNTRY_ID)) ORGANIZATION INDEX; Which types of tables will be created automatically?()
第4题:
Scott issues the SQL statements: CREATE TABLE dept (deptno NUMBER(2), dname VARCHAR2(14), loc VARCHAR2(13)}; GRANT SELECT ON DEPT T0 SUE; If Sue needs to select from Scott's DEPT table, which command should she use?()
第5题:
You work in a company which uses SQL Server 2008. You are the administrator of the company database. Now you are in charge of a SQL Server 2008 instance. There is a database named DB1 in the instance. The DB1 database contains the following stored procedure. (Line numbers are useded for reference only.) 01 CREATE PROCEDURE Sales.Procedure1 02 AS 03 IF OBJECT_ID('Service.Table') IS NOT NULL 04 DROP TABLE Service.Table; 06 CREATE TABLE Service.Table ( 07 Id int PRIMARY KEY CLUSTERED, 08 Name varchar(100); 09 ); 11 ... 12 GOThe following exception is raised when a user tries to invoke Procedure1, "Msg 262, Level 14, State 1, Procedure Procedure1, Line 5 CREATE TABLE permission denied in database 'DB1'." You should grant the user access to execute Procedure1, you must assign only the required permissions. What action should you do perform?()
第6题:
You work in a company which is named Wiikigo Corp. The company uses SQL Server 2008. You are the administrator of the company database. Now you are in charge of a SQL Server 2008 instance. There is a database named Dworks in the instance. The Dworks database has a table named Orderthings. The Orderthings table is partitioned on the OrderId column. The first partition contains integer values greater than 100,000, while the second partition contains integer values between 1 and 100,000. You have to add a new partition. The new partition should contain integer values greater than 200,000. What should you do? ()
第7题:
alter table temp alter column hostname varchar(1100)
alter table temp column hostname varchar(100)
alter table temp alter column of hostname varchar(100)
alter table temp add column hostname varchar(100)
第8题:
A new partition function should be created
You should change the existing partition scheme
You should use a Merge clause to change the existing partition function
You should use a Split clause to change the existing partition function
第9题:
Default
SAFE
EXTERNAL_ACCESS
UNSAFE
第10题:
The DESCRIBE DEPT statement displays the structure of the DEPT table.
The ROLLBACK statement frees the storage space occupied by the DEPT table.
The DESCRIBE DEPT statement returns an error ORA-04043: object DEPT does not exist.
The DESCRIBE DEPT statement displays the structure of the DEPT table only if there is a COMMIT statement introduced before the ROLLBACK statement.
第11题:
SYSTEM tablespace
SYSAUX tablespace
Undo tablespace
The tablespace of the Index Organized Table (IOT)
第12题:
CALL getratews11('USA','CANADA')
CALL expenses.getratews11('USA','CANADA')
SELECT getratews11('USA','CANADA') FROM expenses
SELECT * FROM TABLE(getratews11('USA','CANADA')) AS convert_currency
第13题:
Given the following function: CREATE FUNCTION emplist ( ) RETURNS TABLE ( id CHAR(6) , firstname VARCHAR(12) , lastname VARCHAR(15) ) LANGUAGE SQL BEGIN ATOMIC RETURN SELECT EMPNO, FIRSTNME, LASTNAME FROM EMPLOYEE WHERE WORKDEPT IN ('A00', 'B00'); END How can this function be used in an SQL statement?
第14题:
Evaluate the set of SQL statements: CREATE TABLE dept (deptno NUMBER(2), dname VARCHAR2(14), loc VARCHAR2(13)); ROLLBACK; DESCRIBE DEPT What is true about the set?()
第15题:
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?()
第16题:
Application developers in your company create an assembly that contains a CLR function. This CLR function reads data from a spreadsheet, performs some calculations, and returns the data to a SQL Server 2005 computer. You need to register the assembly with SQL Server 2005 by using the CREATE ASSEMBLY statement and the least privileged security permission set. Which permission set should you use? ()
第17题:
Given the following requirements:Create a table named TESTTAB, which has an identity column named ACTIVITYNO. Define the identity column to generate the values for the column by default. Start the values at 10 and increment by 10. Make the identity column unique. Which of the following CREATE statements will successfully create this table?()
第18题:
randomly
ascending by date
descending by date
ascending alphabetically
descending alphabetically
第19题:
SELECT TABLE(EMPLIST()) FROM EMPLOYEE
SELECT TABLE(EMPLIST()) AS t FROM EMPLOYEE
SELECT EMPLIST(id, firstname, lastname) FROM EMPLOYEE
SELECT id, firstname, lastname FROM TABLE(EMPLIST()) AS t
第20题:
Between lines 01 and 02, you should insert the WITH EXECUTE AS 'dbo' clause.
Between lines 01 and 02, you should insert the EXECUTE AS USER = 'dbo' statement.
You should give the user the ALTER permission on the Service schema
You should give the CREATE TABLE permission and permit the user to drop the Service.Table table.
第21题:
SELECT*FROMDEPT;
SELECT*FROMSCOTT.DEPT;
SELECT*FROMDBASCOTTDEPT;
SELECT*FROMALL_USERSWHEREUSER_NAME=';SCOTT';ANDTABLENAME=';DEPT';;
第22题:
Default
SAFE
EXTERNAL ACCESS
UNSAFE
第23题:
journal table
clustered table
mapping table
partitioned table
第24题:
SELECT TABLE(EMPLIST()) FROM EMPLOYEE
SELECT TABLE(EMPLIST()) AS t FROM EMPLOYEE
SELECT EMPLIST(id, firstname, lastname) FROM EMPLOYEE
SELECT id, firstname, lastname FROM TABLE(EMPLIST()) AS t