About 3,690,000 results
Open links in new tab
  1. MYSQL add column of mark by numeric grades - Stack Overflow

    select *, case when grade >= 90 then "A" when grade >= 80 then "B" when grade >= 70 then "C" else "D" end as Mark from grades

  2. sql - MySQL Sum () multiple columns - Stack Overflow

    Dec 19, 2022 · SELECT CONCAT('SELECT ', group_concat(`COLUMN_NAME` SEPARATOR '+'), ' FROM scorecard') FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE …

  3. SQL Query for Student mark functionality - Stack Overflow

    May 13, 2012 · ;WITH MaxMarks AS ( SELECT SubjectId, MAX(Mark) as MaxMark FROM Marks GROUP BY SubjectId ) SELECT s.Name as [StudentName], sub.Name AS …

  4. Sum sql for data in multiple columns and across rows with Total ...

    We have seen how the sum function is used to get the total value of a column in a MySQL table. Now we will learn how to get the query for sum in multiple columns and for each record of a …

  5. Group Marks of a Student and Display Total in Column

    Dec 30, 2019 · Learn how to group the marks of a specific student from a table and display the total marks in a separate column for each student effectively.

  6. Display Student Marks in a Single Column Based on Subject in …

    Learn how to display student marks in a single column based on subject using MySQL with this comprehensive guide.

  7. SQL INSERT INTO Statement - W3Schools

    It is possible to write the INSERT INTO statement in two ways: 1. Specify both the column names and the values to be inserted: INSERT INTO table_name (column1, column2, column3, ...) …

  8. SQL Server PIVOT - GeeksforGeeks

    Jan 18, 2024 · In this example we will learn How we can create a simple PIVOT table that will convert the row wise data into column wise data using the PIVOT operator. Query: SELECT. …

  9. How to Find Average Marks of Each Student in SQL?

    Nov 28, 2021 · In SQL, sometimes we need to find the average value of a column based on another column of the table such as finding the subject-wise average marks scored by the …

  10. sql - Add a summary row with totals - Stack Overflow

    May 26, 2017 · If you want to display more column values without an aggregation function use GROUPING SETS instead of ROLLUP: SELECT Type = ISNULL(Type, 'Total'), …

  11. Some results have been removed
Refresh