当前位置:网站首页>Now the operator wants to check the answer details of all user questions from Zhejiang University. Please take out the corresponding data
Now the operator wants to check the answer details of all user questions from Zhejiang University. Please take out the corresponding data
2022-07-25 04:57:00 【Qiu [email protected]】


(1) Use nested queries
select device_id,question_id,result
from question_practice_detail
where device_id =
(
select device_id from user_profile
where university=' Zhejiang University '
)
order by question_id
(2) Use connection query
SELECT
q.device_id,question_id,result
from
question_practice_detail as q,user_profile as u
WHERE
q.device_id = u.device_id and university = ' Zhejiang University 'notes : When using nested queries , There can be many ideas , For example, we can also use in Instead of = Enrichment of implementation statements , The difference between the two , Using related subqueries can speed up the execution of code , It's easy for us to find
版权声明
本文为[Qiu [email protected]]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/201/202207191839227299.html
边栏推荐
- How to get the database creation time?
- GDT,LDT,GDTR,LDTR
- Basic knowledge of scratch crawler framework
- Interviewer: explain the core principle of ThreadLocal
- Apple airpower was forced to cancel its launch two years after it was launched! Uncover the reason!
- GBase JDBC 连接数据库异常
- Construction of Seata multilingual system
- Dry goods | Ctrip Hongmeng application development practice
- 数据湖(十六):Structured Streaming实时写入Iceberg
- 在开发或调试IP直接方案时需要注意Host的值跟直接的IP要一致
猜你喜欢

2、 Mysql database foundation

The 6th "Blue Hat Cup" National College Students' Cyber Security Skills Competition writeup
![[literature notes] pointmlp](/img/8f/654dc6e2f4770b7f12aab49098d3d7.png)
[literature notes] pointmlp

Ora-01460: conversion request cannot be implemented or unreasonable

Data link layer protocol -- Ethernet protocol

Token value replacement of burpsuite blasting

运筹学基础【一】 之 导论

Interviewer: explain the core principle of ThreadLocal

Getting started with scratch

Unity LOD
随机推荐
Thinking of reading
GBase 8a 关于No Suitable Driver 问题
OA and fansoft Bi cross system users, departments and posts synchronous summary
Implementation of recommendation system collaborative filtering in spark
Summary of UPR optimization suggestions of unity
[the most comprehensive and detailed] how to design a database and table splitting scheme that can dynamically expand and shrink capacity?
如何取得数据库创建时间?
Completed project series Tutorials - smart campus management system
China trifluoroethanol industry research and investment forecast report (2022 Edition)
自然的状态最好
Novel capture practice
Natural state is the best
How to merge cells in a table by markdown
数据链路层协议 ——— 以太网协议
Xiaohongshu joins hands with HMS core to enjoy HD vision and grow grass for a better life
推荐系统-协同过滤在Spark中的实现
Androd releases jitpack open source project (gradle7.2)
Pychart configuration pyqt5
今天很重要
Dry goods | Ctrip Hongmeng application development practice