全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SQL及关系型数据库数据分析
1991 2
2010-09-11
Pls see the example below:
Let's start with a table called "Pets"

Job:
1. Create a new table (call it NewPets)
2. One column equals Max(Food), whereas Food was a column in Pets that registered how much (say, grams) each meal contains
3. Add one column (FoodStats) in NewPets whereas:
if Max(Food)<1, FoodStats="NIL"
if 1=<Max(Food)<=10, FoodStats="LITTLE"
if 11<=Max(Food) <=50, FoodStats="SOME"
and so on....

What should the SQL like?  I know part of the code (step 1) but have trouble with the rest.

Thanks a lot!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2017-7-9 00:00:35
我學了那麽久,還是不瞭解這門學科。
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2017-11-6 08:26:51
what do you mean?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群