下面的XML片断中结构完整的是()。
第1题:
阅读下列说明和C++代码,填补代码中的空缺,将解答填入答题纸的对应栏内。 【说明】 以下C++代码实现一个简单客户关系管理系统(CrM)中通过工厂(Customerfactory)对象来创建客户(Customer)对象的功能。客户分为创建成功的客户(realCustomer)和空客户(NullCustomer)。空客户对象是当不满足特定条件时创建或获取的对象。类间关系如图6-1所示。图6-1
【C++代码】 include<iostream> include<string> using namespace std; class Customer{ protected: string name; public: ( 1 ) boll isNil()=0; ( 2 ) string getName()=0; ﹜; class RealCustomer ( 3 ){ Public: realCustomer(string name){this->name=name;﹜ bool isNil(){ return false; ﹜ string getName(){ return name; ﹜ ﹜; class NullCustomer ( 4 ) { public: bool isNil(){ return true; ﹜ string getName(){ return 〝Not Available in Customer Database〞; ﹜ ﹜; class Customerfactory{ public: string names[3]={〝rob〞, 〝Joe〞,〝Julie〞﹜; public: Customer*getCustomer(string name){ for (int i=0;i<3;i++){ if (names[i].( 5 ) ){ return new realCustomer(name); ﹜ ﹜ return ( 6 ); ﹜ ﹜; class CRM{ public: void getCustomer(){ Customerfactory*( 7 ); Customer*customer1=cf->getCustomer(〝Rob〞); Customer*customer2=cf->getCustomer(〝Bob〞); Customer*customer3=cf->getCustomer(〝Julie〞); Customer*customer4=cf->getCustomer(〝Laura〞); cout<<〝Customers〞<<endl; cout<<Customer1->getName()<<endl; delete customer1; cout<<Customer2->getName()<<endl; delete customer2; cout<<Customer3->getName()<<endl; delete customer3; cout<<Customer4->getName()<<endl; delete customer4; delete cf; ﹜ ﹜; int main(){ CRM*crs=new CRM(); crs->getCustomer(); delete crs; return 0; ﹜ /*程序输出为: Customers rob Not Available in Customer Database Julie Not Available in Customer Database */
第2题:
BookStore数据库中有客户表Customer(CustomerCode,Name,Sex,Hometown,Email,Telephone,LoginDate,Password)查询Customer表中所有客户的信息,要求显示CustomerCode、Name、Hometown和Telephone字段信息。SQL语句:SELECT()FROM Customer
第3题:
BookStore数据库中有客户表Customer(CustomerCode,Name,Sex,Hometown,Email,Telephone,LoginDate,Password)查询Customer表中所有客户的信息,SQL语句:SELECT()FROMCustomer
第4题:
评估以下CREATETABLE语句的执行结果: CREATET ABLE customers (customer_id NUMBER,customer_name VARCHAR2(25), address VARCHAR 2(25), city VARCHAR 2(25), region VARCHAR 2(25), postal_code VARCHAR 2(11), CONSTRAINT customer_id_un UNIQUE(customer_id), CONSTRAINTcustomer_name_nnNOTNULL(customer_name)); 为什么执行时此语句会失败()
第5题:
Which statement adds a constraint that ensures the CUSTOMER_NAME column of the CUSTOMERS table holds a value?()
第6题:
You are developing a Windows Forms application that contains a DataGridView control. The DataGridView capture the customer's name, address, and phone number. You have been asked to provide data validation in a DataGridView to prevent users from leaving the.. You need to ensure that users cannot tab out of the name field without entering data What should you do ?()
第7题:
*
ALL
CustomerCode、Name、Hometown、Telephone
CustomerCode,Name,Hometown,Telephone
第8题:
SELECT TOTAL(*) FROM customer;
SELECT COUNT(*) FROM customer;
SELECT TOTAL(customer_id) FROM customer;
SELECT COUNT(customer_id) FROM customer;
SELECT COUNT(customers) FROM customer;
SELECT TOTAL(customer_name) FROM customer;
第9题:
SELECT* FROM customers;
SELECT name, address FROM customers;
SELECT id, name, address, phone FROM customers;
SELECT cust_name, cust_address FROM customers;
SELECT cust_id, cust_name, cust_address, cust_phone FROM customers;
第10题:
SELECT customer_id, customer_name FROM customers WHERE postal_code CONTAINS NULL;
SELECT customer_id, customer_name FROM customers WHER postal_code = ' ___________';
SELECT customer_id, customer_name FROM customers WHERE postal _ code IS NULL;
SELECT customer_id, customer_name FROM customers WHERE postal code IS NVL;
SELECT customer_id, customer_name FROM customers WHERE postal_code = NULL;
第11题:
SELECT* FROM customers;
SELECT name, address FROM customers;
SELECT id, name, address, phone FROM customers;
SELECT cust_name, cust_address FROM customers;
SELECT cust_id, cust_name, cust_address, cust_phone FROM customers;
第12题:
( 难度:中等)在Hive中,以下哪个SQL语句是错误的
A.hive> SELECT ID, NAME, o.AMOUNT, o.DATE
> FROM CUSTOMERS c
> LEFT OUTER JOIN ORDERS o
> ON (ID = o.CUSTOMER_ID);
B.hive> SELECT ID, NAME, o.AMOUNT, o.DATE
> FROM CUSTOMERS c
> RIGHT OUTER JOIN ORDERS o
> ON (ID = o.CUSTOMER_ID);
C.hive> SELECT ID, NAME, o.AMOUNT, o.DATE
> FROM CUSTOMERS c
> FULL OUTER JOIN ORDERS o
> ON (ID = o.CUSTOMER_ID);
D.hive> SELECT ID, NAME, o.AMOUNT, o.DATE
> FROM CUSTOMERS c
> FULL OUTER JOIN ORDERS o
> ON (ID = o.CUSTOMER_ID OR Name = o.Name);
答案:D
第13题:
第14题:
BookStore数据库中有客户表Customer(CustomerCode,Name,Sex,Hometown,Email,Telephone,LoginDate,Password)删除Customer表中姓“刘”和姓“杨”的记录。SQL语句:DELETE FROMCustomer WHERE()
第15题:
The accounts receivable department requested an accounts status to allow users to enter either a customer name, customer number, customer phone number and then display the customer out standing balance. You want to restrict the data retrieved based on values entered by the users. Which where clause would you write in the query to select statement to accomplish this task?()
第16题:
The CUSTOMERS table has these columns: CUSTOMER_ID NUMBER(4) NOT NULL CUSTOMER_NAME VARCHAR2(100) NOT NULL STREET_ADDRESS VARCHAR2(150) CITY_ADDRESS VARCHAR2(50) STATE_ADDRESS VARCHAR2(50) PROVINCE_ADDRESS VARCHAR2(50) COUNTRY_ADDRESS VARCHAR2(50) POSTAL_CODE VARCHAR2(12) CUSTOMER_PHONE VARCHAR2(20) The CUSTOMER_ID column is the primary key for the table. Which two statements find the number of customers? ()
第17题:
The CUSTOMERS table has these columns: CUSTOMER_ID NUMBER(4) NOT NULL CUSTOMER_NAME VARCHAR2(100) NOT NULL STREET_ADDRESS VARCHAR2(150) CITY_ADDRESS VARCHAR2(50) STATE_ADDRESS VARCHAR2(50) PROVINCE_ADDRESS VARCHAR2(50) COUNTRY_ADDRESS VARCHAR2(50) POSTAL_CODE VARCHAR2(12) CUSTOMER_PHONE VARCHAR2(20) Which statement finds the rows in the CUSTOMERS table that do not have a postal code? ()
第18题:
*
CustomerCode,Name,Hometown,Sex,Email,Telephone,LoginTime,PassWord
CustomerCode,Hometown,Telephone,Name,Sex,Email,LoginTime,PassWord
CustomerCode~PassWord
第19题:
&p_where_clause
:p_where_clause
WHERE CUST_ID=P_CUST_ID or cust_name=:p_cust_name or cust_phone=:p_cust_phone
Where cust_ID=&p_custid cust_name=&p_cust_name or cust_phone=&p_cust_phone
第20题:
SELECT* FROM customers;
SELECT name, address FROM customers;
SELECT id, name, address, phone FROM customers;
SELECT cust_name, cust_address FROM customers;
SELECT cust_id, cust_name, cust_address, cust_phone FROM customers;
第21题:
Validate the name field in the CellValidating event. Set e.Cancel = true if the name field is
Validate the name field in the CellErrorTextChanged event. Get e.RowIndex if the name field ..
Validate the name field in the CellEnter event. Set the focus on the name field if the name ...
Validate the name field in the CancelRowEdit event. Set the focus on the name field if the name ...
第22题:
ALTER TABLE customers ADD CONSTRAINT cust_name_nn CHECK customer_name IS NOT NULL;
ALTER TABLE customers MODIFY CONSTRAINT cust_name_nn CHECK customer_name IS NOT NULL;
ALTER TABLE customers MODIFY customer_name CONSTRAINT cust_name_nn NOT NULL;
ALTER TABLE customers MODIFY customer_name CONSTRAINT cust_name_nn IS NOT NULL;
ALTER TABLE customers MODIFY name CONSTRAINT cust_name_nn NOT NULL;
ALTER TABLE customers ADD CONSTRAINT cust_name_nn CHECK customer_name NOT NULL;
第23题:
NUMBER数据类型要求精度值
UNIQUE约束条件必须在列级定义
CREATETABLE语句不定义PRIMARYKEY
不能在表级定义NOTNULL约束条件