Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Go Back   Code Forums > Application and Web Development > Everything SQL ( MySQL, MSSQL, DB2, Postgre, Oracle, etc...)
User Name
Password

Reply
 
LinkBack Thread Tools Display Modes
Old 10-31-2006, 10:14 AM   #1 (permalink)
Imon Fyre
Recruit
 
Imon Fyre's Avatar
 
Join Date: Mar 2003
Location: Muskoka, Canada
Posts: 19
Imon Fyre is on a distinguished road
embedded translation of data in a query

Alrighty, I have a bit of a brain scratcher for you guys.
Code:
SELECT dumppt, sum(mass) FROM production where (date >=@startdate) and (date <= @enddate) group by dumppt
I have that query. I need to be able to translate the first dumppt part to another value from a translation table, within the query, as it is getting dumped to another procedure from the reader variable that it is being read into.
__________________
Imon Fyre is offline   Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
question about what type of data to use DewKnight Everything SQL ( MySQL, MSSQL, DB2, Postgre, Oracle, etc...) 7 02-17-2006 11:59 AM
Need help optimizing a query Belisarius Everything SQL ( MySQL, MSSQL, DB2, Postgre, Oracle, etc...) 3 12-23-2005 06:33 AM
Reading chunks of data in a servlet??? j.gohel Java 2 09-10-2005 01:40 PM
? About data types... slashdot Standard C, C++ 2 04-15-2005 09:57 AM


All times are GMT -8. The time now is 09:09 AM.


Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2006, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting
Open Circle