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

Partnership taxable incomepartner d is a 10 percent general

Partnership Taxable Income Partner D is a 10 percent general partner in ABCD Partnership. The partnership's financial records for the current tax year reveal the following: Gross receipts from sales . . . . . . . . . . . ...

Question 1you are working as a tax consultant in mayfield

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 business. Your client provides the following informati ...

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 ...

Questionan entity which is gst registered or which needs to

Question An entity which is GST registered (or which needs to be registered) needs to charge GST on its taxable supplies (s.9.70, A New Tax System (Goods and Services Tax) Act 1999 ("GSTA")). While some transactions may ...

Understanding tax returns assessment - prepare tax returns

Understanding Tax Returns Assessment - Prepare tax returns for individuals To complete these activities you are required to: a) Conduct independent research and analysis of relevant Tax Law. b) Access the most up to date ...

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 ...

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 ...

Question 1the lotteries commission conducts an instant

Question 1 The Lotteries Commission conducts an instant lottery called 'Set for Life' under which a winner who scratches three 'set for life' panels wins $50,000 each year for 20 years. The first $50,000 is payable as so ...

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 ...

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 ...

  • 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