Syntax to create the database
CREATE DATABASE database_name;
So create a database
CREATE DATABASE Inperson_Fitness;
From the above table you can create two tables
1. client table
2. trainer table
To avoid redundancy we can include either unique key or primary key in both the tables.
To relate two tables we need primary key in one table and foreign key in another table.
Thus we will choose primary key to establish uniqueness in both the tables.
Syntax to create table.
CREATE TABLE table_name (
column_name1 datatype primary
key,
column_name2 datatype,
column_name3 datatype);
Include a new column to the client table as client_id for uniqueness and in the trainer table we will include trainer_id to establish a relationship between two tables.
CREATE TABLE client (
client_id number(10) primary key,
clientname char(25),
address varchar2(15), city char(15), state
char(2), phoneno varchar(15), YTD_paid varchar(5), balance
varchar(5));
Note: The YTD_paid and balance field are declared as varchar since in the table the data includes $ in these fields. If the $ is not there we can change it as number.
CREATE TABLE trainer(
trainer_id number(10) primary
key,
client_id number(10) foreign key references
client(client_id)
trainer_name char(25), hourly_pay
varchar(10));
Note: The hourly_pay is declared as varchar since in the table the data includes $ in these fields. If the $ is not there we can change it as number.
Thus the table has been created with proper firld names and sizes and included the primary key.
%20Capstone%20Project%20using%20Access.pdf t-content-rid-24664575-2/courses/209275/CIS%201 1 509620D Part 2 If your last name begins with the letter A-G: create...
You are the systems manager for Blue City Movies Rentals and you have been asked to create a report on historical sales data. To complete your task you will combine and edit data from multiple sources using Excel’s Power add-ins, XML, and text functions.Instructions:For the purpose of grading the project you are required to perform the following tasks:StepInstructionsPoints Possible1Open e10c2MovieRentals.xlsx and save the workbook with the name e10c2MovieRentals_LastFirst.02Import the movie data from the delimited file e10c2Movies.txt and rename the new worksheet Inventory.Hint: On the Data tab,...
Database Intro Salesmen Sheet Order_info Sheet Business_Info sheet 1.Create your own table design based on the Excel data, and include all relationships (joins). Apply referential integrity rules wherever appropriate. Import the data from Excel to Access to populate tables: 1. Use the Chen technique and illustrate the E-R diagram for the tables you created Note: It may be necessary to change the data composition due to normalization issues, if you change the composition detail how and why; (you may find...
1. Analyze the major challanges USB faced in the last 5 years, in your opinion, what were the crucial factors in the banks downturn? 2. what are the main triggers to change the banks approach to communication and what is different today regarding the dealings and relationship to its share-and stakeholders? 3. How would you evaluate the constant replacement of the banks chairman and CEO? 4. in view of the future strategy of USB, what are your suggestions in order...
1. Analyze the major challanges USB faced in the last 5 years, in your opinion, what were the crucial factors in the banks downturn? 2. what are the main triggers to change the banks approach to communication and what is different today regarding the dealings and relationship to its share-and stakeholders? 3. How would you evaluate the constant replacement of the banks chairman and CEO? 4. in view of the future strategy of USB, what are your suggestions in order...
** Please read the case study below to answer question 1, 2 and 3 Starbuck Community. Connection. Caring. Committed. Coffee. Five Cs that describe the essence of Starbucks Corporation, what it stands for and what it wants to be as a business. With more than 19,000 stores in 62 countries, Starbucks is the world's number one specialty coffee retailer. The company also owns Seattle's Best Coffee, Tsavana. Taze, Starbucks VIA, Starbucks Refreshers, Evolution Fresh, LaBoulange, and Verismo brands. It's a...
CASE 8 Unlocking the Secrets of the Apple iPhone in the Name of access the male San Bernardino suspect's iPhone 5c. Cook stated: Antiterrorism We are challenging the FBI's demands with the deepes respect for American democracy and a love of our country. We believe it would be in the best interest of everyone to step back and consider the implications While we believe the FBI's intentions are good, if would be wrong for the w e nt to force...