How to make this
-
About me adam763 aadams CaringIn Action adam763 aadams LocalBusiness adam763 aadams From My Desk adam763 aadams About me agga924 aaggarwal From My Desk agga924 aaggarwal LocalBusiness agga924 aaggarwal About me aldr231 aaldridge From My Desk aldr231 aaldridge About me alkh290 aalkhazshvilly LocalBusiness alkh290 aalkhazshvilly From My Desk alkh290 aalkhazshvilly About me alti800 aaltis From My Desk alti800 aaltis About me arev258 aarevalo From My Desk arev258 aarevalo About me arri922 aarriaga1 From My Desk arri922 aarriaga1 About me bakk607 abakken bout me bart768 abarton From My Desk bart768 abarton i need the data to be present as in the first column repeated text is there for suppose Title TitleCount About Me 23 after this i have to display Title UserName Usersite About Me barttt xxxxxx About Me xxxx xxxxx About Me xxxx xxxxx
do you mean you want to group data?. if so, use
[order by](http://www.w3schools.com/sql/sql_orderby.asp)
.Help people,so poeple can help you.
modified on Friday, March 11, 2011 2:16 PM
-
do you mean you want to group data?. if so, use
[order by](http://www.w3schools.com/sql/sql_orderby.asp)
.Help people,so poeple can help you.
modified on Friday, March 11, 2011 2:16 PM
How can ORDER BY help in GROUPING data ? (I think you meant GROUP BY)
-
About me adam763 aadams CaringIn Action adam763 aadams LocalBusiness adam763 aadams From My Desk adam763 aadams About me agga924 aaggarwal From My Desk agga924 aaggarwal LocalBusiness agga924 aaggarwal About me aldr231 aaldridge From My Desk aldr231 aaldridge About me alkh290 aalkhazshvilly LocalBusiness alkh290 aalkhazshvilly From My Desk alkh290 aalkhazshvilly About me alti800 aaltis From My Desk alti800 aaltis About me arev258 aarevalo From My Desk arev258 aarevalo About me arri922 aarriaga1 From My Desk arri922 aarriaga1 About me bakk607 abakken bout me bart768 abarton From My Desk bart768 abarton i need the data to be present as in the first column repeated text is there for suppose Title TitleCount About Me 23 after this i have to display Title UserName Usersite About Me barttt xxxxxx About Me xxxx xxxxx About Me xxxx xxxxx
My be this will work (in SqlBase it works): SELECT Title, TO_CHAR( COUNT(*), 0), NULL FROM Table GRUOP BY Title UNION SELECT Title, UserName, UserSite FROM Table ORDER BY 1, 2, 3
-
How can ORDER BY help in GROUPING data ? (I think you meant GROUP BY)
or group by, but why to use it scinse there is no need to use aggregate functhins. in addition order by also sort data 100 :rose:
Help people,so poeple can help you.
-
or group by, but why to use it scinse there is no need to use aggregate functhins. in addition order by also sort data 100 :rose:
Help people,so poeple can help you.
Of course he need a aggregate function, for the title count ...
-
Of course he need a aggregate function, for the title count ...
So, you are the one with the answer below. ok i admit that i misread. shall you forgive my mistake! :-D 100 :rose:
Help people,so poeple can help you.
-
My be this will work (in SqlBase it works): SELECT Title, TO_CHAR( COUNT(*), 0), NULL FROM Table GRUOP BY Title UNION SELECT Title, UserName, UserSite FROM Table ORDER BY 1, 2, 3
As they say "Think twice before you leap !". Have a 5 100 :rose:
Help people,so poeple can help you.
-
So, you are the one with the answer below. ok i admit that i misread. shall you forgive my mistake! :-D 100 :rose:
Help people,so poeple can help you.
I'll forgive you :-)))) Just wondered that you said 'grouping items' and than advise 'order by' - that confused me Anyway, I'm glad to be able to share your community ! Regards, kwk
-
I'll forgive you :-)))) Just wondered that you said 'grouping items' and than advise 'order by' - that confused me Anyway, I'm glad to be able to share your community ! Regards, kwk
Klaus-Werner Konrad wrote:
that confused me
you shouldn't be (i am not familiar with database) :-D 100 :rose:
Help people,so poeple can help you.