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.

sql query help

This is a discussion on sql query help within the SQL forums, part of the Databases category; Dear all. I have table with 250 columns.But i want to retrieve the data from 240 columns only.If i use joins then i have to refer to 240 columns.if i ...

Go Back   Geeks Talk > Databases > SQL
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 07-24-2008
Junior Member
 
Join Date: Jul 2008
Location: India
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
kothojubhaskar is on a distinguished road
Smile sql query help

Dear all.

I have table with 250 columns.But i want to retrieve the data from 240 columns only.If i use joins then i have to refer to 240 columns.if i use views
i requirement changes frequently like neglecting 11th col,123 col etc.
Would any one suggest me the solution other than views.

Thanx in advance
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-26-2008
Expert Member
 
Join Date: Sep 2007
Posts: 738
Thanks: 22
Thanked 67 Times in 65 Posts
krishnaindia2007 is on a distinguished road
Re: sql query help

Quote:
Originally Posted by kothojubhaskar View Post
Dear all.

I have table with 250 columns.But i want to retrieve the data from 240 columns only.If i use joins then i have to refer to 240 columns.if i use views
i requirement changes frequently like neglecting 11th col,123 col etc.
Would any one suggest me the solution other than views.

Thanx in advance
What exactly your problem is?

To join two tables you need not specify all 240 columns in join condition.

To join n tables you need to specify n-1 join conditions.
Reply With Quote
  #3 (permalink)  
Old 08-25-2008
Junior Member
 
Join Date: Aug 2008
Location: chennai
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
ersanthos is on a distinguished road
Re: sql query help

what is the query for this question
Reply With Quote
  #4 (permalink)  
Old 09-13-2008
Junior Member
 
Join Date: Sep 2008
Location: India
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
rmgulati is on a distinguished road
Re: sql query help

In your question you have written that you have 1 table & that you want to retrieve only 240 columns. So where is the question of join. I think that join is only between two tables or if we have self referential integrity then we may need to join the table with itself. So please clarify...
Reply With Quote
Reply

  Geeks Talk > Databases > SQL

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


Similar Threads

Thread Thread Starter Forum Replies Last Post
sql query max__payne_nishant SQL 3 09-20-2008 01:43 PM
How to get this o/p from the sql query bhaski SQL 4 06-21-2008 01:27 AM
sql query help... psuresh1982 SQL 6 07-23-2007 12:55 AM
regarding sql query psuresh1982 SQL 8 07-13-2007 03:20 AM
Query with C++ StephenRaj C and C++ 1 08-14-2006 04:09 AM


All times are GMT -4. The time now is 04:58 AM.


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