Geeks Talk

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.

Basic SELECT question

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, ...

Go Back   Geeks Talk > Databases > SQL Server
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

SQL Server SQL Server is a Database Management System(DBMS) by Microsoft

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-23-2009
Junior Member
 
Join Date: Jun 2009
Location: St Louis
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
BrianBogey is on a distinguished road
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
Reply With Quote
Sponsored Links
Reply

  Geeks Talk > Databases > SQL Server

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are Off


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


All times are GMT -4. The time now is 11:40 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved