Write database jobs, draw ERWin diagrams, and write SQL statements

The experiment of writing database operations, drawing ERWin diagrams, and writing SQL statements
requires
careful reading of the description of the application requirements. On this basis, use the ERwin Data Modeler or PowerDesigner data modeling tools to create a data model for enterprise contract management, and convert the physical data into it. The model is generated to the Oracle database management system (Note: the version of Oracle is not limited), and a data modeling report is written according to the completed content and process. The ERD of the data model created by Erwin (other data modeling tools can also be used) needs to be placed in the report (you can take a screenshot) in the report, and a brief description of the ERD is required.
According to the created data model, enter the data required for the demonstration, complete the following query, and give a screenshot of the query statement and execution result.
(1) Query the after-sales service period of a product (identified by product code) in a contract (identified by contract number), and output: contract name, contract number, product code, product name, after-sales service period.
(2) Details of after-sales technical support for technical engineers. The sample output is as follows.
Service Product Number Service Type First Service Engineer Start Time End Time
A01-001 Site 1 Zhang San 2017/4/5 14:00 2017/4/5 14:30
A01-001 Site 2 Zhang San 2017/4/6 14 :00 2017/4/5 15:30
A01-001 Site 2 Li Si 2017/4/6 15:00 2017/4/5 15:30

Matters needing attention
(1) If plagiarism is found in the experiment, both the plagiarist and the plagiarist will be given zero marks for the course.
(2) The job requires a computer experiment, and zero points are awarded for no computer experiment results.
The application requirements of enterprise sales contract management describe
the sales contracts generated by an enterprise in the sales activities (see the contract example in the annex for details). It is necessary to develop a sales contract management system to realize the comprehensive management of sales contracts. The management of contracts is divided into the following parts Stages:
1. Draft contract production
In the draft contract production stage, the person in charge of sales drafts the contract, fills in the necessary information, including the content shown in Table 2-1,
attribute description
Contract number Each contract has a unique number, which is used To identify the time and number of the contract signing
Party A’s unit name refers to the customer (maybe the company)
Party B’s unit
name Contents of the contract Text description of the contract The
contract payment information may have multiple stages.
The total amount of the contract refers to stages. The management
of the product information sales contract stipulated in the product list contract is
mainly the sales contract in which Party A is the customer, but there are also sales contracts in which Party A is the enterprise. Therefore, Party A's unit name does not necessarily refer to the customer's name, but may also be the unit name of the enterprise.
The content of the contract is a textual description of the entire contract, including various clauses.
The payment information of the contract varies with the contract. Some contracts are only one-time payment, while some contracts are multiple payments. The specific time and amount of payment should be specified in the payment information (all amounts are in RMB. , reserved to RMB cents, and the following places involving the amount will not be explained).
The total contract amount shall be the same as the sum of the contract payments. The total amount of the contract is clearly given in the content of the contract, although the corresponding calculations can be made on a per-payment basis.
The product list needs to list the product number, product name, unit price of the product, the quantity of the product and the corresponding discount of the product used in the contract. Depending on the situation, some contracts may not list price information and discount information. Also, some contracts are of a service nature and may not have actual products and therefore no product listings.
2. Contract review
After the sales person in charge drafts the contract, he will send a draft of the contract to the business personnel and the technical person in charge. Review the rationality of the products configured in the contract and other corresponding technical issues. Only contracts that have passed the business and technical review can enter the next stage of "contract signing", otherwise, the sales person in charge needs to revise the contract according to the opinions of the business or technical review and submit it again.
3. Contract Signing During
the contract signing stage, the legal representative of the enterprise (set as the general manager of the company) is responsible for signing the contract, and the corresponding person in charge of the customer is responsible for signing the contract. The signing information should include the personal signature and the time of signing.
4. The contract maintenance and management has
entered the contract maintenance stage, and any content of the contract is not allowed to be modified, only the corresponding query can be made. In this stage, there are the following business activities:
(1) Inquire about the payables of the contract, and notify the sales person in charge of the payment of the payables. In the process of service (such as installation and implementation or after-sales service, etc.), technicians can query the corresponding product list in the contract, but are not allowed to query the price information of the products in the contract.
(2) Regularly organize the corresponding reports, such as the sales performance of each salesperson, the sales performance of the department, etc. for the management to supervise and manage.
(3) At the end of each fiscal year for year-end summary, provide managers with more detailed reports, including individual sales performance, departmental sales performance, and various products (divided by product manufacturers, such as IBM's product sales performance, etc.) , comparison with the sales performance of the past two years, etc.
5. Product order management
After the contract is signed, enter the product ordering stage. At this stage, it is completed by the sales staff in cooperation with the business staff. According to the contract, orders are placed to different manufacturers or agents. In most cases, product orders are carried out separately by manufacturers, but sometimes orders are placed with integrators or with manufacturers' agents. The situation of placing an order with an integrator occurs when a project is supplied and integrated by different integrators. The supply integrator may provide more than one manufacturer's products, and sometimes include all the supply integrators in the project that require the supply integrator. Products offered. For a product that is not an agent of the company in the contract, all the required conditions need to place an order with the agent designated by the manufacturer.
The format of the order will vary according to different situations, but in the end there will be an EXCEL form for submitting the order. If it is an agent product, each manufacturer has a fixed format. If it is a non-agent product, whether it is to place an order to the agent of the manufacturer or to the integrator of the supply, the format of the order may be various. Some will change with the product type (such as disk array, tape library, backup software, etc.), and some will change due to the other party's certain format requirements.
At present, order management is still a completely manual operation. When an order needs to be generated, the usual practice is to use XECEL to make a list of corresponding product modules and additional instructions according to the products to be ordered, and then send the electronic document to the other party by e-mail. When it is necessary to inquire about the status and related information of an order, for example, the specific date of an order one month ago needs to be inquired, the relevant personnel can inquire about the corresponding electronic document through the business management personnel.
Although the company has an inventory management system, the current inventory management system is a completely independent system that has nothing to do with contract management and orders.
System function
The sales contract management system needs to comprehensively manage the basic contract information and related information in all the above stages. The basic functions are as follows:
1. The sales person in charge creates a draft contract. The sales person
in charge may use the system to input the relevant content of a draft contract . Among them,
the contract number is automatically generated by the system according to the existing contract information and the current date in the system, and is not allowed to be modified.
The names of Party A and Party B also match the information already stored in the system. If the name of Party A's unit is "Beijing Institute of Technology", "Beijing Institute of Technology" already exists in the customer information of the database. If it exists, you need to add a relevant customer information before entering the contract content. If the input is that Party A is not the company, the system will automatically fill in the name of the company in Party B. On the contrary, if Party B is a customer, the system will automatically fill in the name of the company in Party A's information.
The entered contract payment information should correspond to the total contract amount. After all the contract payments are entered, the system will automatically fill in the total contract amount.
The products in the product list must be products that already exist in the database product information. It is not allowed to add new products, nor to modify any information of existing products during the process of contract content input. That is, it can be understood that the product information is read-only for the sales contract management system. The system should be able to allow the input person to select the corresponding product from the product list and automatically add the required product information (product number, name, quantity, unit price, discount, where the unit price and discount are optional) into the contract product list .
During or after contract entry, the importer can preview the resulting contract.
Finally, the importer can choose to submit the generated contract draft to the business personnel (a fixed person in the enterprise) and the technical director (a fixed person in the enterprise) or to temporarily save the contract for future execution Amend or submit.
2. The contract review function
system should support the business personnel to submit the review comments of the contract to the submitter of the draft contract, and the technical director to submit the review comments of the contract to the submitter of the draft contract and the business personnel. Note: According to this situation, the system should record who is the sales person in charge of the contract, which is also the general practice in most business activities, but it should be noted that the information of the sales person in charge cannot appear in the contract printed in the future. This is the company internal information.
At this stage, the system should record the contract's commercial, technical review comments, review time and reviewer's information.
The approved contract should be able to be printed for contract signing.
3. Contract signing function
The system needs to record the content signed on the printed contract, including the information on the signature and time of both parties.
4. Contract maintenance and management
(1) Query the contract. First list all contracts (including contract number, contract name, signing date, and sales person in charge), and then you can enter the contract number or contract name to query the content of a specific contract.
(2) Check payables. According to the content of the contract, inquire about the contract information, including the payable amount and the payable date, for which the total amount of payment is less than the total amount of the contract and has exceeded the payment date specified in the contract. pay. The reference format is as follows:
Statement 1
Accounts Payable Sales Person Contract No. Contract Name Payable Payable Date
Zhang XX Contract 01 XXXXXX 2005-12-1
Contract 05 2005-12-4
Li XX Contract 03 2005-11-1

(3) Query product information. In the process of installation and after-sales service, the technical engineer inquires the product list in the contract, including the product number, name and quantity, but does not include the price information of the product. At the same time, the system should also list the sales person in charge of the contract and the content of the customer information, so that the technical engineer can understand. Please refer to the product list in the attachment for the format of the report.
(4) Generate sales staff performance report. Generate a sales report for each salesperson, including the salesperson's name, the total sales contract signed, and the total payment received.
Report 2 Salesperson Performance Report
Salesperson's total contract amount has been paid
Zhang XX 2100000.00 1300000.00
Li XX 4500000.00 2340000.00

(5) Generate the company's sales performance report. Generate sales performance reports by department, including department name, salesperson name, sales contract number, and total contract value. As follows:
Report 3 2005 Departmental Sales Performance Report
Department Sales Personnel Contract Total Contract
Department 1 XX Contract 01 100000.00
Contract 05 3400000.00
Li XX Contract 03 150000.00
Contract 11 230000.00
Department 2 Zhao XX Contract XX
Wang XX Contract 22 38000000.00
Contract 24
Generated on Tuesday, December 6, 2005
(6) Generate a business performance comparison report. In the report, the comparison with the sales performance of the past two years is generated, as shown in the following table: Report 4 Department
Sales Performance Comparison Table 1800.00 2004 2300.00 27.8 2005 3500.00 52.2






5. Product order management
At present, inventory management is not considered, and only the function of order management is realized. The order management functions that need to be realized are as follows:
(1) Order making function. An order can be made through the Web, and corresponding information can be queried during the making process, such as related contract information (including product details in the contract), manufacturer information, product information, product public quotation information, and other order information , for the production of some auxiliary functions, the final result can output an EXCEL table.
(2) Orders can be automatically generated according to the product configuration of the contract, and the generated orders may need to be modified by business management personnel, and the system should provide corresponding order modification functions;
(3) Order query, including query orders according to contracts, query according to projects Orders, query orders according to salesperson, query orders according to date, according to the status of the order (not dispatched, not delivered, delivered).
(4) Statistical functions, such as the total amount of all orders of a manufacturer, the ordering situation in a certain period, the ordering situation of a certain product, etc.
6. After-sales service management
After completing the installation and commissioning of the system stipulated in the contract, enter the after-sales service stage of the system. At this stage, users can request for after-sales service of products through various methods such as telephone, these services include telephone technical consultation, product maintenance, on-site system services and so on. The company has an after-sales support center responsible for the after-sales service of the system. When the user requests service, the customer service specialist of the after-sales support center must first verify the match with the contract according to the customer information and product information, whether the product requiring service is the product in the contract, and whether the purchased product is within the service period. Wait. Then record the information in the customer service record form and provide it to the technical support engineer in the after-sales support center, and the technical support engineer records the technical support situation in the customer service record form. If the customer's product needs to provide product maintenance or on-site service after consultation by the technical support engineer, the customer service specialist will determine whether the customer needs to be charged for the service according to the situation of the contract (Note: Therefore, the contract needs to clearly record what can be determined. during the service period of the product). The maintenance engineer or field service engineer records the condition of the service on the customer service record form.
The format of the customer service record sheet is as follows:
Name content description
Service number Each service has a number
Service start time
Service end time
Service type Telephone consultation/maintenance/site
Customer name Customer unit name
Customer contact name
Contact phone number
Contract number
Project responsible The person is the salesperson of the product. The
product number may have multiple product
service specialists/engineers
. Service content records the process and results of the service in detail


Annex I Contract Example
Purchase and Sales Contract
Contract No.: ZZ 050916YWY Signing place: Beijing Signing time: 2005/09/16

The parties to the contract:

Demander (hereinafter referred to as Party A): XX Computer Company

Supplier (hereinafter referred to as Party B): Beijing XX Technology Co., Ltd.

In order to clarify the responsibilities of both parties, ensure the smooth progress of the contract, and ensure that both parties achieve their respective economic goals,
this contract is hereby concluded after full consultation between parties A and B, based on the principle of equality and mutual benefit, for mutual compliance.

one. The total amount of the contract. (For details of the configuration quotation, please refer to Annex 1 of the contract)
Total: RMB 90,000,900,000,100,000,000,000,000,000,000,000,000,000 yuan (¥188,903)

two. Product quality requirements, technical standards, conditions and deadlines for suppliers to be responsible for quality.
1. Qualification indicators of product spare parts: according to the quality standards and technical standards of the manufacturer - Veritas original factory. (Subject to the manufacturer's product manual).
2. The quality standard of software products is: Veritas original. Otherwise, it can be returned free of charge.
3. Party B guarantees that the products sold are all legal products of Veritas and are protected by relevant laws.

three. Delivery place, method, deadline.
1. Delivery place: No. 58, XX Road, Fuzhou
2. Delivery method: Party B delivers to your door
3. Delivery time: Party B will deliver the goods within 20 working days after receiving the full payment.

Four. Shipping methods and costs.
1. Mode of transportation: Road (or railway) transportation
2. Expenses: Party B shall bear the expenses

5. Packaging standard
manufacturer's original packaging

six. Product acceptance criteria, methods and deadlines for raising objections.
1. After the arrival of the goods, Party A should jointly count the number of boxes, types, specifications and quantities of the goods according to the goods list, check the outer packaging, sign and approve the inspection form, and fax it back to Party B.
2. During the inspection and acceptance, if Party A finds that the variety, specification, model and quantity of the goods are inconsistent with the contract, they should keep them properly and file a written objection to Party B within three days from the date of delivery of the goods.
3. During acceptance, if Party A finds that the quality of the goods does not conform to the contract, it shall keep it properly and file a written objection to Party B within three days from the date of
delivery .
4. Party A shall not raise any objection if the quality of the goods is deteriorated due to poor use, storage and maintenance.

seven. Location, method and duration of technical support and after-sales service.
1. Service location: 18th Floor, Block B, XX Technology Building, No. 1 XX Road, Haidian District, Beijing;
2. Service method: Party B provides telephone support, email and fax support, but does not provide on-site service; Veritas and ADIC provide 1 year 5×8 phone support. ADIC provides a 3-year warranty for tape library products, and the terms and methods of warranty are subject to ADIC's regulations.
3. Service period: within one year after Party B receives the full payment.

11. Payment method and term
1. Within three days after the signing of the contract, Party A shall pay Party B the full amount of the contract, namely RMB 108,000,000,000,000,000,000 yuan (¥188,903).
2. Within 7 days after the arrival of the product, installation, commissioning, and acceptance, Party A shall pay Party B 20% of the total contract price, which is RMB 10,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000 yuan (¥19,834).
3. Party A shall provide necessary conditions to ensure that Party B completes the service within the time agreed in the contract. If Party B cannot complete the service within the time agreed in the contract due to reasons other than Party B, it shall be deemed that Party B has qualified the service within the time agreed in the contract, and Party A shall pay Party B the payment for the goods according to the payment terms.

12. Liability for breach of contract
1. Party A's liability for breach of contract:
1) If Party A refuses to accept the goods in violation of the contract, it shall bear all the losses caused by Party B.
2) If Party B is unable to install and debug or prolong the installation and debugging time due to Party A's reasons, Party A shall bear the losses suffered by Party B.
3) If Party A makes overdue payment, it shall pay Party B the liquidated damages for overdue payment. The calculation method is 0.5% of the overdue payment for each week, and one week for less than one week.

2. Party B's liability for breach of contract:
1) If Party B is unable to deliver the goods, it shall bear all the losses caused by Party A.
2) Party B shall pay Party A liquidated damages for late delivery. The calculation method is 0.5% of the contract amount for each week, and a week for less than one week.
3) If the variety, specification, quality, quantity and model of the products delivered by Party B do not conform to the contract, Party B shall assume full responsibility.

13. Force Majeure
When either party cannot perform the contract due to force majeure, it shall promptly notify the other party of the reasons for the failure or failure to perform the contract. And according to the situation can be partially or fully exempted from liability for breach of contract.

14. Ways to resolve contract disputes
If there is a dispute in this contract, both parties should negotiate and resolve it in a timely manner. If the negotiation fails, either party may directly file a lawsuit with the people's court in the place where the contract is signed.

15. Other
liquidated damages, compensation, storage and maintenance fees and various economic losses that should be paid according to the provisions of this contract should be paid within 10 days after the responsibilities are specified, according to the settlement method stipulated by the People's Bank of China, otherwise it will be treated as overdue payment . This contract will take effect from the date of signature by both parties. During the execution period of the contract, neither party A or party B may change or cancel the contract at will. If there are any matters not covered in the contract, both parties must negotiate and make supplementary provisions in writing. The supplementary provisions have the same effect as this contract. The original of this contract is in duplicate, and each party holds one copy. The fax copy of this contract has the same legal effect. Because the contract is signed for the first time, the supplier must present the company's industrial and commercial business license, tax registration certificate, and a copy of the legal person's ID card to Party A, and affix the company's official seal.
Party A: Party B:
Unit Name: XX Development Center Unit Name: Beijing XX Technology Co., Ltd.
Unit Address: 18th Floor, Block B, XX Technology Building, No. 1, XX Road, Haidian District, Beijing Unit Address: XX Building, No. XX, Zhongguancun South Street, Haidian District, Beijing Room 101
Tel: (010) XXXXXXXX Tel: (010) XXXXXXXX
Fax Number: (010) XXXXXXXX Fax Number: (010) XXXXXXXX
Postal Code: 100083 Postal Code: 100081 Account Bank: Account Bank: Bank
of Beijing Baishiqiao Branch
Account number: Bank account number: XXXXXXXXXXXX
XXXXXXX
Legal representative: Legal representative:
Manager: XXX Manager:
Signing date: August 5, 2005 Signing date: August 5, 2005


Attachment 1: Product order number and detailed configuration Quotation table
description Product code Product name Quantity quotation
Veritas Backup Exec backup software ¥48,903
Main module A130258-0xx000* Backup Exec, Windows, Servers, v10, License 1 ¥5,343
SQL database option A131298- 0xx000 Backup Exec,Windows,Microsoft SQL Server Agent with Client Access License,v10,License 1 ¥5,970
Oracle Database Option A131308-0xx000 Backup Exec,Windows,Agent for Oracle on Windows Servers with Client Access License,v10,License 1 ¥5,970
Open File Backup A131208-0xx000 Backup Exec,Windows,Advanced Open File Option with Client Access License,v10,License 5 ¥26,850
Intelligent Disaster Recovery Option A131248-0xx000 Backup Exec,Windows,Intelligent Disaster Recovery Option Unlimited Clients,v10,License 1 ¥4,170
Media N130348 Backup Exec, Windows, v10.0, E/F/G/J/S/I/C/K, Media Kit 1 ¥300
Manual N130378 Backup Exec,Windows,v10.0,Chinese,Documentation Kit 1 ¥300
Scalar 24 LTO-2 Tape Library¥140,000
S24 Tape Library 9-00662-01 Scaalr 24 Tape Library with a LTO-2 Tape Drive Adapter, fiber optic interface, barcode scanner, 100 barcode tapes with labels, a power cord and product manual. 1
Data Tape LTO2-Data LTO2 Data Tape 20
Cleaning Tape LTO-Clean LTO Cleaning Tape 1
http://www.6daixie.com/contents/15/1295.htm

 

The core members of the team mainly include Silicon Valley engineers, BAT front-line engineers, top 5 master and doctoral students in China, and are proficient in German and English! Our main business scope is to do programming assignments, course design and so on.

 

Our field of direction: window programming, numerical algorithm, AI, artificial intelligence, financial statistics, econometric analysis, big data, network programming, WEB programming, communication programming, game programming, multimedia linux, plug-in programming program, API, image processing, embedded/MCU database programming, console process and thread, network security, assembly language hardware Programming software design engineering standards and regulations. The ghostwriting and ghostwriting programming languages ​​or tools include but are not limited to the following:

C/C++/C# ghostwriting

Java ghostwriting

IT ghostwriting

Python ghostwriting

Tutored programming assignments

Matlab ghostwriting

Haskell ghostwriting

Processing ghostwriting

Building a Linux environment

Rust ghostwriting

Data Structure Assginment

MIPS ghostwriting

Machine Learning homework ghostwriting

Oracle/SQL/PostgreSQL/Pig database ghostwriting/doing/coaching

web development, website development, website work

ASP.NET website development

Finance Insurance Statistics Statistics, Regression, Iteration

Prolog ghostwriting

Computer Computational method

 

Because professional, so trustworthy. If necessary, please add QQ: 99515681 or email: [email protected]

WeChat: codinghelp

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324653061&siteId=291194637