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

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 March 17th, 2004, 09:22 AM
neoprem neoprem is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 37 neoprem User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
display 2 field in 1 record

Thanx for your help!!
Can I display 2 fields in 1 record.
i.e I have a table
======================
prodname prodbrand
x abx
y asd
z abx
======================
Can I display it like
======================
x
y
z
abx
asd
abx

Thanx a lot..

Reply With Quote
  #2  
Old March 23rd, 2004, 07:47 AM
zastil zastil is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: properties sale france
Posts: 17 zastil User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 26 sec
Reputation Power: 0
Thumbs up Ere we go

Code:
select prodname from thetable 
union select prodbrand from thetable 

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft SQL Server > display 2 field in 1 record


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


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





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