Working with Data Sources 3

Posted 阿难的机器学习计划

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Working with Data Sources 3相关的知识,希望对你有一定的参考价值。

SQL And Database:

1.SQL query is to request the data from the database.

2.We use SELECT command to pick the specific column from the database.

  SELECT rank,major # This command will return a list which contains the data completely follow the order of column it selected. 

  FROM recent_grads;

3.Use WHERE command to select certain rows which satisfy the condition.

  SELECT Major,Employed FROM recent_grads WHERE Employed > 10000 

4.Use LIMIT to specify certain number of results.

5.Use Order by to specify the order for the rows.(desc and asc)  

6.Order by can also specify mutiple columns by orders. 

以上是关于Working with Data Sources 3的主要内容,如果未能解决你的问题,请参考以下文章

Working with Data Sources 8

Working with Data Sources 9

Working with Data Sources 2

Working with Data Sources 4

Working with Data Sources 2

Working With Data Sources 10