Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Taxation Expert

Create Tables using SQL DDL

The following questions are based on the Bicycle Rental ERD as shown below:

167_Write and execute SQL definition commands.png

Tasks:

  1. Write the SQL DDL to create the database that contains each of the relations shown in the above ERD. You will need to provide:
    1. Your DDL code for each table that you create; (20 marks)
    2. A screenshot showing each table that is created. (10 marks)
  2. Write and execute SQL definition commands for each of the following queries:
    1. Add the attributes Email, Comments and Send Newsletter to the Renters table. Give those attributes an appropriate size and data type (3 marks).
    2. Change the attribute Renters.renterDOB from type Varchar(15) to type DATE. (2 marks)
  3. Write and execute SQL commands for the following:
    1. Add the following customers  to the Renters table. (3 marks)
    2. Write a command that will remove the Jones that lives in Orange from the Renters table (2 marks)

id_r

r_lname

rent_fname

r_address

r_town

r_state

r_pcode

r_phone

r_dob 

12345

Jones

George

123 Bentinck St

Bathurst

NSW

2795

0212345678

01/05/1964

23456

Jones

Pauline

48 Summer St

Orange

NSW

2800

0223456789

11/09/1986

28765

Wilson

Paul

23 Long St

Blayney

NSW

2799

0298745621

22/12/1977

You are required to submit:

  1. The appropriate SQL command which should be copied from your source code in MySQL and pasted into your submission file; and
  2. The resultant tables, which must be screenshots to show the change due to the execution of the SQL commands.

Typing or manually drawing the results will NOT be accepted.

Taxation, Accounting

  • Category:- Taxation
  • Reference No.:- M91037965
  • Price:- $40

Priced at Now at $40, Verified Solution

Have any Question?


Related Questions in Taxation

Taxation theory practice amp law assignment -question 1 -

Taxation Theory, Practice & Law Assignment - Question 1 - You are working as a tax consultant in Mayfield, NSW. Your client is an investor and antique collector. You have ascertained that she is not carrying on a busines ...

1-several years ago courtney borrowed 100000 of recourse

1-Several years ago, Courtney borrowed $100,000 of recourse debt from the Friendly Local Bank and used it to buy some equipment to start up a business. Courtney's business results have been disappointing and she has not ...

Question - corporate taxation please respond to the

Question - "Corporate Taxation" Please respond to the following: Analyze the significant rules concerning the manner in which corporations treat the dividends that they are paying. Based on your analysis, recommend at le ...

Business taxation assignment -assignment question - carson

BUSINESS TAXATION ASSIGNMENT - ASSIGNMENT QUESTION - Carson Pty Ltd ("Carson"), an Australian resident company for tax purposes, carries on numerous business activities. In the first half of 2014, Carson has thoughts of ...

Question 1for each of the following scenarios prepare dated

Question 1 For each of the following scenarios, prepare dated journal entries on the acquiring company's books for the investment from acquisition to disposal. Ignore income taxes. a) On March 1, 20X7, Rondeau Ltd., a pr ...

Introducation to australian tax laws questions -question 1

INTRODUCATION TO AUSTRALIAN TAX LAWS QUESTIONS - Question 1 - Holly Gordon has retired and derives her income from a series of investments and a part time job at the local cafe. Her income and expenses for the year inclu ...

Question - in june 2016 tom had signed an agreement in

Question - In June 2016 Tom had signed an agreement in Sydney with XYZ Ltd to act as the company's plantation manager in Brunei until June 2018. At the time of signing the agreement, Tom was advised that it was possible ...

Tax policy is defined as which taxes the government chooses

Tax policy is defined as which taxes the government chooses to levy, in what amounts and on whom. Elements of this decision are based on both the amount needed to pay for expenditures as well as the effect taxes can have ...

Tax law question - mary was born and raised in central new

TAX LAW QUESTION - Mary was born and raised in central New South Wales. She moved to Sydney to attend University in 2010, and graduated with a Bachelor of Commerce from the University of Sydney in December 2013. In 2009, ...

Question - amber owned and operated a boutique chocolate

Question - Amber owned and operated a boutique chocolate shop in Sydney that she purchased for $240,000 in August 2010. The purchase price consisted of equipment and stock worth $110,000 and the balance being goodwill. F ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As