Skip to content

Tag: mysql

Creating dynamic table in JSP

I’m trying to do electronic grade book in Java. I want to insert values of Marks and Description into rows But when I try to add Description to row, it looks like this: Is there any way I can also add description to the 3rd row? I tried many solutions and any of the solution I tried didn’t work. A…

Add Column in a table [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about programming within the scope defined in the help center. Closed last year. Improve this question Am trying to add a column in the table salesperson. And it is showing…

How to show multiple tables list in MySql

How to show multiple table list in mysql I have a query that has two tables one for patients and the second one for patients who has tested for covid-19 I want to show all the patients either they tested or not If tested then show the result with his/her name It only showing the patients who has tested for

SQL left join is not including all records from left table

I have a requirement to get monthly total hours worked on different tasks for each employee. For that purpose I am writing a stored procedure. But left join is not populating all record from employee table. I know somehow the where condition is filtering out the null values but I really don’t know how t…

how to get multiple columns from subquery inseide sql statement mysql

actually, I found many solutions for my issue but I didn’t understand how to apply to my issue! my issue is I have the following SQL statement: what I need is to replace the following part in one part: to get the all columns in one subquery with the same conditions? Answer I don’t know your data s…

Finding Cumulative progress with SQL

I have a SQL table as below : I need to calculate the cumulative progress. for example S1000 have three f1 score. the progress calculation formula is (95 – 87) + (87 – 80) for S2000 the calculation would be (75 -17) + (17 -57) How to achieve this using SQL Answer It looks like your progress score …