博客
关于我
Excel 2010 SQL应用055 SQL中使用三角函数
阅读量:181 次
发布时间:2019-02-28

本文共 1547 字,大约阅读时间需要 5 分钟。

??????????????????

????

????????????????????????????????SQL?????????


????

????

?????????????????

?? ???? ???
1 115 60
2 40 60
3 65 64
4 25 56
5 65 71
6 50 83
7 45 50
8 115 50
9 75 84
10 65 40
11 25 73
12 90 36
13 60 38
14 90 72
15 20 58
16 45 42
17 70 63
18 55 38
19 20 62
20 80 79
21 50 85
22 105 34
23 45 38
24 110 57
25 75 85
26 85 31
27 40 55
28 95 44
29 65 74

SQL????

??????

  • ?????

    • ??????????????
    • ?????????????
  • ???????????????????????????????????????????????????[???? = \frac{????}{\cos(\frac{\text{???} \times 3.1416}{180})}]???(\cos) ??????

  • SQL?????SQL?????????????????????????SQL?????

    SELECT ??, ????, ???,        ROUND(???? / COS(??? * 3.1416 / 180), 2) AS ???FROM [sheet1$]
    • COS ??????????
    • ROUND ?????????????????????
    • [sheet1$] ????? sheet1 ??????
  • ?????

    • ??? ????????????? (\pi/180)??
    • ????????????????

  • ??????

    ???SQL???????????????

    ?? ???? ?? ??
    1 ATN(number) ???????????? 4 * ATN(1) ?? ??
    2 SIN(number) ??????????? SIN(30 * 3.1416 / 180) ?? 0.5?
    3 COS(number) ??????????? COS(60 * 3.1416 / 180) ?? 0.5?
    4 TAN(number) ??????????? TAN(45 * 3.1416 / 180) ?? 1?

    ????

  • ????

    • ????? 115????? 60 ??
    • ???????[???? = \frac{115}{\cos(60 \times 3.1416 / 180)} = \frac{115}{0.5} = 230]
    • SQL ?????[SELECT ??, ????, ???, ROUND(115 / COS(60 * 3.1416 / 180), 2) AS ???]??????230.00?
  • ????

    • ????? 65????? 64 ??
    • ???????[???? = \frac{65}{\cos(64 \times 3.1416 / 180)} \approx \frac{65}{0.4384} \approx 148.31]
    • SQL ?????[SELECT ??, ????, ???, ROUND(65 / COS(64 * 3.1416 / 180), 2) AS ???]??????148.31?

  • ??

    ?????????????????????????SQL ?????????????????????????????????

    转载地址:http://eggn.baihongyu.com/

    你可能感兴趣的文章
    mysql 1264_关于mysql 出现 1264 Out of range value for column 错误的解决办法
    查看>>
    mysql 1593_Linux高可用(HA)之MySQL主从复制中出现1593错误码的低级错误
    查看>>
    mysql 5.6 修改端口_mysql5.6.24怎么修改端口号
    查看>>
    MySQL 8.0 恢复孤立文件每表ibd文件
    查看>>
    MySQL 8.0开始Group by不再排序
    查看>>
    mysql ansi nulls_SET ANSI_NULLS ON SET QUOTED_IDENTIFIER ON 什么意思
    查看>>
    multi swiper bug solution
    查看>>
    MySQL Binlog 日志监听与 Spring 集成实战
    查看>>
    MySQL binlog三种模式
    查看>>
    multi-angle cosine and sines
    查看>>
    Mysql Can't connect to MySQL server
    查看>>
    mysql case when 乱码_Mysql CASE WHEN 用法
    查看>>
    Multicast1
    查看>>
    MySQL Cluster 7.0.36 发布
    查看>>
    Multimodal Unsupervised Image-to-Image Translation多通道无监督图像翻译
    查看>>
    MySQL Cluster与MGR集群实战
    查看>>
    multipart/form-data与application/octet-stream的区别、application/x-www-form-urlencoded
    查看>>
    mysql cmake 报错,MySQL云服务器应用及cmake报错解决办法
    查看>>
    Multiple websites on single instance of IIS
    查看>>
    mysql CONCAT()函数拼接有NULL
    查看>>