About 697,000 results
Open links in new tab
  1. SQL Query for Student mark functionality - Stack Overflow

    May 13, 2012 · create the tables. create table Students (student_id int, Name varchar(255), details varchar(255)); create table Subject( Sub_id int, name varchar(255)); create table marks (student_id int, subject_id int, mark int); the answer should be a table with the below fields. student_name | subject_name | mark. plan the execution steps. Create a CTE

  2. School Management System Database - GitHub

    student_id (Foreign Key): References the student_id in the STUDENTS table. classroom_id (Foreign Key): References the classroom_id in the CLASSROOMS table. enrollment_date: Date when the student was enrolled. classroom_id (Primary Key): Unique identifier for each classroom. grade: Grade or level associated with the classroom.

  3. Oracle SQL insert query - into parent and child tables

    Oct 19, 2013 · One of the best approach to do this is by using stored procedure. The below procedure will do everything for you. i_fname IN VARCHAR2, i_lname IN VARCHAR2, i_unitid IN VARCHAR2) l_studentid student.studentid%TYPE; INSERT INTO student(studentid, fname, lname) VALUES(seqstudid.NEXTVAL, i_fname, i_lname) RETURNING studentid INTO …

  4. 1) Create A Student Table With Student - Id, Name and Marks As …

    The document demonstrates various SQL queries: 1) It creates a student table with attributes like student ID, name, gender, section, stream, and marks. 2) It inserts details of 11 students into the student table.

  5. SQL Query to Find all the Students with Marks Greater ... - GeeksforGeeks

    Apr 19, 2021 · Query in SQL is like a statement that performs a task. Here, we need to write a query to find all the students whose marks are greater than the average marks of students. We will first create a database named “ geeks ” then we will create a table “ Students ” in that database. We can create a Database using the command:

  6. Oracle Sample Database - Students Database - Srikanth …

    I have created a sample database for courses, batches, students and payment. I am providing .PDF file, which contains the following. Details regarding tables; CREATE TABLE commands to create tables along with constraints ; INSERT commands to insert sample data into tables ; Simple queries; Queries related to grouping; Queries related to joining

  7. PL/SQL CREATE TABLE Statement - GeeksforGeeks

    Oct 18, 2024 · In this article, we will explore the syntax and examples of using the CREATE TABLE statement to create and manage tables in a PL/SQL environment. The PL/SQL CREATE TABLE statement is essential for database design. It allows us to define the layout of new tables, including columns, data types, and constraints.

  8. oracle database - Write the SQL query to find students who are enrolled ...

    Apr 4, 2018 · First get the query right for two tables. Student1 and Student2. Then join in course. Then filter with where. Do it in little steps and confirm each step before proceeding.

  9. DBMS Student table - DEV Community

    Oct 25, 2021 · Illustrate an example to create a table student, student table will content the following attributes, stdid, stdname, dob, doj, fee, gender etc. Write the following queries: Describe the structure of the table. Insert few records into student table. Add column to the student table (that is phone_no). Modify the column name of phone_no to ...

  10. How to select max (marks) from student table? - Oracle Forums

    Jan 6, 2014 · How to select max (marks) from student table? select max (marks) from. (select stno,avg (marks) from student group by stno) group by stno; Sorry Purvesh, Now I realize my mistake. a.stno,greatest (a.marks,b.marks) (select stno, avg (marks) marks from student group by stno) a, a.stno=b.stno. select 1 stno, 50 marks from dual union all.

Refresh