You are on page 1of 3

Clauses

Ques:-Create a table student in which attributes are name ,regnno ,rollno ,age, fathersname, contactno and address and apply clauses. Sol:-

Name "an#ir at #irat preeti #ittu rin#i ramni anmol simran cheena deep

Regnno $$$%%& '( $$$%%& '* $$$%%& (% $$$%%& ($ $$$%%& (& $$$%%& (/ $$$%%& (+ $$$%%& (, $$$%%& ($$$%%& ('

Rollno $ & / + , ' ( * $%

ge &% &$ && &/ &+ &, &&' &( &*

!athersna me Ra)inder "an.ir 0alde. Rashpal 1aram)it 0arinder Ra).eer r.inder Rupinder 0al)it

Contactn o **$+,-' (%% **$+,-' (%$ **$+,-' (%& **$+,-' (%/ **$+,-' (%+ **$+,-' (%, **$+,-' (%**$+,-' (%' **$+,-' (%( **$+,-' (%*

ddress hoshiap ur bhogpu r )alandh ar dasuya tanda la#himp ur ludhian a patiala sangrur bathind a

2here
Select 3 from student 2here C4567)alandhar

8i#e
Select 3from person 2here city li#e 9 ) 9

:rder by
Select 3from person :R;<R06 city ;<CS

0etween
Select 3from person 2here =rollno N:5 0<52<<N $and +>

4N
Select 3from person 2here city =4n ?)alandhar,bhogpur>

@roup by
Select 3from person

2here city7)alandhar @roupby name

Aa.ing
Select 3from person 2here city7)alandhar @roupby name ha.ing name7#irat

You might also like