Code Monkey home page Code Monkey logo

sql_update's Introduction

Read Me-

The following SQL command helps you categorize a column based on key words
from another column (like a description).

To illustrate the procedure now suppose that we have a table 
which contains a company name and a description of the purpose of the company.

Table B. 
Name           			Description    				Industry
1. CompanyA     	Your food service provider		Null
2. CompanyB			We educate the Youth 			Null
3. CompanyC			Constructing your future		Null


Also suppose that there are only 4 industries in this universe. 

Table A. 
Keyword			Industry
1.University 	Education
2.College 	    Education
3.School	 	Education
4.Building		Construction
5.Construction	Construction
6.Beer			Food
7.Hamburgers	Food

The procedure sets a cursor to go through the description column of table B
and update the Industry Column based on a set of keywords established in table A.

For example, in this scenario, the procedure would update table B to the following
 


Table B. 
Name           			Description    				Industry
1. CompanyA     	Your food service provider		Food
2. CompanyB			We educate the Youth 			Education
3. CompanyC			Constructing your future		Construction


Although this example may seem trivial, this procedure can assist you in categorizing
records that contain description. I used it to categorize public institutions and
to update the geographic location of firms. 

 

sql_update's People

Contributors

milfadic avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.