当前位置:网站首页>[Sql brush topic] Query information data--Day1
[Sql brush topic] Query information data--Day1
2022-08-04 19:04:00 【stair jumping penguin】
目录
Inquire about the students of the specified school
Find students of a specified age
Query students of a specified age group
Search for students at a given university
前言
数据库技术是通过研究数据库的结构、存储、设计、管理以及应用的基本理论和实现方法,并利用这些理论来实现对数据库中的数据进行处理、分析和理解的技术.即:数据库技术是研究、管理和应用数据库的一门软件科学.其中mysqlIt is a very hot database.
Query information data
Inquire about the students of the specified school
思路:We already know the information about the database,可以看到是存在5confidence,And there is little repetition of the same information.Then we can think,If we can try to specify the table name,Then specify the table name学校信息查询,然后输入指定的id这样就可以了,Then let's experiment.
题目描述:
代码:
SELECT device_id,university
FROM user_profile
WHERE university="北京大学"
结果
Find students of a specified age
思路:We already know the information about the database,可以看到是存在5confidence,And there is little repetition of the same information.Then we can think,If we can try to specify the table name,Then specify the table name年龄信息查询,然后输入指定的id这样就可以了,Then let's experiment.
题目描述:
代码:
SELECT device_id,gender,age,university
FROM user_profile
WHERE age>24;
结果:
Query students of a specified age group
思路:We already know the information about the database,可以看到是存在5confidence,And there is little repetition of the same information.Then we can think,If we can try to specify the table name,Then specify the table name年龄范围查询,然后输入指定的id这样就可以了,Then let's experiment.
题目描述:
代码:
SELECT device_id,gender,age from user_profile where age between 20 and 23
结果:
Search for students at a given university
思路:We already know the information about the database,可以看到是存在5confidence,And there is little repetition of the same information.Then we can think,If we can try to specify the table name,Then specify the table nameRemove school enquiries,然后输入指定的id这样就可以了,Then let's experiment.
题目描述:
代码:
select device_id,gender,age,university
from user_profile
where university != '复旦大学'
结果:
小结
Brushing questions is very helpful for us to familiarize ourselves with and consolidate the content of knowledge points.
点击右边链接 刷题链接
边栏推荐
猜你喜欢
机器学习之支持向量机实例,线性核函数 多项式核函数 RBF高斯核函数 sigmoid核函数
在线生成接口文档
【HCIP】MPLS WPN 实验
Google AppSheet: 无需编程构建零代码应用
一些性能测试的要点
Win10只读文件夹怎么删除
【STM32】入门(五):串口TTL、RS232、RS485
Homework 8.3 Thread Synchronization Mutex Condition Variables
CAN光纤转换器CAN光端机解决消防火灾报警
The CPU suddenly soars and the system responds slowly, what is the cause?Is there any way to check?
随机推荐
server
MySQL安装教程(详细)
win10 uwp win2d 使用 Path 绘制界面
How can test engineers break through career bottlenecks?
我的四周年创作纪念日
目标检测的发展与现状
ECCV 2022 | FPN错位对齐,实现高效半监督目标检测(PseCo)
win10 uwp 使用 Geometry resources 在 xaml
gbase8s创建RANGE分片表
C#爬虫之通过Selenium获取浏览器请求响应结果
什么是内部客户服务?
HCIA-R&S自用笔记(22)STP状态与计时器、STP拓扑变化、STP配置及实验
什么是网站监控,网站监控软件有什么用?
c语言进阶篇:自定义类型--结构体
存储资源盘活系统助力新基建
当前最快的实例分割模型:YOLACT 和 YOLACT++
Dragoma(DMA)元宇宙系统开发
EuROC 数据集格式及相关代码
从零开始实现一个简单的CycleGAN项目
如何给MySQL添加自定义语法 ?