REGISTER
|
Search Tycoon Talk
|
Freelancer.com
|
Members
Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.
Register Here
Forum Rules
The Database Forum
You are currently viewing our The Database Forum as a guest. Please
register
to participate.
Login
Remember Me?
Login via Freelancer.com
Tycoon Talk
>
Web Administration Support
>
The Database Forum
>
Group By Without Using Any Aggregate Function
Link Back
Thread Tools
Search this Thread
Group By Without Using Any Aggregate Function
12-07-2007, 01:58 AM
#
1
(
permalink
)
Group By Without Using Any Aggregate Function
kapsne_143
Junior Talker
Posts: 1
Name: kapil
Trades:
0
Talkupation:
Hi,
I want the select statement but i am using group by but i don't want to use any aggregate function on it . kindly suggest me the answer.
select empno, ename from emp group by deptid,empno;
Thank You,
Register
now for full access!
12-07-2007, 10:29 PM
#
2
(
permalink
)
Re: Group By Without Using Any Aggregate Function
ForrestCroce
Half Man, Half Amazing
Latest Blog Post:
4th of July Fireworks on Lake Union
Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades:
0
Talkupation:
If every field in your select list is also in the group by, you don't need aggregate functions to tell the database how to collapse multiple rows. In that case, you're probably better off using select distinct.
__________________
Please login or register to view this content.
Registration is FREE
|
Please login or register to view this content.
Registration is FREE
|
Please login or register to view this content.
Registration is FREE
12-18-2007, 02:45 AM
#
3
(
permalink
)
Re: Group By Without Using Any Aggregate Function
ADAM Web Design
Canadastaninianite
Latest Blog Post:
If You Hate Form Spam, This is the Site for You
Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades:
0
Talkupation:
Are you trying to sort your rows? If so, you want ORDER BY, not GROUP BY.
__________________
Please login or register to view this content.
Registration is FREE
|
Please login or register to view this content.
Registration is FREE
(my blog)
Please login or register to view this content.
Registration is FREE
(with proof)
12-26-2007, 04:05 AM
#
4
(
permalink
)
Re: Group By Without Using Any Aggregate Function
brookittykat12
Novice Talker
Posts: 10
Name: Cookie
Trades:
0
Talkupation:
people talk about stuff i hav no clue about WAY too often.
oh, poo. I feel like a watermelon who dreamed she was a pickle.
12-26-2007, 04:06 AM
#
5
(
permalink
)
Re: Group By Without Using Any Aggregate Function
brookittykat12
Novice Talker
Posts: 10
Name: Cookie
Trades:
0
Talkupation:
anyways...
ignorance is bliss, right? ain't that good?
« Reply to
Group By Without Using Any Aggregate Function
Previous Thread
|
Next Thread
Tycoon Talk
>
Web Administration Support
>
The Database Forum
>
Group By Without Using Any Aggregate Function
Thread Tools
Search this Thread
Show Printable Version
Email this Page
Search this Thread
:
Advanced Search
Posting Rules
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
BB code
is
On
Smilies
are
On
[IMG]
code is
On
HTML code is
Off
Trackbacks
are
Off
Pingbacks
are
Off
Refbacks
are
Off
Forum Rules
Feeds:
RSS
JS
XML
Feeds for this forum:
RSS
JS
XML
LinkBack
LinkBack URL
About LinkBacks
Bookmark & Share
Digg this Thread!
Add Thread to del.icio.us
Bookmark in Technorati
Tweet this thread
Page generated in
0.37732
seconds with
12
queries