Report not found

There was a problem finding this report.
COGS 127 - Searching Strings and Casting into Numbers
December 10, 2015 · Refreshed over 3 years ago

Collaborators

Run History
/* This query searches for a string inside a field (mealtype), and will return 1 or 0 if the string contains that search or not (respectively). */ select cast(position('Dinner' in mealtype)>0 as int) as dinner, cast(position('Lunch' in mealtype)>0 as int) as lunch, cast(position('Breakfast' in mealtype)>0 as int) as breakfast, morningenergy from orionwill.fakedata LIMIT 100
/* This query searches for a string inside a field (mealtype), and will return 1 or 0 if the string contains that search or not (respectively). */ select cast(position('Dinner' in mealtype)>0 as int) as dinner, cast(position('Lunch' in mealtype)>0 as int) as lunch, cast(position('Breakfast' in mealtype)>0 as int) as breakfast, morningenergy from orionwill.fakedata
<div class="mode-header embed-hidden"> <h1>{{ title }}</h1> <p>{{ description }}</p> </div> <div class="container mode-grid"> <div class="row"> <div class="col-md-12"> <mode-table id="table_b506b4a9dd21" dataset="dataset" options="table_options"></mode-table> </div> </div> </div>
{{ dataSourceName(params.queryId) }}

The dataset is too large to view in browser

Export

Looks like something went wrong with your query.

{{ DS.queryRuns[params.queryId].errorMessage }}
This query was cancelled