Need Help With The SQL Server Database

  

1. Using the attached ERD file (animal hospital.pdf), the Normalization Table excel file (Normalization Table Animal Hospital.xlsx) create tables and insert the data form the normalization table. i.e.:

Ensure every table has a primary key, create a new database for this exercise, this way if you need to you can delete the database and start over. i.e.:

CREATE DATABASE animal_hospital;

GO

USE animal_hospital;

GO

DDLs/DMLs goes here

Screen shot goes here

2. Using the ERD add foreign keys to the tables that require them (should be five foreign keys). 

DDLs goes here

Screen shot goes here

3. Alter or update the tables in the animal_hospital database as follows:

a. Change the size of the street column in the customer table to char(250).

DDL goes here

Screen shot goes here

b. Add a constraint to the customer table so only the two digit abbreviation for the stat can be used. (only do New York, New Jersey, Connecticut)

DDL goes here

Screen shot goes here

i. Try inserting the following DML command into the customer table. What error did you get?
INSERT INTO dbo.Customer values( 204,’Ms.’,’Helen’,’Smith’, ‘750 King Street’,’Springfiele’,’MO’,’52145′);

Answer goes here

Screen shot goes here

4. Using the SELECT INTO Statement copy the pet name from dbo.pet, the type of pet from dbo.pet_type, and the whole name of its owner including salutation in one column. See example of solution for column names.

DML goes here

Screen shot goes here

  

5. Using the INSERT SELECT Statement create a table of 3 columns that will hold the copied data of the pet id from dbo.pet, the name of the pet from dbo.pet, and the type of animal 

DML goes here

Screen shot goes here

Quizz

Please review the attached document and answer all the questions correctly. 

Solved Exp19_Excel_Ch07_Cap_Real_Estate | Excel Chapter 7 Real Estate

  

Project Description:

You are the office manager for a real estate company in northern Utah County. You tracked real estate listings, including city, agent, listing price, sold price, etc. Agents can represent a seller, a buyer, or both (known as dual agents). Your assistant prepared the spreadsheet structure with agent names, agent types, the listing and sold prices, and the listing and sold dates. You want to complete the spreadsheet by calculating the number of days each house was on the market before being sold, agent commissions, and bonuses. In addition, you will use conditional functions to calculate summary statistics. For further analysis, you will insert a map chart to indicate the average house selling price by city. Finally, you will create a partial loan amortization table and calculate cumulative interest and principal to show a potential buyer to help the buyer make decisions.

     

The   spreadsheet contains codes (BA, DA, SA) to represent agent roles (Buyer’s   Agent, Dual Agent,   Seller’s Agent). You want to switch the codes for the actual descriptions.
  In cell E12 of the Details sheet, insert the SWITCH function to evaluate the   agent code in cell D12. Include mixed cell references to the codes and roles   in the range J2:K4 for the values
  and results arguments. use all cell references in the function. Copy the   function to the range E13:E39.

 

 

Now you want to calculate the   number of days between the list date and sale date.
 

  In cell J12, insert the DAYS function to calculate the number of days between   the Listing Date and the Sale Date. Copy the function to the range J13:J39.

 

You want to calculate agent   commissions based on their role.
 

  In cell K12, insert the IFS function to calculate the agent’s commission   based on the agent code and the applicable rates in the range L2:L4. Use   relative and mixed references correctly. Copy the function to the range   K13:K39.

 

 

You want to calculate a bonus if   the sold price was at least equal to the listing price, and if the house sold   within 30 days after being listed.
 

  In cell L12, insert an IF function with a nested AND function to calculate a   bonus. The AND function should ensure both conditions are met: Sold Price   divided by the Listing Price is greater than or equal to 100% (cell L7) and   the Days on Market are less than or equal to 30 (cell L8). If both conditions   are met, the bonus is $1,000 (cell L9). Otherwise, the bonus is $0. Use mixed   cell references to the input values in the range L7:L9. Copy the function to   the range L12:L39.

 

The top-left section of the   spreadsheet is designed for summary statistics for one condition. You will   calculate average selling prices and the number of houses sold in each city   (the condition).
 

  In cell B2, insert the AVERAGEIF function to calculate the average Sold Price   for houses in the city of Alpine. Use mixed references for the range; use a   relative reference to cell A2. Copy the function and use the Paste Formulas   option to paste the function in the range B3:B5 so that the bottom border in   cell B5 is preserved.

 

You want to count the number of   houses in one city.
 

  In cell C2, insert the COUNTIF function to count the number of houses in the   city of Alpine. Use mixed references for the range; and use a relative   reference to cell A2. Copy the function and use the Paste Formulas option to   paste the function in the range C3:C5 so that the border in cell C5 is   preserved.

 

You want to calculate the total commissions   for each agent (the condition).
 

  In cell B7, insert the SUMIF function to total the commissions by agent. Use   mixed references for the ranges; and use a relative reference to cell A7.   Copy the function and use the Paste Formulas option to paste the function in   the range B8:B9 so that the borders are preserved.

 

The top-middle section of the   spreadsheet is designed for summary statistics for multiple conditions. You   will calculate the number of houses sold for each agent when he or she served   as a Dual Agent (DA). Use mixed references for ranges and the agent code   condition in cell J3. Use relative cell references to the agent condition in   cell E2. When you copy the formulas, use the paste Formulas options to   preserve border formatting.
 

  In cell F2, insert the COUNTIFS function in cell F2 to count the number of   houses sold by the first agent (cell E2) who was a Dual Agent (DA) (J3) for   that house. Use all cell references in the function. Copy the function to the   range F3:F4 and preserve the bottom border for cell F4.

 

You are ready to calculate the   total value of those houses for each agent when he or she served as a Dual   Agent (DA). Use mixed references for ranges and the agent code condition in   cell J3. Use relative cell references to the agent condition in cell E2. When   you copy the formulas, use the paste Formulas options to preserve border   formatting.
 

  In cell G2, insert the SUMIFS function to sum the selling prices of the   houses sold by the first agent (cell E2) who was a Dual Agent (DA) (J3) for   that house. Copy the function to the range G3:G4 and preserve the bottom   border for cell G4.

 

Now, you will calculate the   highest-price house highest-price house sold for each agent when he or she   served as a Dual Agent (DA). Use mixed references for ranges and the agent   code condition in cell J3. Use relative cell references to the agent   condition in cell E2. When you copy the formulas, use the paste Formulas   options to preserve border formatting.
 

  In cell H2, insert the MAXIFS function in cell H2 to display the highest-price   house sold by the first agent (cell E2) who was a Dual Agent (DA) (J3) for   that house. Copy the function to the range H3:H4 and preserve the borders in   the range H3:H4.

 

The Map worksheet contains a   list of cities, postal codes, and average house sales. You will insert a map   chart to depict the averages visually using the default gradient fill colors.
 

  Display the Map worksheet, select the range B1:C5 and insert a map chart.

 

Cut the map chart and paste it   in cell A7. Set a 2.31″ height and 3.62″ width.

 

You want to enter a meaningful   title for the map.
 

  Change the map title to Average Selling Price by Zip Code.

 

Display the Format Data Series   task pane, select the option to display only regions with data, and show all   labels. Close the task pane.

 

You are ready to start   completing the loan amortization table.
 

  Display the Loan worksheet. In cell B8, type a reference formula to cell B1.   The balance before the first payment is identical to the loan amount. Do not   type the value; use the cell reference instead. In cell B9, subtract the   principal from the beginning balance on the previous row. Copy the formula to   the range B10:B19.

 

Now, you will calculate the   interest for the first payment.
 

  In cell C8, calculate the interest for the first payment using the IPMT   function. Copy the function to the range C9:C19.

 

Next, you will calculate the   principal paid.
 

  In cell D8, calculate the principal paid for the first payment using the PPMT   function. Copy the
  function to the range D9:D19.

 

Rows 21-23 contain a summary   section for cumulative totals after the first year.
 

  In cell B22, insert the CUMIPMT function that calculates the cumulative   interest after the first year. Use references to cells A8 and A19 for the   period arguments.

 

The next summary statistic will   calculate the principal paid after the first year.
 

  In cell B23, insert the CUMPRINC function that calculates the cumulative   principal paid after the first year. Use references to cells A8 and A19 for   the period arguments.

 

Rows 25-28 contain a section for   what-if analysis.
 

  In cell B27, use the RATE financial function to calculate the periodic rate   using $1,400 as the
  monthly payment (cell B26), the NPER, and loan amount in the original input   section.

 

In cell B28, calculate the APR   by multiplying the monthly rate (cell B27) by 12.

 

Create a footer with your name   on the left side, the sheet name code in the center, and the file name code   on the right side of each worksheet.

Comparing between your Current Operating system and Linux

  

Question Comparing between your Current Operating system and Linux
 

Your assignment is to install a version of Linux on your computer. If you have Windows already installed, you may be also able to install Linux in a dual-boot mode. Read the documentation before doing so.
 

You will need to go to the link below to download Fedora Linux and use either ftp or http to download the ISO disks. You may also download a DVD disk ISO image, if desired. Follow the directions at this link. If you already have Linux installed, then see alternate requirements below. (You may use other versions of Linux — only links are provided here for Fedora). Note the latest versions of Fedora have a live DVD which means you can run the operating system from the DVD player. Also other versions of Linux will be fine to download like
 

Ubuntu (http://www.ubuntu.com/).
 

Fedora (sponsored by Redhat) (http://fedora.redhat.com/download/)
 

Getting started with Ubuntu 12.10 from:
 

http://files.ubuntu-manual.org/manuals/getting-started-with-ubuntu/12.10/en_US/screen/Getting%20Started%20with%20Ubuntu%2012.10.pdf
 

Read the manual included at the end of the background information for this module. The following materials may be helpful in setting up your Linux Operating System (note, these are for the version of Linux prior to Fedora but should work in most cases — see the release notes for more up-to-date information).
 

Getting started with Ubuntu 12.10
 

Red Hat Linux x86 Installation Guide
 

Red Hat Linux Getting Started Guide
 

Red Hat Linux Customization Guide
 

Red Hat Linux Reference Guide
 

Red Hat Linux System Administration Primer
 

Red Hat Linux Security Guide
 

Required:
 

Describe your experience and comment on the relative comparisons you see between Windows (or your current operating system) and Linux in a 1- to 2-page paper. If you already are a Linux user, write a 1- to 2-page paper on the hidden cost of Linux and how you believe Linux will evolve in the next year as operating systems. Submit evidence which demonstrates that you have installed Linux on your computer as per the above.
 

SLP Assignment Expectations
Use information from the modular background readings as well as the given resources. Also, you could use any good quality resource you can find. Please cite all sources and provide a reference list at the end of your paper.
 

PAPER LENGTH: 1-2 pages and double-spaced.
 

The following items will be assessed in particular:
 

Your ability to consolidate ideas from reading materials and your understanding of the materials.
A well written report with strong arguments.
Evidence which demonstrates that you have installed Linux on your computer.

Qualitative

 You will review qualitative research.  The topic is up to you as long as you choose a peer-reviewed, academic research piece.  I suggest choosing a topic that is at least in the same family as your expected dissertation topic (cybersecurity) so that you can start viewing what is out there.

 Please use APA formatting and include the following information:

  • Introduction/Background:  Provide context for the research article.  What led the author(s) to write the piece? What key concepts were explored? Were there weaknesses in prior research that led the author to the current hypothesis or research question?
  • Methodology:  Describe how the data was gathered and analyzed.  What research questions or hypotheses were the researcher trying to explore? What statistical analysis was used?
  • Study Findings and Results:  What were the major findings from the study? Were there any limitations?
  • Conclusions:  Evaluate the article in terms of significance, research methods, readability and the implications of the results.  Does the piece lead into further study? Are there different methods you would have chosen based on what you read? What are the strengths and weaknesses of the article in terms of statistical analysis and application? (This is where a large part of the rubric is covered.) 

500 words with references needed.

Risk Review

REMEMBER: The purpose of this assignment is NOT to copy and paste information from the text (this is plagiarism), but rather to clearly convey subject knowledge and use critical thinking in formulating your response. Always use your own words.

MUST BE MORE THAN One-sentence responses.

PROVIDE APA Reference 

ACCESS THE BOOK HERE FOR CHAPTERS 3-4: https://learning-oreilly-com.ezproxy1.apus.edu/library/view/managing-risk-in/9781284055955/11_ch3.xhtmlBe sure to address each question individually and number your response.

Chapter 3-4 Questions.

Each Question is worth 20 points each

Chapter 3

1. Name and Describe two (2) U.S. based compliance laws that exist.

2. Discuss the levels of the CMMI process improvement approach.

Chapter 4

1. What is Scope and why is it important to a Risk Management Project?

2. What is a Cost Benefit Analysis and Why is it important?

3. Name and Describe the three (3) types of project management charts.

Paper

 

Securing IoT Devices: What are the Challenges?

Security practitioners suggest that key IoT security steps include:

1) Make people aware that there is a threat to security;

2) Design a technical solution to reduce security vulnerabilities;

3) Align the legal and regulatory frameworks; and

4) Develop a workforce with the skills to handle IoT security.

Final Assignment – Project Plan (Deliverables):

Address each of the FOUR IoT security steps listed above in terms of IoT devices.

Explain in detail, in a step-by-step guide, how to make people more aware of the problems associated with the use of IoT devices.

R code

 

please refer to the following link for more info

https://rpubs.com/putriangelinaw/econometrics10

Use the following help function to pull the data on r

??gafa_stock
??PBS
??vic_elec
??pelt

I just need the code to run it.

8. Tsibble and mutate practice: Import a year of stock (of your choosing) closing price data (feel free to use gafa_stock within FPP3 or quantmod package. Convert this data to a tsibble. Plot differences and correlogram of the differences and comment on whether the differences resemble white noise (reference FPP3 2.10, #12 for code help dFB <- gafa_stock %>%
filter(Symbol == “FB”, year(Date) >= 2018) %>%
mutate(trading_day = row_number()) %>%
update_tsibble(index = trading_day, regular = TRUE) %>%
mutate(diff = difference(Close))
view(dFB)).

9. Reindexing and plotting practice: Vic_elec dataset

a. Plot daily demand year over year for vic_elec dataset (within FPP3)

b. Is temperature correlated to demand?

c. Is previous day demand correlated with current demand?

For below problems please reference https://r4ds.had.co.nz/dates-and-times.html

10. Datetime components: nycflights13 (

library(nycflights13)

#ensure you have the tables loaded and preview
flights
weather

#check what tables are in the ‘nycflights13’ package
data(package=’nycflights13′))

a. Load the flights table from the nycflights13 package

b. What day of the week has the highest average delay?

11. Time zones: Reindex vic_elec to the US Eastern timezone using the with_tz function

12. Durations and periods

a. Create a duration for your age at the start of our first lecture and print this duration.

b. Calculate your age at the end of the semester (4/27/22 8:50p) using periods