面试题中遇到的SQL题目_MySQL
bitsCN.com
<br>1.假设有一张表示cj表 Name Subject Result张三 语文 80张三 数学 90张三 物理 85李四 语文 85李四 数学 92李四 物理 82要求查询结果:姓名 语文 数学 物理张三 80 90 85李四 85 92 82<br>
1 --创建cj表sql2 CREATE TABLE `cj` (3 `id` int(11) NOT NULL AUTO_INCREMENT,4 `name` varchar(20) DEFAULT NULL,5 `subject` varchar(20) DEFAULT NULL,6 `result` int(11) DEFAULT NULL,7 PRIMARY KEY (`id`)8 ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
1 --插入数据SQL 2 INSERT INTO cj 3 (`id`, `name`, `subject`, `result`) 4 VALUES 5 (1, '张三', '语文', 80); 6 7 INSERT INTO cj 8 (`id`, `name`, `subject`, `result`) 9 VALUES10 (2, '张三', '数学', 90);11 12 INSERT INTO cj13 (`id`, `name`, `subject`, `result`)14 VALUES15 (3, '张三', '物理', 85);16 17 INSERT INTO cj18 (`id`, `name`, `subject`, `result`)19 VALUES20 (4, '李四', '语文', 85);21 22 INSERT INTO cj23 (`id`, `name`, `subject`, `result`)24 VALUES25 (5, '李四', '数学', 92);26 27 INSERT INTO cj28 (`id`, `name`, `subject`, `result`)29 VALUES30 (6, '李四', '物理', 89);
1 --查询SQL2 select 3 distinct a.name 姓名,4 (select result from cj where name = a.name and subject = '语文') 语文,5 (select result from cj where name = a.name and subject = '数学') 数学,6 (select result from cj where name = a.name and subject = '物理') 物理 7 from cj a;
bitsCN.com

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



AI is indeed changing mathematics. Recently, Tao Zhexuan, who has been paying close attention to this issue, forwarded the latest issue of "Bulletin of the American Mathematical Society" (Bulletin of the American Mathematical Society). Focusing on the topic "Will machines change mathematics?", many mathematicians expressed their opinions. The whole process was full of sparks, hardcore and exciting. The author has a strong lineup, including Fields Medal winner Akshay Venkatesh, Chinese mathematician Zheng Lejun, NYU computer scientist Ernest Davis and many other well-known scholars in the industry. The world of AI has changed dramatically. You know, many of these articles were submitted a year ago.

Aheptagonalnumberisanumberwhichcanberepresentedasaheptagon.Aheptagonisapolygonwith7sides.Aheptagonalnumbercanberepresentedasacombinationofsuccessivelayersofheptagon(7-sidedpolygon).Heptagonalnumbercanbebetterexplainedwiththebelowfigures. therefore,

Counting sounds simple, but in practice it is very difficult. Imagine you are transported to a pristine rainforest to conduct a wildlife census. Whenever you see an animal, take a photo. Digital cameras only record the total number of animals tracked, but you are interested in the number of unique animals, but there is no statistics. So what's the best way to access this unique animal population? At this point, you must be saying, start counting now and finally compare each new species from the photo to the list. However, this common counting method is sometimes not suitable for information amounts up to billions of entries. Computer scientists from the Indian Statistical Institute, UNL, and the National University of Singapore have proposed a new algorithm - CVM. It can approximate the calculation of different items in a long list.

Overnight, the machine learning paradigm is about to change! Today, the infrastructure that dominates the field of deep learning is the multilayer perceptron (MLP), which places activation functions on neurons. So, beyond that, are there any new routes we can take? Just today, teams from MIT, Caltech, Northeastern University and other institutions released a new neural network structure-Kolmogorov–Arnold Networks (KAN). The researchers made a simple change to the MLP by moving the learnable activation function from the nodes (neurons) to the edges (weights)! Paper address: https://arxiv.org/pdf/2404.19756 This change seems baseless at first glance

When the HTML page jumps to the PHP page, if the name field cannot be empty, the corresponding form verification function needs to be added to the HTML page. The following is a simple sample code to enable a warning message to pop up when the form is submitted when the user does not fill in the name: HTML page code (index.html): Name field validation example&l

Vision With the development of artificial intelligence technology, AI painting has become a hot topic at the moment. By using deep learning algorithms, artificial intelligence can generate realistic images to create stunning works of art. Behind these amazing works, it is inseparable from the support of mathematical knowledge. Mathematical models play a vital role in AI painting. On the one hand, mathematical models are used to describe and represent image information, allowing computers to understand and process images. On the other hand, mathematical models are also used to train deep learning models to achieve automatic generation of images. Deep learning model brings high-quality image generation. Deep learning model is the core part of AI painting. It identifies and simulates the characteristics of images by learning a large amount of image data, and through multi-level data processing

When users want to play games, they find that their facial information in safe mode does not match. This situation is easy to solve. Just re-identify. Let me show you the detailed solution steps. DNF security mode face identity information mismatch removal step 1. First enter WeChat and click the "magnifying glass" icon in the upper right corner. 2. Then enter "Growth Guardian Platform", click "Search" and find the "Health System" as shown in the figure. , 3. Then select "Real-name Authentication Query", 4. Now re-authenticate the identity, 5. After the verification is completed, click "Next".

In recent times, AI painting has been very popular. While you are marveling at AI’s painting capabilities, what you may not know is that the diffusion model plays a big role in it. Take the popular model OpenAI's DALL·E 2 as an example. Just enter a simple text (prompt) and it can generate multiple 1024*1024 high-definition images. Not long after DALL·E 2 was announced, Google subsequently released Imagen, a text-to-image AI model that can generate realistic images of the scene from a given text description. Just a few days ago, Stability.Ai publicly released the text generation image model Stable Diffusi
