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
Pramod Kumar Nandagiri
NA
484
0
I want some high cost sql queries and low cost sql quries
Feb 28 2010 4:45 AM
hi i want some sql quries like bellow type (no matter how much the query is lengthy)(this query was against northwind database of the sql server)
select OrderID, Customerid, sum(freight)from orders group by orderid,customerid having sum(freight)> (select avg(freight) from orders)
what i want is ,i want two sql queries to retrieve same data(ie for both queries the output is same)
but for first query the time taken(cost) to retrieve the data should be more than the second query
can anyone give me some example queries on this
Reply
Answers (
0
)
Wrap long line that has a string
Custom Dictionary Sort C#