代写存储过程、SQL函数语句

代写存储过程、SQL函数语句
Each team is most likely to have the following tables in the existing model. Use the Excel data provided with this phase link:
PATIENT (some teams called it EMPLOYEE or CUSTOMER)
- If needed, alter your PATIENT table to include the fields in the imported patient Excel file. Do not remove extra fields you may have in the table
- PATIENT table PK is in a 4-digit number
- The PATIENT table is likely to have relationships with other tables. If PATIENT has a 1-to-m relationship with table XYZ, you will need to ensure that PatientID exists as foreign key in table XYZ. Drop or add any constraints as needed
EMPLOYER
- If needed, alter your EMPLOYER table to include the fields in the imported EMPLOYER Excel file provided. Do not remove any extra fields you may have in the table
- There is one employer record for now; all patients/employees work for that employer until further notice
- If the EMPLOYER table is joined with other tables, then keep in mind the PK/FK nature of the relationships
- Your model is most likely to have a relationship between EMPLOYER and EMPLOYEE (1-to-m).
DOCTOR
- If needed, alter your DOCTOR table to include the fields in the imported DOCTOR Excel file provided. Do not remove any extra fields you may have in the table
- Randomly distribute patients among the doctors available in DOCTOR Excel file. You have 41 patients and 13 doctors, which leads to approximately 4 patients per doctor
- Establish a relationship between PATIENT and DOCTOR (1 doctor, may patients) if not available
- LicenseNo is the DOCTOR table PK, data type Number
PHARMACY
- If needed, alter your PHARMACY table to include the fields in the PHARMACY Excel file provided. Do not remove any extra fields you may have in the table
- You have 26 pharmacies with unique Pharmacy Number
- Decide on how PHARAMACY will relate to other tables. Example, if PHARMACY has a relationship with PATIENT, you might want to manually relate PATIENTS based on the location of pharmacies in or nearest the city where they live
- Before importing PHARMACY data into SQL, use Excel function to separate the city, State, Zip column into three separate columns: City, State and Zip. Yes, there are ways to do this in Excel, Google it!
- Pharmacy number 99999 is the mail-in/Fax/Web prescription location

HOSPITAL
- If needed, alter your HOSPITAL table to include the fields in the HOSPITAL Excel file provided. Do not remove extra fields you may have in the HOSPITAL table
- Ensure that you have relationship(s) between HOSPITAL and other tables. Assume that doctors work in hospital locations
- Before importing HOSPITAL data into SQL, use Excel function to separate the city, State, Zip column into three separate columns: City, State and Zip

HEALTHCARE PLAN (or INSURANCE company)
- If needed, alter your HEALTH PLAN/INSURANCE table to include the fields in the HealthPlan Excel file provided. Do not remove extra fields you may have in the Healthcare Plan table
- Randomly distribute patients among health plans as you did when you assigned patients to doctors. No need to assign plans to doctors nor to establish a relationship between PLAN and DOCTOR (unless you feel necessary)

PRESCRIPTION
- This is an important table that contains prescription activities for several patients over a period of time
- This table has data that refer to patients and pharmacies where the drugs were picked up
Drug
- This table has two columns one for drug No and another for drug name

Additional Tables to be Populated
Choose a minimum of 3 tables and populate with your own data. Those tables can be Basic, Subtype or Associative tables. The choice of the 3 tables should be strategic! For example, if any table given in the above section has relationships with any of the 3 additional tables, then this table would be a good choice to use. Choose tables that facilitate joins or relationships. A minimum of 5 records per each additional table is required; the more records, the better. Indicate in BB if you exceed the minimum record count for 3 additional tables
For the 3 additional tables, create Excel files, populate with your own data then use Import Wizard. Save the INSERT statements used and include them Populate_TeamOracleID.sql.
For the 3 additional tables INSERT scripts use comments as follows:
/* Additional Table 1: Table Name */
/* SQL statements used to populate the table */

Things to Consider in this Phase:
1. Do not remove tables that were created in Phase 3 in team’s account. If you do, use BB comments to inform the instructor
2. Even though the 3 additional tables require a minimum of 5 records, populate those tables with your own data sufficiently enough to ensure that potential queries will generate substantial results. The more records you add, the more realistic the outcome is. This is really important for 1-to-m relationships
3. Given the sample data provided, you may have to adjust data type and field size
4. Maintain consistency in formats such as dates throughout the database
What to submit and Grading Criteria:
Upload Populate_TeamOracleID.sql, this file is reserved for data import scripts
1. Answer all questions on BB; review questions sooner than later. Each team member must prepare a list of specific tasks that he/she performed in this Phase. Send task list to team leader who will compile and enter in BB questions
2. Grading will not be as flexible as previous phases. Please ensure that you meet the requirements fully, otherwise penalties will be assessed harshly!
3. Answers to any Phase questions will be shared with all groups via email, please check your messages

Suggested Order of Phase 4 Completion:
1. Examine the Excel data files and compare to existing tables
2. Using SQL, modify existing tables to accommodate incoming Excel data. Do not remove tables, use ALTER or DROP column or constraint commands
3. Track your work in #2 in the designated file
4. Decide which 3 additional tables to populate and create Excel data file for each
5. Start the import process and track your work in the designated file
and run them as a script to delete the tables.
http://www.6daixie.com/contents/15/1311.html

本团队核心人员组成主要包括硅谷工程师、BAT一线工程师,国内Top5硕士、博士生,精通德英语!我们主要业务范围是代做编程大作业、课程设计等等。

我们的方向领域:window编程 数值算法 AI人工智能 金融统计 计量分析 大数据 网络编程 WEB编程 通讯编程 游戏编程多媒体linux 外挂编程 程序API图像处理 嵌入式/单片机 数据库编程 控制台 进程与线程 网络安全  汇编语言 硬件编程 软件设计 工程标准规等。其中代写代做编程语言或工具包括但不限于以下范围:

C/C++/C#代写

Java代写

IT代写

Python代写

辅导编程作业

Matlab代写

Haskell代写

Processing代写

Linux环境搭建

Rust代写

Data Structure Assginment 数据结构代写

MIPS代写

Machine Learning 作业 代写

Oracle/SQL/PostgreSQL/Pig 数据库代写/代做/辅导

Web开发、网站开发、网站作业

ASP.NET网站开发

Finance Insurace Statistics统计、回归、迭代

Prolog代写

Computer Computational method代做

因为专业,所以值得信赖。如有需要,请加QQ:99515681 或邮箱:[email protected]

微信:codinghelp

原文地址:https://www.cnblogs.com/helpcode/p/8933009.html

时间: 2024-11-07 03:35:56

代写存储过程、SQL函数语句的相关文章

Sqlite代写、SQL执行语句代写

Sqlite代写.SQL执行语句代写SQL Assignment 2 (20%)Questions:1. Produce a table showing the total books that are currently "CheckedOut" by every major. Show theMajor and "Total Books Checkedout" in the query result and sort the "Total Books

代写SQL、数据库SQL代写、SQL代写、数据库SQL编程代写

代写SQL.数据库SQL代写.SQL代写.数据库SQL编程代写 我和我的小伙伴均毕业于国内外顶尖高校.就职于一线互联网企业,从事高级开发,熟悉MySQL.Oracle.SQL Server等一系列数据库的设计与开发 现接SQL代写业务(主要面向留学生)当然,我们更多接的是C.C++.Java.Python.Go编程代写? 声明 1.绝不抄袭,不坑学生是我们的底线 2.绝不使用太高级语法 3.无限期免费答疑.无限期修改直到您满意为止 联系方式 微信leechanx 或者直接扫码: 部分成交截图 原

获取时间SQL函数语句

1.获取时间 获取当天的数据 where  DATEDIFF (DD, 数据库中时间的字段 ,GETDATE())=0 查询24小时内的 where  DATEDIFF (HH, 数据库中时间的字段 ,GETDATE())=0 获取本周数据 where DATEDIFF (WEEK, DT_UPLOADTIME ,GETDATE())=0 *获取本周的数据,如果是星期一或许没数据,可以模拟近一周的数据*:where  DATEDIFF (DD, 数据库中时间的字段 ,GETDATE())<=7

sql语句代编写、sql 游标 、事务代写

sql语句代编写.sql 游标 .事务代写1. AimsThis project aims to give you practice in? reading and understanding a moderately large relational schema (MyMyUNSW)? implementing SQL queries and views to satisfy requests for information? implementing SQL functions to ai

SQL 语句代编代写、DATA MANAGEMENT SYSTEMS代写代做

SQL 语句代编代写.DATA MANAGEMENT SYSTEMS代写代做DATA MANAGEMENT SYSTEMS DESIGN PROJECTPurpose of this projectAnalyze, design, implement, and document a database system application. You will use the methodology for database development learned in class. The sys

代做远程系统系统、代写远程终端管理系统

代做远程系统系统.代写远程终端管理系统远程终端管理系统需求分析说明书一. 引言 11.编写目的 12. 定义 1二. 任务概述 21.目标 22. 用户的特点 23. 系统功能示例 2三. 需求细则 21. 对功能的规定 22. 对性能的规定 53. 对排版的规定 54. 对可维护性的规定 55. 对个性的规定 66. 对项目过程的规定 6 一. 引言1.编写目的通过与多位软件使用者进行全面深入地探讨和分析,并完成<远程终端管理系统>市场的前期调查后,提出了这份软件需求分析说明书.此需求分析说

代写程序作业、代写《大学计算机》课程报告作业

1 2 3 4 5A.(答案全面.准确,概念清楚,语言精炼流畅,文字通顺,观点有新意)B.(答案较全面,概念较清楚,文字通顺)C.(答案基本完整,概念基本清楚)D.(答案欠完整,有些概念不够清楚,达到最低要求)E.(不合格)分数(百分制): 评阅人:2018 年 05 月 07 日装订线第 1 题 任选一道实验 3 中的 Excel 操作题,描述操作过程(写清楚题目要求.分析思路.操作过程.遇到的问题及解决思路)第 2 题 根据课程学习,从下面两道题中选择一题并做出回答1)结合实例,对 SQL

如何编写高效的SQL查询语句

概述 如何编写性能比较高的SQL查询语句呢?两个方法:创建合理的索引:书写高效的SQL语句 索引的基本原理 索引分为聚集索引和非聚集索引.一个表只能创建一个聚集索引和N个非聚集索引,这句话的由来主要是由于索引的原理决定的. 数据库中的一张表不论你创建不创建索引,或者,不论你创建那种类型的索引,其在硬盘上的存储是一样的,那么,创建索引和不创建索引,或者,创建聚集索引和非聚集索引的区别在什么地方呢? 其区别是表内数据在内存的存在形式.对于没有创建索引的表,其加载到内存里时,就只有数据块:对于有聚集索

代写大作业、代写大学计算机基础编程

代写大作业.代写大学计算机基础编程<大学计算机基础>常规班大作业题目 要求:从下列题目中,选择1道题目作为大作业,实现程序并撰写实验报告:文科学生可以选做任何题目,理科学生不可以选做"文科题目". 作业一 信息录入与查找系统 设计一个信息录入与查找系统,使其具有基本身份信息的录入功能,并能在录入的数据中根据一个或多个查找关键字查询出所有符合条件的人.具体要求如下: 1. 设计一个 GUI 界面,其中具有多个输入框,对应姓名.性别.年龄.血型.星座.身高.体重等数据:并有确定