Hi everyone, Today i come to ask for some help.
I am Creating a Certain Procedure that will go in the Action_Log_E
and what it will do is Insert Data into another table (NEW TABLE) i created.
Everything Is running successfully and the procedure does write to the other table. Now my question is this.
If i want to create a php script where it releases Top 5 Characters of that New table and also i want it to say the amount of Times that Charname was writen into the table . Lets say the proceduret is INSERT INTO [DATABASE].[dbo].[NEWTable] (Toon,UserID) VALUES (@CharName,@UserID). In a couple of days that table will be filled with names and UserID of new and same Data of characters. Or would it be easier to put another Field (Toon,UserID,Times) where it Sums the times that same char is at that new table but still register another row of it into the new table.
Because what i want to do with it is run another procedure later on that will randomly choose a Toon from that NEWTable,and the people that participate more are still registering more of their name so their chances get greater do to the fact that Its name keeps getting added (i also know how to do that random choosing). SO..... is it EASIER to do it throu the procedure where it has a # of times already in there or.. to tell the php script to look for the # of times the TOP CHARACTERS (it will has to look for the top characters base on TIMES it was writen on NEWTABLE) shows in the table?
I can try to put it in difrent words to whom ever wants to try and answer it but dont understand
I am Creating a Certain Procedure that will go in the Action_Log_E
and what it will do is Insert Data into another table (NEW TABLE) i created.
Everything Is running successfully and the procedure does write to the other table. Now my question is this.
If i want to create a php script where it releases Top 5 Characters of that New table and also i want it to say the amount of Times that Charname was writen into the table . Lets say the proceduret is INSERT INTO [DATABASE].[dbo].[NEWTable] (Toon,UserID) VALUES (@CharName,@UserID). In a couple of days that table will be filled with names and UserID of new and same Data of characters. Or would it be easier to put another Field (Toon,UserID,Times) where it Sums the times that same char is at that new table but still register another row of it into the new table.
Because what i want to do with it is run another procedure later on that will randomly choose a Toon from that NEWTable,and the people that participate more are still registering more of their name so their chances get greater do to the fact that Its name keeps getting added (i also know how to do that random choosing). SO..... is it EASIER to do it throu the procedure where it has a # of times already in there or.. to tell the php script to look for the # of times the TOP CHARACTERS (it will has to look for the top characters base on TIMES it was writen on NEWTABLE) shows in the table?
I can try to put it in difrent words to whom ever wants to try and answer it but dont understand