Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on Basic SELECT question within the SQL Server forums, part of the Databases category; Hi. I decided to start learning about sql thru access, so i created a query, then looked at the code thru sql view, and then tried to duplicate it. However, ...
|
|||||||
| SQL Server SQL Server is a Database Management System(DBMS) by Microsoft |
![]() |
| LinkBack | Thread Tools | Display Modes |
|
|||
|
Basic SELECT question
Hi.
I decided to start learning about sql thru access, so i created a query, then looked at the code thru sql view, and then tried to duplicate it. However, i am stuck. Here is what i created thru access' normal query process. Select ydsgame.comp, team.player, team.team --if i understand correctly, this grabs the 3 fields that i wish to use from team left join ydsgame on team.[player] = ydsgame.[player] --this states that i wish to return both of the columns from the team table, then i am matching a field from team with a field from ydsgame, then i am matching team.player with ydsgame.player where (((ydsgame.comp)>=320)) --this is my primary criteria, which is that a row is to be selected if the value in the ydsgame.comp column is >=320 order by ydsgame.comp desc; --and this takes the results and sorts them by descending order so, the above code works fine, (that is, it returns ydsgame, player & team for any player with ydsgame .=320) since i created it with the query process. So i decided to replicate it manually, using two different tables. Here is my attempt. Select tds.td, ints.player, ints.ints -- this is supposed to grab tds.td, ints.player & ints.ints from ints left join tds on ints.[player] = tds.[player] -- this is supposed to state that i want both the columns from ints, then i am matching a field from ints with tds, then i am matching ints.player with tds.player where (((tds.td)>=20)) --this is my primary criteria, which is that a row is to be selected if the value in tds.td >=20 order by tds.td desc; --and this takes the results and sorts them by descending order However, the above code that i wrote gives a popup for parameter value for ints.ints. I want it to yield tds, ints & player for any player with tds >=20. I cannot see the difference between what i wrote manually and what access created when i used the normal query process. Help would be greatly appreciated, brian |
| Sponsored Links |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| basic need of datawarehousing | amitmca66 | Data Warehousing | 4 | 07-24-2009 03:38 AM |
| Basic LoadRunner Question | learqtptesting | LoadRunner | 1 | 03-29-2009 05:07 AM |
| Basic functionality of FA and CM | sateesh.d | Oracle Apps | 3 | 07-19-2008 05:57 AM |
| Robot - basic question | Angry PM | Rational Robot | 4 | 04-19-2008 04:01 AM |
| Basic Questions | javaprogrammer | Java | 2 | 10-19-2007 01:49 AM |