Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / SQL Server / ADP / February 2008

Tip: Looking for answers? Try searching our database.

Group by  in SQL

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Francis - 11 Feb 2008 15:37 GMT
need to add a 'select' & 'Group by' statement in excel query.
The Spreadsheet looks like this

KRE001    8/17/2007
KRE001    8/17/2007
WAT001    9/27/2007
WAT001    9/27/2007
TOT001    7/6/2007
KEM001    7/12/2007
CYC001    7/16/2007
CYC001    7/16/2007
MET007    7/16/2007

This is the sql statement.

SELECT V_PO_HISTORY.VENDOR, V_PO_HISTORY.DATE_PO
FROM V_PO_HISTORY V_PO_HISTORY
WHERE (V_PO_HISTORY.DATE_PO>{d '2007-07-01'})

I need to group the vendors in column A.
can someone please help?
Sylvain Lafontaine - 11 Feb 2008 18:36 GMT
First, this newsgroup is about Access and ADP - which is a type of database
project created by Access and designed to be a frontend to SQL-Server - and
has nothing to do with Excel; so you should post your question to a
newsgroup dedicated to Excel or to Excel queries if you want a more explicit
answer.

In your case, as far as I can remember, the Microsoft Query engine used by
Excel cannot represent graphically a select query with a Group By statement;
so you will have to exit the graphic mode and switch to the text mode (also
known as the sql mode) in order to enter your Group By statement manually.
After that, you won't be able to manipulate your select statement
graphically anymore and any further modifications will have to be done
manually (for this particular query, of course).  The same rule apply to the
usage of some other sql statements like the UNION statement.

On how to switch to the text or sql mode, I don't remember.  Probably from
the menu or by using the right click of the mouse on either the title bar or
the main body of the Microsoft Query window.

Signature

Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail: sylvain aei ca (fill the blanks, no spam please)

> need to add a 'select' & 'Group by' statement in excel query.
> The Spreadsheet looks like this
[quoted text clipped - 17 lines]
> I need to group the vendors in column A.
> can someone please help?
Francis - 11 Feb 2008 19:36 GMT
appreciate, sorry for inconvenience.

> First, this newsgroup is about Access and ADP - which is a type of database
> project created by Access and designed to be a frontend to SQL-Server - and
[quoted text clipped - 36 lines]
> > I need to group the vendors in column A.
> > can someone please help?
Ad Buijs - 19 Feb 2008 10:32 GMT
Hou asjebelieft uw ongevraagde zooi bij U

> need to add a 'select' & 'Group by' statement in excel query.
> The Spreadsheet looks like this
[quoted text clipped - 17 lines]
> I need to group the vendors in column A.
> can someone please help?
Ad Buijs - 19 Feb 2008 10:42 GMT
MH

Wilt U vanaf nu stoppen met voor mij onbelangrijke en ongevraagde berichten.

Bij voorbaat dank  A Buijs.

> need to add a 'select' & 'Group by' statement in excel query.
> The Spreadsheet looks like this
[quoted text clipped - 17 lines]
> I need to group the vendors in column A.
> can someone please help?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.