473,385 Members | 1,597 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

helo everyone

I am facing a problem pls if u know the solution then send me.
thanks in advance
my problem is :

suppose there is a table: employee
Job_category //column name in employee table
t // data in employee table
s // data in employee table

my problem is this:
i want to show like this without editing in data in the employee table


Job_category //column name
trainig //data
scietist
Apr 18 '07 #1
2 1118
Hi,

If u know the values to be shown as a static value for the value present in the DB.

Then use this query,

SELECT CASE job_category WHEN 's' THEN 'scientist' WHEN 't' THEN 'training' ELSE NULL END AS job_category FROM employee;

Thanks,
Scarlet

I am facing a problem pls if u know the solution then send me.
thanks in advance
my problem is :

suppose there is a table: employee
Job_category //column name in employee table
t // data in employee table
s // data in employee table

my problem is this:
i want to show like this without editing in data in the employee table


Job_category //column name
trainig //data
scietist
Apr 23 '07 #2
Hi,

If u know the values to be shown as a static value for the value present in the DB.

Then use this query,

SELECT CASE job_category WHEN 's' THEN 'scientist' WHEN 't' THEN 'training' ELSE NULL END AS job_category FROM employee;

Thanks,
Scarlet

thanks scarlet
u query is working wonderfully
thnks again
bie
Apr 24 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: Mark Johnson | last post by:
I had asked what might be examples of good design using CSS. One was suggested, which I didn't care for. But are there any others? Can anyone, rather than negatively complain, actually and...
0
by: Paul | last post by:
I've got an MSI that installs 2 Assemblies into the GAC, and I need to remotely run this. Now I can run it and advertise it, but that is not what I want. If I run the MSI (as administrator) I can...
2
by: Srinivas | last post by:
Hi, I have a folder called 'secure' containing many pages and these can be accessed after going through forms authentication. But I want one of the files appPage.aspx to be visible to everyone....
0
by: Michael Fitzpatrick | last post by:
I have a .NET application with an installer. The customer wants the install page with the "Everyone" or "Just Me" selection to default to "Everyone". Presently it defaults to "Just Me". Any hints...
1
by: Mike McAllister | last post by:
Is there a way to force SmtpClient.Send to respond to the remote server's 220 message with HELO instead of EHLO? System.Web.Mail worked fine in 1.1 for me on many SMTP email servers. However,...
4
by: Ronald S. Cook | last post by:
I created an MSI install for a Windows app I wrote. When installing, however, it defaults to install for "Just Me" instead of "Eveveryone" (meaning anyone who uses this computer). I would like...
1
by: ImageAnalyst | last post by:
Yay!!! They fixed this for VS2005. You can now set the default installation to be "Everyone" instead of "Just Me" and you can control whether you even want those radio button installed in your...
0
by: Samuel R. Neff | last post by:
I'm having trouble creating a Semaphore with read-access rights for everyone. Originally I was trying to use this code: semaphore = new Semaphore(maxLocks, maxLocks, "RwLock#" + name); but...
9
by: PomonaGrange | last post by:
HI All, I've been trying to make a membership management type script. This script would have a database with the members contact info and which office they hold, if any. The problem I am having is I...
6
by: kinedesigner | last post by:
We're using a perl script to fetch images from the inhouse server & pump them to a remote server with much higher bandwidth. I want to remove the Everyone account from the target folder on the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.