Preview

Kudler Fine Foods Database Report

Good Essays
Open Document
Open Document
480 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Kudler Fine Foods Database Report
SQL Accounting Database for Kudler Fine Foods
Mark Black

Introduction
Kudler Fine Foods wants to convert the Chart of Accounts sheet in Excel to an SQL database. In order to do so, it is important to format the excel data in proper SQL tables. Normalization plays an important part in placing data fields in proper tables.
It is also essential to import data from excel to SQL directly to avoid time wastage. The following report shall detail the creation of SQL database, tables and insertion of data in SQL tables.
Data Import
Chart of Accounts
Select * INTO COAExcel FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0', 'Excel 8.0;Database= C:\Users\student\Desktop\KudlerCOA.xls;HDR=YES', 'SELECT Account,Description,[Short Description],F4
…show more content…
Create database Kuddler_AccountData Tables

Tables
USE Kuddler_AccountData

create table Locations(
LocationID INT PRIMARY KEY NOT NULL,
Location_Name varchar(50) NOT NULL,
)
create table AccountTypes(
AccountTypeID INT PRIMARY KEY NOT NULL,
AccountTypeName varchar(50) NOT NULL,
)
create table ChartofAccounts(
Account INT PRIMARY KEY,
AccountTypeID INT FOREIGN KEY (AccountTypeID) REFERENCES AccountTypes (AccountTypeID),
LocationID INT FOREIGN KEY (LocationID) REFERENCES Locations (LocationID))
Balance Decimal(10,2) NOT NULL default 0.0)

create table Transactions(
TransactionID INT identity(1,1) Primary Key,
Account INT FOREIGN KEY (Account) REFERENCES ChartofAccounts (Account),
LocationID INT FOREIGN KEY (LocationID) REFERENCES Locations (LocationID),
TransactionDate DateTime NOT NULL,
Amount Decimal(10,2) NOT NULL)

Data Insertion
INSERT INTO locations(LocationID ,Location_Name)
VALUES
(1,'La Jolla'),
(2,'Del Mar'),
(3,' Encinitas')

INSERT INTO AccountTypes(AccountTypeID ,AccountTypeName)
INSERT into AccountTypes(AccountTypeName) select distinct Description from COAExcel where description is not null

INSERT INTO ChartofAccounts (Account, AccountTypeID, LocationID,
…show more content…
(610001,3,1,0),
(610002,3,2,0),
(610003,3,3,0)

INSERT INTO Transactions(Account, LocationID,TransactionDate,Amount)
VALUES
(520301,1,GetDate(),50),
(520302,2,GetDate(),-498),
(520303,3,GetDate()+1,200),
(600001,1,GetDate()+1,350),
(600003,3,GetDate(),150),
(610002,2,GetDate()-3,129),
(610003,3,GetDate()-2,130),
(520303,2,GetDate()+1,-498),
(520303,3,GetDate()+2,200),
(600001,1,GetDate()+4,350),
(600002,2,GetDate()+6,-320),
(600003,3,GetDate(),150)

UPDATE Balance Field
UPDATE ChartofAccounts set balance = coalesce((select SUM(Amount) from TRANSACTIONS where TRANSACTIONS.account = ChartofAccounts.account ), 0);

SELECT all fields
SELECT *
FROM chartofaccounts ca INNER JOIN accounttypes AT ON ca.AccountTypeID = AT.AccountTypeID INNER JOIN locations l ON ca.locationID = l.locationID

SELECT query for Report

select * from chartofaccounts coa order by left(coa.account, 2) compute sum(coa.balance) by left(coa.account, 2) compute sum(coa.balance);

You May Also Find These Documents Helpful

  • Good Essays

    | The NCR RealPOS is a Multi-user Point of Sale system responsible for the management of Inventory coming and out of all the stores.…

    • 912 Words
    • 4 Pages
    Good Essays
  • Better Essays

    Kudler Fine Foods is an up scaled epicurean gourmet food shop that was founded in 1998 by Kathy Kudler. Kathy Kudler has opened three stores her first store opened in La Jolla in1998, her second store opened in Del mar in 2000, and the third store in Encinitas in 2003.…

    • 1125 Words
    • 5 Pages
    Better Essays
  • Good Essays

    Kudler Fine Foods was established in 1988 with the purpose to providing customers to the finest foods available from all around the world. Kudler Fine Foods has an inventory system that allows it to keep track of all perishable items and tries to keep inventory limits so that there is no waste. This paper will address Kudler’s inventory system, accounting system and pivot tables.…

    • 405 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Part 1 1. Write a script which will Create the needed tables as follows: a. Table name : DEPT i. Column datatype Mandatory? PK? FK?…

    • 1169 Words
    • 5 Pages
    Satisfactory Essays
  • Good Essays

    Kudler Fine Food Internet Site at the home page provide hours, location, and different links to connect to other pages on the web site like: Bakery, Meat & Seafood, Produce, Cheese & Dairy, and Wine. Analyzing Kudler Fine Food from a consumer perspective, Kudler Fine Food Internet Site is very user friendly, easy to navigate through, and there are no broken links on the web page, but the information that is provided on Kudler Internet site is very general. Analyzing and reviewing Kudler Fine Food from a consumer standpoint, there need more information that talks in depth more about their different selections of wine with a price list. Reviewing the Cheese and Dairy section, Kudler need talk more about their product line. Kudler states that they have a complete line of the finest diary, which included Irish butter and organic milk, and offer over 250 varieties of cheese. There need to be a complete list of diary products and a list or more information on the 250 varieties of cheese so consumers can have a general idea of what type of diary and cheese Kudler Fine Food offer if they would like to shop there. Reviewing the Produce section, this section talk in general about 350 fresh fruits, vegetables, herbs and spices, with 16 different varieties of apples, but analyzing this section from a consumer point-of-view, I would like to know more detail about their 16 different type of apples, their 350 fresh fruit, vegetables, herb and spices before I shop there. It just not enough information if Kudler Fine Food is trying to attract customers to there web site or to visit one of their store location. The Meat & Seafood section need to talk more about their meat and seafood that is produce in the store to give the customers more of an idea and a list of all the variety of poultry and local seafood that they offer. Analyzing the Bakery section, the only I can see is that they need to advertise more pictures of…

    • 580 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Kudler Fine is evaluating their current network and creating a logical design document that will show what needs to be done to upgrade or install a new network system to meet the goals set out to achieve. The list of goals presented by Kudler management is as follows:…

    • 2709 Words
    • 11 Pages
    Powerful Essays
  • Satisfactory Essays

    PT2520 Week 3 Forum

    • 190 Words
    • 1 Page

    Normalization is a process for evaluating and correcting table structures to minimize data redundancies and by helping to eliminate data anomalies. It helps evaluate table structures and produce good tables.…

    • 190 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    all comes down to what kinds of information the company is storing in their databases.…

    • 539 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Memo Week 3 Dbm 381

    • 329 Words
    • 2 Pages

    This memorandum is created to explain normalization, its level and why it is sufficient for the system. We are all aware that Microsoft Access database is the best fit for the Taylor Ambulance Company. This database will be efficient in storing, tracking and billing incidents. To reduce redundancy in the system, it is important to apply normalization. Normalization is the processes where data are organize in a database. This process includes creating tables and establishing keys and relationships of data between the tables. Normalization will also make the database more flexible, in which redundancy will be reduced and possibly completely eliminate. This will also reduce inconsistence dependency. It will also be faster to create queries between tables after the data is normalize. A non-normalize database is full of redundant data and it is unorganized.…

    • 329 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Weilmeier, P. (2012, 9 4). In-house vs. Outsourced Product Photography . Retrieved September 1, 2013, from Visualskus: http://visualskus.com/productphotography-in-house-vs-outsourced-product-photography…

    • 2094 Words
    • 9 Pages
    Powerful Essays
  • Satisfactory Essays

    This memo is to inform you that your service request SR-ta-001 has reached my desk and currently is in the process of being completed. The purpose of this memo is to report the progress on the service requests. Currently I am in the stage of normalizing the database to the third normal form. By normalizing the database to the third level of normalization I will ensure that the data is efficiently organized within the database by removing duplicate and redundant data from the database relations. Normalizing the data to the normal third will help free up space and make it easier for the users to retrieve the data by elimination of the same data stored in more than one relation. In addition, normalizing to this level will also ensure data integrity, scalability, and storage efficiency. I have made sure that that there are no repeating columns or rows within the same tables and each column has only one value and one data type therefore the level of 1 normalization has been completed. I then continued to normalize the database to the second level of normalization by ensuring that each nonkey attribute is fully dependent on the key columns of the table. Once level one and two normal form had been completed I continued by establishing primary and foreign keys along with relationships. I will keep in contact with you as the project nears completion.…

    • 329 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Learning Team Pos/410

    • 434 Words
    • 2 Pages

    Test the database by means of a query by account number and a report totaling the balance field. This query needs to display all fields (description, short description, and balance) using the account number as the key to the query. The report will display all fields with a break based on the first two digits of the account number and subtotal of the balance field at each break. A grand total of the balance field will be provided at the end of the report.…

    • 434 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    b) You are to clearly mark Primary and Foreign Keys as shown in the sample below:…

    • 1494 Words
    • 19 Pages
    Powerful Essays
  • Satisfactory Essays

    Analyzing Data Checkpoint

    • 359 Words
    • 2 Pages

    The first step is to determine exactly what analyzes you want to perform and ensure that you gather all that is needed. Keep in mind to import into Access it has to be formatted properly as an excel document. The second step is to create a database. This can be done by opening Access and creating a blank database (file, new, blank database). You will be prompted to name the database and where you would like to save it. Step three is to edit and validate all data. Be sure to have a primary key and that all data is valid. If the data were imported without, identifying a primary key or the data is “dirty” or not valid these issues can be addressed by using the utility queries in Access. The fourth step is to connect data files. When multiple data files have been imported into tables, edited, and validated, you need to connect the tables by creating relationships. Typically, a relationship connects a primary key in one table to a regular field in another table. For example, the Customer Number in the Customers table (a primary key) can be connected to the Customer Number field in the Sales table. You also need to establish a relationship between the matching fields in original tables and their validating tables. In our example, you would establish a relationship between the Customer Type field in the Customers table and the Customer Type field in the Customer Types table. Repeat this step for all validating tables.…

    • 359 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    CTS 2437 Final Exam

    • 630 Words
    • 4 Pages

    2. Select the course reference numbers and enrollments for courses with greater than the average enrollment of courses with more than 20 persons. Use a subquery.…

    • 630 Words
    • 4 Pages
    Satisfactory Essays

Related Topics