
Ankitware is a platform where you get NIIT dumps fully solved!!!!! NIIT Lab At Home ; NIIT Pmr ,NIIT cycle test, Window app. Contact:ankitware@gmail.com.
Showing posts with label NIIT SQL LAB@ HOME 3. Show all posts
Showing posts with label NIIT SQL LAB@ HOME 3. Show all posts
Thursday, 10 October 2013
11. Consider the following Purchase_Details table.

Cust_ID and StoreID make the composite primary key in the table. Identify the partial dependency
in the table, if any. How can you remove the partial dependency to attain the next normal form?

10. Consider the following Student table.

The preceding table is in the first normal form. How can this table be converted into the second
normal form?

9. Consider the following Product table.

The preceding table is not normalized. How can this table be converted into the first normal form?
8. New Heights is a training institute that provides courses on various nontechnical subjects, such as personality improvement and foreign languages. Xuan, the Database Designer, has made the following relations to represent the data about students, batches, and modules covered in the batches: STUD-ID: Student's id (unique) NAME: Name of student BATCH-NO: Batch number (one student can belong to only one batch) SLOT: Time and day when the batch of students attends the class MODULE: Module or subject (one batch will do several modules) MARKS: Marks obtained in a module test Xuan now needs to simplify the above relations by normalizing them

Monday, 7 October 2013
Display a report that contains the employee ID, login ID, and the title of employees. The report should display the records for 10 employees after excluding the records of the first five employees. (Use the AdventureWorks database)
select top 10 EmployeeID,LoginID,Title from HumanResources.Employee
where EmployeeID not between 1 and 5
where EmployeeID not between 1 and 5
Display the different types of credit cards used for purchasing products. (Use the AdventureWorks database)
select distinct CardType from Sales.CreditCard
Display the top three sales persons based on the bonus. (Use the AdventureWorks database)
select top(3) Bonus,SalesPersonID from Sales.SalesPerson
Display the SalesPerson ID, the Territory ID, and the Sales Quota for those sales persons who have been assigned a sales quota. The data should be displayed in the following format. (Use the AdventureWorks database)
select SalesPersonID as 'Sales Person ID',
TerritoryID as 'Territory ID',
SalesQuota as 'Sales Quota' from Sales.SalesPerson
TerritoryID as 'Territory ID',
SalesQuota as 'Sales Quota' from Sales.SalesPerson
Display all territories whose names begin with 'N'. (Use the AdventureWorks database)
select * from Sales.SalesTerritory
where Name like 'N%'
Display the details of those stores that have Bike in their name. (Use the AdventureWorks database)
select * from Sales.Store
where Name like '%Bike%'
where Name like '%Bike%'
Subscribe to:
Posts (Atom)
-
Niit NIIT NIIT D C Chowk New Delhi 1800 102 6448 CALL DIRECTIONS NIIT NIIT HD-7, 2nd Floor, Main Metro Road, Opp. Metro Pillar No....
-
Contact : 8467922888
-
Q3. What are the lines of Longitude? Ans. Lines of Longitude are Imaginary Vertical lines, running North to South . They meet at both th...