Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Imagine that you have been hired to work as a database designer in an electricity company. Your manager asks you to design a database

1. Imagine that you have been hired to work as a database designer in an electricity company. Your manager asks you to design a database for the billing system. Billing system is responsible to store data for following entities: Branches, Customers, Billing transactions.

Define tables related to the entities above-mentioned and the attributes for each table? Create those tables with primary keys using Create SQL Statements? (10 points)

b. Insert 5 records in each table with Insert Statements? (5 points)

2. Explain, why could the following statements lead to problem: (25 points)

a. Select Student_name from Student A Where Stud_id=5 Where Age=20;

b. Select All from Student;

c. Select *, [student name] where Stud_id=1

d. Select * from Student order by stud_id where student_name=Frank;

e. Select from Student order by stud_id where student_name=Frank;

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro Database Migration To Azure Data Modernization For The Enterprise

Authors: Kevin Kline, Denis McDowell, Dustin Dorsey, Matt Gordon

1st Edition

1484282299, 978-1484282298

More Books

Students also viewed these Databases questions