SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseSQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old July 3rd, 2008, 06:15 AM
ajayp40 ajayp40 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2007
Posts: 142 ajayp40 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 6 m 58 sec
Reputation Power: 2
Sql Split

Is it possible to do a split in a sql simular to an asp split, e.g.

i have two values in a collum in a database CollumnA

id1:test1
id2:test2
id1:test2

and then in another table i have 2 collumns

Collum1
id1
id2
id1

Collumn2
test1
test2
test2

i need to be able to do a select statement where collumn 1 and collumn 2 are equeal to CollumnA.

Reply With Quote
  #2  
Old July 3rd, 2008, 06:19 AM
mehere's Avatar
mehere mehere is offline
Senior Sarcasm Wizardess
Click here for more information.
 
Join Date: Feb 2005
Location: Dreamland
Posts: 13,044 mehere User rank is General 13rd Grade (Above 100000 Reputation Level)mehere User rank is General 13rd Grade (Above 100000 Reputation Level)mehere User rank is General 13rd Grade (Above 100000 Reputation Level)mehere User rank is General 13rd Grade (Above 100000 Reputation Level)mehere User rank is General 13rd Grade (Above 100000 Reputation Level)mehere User rank is General 13rd Grade (Above 100000 Reputation Level)mehere User rank is General 13rd Grade (Above 100000 Reputation Level)mehere User rank is General 13rd Grade (Above 100000 Reputation Level)mehere User rank is General 13rd Grade (Above 100000 Reputation Level)mehere User rank is General 13rd Grade (Above 100000 Reputation Level)mehere User rank is General 13rd Grade (Above 100000 Reputation Level)mehere User rank is General 13rd Grade (Above 100000 Reputation Level)mehere User rank is General 13rd Grade (Above 100000 Reputation Level)mehere User rank is General 13rd Grade (Above 100000 Reputation Level)mehere User rank is General 13rd Grade (Above 100000 Reputation Level)mehere User rank is General 13rd Grade (Above 100000 Reputation Level)  Folding Points: 10976 Folding Title: Novice Folder
Time spent in forums: 5 Months 11 h 21 m 48 sec
Reputation Power: 1873
-->Thread moved to SQL Development Forum

you can do a join on those ... something like this
Code:
SELECT t1.column, t2.column1, t2.column2 
FROM tbl_Table1 t1
LEFT JOIN tbl_Table2 t2
ON t1.column = t2.column1 + ':' + t2.column2
__________________
Come JOIN the party!!!

Quote of the Month:
Pretension: The downside of being better than everyone else is that people tend to assume you're pretentious.

Questions to Ponder:
You can be overwhelmed and underwhelmed, but why can't you be simply whelmed?

iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm")
copyright© 2008 sbenj69

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseSQL Development > Sql Split


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT