2011年计算机等考二级Access考前模拟题(30)
一、基本操作题 考生文件夹下存在一个数据库文件samp1.mdb,里面已经设计好表对象 tEmployee。试按以下要求,完成表的编辑: (1)根据tEmployee表的结构,判断并设置主键; (2)设置性别字段的有效性规则属性为:只能输入男或女; (3)设置年龄字段的输入掩码为只
一、基本操作题
考生文件夹下存在一个数据库文件“samp1.mdb”,里面已经设计好表对象
“tEmployee”。试按以下要求,完成表的编辑:
(1)根据“tEmployee”表的结构,判断并设置主键;
(2)设置“性别”字段的“有效性规则”属性为:只能输入“男”或“女”;
(3)设置“年龄”字段的输入掩码为只能输入两位数字,并设置其默认值为19;
(4)删除表结构中的“照片”字段;并删除表中职工编号为“000004”和“000014”的两条记录;
(5)使用查阅向导建立“职务”字段的数据类型,向该字段键入的值为“职员”、“主管”或“经理”等固定常数;
(6)在编辑完的表中追加以下一条新记录:
二、简单应用题
考生文件夹下存在一个数据库文件“samp2.mdb”,里面已经设计好表对象“档案表”和“水费”,试按以下要求完成设计:
(1)设置“档案表”表中的“性别”字段的有效性规则为其值只能为“男”或“女”,有效性文本为“性别字段只能填写男或女”;
(2)创建一个查询,查找未婚职工的记录,并显示“姓名”、“出生日期”和“职称”。所建查询名为“qT1”;
(3)创建一个更新查询,用于计算水费,计算公式:
水费=3.7*(本月水-上月水)
所建查询名为“qT2”;
(4)创建一个查询,查找水费为零的记录,并显示“姓名”,所建查询名为“qT3”。
三、综合应用题
考生文件夹下存在一个数据库文件“samp3.mdb”,已建立两个关联表对象(“档案表”和“工资表”)和一个查询对象(“qT”),试按以下要求,完成报表的各种操作。
(1)创建一个名为“eSalary”的报表,按表格布局显示查询“qT”的所有信息;
(2)设置报表的标题属性为“工资汇总表”;
(3)按职称汇总出“基本工资”的平均值和总和。“基本工资”的平均值计算控件名称为“savg”、“总和”计算控件名称为“ssum”;
注:请在组页脚处添加计算控件。
(4)在“eSalary”报表的主体节上添加两个计算控件:名为“sSalary”的控件用于计算输出实发工资;名为“ySalary”的控件用于计算输出应发工资;计算公式为:
应发工资:基本工资+津贴+补贴;
实发工资:基本工资+津贴+补贴-住房基金-失业保险

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

SQL IF statements are used to conditionally execute SQL statements, with the syntax as: IF (condition) THEN {statement} ELSE {statement} END IF;. The condition can be any valid SQL expression, and if the condition is true, execute the THEN clause; if the condition is false, execute the ELSE clause. IF statements can be nested, allowing for more complex conditional checks.

The advantage of multithreading is that it can improve performance and resource utilization, especially for processing large amounts of data or performing time-consuming operations. It allows multiple tasks to be performed simultaneously, improving efficiency. However, too many threads can lead to performance degradation, so you need to carefully select the number of threads based on the number of CPU cores and task characteristics. In addition, multi-threaded programming involves challenges such as deadlock and race conditions, which need to be solved using synchronization mechanisms, and requires solid knowledge of concurrent programming, weighing the pros and cons and using them with caution.

The main reasons why you cannot log in to MySQL as root are permission problems, configuration file errors, password inconsistent, socket file problems, or firewall interception. The solution includes: check whether the bind-address parameter in the configuration file is configured correctly. Check whether the root user permissions have been modified or deleted and reset. Verify that the password is accurate, including case and special characters. Check socket file permission settings and paths. Check that the firewall blocks connections to the MySQL server.

How to avoid the third-party interface returning 403 error in the Node environment. When calling the third-party website interface using Node.js, you sometimes encounter the problem of returning 403 error. �...

How to configure Zend in Apache? The steps to configure Zend Framework in an Apache Web Server are as follows: Install Zend Framework and extract it into the Web Server directory. Create a .htaccess file. Create the Zend application directory and add the index.php file. Configure the Zend application (application.ini). Restart the Apache Web server.

Methods to solve the cross-domain problem of Vue Axios include: Configuring the CORS header on the server side using the Axios proxy using JSONP using WebSocket using the CORS plug-in

Get ComponentVerify in EasyWechat5.5...

The key to PHPMyAdmin security defense strategy is: 1. Use the latest version of PHPMyAdmin and regularly update PHP and MySQL; 2. Strictly control access rights, use .htaccess or web server access control; 3. Enable strong password and two-factor authentication; 4. Back up the database regularly; 5. Carefully check the configuration files to avoid exposing sensitive information; 6. Use Web Application Firewall (WAF); 7. Carry out security audits. These measures can effectively reduce the security risks caused by PHPMyAdmin due to improper configuration, over-old version or environmental security risks, and ensure the security of the database.
