Sei sulla pagina 1di 2

http://www.sharepointsecurity.

com/sharepoint/sharepoint-
development/sharepoint-developer-interview-questions-answers/

Consider the following tables.

EMP(emp_no, name, salary, supervisor_no, gender, dept_code)

DEPT(dept_cd, dept_name)

Write down queries in SQL for getting following information.

(i) Names of employees and their supervisor if they are of opposite gender.
(ii) Employees getting more salary than their supervisor.
(iii) Department(s) having maximum employees earning more than 25000
(iv) Name of employee(s) who earn maximum salary in the organization.
1. The following relations are used to store data about Students, Courses and
enrollment of students in course and teachers of courses.

Attributes for primary key in each relation are marked by*

Students(rollno*, sname, saddr)

Courses (cno*, cname)

Enroll (rollno*,cno*, grade)

Teach (tno*, tname, cno*)

Write SQL statements to get the rollno . and names of students who have got an
‘A’ grade in a course taught by ‘Ramesh’

Q 3. How to fill data inl a DataSet from any database

Q.4 Creates a new DataRow by calling the NewRow method of the DataTable
object
Q.5 Creates a new DataTable with one column, and then creates a single
DataRow. As the DataRow is created, added, modified, and deleted, its
RowState is printed

Q.6 Creates two DataTable objects, one DataRelation object, and adds the new
objects to a DataSet. The tables are then displayed in a DataGridView
control.

Q.7 The collection of constraints for a DataTable and determines whether each
constraint is a UniqueConstraint or a ForeignKeyConstraint. The properties of

Q 8. How to fill data inl a DataSet from any database

Q.9 Creates a new DataRow by calling the NewRow method of the DataTable
object

Q.10 Creates a new DataTable with one column, and then creates a single
DataRow. As the DataRow is created, added, modified, and deleted, its
RowState is printed

Q.11 Creates two DataTable objects, one DataRelation object, and adds the new
objects to a DataSet. The tables are then displayed in a DataGridView
control.

Q.12 The collection of constraints for a DataTable and determines whether each
constraint is a UniqueConstraint or a ForeignKeyConstraint. The properties of

Potrebbero piacerti anche