当前位置:网站首页>数据库解答建标,按要求回答
数据库解答建标,按要求回答
2022-06-24 03:51:00 【CSDN问答】
地利生鲜超市系统中表的结构如下:
商品表(商品编号,商品名称,类别,保质期(天),供应商);
销售表(商品编号,时间,客户编号,单价,数量);
1.创建“商品”和“销售”这两个基本表,根据实际情况,设计各字段数据类型,结构中下划线标识的是主键,波浪线标识的是外键,并且要求商品表中“商品名称”取值唯一,“供应商”不能为空,“保质期”默认值为“30”;销售表中“单价”在0到50000之间。
2.将商品编号为“056B5”的商品保质期增加10
天;
3.查询销售表中出现的不同商品的数目;
4.查询商品名称中包含“脆脆鲨”或者倒数第二个字为“鲨”字的商品的编号、商品名称和供应商。
5.查询类别为“文具”并且单价在16元以上的商品编号、商品名称和单价,要求按单价降序排列。
6.创建视图view_sale,要求显示已销售的每种商品的商品编号、平均单价及总数量。
边栏推荐
- The practice of tidb slow log in accompanying fish
- web渗透测试----5、暴力破解漏洞--(6)VNC密码破解
- Clickhouse thread occupation troubleshooting and killing
- Backup method of mysqldump
- openGauss 3.0版本源码编译安装指南
- Doctor application | Hong Kong University of science and Technology (Guangzhou) Mr. Liu Hao recruits the full award doctor / Master in data mining
- Tsingsee Qingxi video easycvr integrated Dahua face recognition equipment
- Gpt/gpt2/dialogpt detailed explanation comparison and application - text generation and dialogue
- Can the video streams of devices connected to easygbs from the intranet and the public network go through their respective networks?
- Making a Chatbot based on gpt2
猜你喜欢

openEuler社区理事长江大勇:共推欧拉开源新模式 共建开源新体系

Doctor application | Hong Kong University of science and Technology (Guangzhou) Mr. Liu Hao recruits the full award doctor / Master in data mining

Abnova荧光原位杂交(FISH)探针解决方案

Black hat SEO actual combat directory wheel chain generates millions of pages in batch

应用实践 | Apache Doris 整合 Iceberg + Flink CDC 构建实时湖仓一体的联邦查询分析架构

多任务视频推荐方案,百度工程师实战经验分享

Brief ideas and simple cases of JVM tuning - how to tune

编译器是如何将芯片执行的第一个指令放到芯片起始地址的?

多任务视频推荐方案,百度工程师实战经验分享

Opengauss version 3.0 source code compilation and installation guide
随机推荐
Multi task video recommendation scheme, baidu engineers' actual combat experience sharing
The official overclocking tool of Intel XTU supports win11 22h2 and 13th generation core Raptor Lake processors
Abnova膜蛋白脂蛋白体解决方案
The use of char[0] and char[1] in C language structure
Black hat SEO actual combat directory wheel chain generates millions of pages in batch
祝贺钟君成为 CHAOSS Metric Model 工作组的 Maintainer
Two most practical methods for cadence OrCAD capture to batch modify network names graphic tutorial and video demonstration
15+ urban road element segmentation application, this segmentation model is enough
How to spell the iframe address of the video channel in easycvr?
Advanced authentication of uni app [Day12]
Received status code 502 from server: Bad Gateway
Demonstration of the processing of divisor 0 in SQL
Gpt/gpt2/dialogpt detailed explanation comparison and application - text generation and dialogue
How to do the right thing in digital marketing of consumer goods enterprises?
C language in DSP (2) -- definition of structure
Wide & deep model and optimizer understand code practice
Application practice | Apache Doris integrates iceberg + Flink CDC to build a real-time federated query and analysis architecture integrating lake and warehouse
[Mid Autumn Festival greeting new year with good gifts] Tengyun pioneer feedback exchange group received new benefits!
How to monitor multiple platforms simultaneously when easydss/easygbs platform runs real-time monitoring?
Making a Chatbot based on gpt2