Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2 . Copy the original data set into another new tab. This tab will be called Custom Columns. In this tab, you will add three

2. Copy the original data set into another new tab. This tab will be called Custom Columns. In this tab, you will add three custom columns to the data set as per the following instructions:
a. Create a column titled contains_bran. For this column, write a formula which determines if the cereal name contains the text bran. If the cereal name does contain bran, return TRUE. If bran is not in the cereal name, return FALSE.
b. Create a second new column titled manufacturer. For this column, return Kelloggs if the value in the mfr column is K. If the value in the mfr" column is G, then return General Mills. For all other cereal manufacturers, return Other.
c. For the third custom column, make a column titled hot/cold. For this column, return a value of hot if the column type has a value of H. If the value in the type column is C, then return a value of cold.2. Copy the original data set into another new tab. This tab will be called Custom Columns. In this tab, you will add three custom columns to the data set as per the following instructions:
a. Create a column titled contains_bran. For this column, write a formula which determines if the cereal name contains the text bran. If the cereal name does contain bran, return TRUE. If bran is not in the cereal name, return FALSE.
b. Create a second new column titled manufacturer. For this column, return Kelloggs if the value in the mfr column is K. If the value in the mfr" column is G, then return General Mills. For all other cereal manufacturers, return Other.
c. For the third custom column, make a column titled hot/cold. For this column, return a value of hot if the column type has a value of H. If the value in the type column is C, then return a value of cold.

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

Step: 3

blur-text-image

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

Rules In Database Systems Third International Workshop Rids 97 Sk Vde Sweden June 26 28 1997 Proceedings Lncs 1312

Authors: Andreas Geppert ,Mikael Berndtsson

1997th Edition

3540635165, 978-3540635161

More Books

Students also viewed these Databases questions