Professional Documents
Culture Documents
Ashish 2
Ashish 2
Ashish 2
64 sec)
s use cse
Databese changed
ble student_ashish (
s id int(6),
Tnae varcnar28)
arcnare
uEy rows atrected, 2 warnings (3.33 sec)
my sql> insert into student_ashish values (1,"Ashish", "Patna",8.00), (2,"Aman", "Gaya",8.8),(3, "Aditya", "Bodh Gaya",7.98),(4, "Rajan", "Hadhubani", 8.2), (5, "Sourav", "uP",8.00
ro
ERRO 0u ot ranee vu tOrcounceDt
Query OK, e rows affected, 1 warning (e.45 sec)
Records: Duplicates: Warnings: 1
ysq1> insert into student_ashish values (1,"Ashish", "Patna",8.00),(2, "Aman", "Gaya",8.8), (3,"aditya", "Bodh Gaya",7.98), (4, "Rajan", "kadhubani",8.2), (5,"sourav", "UP",8.00
Query Ok, 5 rows affected (e.14 sec)
Records: S5 Duplicates: e warnings: 6
5 Souray i uP
----- - - -
rows A set
(e.Be sec)
Avera _CGPA
51
AdityaBodh Gaya7.98
* *
79.88
*
mysal selectsid,fnane,cgpa as Max_cGPA FROM studentashish cgpan (select max(cgpa) as MaxcGPA fron student ashish) ;
ENO 14zeeYouhave an error in your sq syntax check the manual that corresponds to your MysQL server version for the student ashish)
"
right syntax to use near -(select max(cgpa) as Max_CGPA from at 1ine 1
Max_GPA ros student_ashish where cgpa(select max(cgpa)
as Max_cGPA from student_ashish) ;
nysq seiect 51d,tnane, cgpa as
Aman 8.88
Activate Windows
Go to Settings to activate Window
set (e.88 seC)
OM n
select Number from student_ashish where cgpas7.5;
mysql> count (fname) as
NumberI
mysql> select from student ashish where cgpa-(select max(cgpa) from studentashish);
0 n a e 5_CtycEpapercent
mysq select trom student ashish where cEpa=( select min(cgpa ) trom student_ashsh) ;
mysql select a s MAX CGPA from student ashish where cgpa=(select max(cgpa) as Max_CGPA From student-ashish);
N aVe an e r o a n . your tax cneck tnenu at coptesponas to your y server vers10n ror the right 5yntax to use near as RA_CaPA r o m s t u d e n t _ a s h i s h where CEPa(select max(CEpa) as Max
GPA TO
MAX CGPA from student ashish where cgpa=(select max(cgpa) as Max_CGPA from student ashish);
have in your sQL syntax; check the manual that
ERROR 1864 (428e0): You
aPA fron st at ne
an error correspands to your MysqL server version far the right
syntax to use near 'as
MAX CGPA From student_ashish where cgpa-(select nax(cgpa) as Max_c
i e d n a e , CRpa as axCGPA RO STudent ashnish cEpa=(select max(cEpa) a s a C G P A from student_ashish )
the right syntax to use near -(select max(cgpa) from
"
at line 1
mysql> select s_id,f_nane,cgpa as Max_cGPA fron student_ashish where cgpa=(select max(cgpa) as Max CGPA from student ashish) ;
for as Max_cGPA student_ashish)
1d nae Max_CGPAA
2 Aman 8.88 |
rOW An set (8.88 sec)
select Min_cGPA fran student_ashish where Cgpan(select min(cgpa) Min_cGPA from student_ashish) ;
mysql s_1d,fnane, cgpa as as
d nane Min_cGPA
------
Aditya
---+
7.98
****
set
(0.e8 sec)
o
mysql>
Activate WindowS
Go to Settings to activate Windows
my sl> select from student _ashish;
****** ****
S1d _name -Cy Ep
an3nrotna
amher
Average_cGPA
8.2