skip to Main Content

Pattern constraint in mySql

I want to create a table for student with the attributes enroll_id and std_name. The enroll_id is Primary Key of the table and the format of enroll_id is year+brach code (CS,EC,MC,CV)+college code (001 to 300)+ entry type(D for lateral entry…

VIEW QUESTION

Laravel – groupby sum and count tickets

I am learning to use groupBy. In my exercise, I must count the number of tickets that were sold and add the total money collected. $tickets = Ingresostaquilla::groupBy('tipo') ->selectRaw('count(*) as quantity, tipo') ->get(); I did the count by type of…

VIEW QUESTION
Back To Top
Search