TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Bineesh Viswanath
NA
1k
777.6k
Different SQL Query to find Details
Nov 27 2013 10:25 AM
Sir, I need your help to find result in some sql quries.
The questions regarding this table is been listed at the end. Please go through the questions and reply with the answers.
Here the Sql Tables:-
1.tbl_Customer
------------
customerId numeric(18,0)
customerName varchar(50)
2.tbl_Product
------------
productId numeric(18,0)
productName varchar(50)
3.tbl_customerProductSales
------------------------
salesId numeric(18,0)
salesAmount
customerId numeric(18,0)
productId numeric(18,0)
1) Add customerName and ProductName
2) Display second highest product rate and Name
3) Display highest product rate
4) Display top 3 product rate
5) Display lowest 3 product rate
6) Display CustomerName and having more than 5 sales
7) Display productName that not sold
Reply
Answers (
1
)
remove duplicate records by specific id in sql server 2008
SQL Query to find second highest value