Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - AARRRGGGHHH!! Groupby or sum or count???
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

AARRRGGGHHH!! Groupby or sum or count???

 Post Reply Post Reply Page  <12
Author
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 22 May 2003 at 4:16pm
Sorry it been a while since I used Access.
Under view create new queries using SQL statements and name them view1, view2, view3 and then use ASP to run the last SQL statement.
Back to Top
Nischint View Drop Down
Groupie
Groupie
Avatar

Joined: 26 August 2002
Location: India
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote Nischint Quote  Post ReplyReply Direct Link To This Post Posted: 22 May 2003 at 4:24pm
Okay, I'm using Access 2002, but although I can create queries, I can't make them using SQL statements.

I really don't know how to make this work. Please help!!
A better idiot

Jam Like That
Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 22 May 2003 at 4:43pm
Click on create a new query and it should ask you to add a table, pick any one it doesn't matter. After that you'll be taken to the query builder, look around under the menus for the SQL query builder, there may even be a button that says SQL, once you find it click it and you'll be able to add the view using SQL.
Back to Top
Nischint View Drop Down
Groupie
Groupie
Avatar

Joined: 26 August 2002
Location: India
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote Nischint Quote  Post ReplyReply Direct Link To This Post Posted: 22 May 2003 at 5:27pm

Okay, okay, I think I got it right. I made the queries, and did all you said. My last query, view3, is:

SELECT DISTINCT (storyid) AS storyid, storytitle
FROM ratingdb
GROUP BY storytitle;

But when I try to run the top.asp file, it shows me this error:

Circular reference caused by alias 'storyid' in query definition's SELECT list

What does that mean?? Then when I try to open that query in the database, it gives me the same error. What am I doing wrong?



Edited by Nischint
A better idiot

Jam Like That
Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.