学生表sid,sname,成绩表cid,cname,学生成绩表sid,cid,cscore,要
--1、建表SQL: --学生表: -- Createtable createtable STUDENT ( SID NUMBERnotnull, SNAME NVARCHAR2(40) ) tablespace CABLESCD pctfree10 initrans1 maxtrans255 storage ( initial64 minextents1 maxextentsunlimited ); --成绩表 -- Createtable creat
--1、建表SQL:
--学生表:
-- Createtable
createtable STUDENT
(
SID NUMBERnotnull,
SNAME NVARCHAR2(40)
)
tablespace CABLESCD
pctfree10
initrans1
maxtrans255
storage
(
initial64
minextents1
maxextentsunlimited
);
--成绩表
-- Createtable
createtable SCORE
(
CID NUMBERnotnull,
CNAME NVARCHAR2(40) notnull
)
tablespace CABLESCD
pctfree10
initrans1
maxtrans255
storage
(
initial64
minextents1
maxextentsunlimited
);
--学生成绩表
-- Createtable
createtableSTUDENGSCORE
(
SID NUMBERnotnull,
CID NUMBERnotnull,
CSCORE NUMBER(4,2)
)
tablespace CABLESCD
pctfree10
initrans1
maxtrans255
storage
(
initial64
minextents1
maxextentsunlimited
);
--2、插入SQL语句:
insert into student
(sid, sname)
values
(001,'ZHAOHY');
insert into student
(sid, sname)
values
(002, 'ZHANGQL');
insert into student
(sid, sname)
values
(003, 'ZHAOHB');
insert into score
(cid, cname)
values
(100, '数电');
insert into score
(cid, cname)
values
(200, '模电');
insert into score
(cid, cname)
values
(300, '英语');
insert into score
(cid, cname)
values
(400, '政治');
select * from score
(001, 100, '60');
insert into studengscore
(sid, cid, cscore)
values
(002, 100, '70');
insert into studengscore
(sid, cid, cscore)
values
(003, 100, '80');
insert into studengscore
(sid, cid, cscore)
values
(003, 200, '90');
insert into studengscore
(sid, cid, cscore)
values
(003, 300, '99');
insert into studengscore
(sid, cid, cscore)
values
(003, 400, '98');
select * from studengscore
--3、查询SQL
select * fromstudengscore;
select * from student;
select * from score;
select cnamefrom score where cid =(select cid fromstudengscore wherecscore=(
selectmax(cscore) fromstudengscore where sid=3 ));

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

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

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

Recommended computers suitable for students majoring in geographic information science 1. Recommendation 2. Students majoring in geographic information science need to process large amounts of geographic data and conduct complex geographic information analysis, so they need a computer with strong performance. A computer with high configuration can provide faster processing speed and larger storage space, and can better meet professional needs. 3. It is recommended to choose a computer equipped with a high-performance processor and large-capacity memory, which can improve the efficiency of data processing and analysis. In addition, choosing a computer with larger storage space and a high-resolution display can better display geographic data and results. In addition, considering that students majoring in geographic information science may need to develop and program geographic information system (GIS) software, choose a computer with better graphics processing support.

How to write a simple student attendance management system using Java? With the continuous development of technology, school management systems are also constantly updated and upgraded. The student attendance management system is an important part of it. It can help the school track students' attendance and provide data analysis and reports. This article will introduce how to write a simple student attendance management system using Java. 1. Requirements Analysis Before starting to write, we need to determine the functions and requirements of the system. Basic functions include registration and management of student information, recording of student attendance data and

According to news on June 16, on June 15, the official website and public account of the Guangzhou Municipal People’s Congress posted the “Regulations on the Promotion of Mental Health of Primary and Secondary School Students in Guangzhou (Revised Draft and Draft for Comments)” to solicit opinions and suggestions from all walks of life. Among them, Article 14 of the "Regulations" is titled "Preventing Mobile Phones and Other Intelligent Terminal Products from Entering Campuses" and the specific provisions are as follows: Parents or other guardians of primary and secondary school students should strictly restrict their children's use of mobile phones and other intelligent terminal products. Children of products should regulate the place, time period, duration, frequency, content, functions, permissions and other matters of use, and cooperate with the school to prohibit or restrict students from using mobile phones and other smart terminal products on campus. Schools may prohibit students from bringing mobile phones and other smart terminal products into the school or using them on campus.

How to prevent children from being addicted to mobile games. In order to reduce the risk of children being addicted to mobile games, parents can take measures to limit the time and content of games to prevent children from being overly addicted to certain games or playing games for a long time. This can help children establish good gaming habits and maintain a healthy life balance. The third point is that diverting children’s attention is one of the keys to preventing children from being addicted to mobile phones. In addition to limiting the time spent on mobile games, you can also find things that are more interesting than mobile games to attract your children's attention. For example, often take children on trips to expose them to new things and environments; engage in outdoor sports to exercise and enjoy the beauty of nature; visit various exhibitions to broaden children's horizons; attend various lectures to cultivate their interests and Knowledge. through these activities

As education becomes more popular, more emphasis is placed on ranking and evaluation of test scores. The Java language is one of the most popular programming languages at present, and it is becoming increasingly easier to implement a simple student test score ranking system using Java. The following will introduce how to use Java to implement a simple student test score ranking system. Create a student class First, you need to create a student class to save the information of each student. This class should include the following member variables: student name, student ID, student score. publicclassSt

How to implement a simple student homework marking system in Java? With the development of education, the traditional method of manually correcting students' homework can no longer meet the needs of teaching. In order to improve teaching efficiency and accuracy, many schools and training institutions have begun to adopt automatic homework marking systems. This article will introduce how to use Java language to implement a simple student homework marking system. 1. Requirements analysis Before starting development, we need to conduct a requirements analysis on the functions of the system. A simple student homework marking system should have the following functions: students submit

How to design a simple student enrollment statistics system in Java? In the modern education system, student course selection is an important link. In order to better manage and count students' course selection, it is very necessary to develop a simple and practical statistical system for students' course selection. In this article, we will introduce how to use Java language to design a simple student course enrollment statistics system. The system has the following main functions: 1. Student information management: including basic information of students, such as student number, name, gender, age, etc. 2. Course letter

Teachers can send grades to parents in Class Optimization Master, but how exactly do they send grades? Teachers need to click on the broadcast station, then find the score report, and then click on the icon on the lower right to find Send Notification. This introduction to how to send results to parents can tell you the specific content. Come and take a look. Class Optimization Master usage tutorial: How does Class Optimization Master send scores to parents? Answer: Enter the score report, and then click the icon on the lower right to find Send Notification. Specific method: Mobile version: 1. First click on the radio station icon in the software. 2. Then click on the score report function. 3. Click the pen mark on the lower right, and then click Send notification. Computer: 1. Enter the classroom management interface and click "Score Report". 2. Click to upload results, then
