当前位置:网站首页>Database answers build standard, answer as required
Database answers build standard, answer as required
2022-06-24 04:24:00 【CSDN Q & A】
The table structure in the deli fresh food supermarket system is as follows :
Commodity list ( Product id , Name of commodity , Category , quality guarantee period ( God ), supplier );
Sales list ( Product id , Time , Customer number , The unit price , Number );
1. establish “ goods ” and “ sales ” These two basic tables , According to the actual situation , Design the data type of each field , The underscore in the structure identifies the primary key , Wavy lines identify foreign keys , And it is required that the product list “ Name of commodity ” The value is unique ,“ supplier ” Can't be empty ,“ quality guarantee period ” The default value is “30”; In the sales table “ The unit price ” stay 0 To 50000 Between .
2. Number the item as “056B5” The shelf life of the product is increased 10
God ;
3. Query the number of different items in the sales table ;
4. The query product name contains “ Crunchy Wafer ” Or the penultimate word is “ shark ” The commodity number of the word 、 Trade name and supplier .
5. Query category is “ Stationery ” And the unit price is 16 Commodity no. of more than RMB 、 Commodity name and unit price , It is required to arrange in descending order of unit price .
6. Create view view_sale, It is required to display the item number of each item sold 、 Average unit price and total quantity .
边栏推荐
- C language linked list points to the next structure pointer, structure and its many small details
- Easyanticheat uses to inject unsigned code into a protected process (1)
- 脚本之美│VBS 入门交互实战
- IDC, Youshang cloud data on cloud (COS) best practices
- What is FTP? How does the ECS open the FTP protocol?
- In the post epidemic era, "cloud live broadcast" saves "cloud cultural tourism"?
- Multi task video recommendation scheme, baidu engineers' actual combat experience sharing
- Analysis of grafana SSO authentication process based on keyloak
- Diskpart San policy is not onlineall, which affects automatic disk hanging
- Kubernetes 资源拓扑感知调度优化
猜你喜欢

Kubernetes 资源拓扑感知调度优化

微博国际版更名为微博轻享版

Clang代码覆盖率检测(插桩技术)

15+ urban road element segmentation application, this segmentation model is enough
![Web technology sharing | [map] to realize customized track playback](/img/b2/25677ca08d1fb83290dd825a242f06.png)
Web technology sharing | [map] to realize customized track playback

ServiceStack. Source code analysis of redis (connection and connection pool)

The results of the 2022 open source summer were announced, and 449 college students will contribute to open source projects

什么是数据中台
2020年Android面试题汇总(中级)

Kubernetes resource topology aware scheduling optimization
随机推荐
Huawei cloud gaussdb (for redis) unveiling issue 19: gaussdb (for redis) comprehensive comparison with CODIS
How to select a telemedicine program system? These four points are the key!
API real-time signature scheme based on Yapi
Lldb common commands
I have an agreement with IOT
Multi task video recommendation scheme, baidu engineers' actual combat experience sharing
What is a 1U server? What industries can 1U servers be used in?
Structure size calculation of C language struct
Opengauss version 3.0 source code compilation and installation guide
Advanced authentication of uni app [Day12]
C language linked list points to the next structure pointer, structure and its many small details
What is the difference between arm architecture, ARM7, ARM9, STM32, cortex m3 M4, 51 and AVR
openGauss 3.0版本源码编译安装指南
近两周ACM之DP总结
[Mid Autumn Festival greeting new year with good gifts] Tengyun pioneer feedback exchange group received new benefits!
Through the fog: location notes of Flink crash with a multi component timeout
2020年Android面试题汇总(初级)
Web penetration test - 5. Brute force cracking vulnerability - (9) MS-SQL password cracking
Unable to access the CVM self built container outside the TKE cluster pod
Several good books for learning data