Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDatabase Management

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 Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old August 19th, 2003, 11:24 AM
Karin Karin is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 7 Karin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
problem using replace function in sql

Hi i'm new programming in sql, i need to replace several values of the same column using the replace function but renaming the column to create new columns.The original columns look like this:

Estudent Type
estudent 1 REG
estudent 2 REP
estudent 3 DD


estudent n REG

And i need to retrieve the data like this:

Estudent REG REP DD
estudent 1 *
estudent 2 *
estudent 3 *


estudent n *

If anyone can figure out a way to do this(probably is easy but i can't figure out how) using replace or another way, i'll appreciate it, thanks!

NOTE: the format dosn't look good here, but the idea is to make a table with the asteriscs in the right position

Last edited by Karin : August 19th, 2003 at 11:26 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > problem using replace function in sql


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 4 hosted by Hostway