mysql - SQL: How do I sort on an alias calculated column ADD add a count? -
I'm new to SQL and it's difficult to get information from my database, maybe some can provide guidance . Students
Columns :: I
Table
name, notes, test_1_score, test_2_score, test_3_score, test_4_score, test_5_score, test_6_score, test_7_score, test_8_score , Test_9_score, test_10_score can I get down code to run without points in Group / pseudo am but I must do this without Moreover, I could not get to count work IsNull added
Name, Note, yoga (IsNull (test_1_score, 0) + IsNull (test_2_score, 0) + IsNull (test_3_score, 0) + IsNull (test_4_score, 0) + IsNull (test_5_score to, 0) + IsNull (test_6_score, 0) + IsNull (test_7_score, 0) + IsNull (test_8_score, 0) + IsNull (test_9_score, 0) + IsNull (test_10_score, 0)) as points points Gropi points points, Points, notes; Eventually, I want a simple answer to show this: name numerology (# counting of trials has been completed) ?? | A | ?? | Nnotes
Try it out:
select name, notes, yoga (IsNull (test_1_score, 0) + IsNull (test_2_score, 0) + IsNull (test_3_score, 0) + IsNull (test_4_score, 0) + IsNull (test_5_score, 0) + IsNull (test_6_score, 0) + IsNull (test_7_score, 0) + IsNull (test_8_score, 0) + IsNull (test_9_score, 0) + IsNull (test_10_score, 0)) as the points_achieved, named students order notes points_acheived, 3 group;
Comments
Post a Comment